/* ArtificialTurfGuide: mobile-first, system fonts, no external requests. */
:root {
  --green-900: #0f3d25; --green-800: #155232; --green-700: #1f6f43; --green-600: #258a52; --green-100: #e6f3e8; --green-50: #f3f9f3;
  --ink: #17201b; --ink-2: #3c4842; --muted: #5d6a63; --line: #dbe3dd; --bg: #ffffff; --bg-2: #f6f8f6;
  --amber-100: #fff4dc; --amber-700: #8a5a00; --red-100: #fdeceb; --red-700: #9b2c25; --blue-100: #e8f1fb; --blue-700: #1f4f86;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 40, 24, .06), 0 4px 16px rgba(16, 40, 24, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
@media (min-width: 720px) { body { font-size: 18px; } }
a { color: var(--green-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-900); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.22; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); margin: .2em 0 .35em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.7rem); margin: 2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.wrap.narrow { max-width: 820px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 22px; height: 22px; flex: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 1.06rem; letter-spacing: -.01em; white-space: nowrap; }
.brand b { color: var(--green-700); font-weight: 750; }
.brand-mark { width: 32px; height: 32px; }
.primary-nav { display: none; margin-left: auto; }
.primary-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 8px 11px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 560; font-size: .95rem; }
.primary-nav a:hover, .primary-nav a[aria-current] { background: var(--green-50); color: var(--green-800); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
@media (min-width: 980px) { .primary-nav { display: block; } .header-actions { margin-left: 4px; } }
.search-link, .menu summary { display: inline-flex; align-items: center; gap: 6px; padding: 9px; border-radius: 10px; color: var(--ink-2); cursor: pointer; min-width: 44px; min-height: 44px; justify-content: center; }
.search-link:hover, .menu summary:hover { background: var(--green-50); color: var(--green-800); }
.menu { position: static; }
.menu summary { list-style: none; font-weight: 600; font-size: .95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu-label { display: none; }
@media (min-width: 560px) { .menu-label { display: inline; } }
.menu[open] summary { background: var(--green-100); color: var(--green-900); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0, 0, 0, .08); max-height: calc(100vh - 60px); overflow-y: auto; padding: 14px 18px 22px; }
.menu-title { max-width: var(--wrap); margin: 0 auto 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.menu-grid { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 600px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .menu-grid { grid-template-columns: repeat(4, 1fr); } }
.menu-grid a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.menu-grid a span { display: block; font-weight: 400; font-size: .86rem; color: var(--muted); }
.menu-grid a:hover { background: var(--green-50); }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 18px 0 6px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: #a7b2ab; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* article layout */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; }
.article-layout > .crumbs { grid-column: 1 / -1; }
@media (min-width: 1060px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .article-layout > .related { grid-column: 1 / -1; }
}
.article { max-width: 760px; min-width: 0; }
.article-head { margin-bottom: 18px; }
.kicker { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--green-700); }
.kicker a { text-decoration: none; }
.dek { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 14px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .87rem; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline a { color: var(--ink-2); }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 18px 0 8px; font-size: .95rem; }
.toc summary { font-weight: 700; cursor: pointer; padding: 4px 0; }
.toc ol { margin: 8px 0 4px; padding-left: 1.3em; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 28px; } }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--green-700); text-decoration: underline; }

/* prose */
.prose { font-family: var(--serif); font-size: 1.07em; line-height: 1.7; }
.prose h2, .prose h3, .prose h4, .prose table, .prose .callout-label, .prose th, .prose td { font-family: var(--font); }
.prose h2 { padding-top: .2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--green-700); }
.prose strong { color: #0e1a13; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--green-50); color: var(--green-900); font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fafcfa; }
.callout { margin: 1.4em 0; padding: 14px 18px; border-radius: var(--radius); border-left: 4px solid var(--green-600); background: var(--green-50); font-size: .97em; }
.callout p { margin: 0; }
.callout .callout-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 750; margin-bottom: 4px; color: var(--green-800); }
.callout-answer { background: #eef7ef; border-left-color: var(--green-700); font-size: 1.02em; }
.callout-tip { background: var(--blue-100); border-left-color: var(--blue-700); }
.callout-tip .callout-label { color: var(--blue-700); }
.callout-warn { background: var(--amber-100); border-left-color: #d08c00; }
.callout-warn .callout-label { color: var(--amber-700); }
.callout-example { background: #f4f3fb; border-left-color: #5b4fb0; }
.callout-example .callout-label { color: #45389a; }
.trustbox { margin: 2.4em 0 1.2em; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); font-size: .92rem; color: var(--ink-2); }
.trustbox p { margin: 0; }
.prevnext { display: grid; gap: 12px; margin: 1.4em 0 0; }
@media (min-width: 640px) { .prevnext { grid-template-columns: 1fr 1fr; } .pn.next { grid-column: 2; text-align: right; } }
.pn { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 650; color: var(--ink); line-height: 1.35; }
.pn span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.pn:hover { border-color: var(--green-600); background: var(--green-50); }

/* sidebar */
.sidebar { display: none; }
@media (min-width: 1060px) { .sidebar { display: block; padding-top: 18px; } }
.side-section { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; border-left: 2px solid var(--line); padding-left: 16px; font-size: .9rem; }
.side-h { font-weight: 750; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.side-h a { text-decoration: none; }
.side-section ol { list-style: none; padding: 0; margin: 0; }
.side-section li { margin: 0; }
.side-section a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.side-section a:hover { color: var(--green-700); }
.side-section a[aria-current] { color: var(--green-800); font-weight: 700; }

/* cards */
.cards { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #b9cfc0; box-shadow: var(--shadow); }
.card a { text-decoration: none; color: inherit; }
.card a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 { margin: 0 0 6px; font-size: 1.04rem; color: var(--green-900); }
.card p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.card-kicker { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.related { margin: 2.5em 0 1em; padding-top: 1em; border-top: 1px solid var(--line); }
.related h2 { margin-top: .6em; }

/* hubs */
.hub-head { max-width: 820px; padding: 8px 0 6px; }
.hub-intro { font-size: 1.06rem; color: var(--ink-2); }
.start-here { background: var(--green-50); border: 1px solid #cfe5d4; border-radius: var(--radius); padding: 6px 20px 16px; margin: 10px 0 8px; max-width: 900px; }
.start-here h2 { margin: .7em 0 .5em; font-size: 1.2rem; }
.steps { margin: 0; padding-left: 1.4em; }
.steps li { margin: 8px 0; }
.steps a { font-weight: 700; }
.steps span { display: block; font-size: .92rem; color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1em; }
.chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-2); background: #fff; }
.chips a:hover { border-color: var(--green-600); color: var(--green-800); background: var(--green-50); }
.hub-related { margin: 2em 0 3em; }

/* home */
.hero { background: linear-gradient(180deg, #eef7ef 0%, #f8fbf8 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 38px 18px 34px; max-width: 900px; }
@media (min-width: 720px) { .hero-inner { padding: 64px 18px 56px; } }
.hero h1 { margin-top: .25em; }
.hero-dek { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; }
.hero-search { display: flex; gap: 8px; margin-top: 20px; max-width: 640px; }
.hero-search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #b9cbbf; border-radius: 10px; background: #fff; }
.hero-search input:focus { border-color: var(--green-700); outline: 3px solid rgba(37, 138, 82, .2); }
.hero-search button, .btn { font: inherit; font-weight: 700; font-size: 1rem; padding: 12px 18px; border: 0; border-radius: 10px; background: var(--green-700); color: #fff; cursor: pointer; }
.hero-search button:hover { background: var(--green-800); }
.home-block { margin: 44px 0; }
.home-block h2 { margin: 0 0 16px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.block-head h2 { margin: 0; }
.block-head a { font-weight: 650; white-space: nowrap; }
.paths { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .paths { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path a { display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; height: 100%; }
.path a:hover { border-color: var(--green-600); box-shadow: var(--shadow); }
.path-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-800); display: flex; align-items: center; justify-content: center; }
.path-t { font-weight: 700; color: var(--green-900); }
.path-d { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.qas { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .qas { grid-template-columns: 1fr 1fr; align-items: start; } }
.qa { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qa summary { cursor: pointer; padding: 14px 16px; font-weight: 650; list-style: none; position: relative; padding-right: 40px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 16px; top: 11px; font-size: 1.3rem; color: var(--green-700); }
.qa[open] summary::after { content: "\2212"; }
.qa p { margin: 0; padding: 0 16px 16px; color: var(--ink-2); font-size: .95rem; }
.sections-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .sections-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1060px) { .sections-grid { grid-template-columns: repeat(4, 1fr); } }
.sections-grid a { display: grid; grid-template-columns: 26px 1fr; gap: 0 10px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; }
.sections-grid a:hover { border-color: var(--green-600); background: var(--green-50); }
.sections-grid .ico { color: var(--green-700); grid-row: span 2; margin-top: 2px; }
.sec-name { font-weight: 700; line-height: 1.3; }
.sec-tag { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.principles { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.principles ul { padding-left: 1.2em; margin: 0 0 1em; }
.principles li { margin: .5em 0; color: var(--ink-2); }
.principles li strong { color: var(--ink); }

/* glossary / faq */
.az ul, .chips-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 18px; }
.az a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; }
.az a:hover { background: var(--green-50); border-color: var(--green-600); }
.glossary h2.letter { font-size: 1.5rem; border-bottom: 2px solid var(--green-100); padding-bottom: 4px; color: var(--green-800); }
.glossary h3 { margin-top: 1.2em; scroll-margin-top: 90px; }
.glossary h3:target, .faq h3:target { background: #fff6cc; border-radius: 4px; }
.faq h3 { font-size: 1.08rem; }

/* calculators */
.calc { font-family: var(--font); margin: 1.6em 0 2em; border: 1px solid #c7dccd; border-radius: 16px; background: linear-gradient(180deg, #f6fbf6, #fff); padding: 18px; box-shadow: var(--shadow); }
.calc-title { margin: 0 0 12px !important; font-size: 1.2rem !important; }
.calc-form { display: grid; gap: 12px 16px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field:has(select), .field:has(#extra), .field:has(#rate) { grid-column: 1 / -1; }
@media (min-width: 720px) { .field:has(select) { grid-column: auto; } }
.field label { font-size: .86rem; font-weight: 650; color: var(--ink-2); }
.field input, .field select { font: inherit; font-size: 1rem; padding: 10px 11px; border: 1.5px solid #c3d2c8; border-radius: 9px; background: #fff; width: 100%; min-height: 44px; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--green-700); outline: 3px solid rgba(37, 138, 82, .2); }
.input-unit { display: flex; align-items: center; gap: 6px; }
.unit { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.help { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.calc-out { margin-top: 16px; }
.calc-big { display: flex; flex-direction: column; background: var(--green-800); color: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.calc-big-l { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; font-weight: 650; }
.calc-big-v { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); font-weight: 780; line-height: 1.2; margin: 2px 0; }
.calc-big-s { font-size: .9rem; opacity: .9; }
.calc-table { font-size: .9rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: table; background: #fff; }
.calc-table th { width: 50%; font-weight: 600; color: var(--ink-2); }
.calc-flag { margin: 10px 0 0; padding: 10px 12px; background: var(--amber-100); border-radius: 9px; font-size: .88rem; color: #5a3f00; }
.calc-note, .calc-empty { font-size: .84rem; color: var(--muted); margin: 12px 0 0; }
.calc-notes { font-size: .9rem; margin: 10px 0; padding-left: 1.2em; }
.calc-links { font-size: .92rem; margin: 10px 0 0; }
.layout-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .layout-grid { grid-template-columns: 1fr 1fr; } }
.layout-opt { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.layout-opt.best { border-color: var(--green-600); box-shadow: 0 0 0 2px var(--green-100); }
.layout-h { font-weight: 700; font-size: .92rem; margin: 0 0 8px; }
.badge { display: inline-block; font-size: .72rem; background: var(--green-700); color: #fff; padding: 2px 8px; border-radius: 99px; margin-left: 4px; vertical-align: middle; }

/* search */
.search-page { margin: 10px 0 16px; }
.search-status { color: var(--muted); font-size: .92rem; }
.search-results { list-style: none; padding: 0; margin: 0 0 3em; }
.search-results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-weight: 700; font-size: 1.05rem; }
.search-results .sr-c { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.search-results p { margin: 4px 0 0; font-size: .93rem; color: var(--ink-2); }
.sitemap-grid { display: grid; gap: 4px 32px; grid-template-columns: 1fr; margin-bottom: 3em; }
@media (min-width: 760px) { .sitemap-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .sitemap-grid { grid-template-columns: 1fr 1fr 1fr; } }
.sitemap-grid h2 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.sitemap-grid ul { padding-left: 1.1em; margin: 0; font-size: .92rem; }

/* footer */
.site-footer { margin-top: 64px; background: #0f2a1b; color: #cfe0d5; padding: 40px 0 28px; font-size: .92rem; }
.site-footer a { color: #e8f5ec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: repeat(6, 1fr); } }
.foot-h { font-weight: 750; color: #fff; margin: 0 0 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 6px 0; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; color: #a9c2b2; font-size: .85rem; }
.foot-base p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .sidebar, .related, .prevnext, .toc, .calc-form { display: none !important; }
  body { font-size: 12pt; } a { color: inherit; }
}
