/* AwningGuide: mobile-first, system fonts, no external requests. */
:root {
  --brand: #0e4f52;
  --brand-2: #13696d;
  --brand-soft: #e3efee;
  --accent: #c4553a;
  --accent-soft: #fbe9e3;
  --canvas: #fbf7ee;
  --paper: #ffffff;
  --ink: #1d2a2b;
  --muted: #55625f;
  --line: #ddd6c6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(29, 42, 43, .06), 0 4px 16px rgba(29, 42, 43, .06);
  --measure: 70ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; font: 1.0625rem/1.65 var(--font); color: var(--ink); background: var(--canvas); }
img, svg { max-width: 100%; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1 { font-family: var(--serif); font-size: clamp(1.85rem, 5.5vw, 2.75rem); margin: .3em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.7rem); margin: 2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.1rem; }
.wrap.narrow { max-width: 820px; }
.small { font-size: .875rem; color: var(--muted); }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: .75rem; min-height: 62px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.logo b { color: var(--brand); }
.logo-mark { width: 38px; height: 30px; flex: none; }
.header-search { flex: 1; display: none; }
.all-topics { display: none; font-weight: 600; white-space: nowrap; }
.header-search input { width: 100%; max-width: 320px; margin-left: auto; display: block; }
input[type=search], input[type=number], select, input[type=text], input[type=date] {
  font: inherit; font-size: 1rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px;
}
.menu { margin-left: auto; position: static; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.burger::before { position: absolute; top: -6px; } .burger::after { position: absolute; top: 6px; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.menu nav ul { list-style: none; margin: 0; padding: .5rem 1.1rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; }
.menu nav a { display: block; padding: .65rem 0; text-decoration: none; font-weight: 600; color: var(--ink); border-bottom: 1px solid #f0ebdf; }
.topnav { display: none; }
@media (min-width: 900px) {
  .header-search { display: block; }
  .all-topics { display: inline; }
  .menu { display: none; }
  .topnav { display: block; border-top: 1px solid #f0ebdf; }
  .topnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; flex-wrap: wrap; }
  .topnav a { display: block; padding: .6rem .7rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
  .topnav a:hover, .topnav a[aria-current] { border-bottom-color: var(--accent); color: var(--brand); }
}

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 1rem 0 0; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: #a59e8e; }
.crumbs a { color: var(--muted); }

/* hero */
.hero { background: var(--brand); color: #fff; position: relative; }
.hero-inner { padding: 2.6rem 0 3.2rem; }
.hero-art { display: none; }
@media (min-width: 900px) { .hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: end; } .hero-art { display: block; width: 100%; height: auto; margin-bottom: 2.4rem; } }
.hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2rem, 7vw, 3.3rem); margin-top: 0; }
.hero-lede { font-size: 1.15rem; max-width: 60ch; color: #dcebea; }
.hero-search { display: flex; gap: .5rem; max-width: 560px; margin: 1.4rem 0 1rem; }
.hero-search input { flex: 1; min-width: 0; }
.hero-search button, .button { font: inherit; font-weight: 700; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: .65rem 1.1rem; cursor: pointer; text-decoration: none; display: inline-block; min-height: 44px; }
.hero-search button:hover, .button:hover { background: #a9442c; color: #fff; }
.button.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.button.ghost:hover { background: var(--brand); color: #fff; }
.hero-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.hero-links a { color: #fff; font-weight: 600; }
.stripe { height: 22px; background: repeating-linear-gradient(90deg, var(--accent) 0 36px, #e8d6b0 36px 72px);
  -webkit-mask: radial-gradient(18px at 18px 0, #000 98%, transparent) 0 0/36px 22px repeat-x;
  mask: radial-gradient(18px at 18px 0, #000 98%, transparent) 0 0/36px 22px repeat-x; position: absolute; bottom: -21px; left: 0; right: 0; }

/* home */
.home-section { margin: 3.2rem 0; }
.home-section > h2 { margin-top: 0; }
.paths { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.path { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.2rem; }
.path h3 { margin-top: .2rem; }
.path ul { margin: 0; padding-left: 1.1rem; }
.path li { margin: .35rem 0; }
.topic-grid, .card-grid, .link-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.topic-card a { display: block; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.topic-card a:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.topic-card h3 { margin: 0 0 .3rem; color: var(--brand); }
.topic-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.card h2, .card h3 { margin: .1rem 0 .4rem; font-size: 1.12rem; }
.card h2 a, .card h3 a { text-decoration: none; color: var(--ink); }
.card h2 a:hover, .card h3 a:hover { color: var(--brand-2); text-decoration: underline; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.tool-card { border-left: 4px solid var(--accent); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .3rem; }
.kicker a { color: inherit; text-decoration: none; }
.insight { background: var(--brand-soft); border-radius: var(--radius); padding: 1.5rem 1.2rem; display: grid; gap: 1.5rem; }
.insight h2 { margin-top: 0; }
.facts { margin: 0; display: grid; gap: .8rem; }
.facts div { background: var(--paper); border-radius: 10px; padding: .9rem 1rem; }
.facts dt { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.facts dd { margin: 0; font-size: .92rem; color: var(--muted); }
@media (min-width: 900px) { .insight { grid-template-columns: 1.4fr 1fr; padding: 2rem; } }
.trust-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-grid h3 { margin-top: 0; color: var(--brand); }

/* hubs */
.hub-head { max-width: 760px; }
.lede { font-size: 1.1rem; color: #334140; }
.pillar-card { display: block; text-decoration: none; color: #fff; background: var(--brand); border-radius: var(--radius); padding: 1.4rem 1.3rem; margin: 1.5rem 0; }
.pillar-card h2 { color: #fff; margin: .5rem 0; font-family: var(--serif); }
.pillar-card p { color: #dcebea; max-width: 70ch; }
.pillar-card .more { font-weight: 700; text-decoration: underline; }
.pillar-card:hover { background: var(--brand-2); color: #fff; }
.pill { display: inline-block; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.tool-cta { background: var(--accent-soft); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 2.5rem 0; }
.tool-cta h2 { margin: .2rem 0 .4rem; font-size: 1.3rem; }
.side-label { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--accent); margin: 0; }

/* article */
.article-head { max-width: 820px; }
.byline { color: var(--muted); font-size: .93rem; }
.byline a { color: var(--muted); }
.article-grid { display: grid; gap: 1.5rem; }
.article-side { order: -1; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: .6rem 0 0; padding-left: 1.2rem; font-size: .93rem; }
.toc li { margin: .3rem 0; }
.side-tool { display: none; }
@media (min-width: 1000px) {
  .article-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 3rem; }
  .article-side { order: 0; position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow: auto; }
  .side-tool { display: block; margin-top: 1rem; padding: 1rem; border-radius: var(--radius); background: var(--accent-soft); font-size: .92rem; }
  .side-tool a { font-weight: 700; }
  .side-tool p:last-child { margin: .3rem 0 0; color: var(--muted); }
}
.article-main { min-width: 0; max-width: var(--measure); }
.quick-answer { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.quick-answer p:last-child { margin: 0; font-size: 1.05rem; }
.qa-label { font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0 0 .3rem; }
.prose { font-size: 1.07rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { padding-top: .3rem; border-top: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose strong { color: #142021; }
.callout { border-radius: 10px; padding: .9rem 1.1rem; margin: 1.4rem 0; background: var(--brand-soft); border-left: 4px solid var(--brand); }
.callout.warn { background: #fdf1df; border-left-color: #c47f13; }
.callout.note { background: #eef0f3; border-left-color: #5d6b7a; }
.callout p:last-child { margin: 0; }
.example { background: var(--paper); border: 1px dashed var(--brand-2); border-radius: 10px; padding: 1rem 1.1rem; margin: 1.4rem 0; }
.example-label { font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.example p:last-child, .example ul:last-child { margin-bottom: 0; }
.verdict { background: var(--brand); color: #fff; border-radius: 10px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.verdict strong, .verdict a { color: #fff; }
.verdict p:last-child { margin: 0; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before { content: ""; position: absolute; left: .1rem; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 4px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/100% no-repeat; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin: .9rem 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); -webkit-overflow-scrolling: touch; }
table.data { border-collapse: collapse; width: 100%; font-size: .93rem; }
table.data caption { text-align: left; font-weight: 700; padding: .7rem .9rem; color: var(--brand); caption-side: top; }
table.data th, table.data td { padding: .55rem .8rem; border-top: 1px solid #ece6d8; text-align: left; vertical-align: top; }
table.data thead th { background: var(--brand-soft); border-top: 0; white-space: nowrap; }
table.data tbody th { font-weight: 600; }
table.data tbody tr:nth-child(even) { background: #fcfaf5; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin: .6rem 0; padding: 0 1rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: .85rem 0; }
.faq details[open] summary { border-bottom: 1px solid #ece6d8; margin-bottom: .6rem; }
.sources ul { font-size: .93rem; color: var(--muted); }
.article-foot { margin-top: 2rem; padding: 1rem 1.2rem; border-radius: 10px; background: #f3efe4; font-size: .93rem; }
.article-foot p { margin: 0; }
.related { margin: 3rem 0; }
.related h2 { margin-top: 0; }
.link-grid li a { display: block; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; text-decoration: none; font-weight: 600; color: var(--ink); }
.link-grid li a:hover { border-color: var(--brand-2); color: var(--brand-2); }
.az { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0; }
.az a { display: grid; place-items: center; min-width: 2.3rem; min-height: 2.3rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); text-decoration: none; font-weight: 700; }
dl.glossary dt { font-weight: 700; margin-top: 1.1rem; color: var(--brand); font-size: 1.08rem; }
dl.glossary dd { margin: .2rem 0 0; }
.sitemap-list ul { columns: 2 260px; }

/* tools */
.tool-page .lede { max-width: 70ch; }
.tool { display: grid; gap: 1.2rem; margin: 1.5rem 0 2.5rem; }
@media (min-width: 900px) { .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.panel h2 { margin-top: 0; font-size: 1.2rem; }
.field { margin-bottom: 1rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin: .2rem 0 0; }
.field select, .field input[type=number], .field input[type=text], .field input[type=date] { width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.choice { display: flex; gap: .5rem; align-items: flex-start; padding: .45rem 0; }
.choice input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--brand); }
input[type=range] { width: 100%; accent-color: var(--brand); }
.result-big { line-height: 1.15; font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 2.5rem); color: var(--brand); font-weight: 700; margin: .2rem 0; }
.result-sub { color: var(--muted); }
.breakdown { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1rem 0; }
.breakdown td { padding: .45rem 0; border-top: 1px solid #ece6d8; }
.breakdown td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.diagram { width: 100%; height: auto; background: #f4f8f8; border-radius: 10px; margin: .6rem 0; }
.tool-notes { max-width: var(--measure); }
.quiz-q { margin-bottom: 1.2rem; }
.rec { border-left: 4px solid var(--accent); padding-left: 1rem; margin: 1rem 0; }
.bar { height: 10px; background: #ece6d8; border-radius: 99px; overflow: hidden; margin: .25rem 0 .7rem; }
.bar span { display: block; height: 100%; background: var(--brand); }

/* search */
.search-results { padding-left: 1.2rem; }
.search-results li { margin: 1rem 0; }
.search-results a { font-weight: 700; font-size: 1.08rem; }
.search-results p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
mark { background: #fde6a8; }

/* footer */
.site-footer { background: #13292a; color: #c9d6d4; margin-top: 4rem; padding: 2.5rem 0 1rem; font-size: .93rem; }
.site-footer a { color: #e9f1f0; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.logo-footer { color: #fff; }
.logo-footer b { color: #8fd0cc; }
.site-footer .small { color: #9fb2b0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.copyright { border-top: 1px solid #2a4243; margin-top: 2rem; padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .article-side, .related { display: none; } body { background: #fff; } }
.topic-blocks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 1.5rem; }
.topic-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.topic-block h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.topic-block h2 a { text-decoration: none; color: var(--brand); }
.topic-block > p { color: var(--muted); font-size: .93rem; }
.topic-block ul { padding-left: 1.1rem; margin: 0 0 .6rem; font-size: .95rem; }
.topic-block li { margin: .3rem 0; }
.diagram-fig { margin: 1.5rem 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .6rem; }
.diagram-fig svg { width: 100%; height: auto; display: block; }
.diagram-fig figcaption { font-size: .9rem; color: var(--muted); padding: .5rem .3rem 0; }
