/* mGIC guide pages (generated from content/*.md by tools/site/build.mjs). Uses the tokens in site.css. */
.article-hero { min-height: 0; background: linear-gradient(115deg, #00093c, #05205f); }
.article-hero > div { padding: 90px 0 60px; }
.article-hero h1 { font-size: clamp(36px, 4.6vw, 58px); max-width: 920px; text-wrap: balance; }
.article-hero div > p:last-child { font-size: 18px; max-width: 720px; }
/* guide pages: the same photo hero as About / Products / Services (mGIC's Pensacola Dam, cropped toward the lake) */
.guide-hero { background-position: 50% 30%; }
.guide-hero h1 { text-wrap: balance; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.08; }
@media (max-width: 560px) { .guide-hero h1 { font-size: 32px; } }
.crumbs { width: min(1180px, 90%); margin: 0 auto; padding: 22px 0 0; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a:hover { color: var(--red); }
.article-layout { width: min(1180px, 90%); margin: 0 auto; padding: 40px 0 90px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 70px; align-items: start; }
.article-body { min-width: 0; max-width: 760px; font-family: Georgia, serif; font-size: 18px; line-height: 1.7; color: var(--ink); }
.article-body p, .article-body ul, .article-body ol, .article-body .table-wrap, .article-body .callout { margin: 0 0 22px; }
.article-body h2 { font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: var(--navy); margin: 56px 0 20px; scroll-margin-top: 16px; text-wrap: balance; }
.article-body h3 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 19px; color: var(--navy); margin: 34px 0 12px; scroll-margin-top: 16px; }
.article-body ul { list-style: disc; padding-left: 1.3em; }
.article-body ol { list-style: decimal; padding-left: 1.4em; }
.article-body li { margin: 0 0 8px; }
.article-body a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(165, 39, 34, .45); text-underline-offset: 3px; }
.article-body a:hover { color: var(--red); }
.article-body strong { font-weight: 700; }
.article-body code { font-size: .85em; background: var(--cream); padding: 1px 5px; }
.answer-box { background: var(--cream); border-left: 4px solid var(--red); padding: 24px 28px; margin: 0 0 34px; }
.answer-box .eyebrow { margin: 0 0 10px; }
.answer-box p:last-child { margin: 0; font-size: 19px; }
.callout { background: #fff; border: 1px solid var(--line); padding: 20px 24px; font-size: 17px; }
.callout p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.article-body table { border-collapse: collapse; width: 100%; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.article-body th { background: var(--navy); color: #fff; text-align: left; font-weight: 700; padding: 12px 14px; }
.article-body td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.article-body tbody tr:nth-child(even) td { background: var(--paper); }
.child-pages ul, .related ul { list-style: none; padding: 0; }
.child-pages li { border-top: 1px solid var(--line); padding: 14px 0; margin: 0; }
.child-pages li a { font-weight: 700; display: block; }
.child-pages li span { display: block; color: var(--muted); font-size: 16px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 17px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }
.sources ol { font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; }
.sources a { overflow-wrap: anywhere; }
.article-meta { font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: var(--muted); margin-top: 40px !important; }
.disclaimer { font-family: Arial, Helvetica, sans-serif; font-size: 12.5px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.article-aside { position: sticky; top: 110px; display: grid; gap: 28px; font-family: Arial, Helvetica, sans-serif; }
/* "On this page" rail: a dot per section on a vertical line; the line fills to the section being read */
.toc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.toc .toc-head .eyebrow { margin: 0; }
.toc-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.toc-rail { position: relative; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.35; }
.toc-rail::before, .toc-fill { content: ""; position: absolute; left: 9px; top: 12px; width: 2px; background: var(--line); bottom: 12px; }
.toc-fill { bottom: auto; height: 0; background: var(--navy); transition: height .25s ease; }
.toc-rail a { position: relative; display: block; padding: 6px 0 6px 30px; color: var(--muted); border-radius: 2px; }
.toc-rail a i { position: absolute; left: 4px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); box-sizing: border-box; transition: border-color .2s, background .2s, transform .2s; }
.toc-rail a:hover { color: var(--navy); }
.toc-rail a:hover i { border-color: var(--navy); transform: scale(1.15); }
.toc-rail .is-read a { color: #4b556b; }
.toc-rail .is-read a i { background: var(--navy); border-color: var(--navy); }
.toc-rail .is-active a { color: var(--navy); font-weight: 700; }
.toc-rail .is-active a i { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(165,39,34,.15); }
.toc-rail a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.toc .eyebrow, .aside-cta .eyebrow { margin: 0 0 12px; }
.aside-cta { background: var(--navy); color: #fff; padding: 26px; }
.aside-cta .eyebrow { color: #e6b8b5; }
.aside-cta p:not(.eyebrow) { font-size: 15px; line-height: 1.5; margin: 0 0 18px; color: #d5dced; }
.related { background: var(--cream); padding: 80px max(5vw, 24px); }
.related > div { max-width: 1180px; margin: 0 auto; }
.related h2 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(30px, 3vw, 42px); color: var(--navy); margin: 0 0 30px; }
.related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.related a { display: block; background: #fff; padding: 22px 24px; height: 100%; border: 1px solid var(--line); }
.related a:hover { border-color: var(--navy); }
.related strong { display: block; font-family: Georgia, serif; font-weight: 400; font-size: 20px; color: var(--navy); line-height: 1.25; margin-bottom: 8px; }
.related span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-aside { position: static; }
  .toc { display: none; }
}
@media (max-width: 600px) {
  .article-hero > div { padding: 70px 0 44px; }
  .article-hero h1 { font-size: 32px; }
  .article-body { font-size: 17px; }
  .answer-box { padding: 20px; }
}

/* /guides/ library: same type scale as the hand-made pages (Georgia headings and links, roomy sections) */
.library-hero p a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.library { width: min(1180px, 90%); margin: 0 auto; padding: 40px 0 120px; display: grid; grid-template-columns: 250px 1fr; gap: 70px; align-items: start; }
.library-side { position: sticky; top: 30px; padding-top: 60px; }
.library-side .eyebrow { margin-bottom: 16px; }
.library-side ul, .library-jump ul { list-style: none; margin: 0; padding: 0; }
.library-side a, .library-jump a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--navy); font-family: Georgia, serif; font-size: 16px; line-height: 1.3; }
.library-side a:hover, .library-jump a:hover { color: var(--red); }
.library-side a span, .library-jump a span { color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 12px; padding-top: 3px; }
.library-jump { display: none; }
.library-group { padding: 60px 0 0; scroll-margin-top: 90px; }
.library-group .eyebrow { margin-bottom: 14px; }
.library-group h2 { letter-spacing: -.02em; margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(36px, 3.8vw, 52px); font-weight: 700; line-height: 1.08; color: var(--navy); }
.library-blurb { color: #566074; margin: 0 0 26px; font-family: Georgia, serif; font-size: 18px; line-height: 1.6; max-width: 680px; }
.library-group ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 40px; }
.library-group li a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); font-family: Georgia, serif; font-size: 18px; line-height: 1.4; }
.library-group li a::after { content: "\2192"; color: var(--red); flex: none; }
.library-group li a:hover { color: var(--red); }
@media (max-width: 900px) {
  .library { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .library-side { display: none; }
  .library-jump { display: block; border: 1px solid var(--line); background: #fff; padding: 0 18px; }
  .library-jump summary { padding: 15px 0; cursor: pointer; color: var(--navy); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
  .library-jump ul { padding-bottom: 10px; }
  .library-group { padding-top: 44px; }
  .library-group li a { font-size: 17px; }
}

/* /review/ approval checklist */
.review { width: min(1180px, 90%); margin: 0 auto; padding: 36px 0 90px; }
.rv-how { background: #fff; border: 1px solid var(--line); padding: 22px 26px; margin-bottom: 26px; line-height: 1.55; }
.rv-how ol { margin: 0 0 10px; padding-left: 20px; }
.rv-how p { margin: 0; color: var(--muted); font-size: 14px; }
.rv-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--paper); padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv-count { margin-right: auto; color: var(--muted); }
.rv-count strong { color: var(--navy); }
.rv-btn { font: inherit; font-size: 13px; color: var(--navy); background: #fff; border: 1px solid var(--line); padding: 9px 14px; cursor: pointer; }
.rv-btn:hover { border-color: var(--navy); }
.rv-group { padding-top: 34px; }
.rv-group h2 { font-family: Georgia, serif; font-weight: 400; font-size: 26px; color: var(--navy); margin: 0 0 10px; }
.rv-group ul { list-style: none; margin: 0; padding: 0; }
.rv-row { display: grid; grid-template-columns: 1fr auto 150px auto; align-items: center; gap: 6px 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.rv-row label { display: flex; align-items: center; gap: 12px; cursor: pointer; line-height: 1.35; }
.rv-row input { width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.rv-row a { font-size: 13px; color: var(--navy); white-space: nowrap; }
.rv-state { font-size: 12px; color: var(--muted); }
.rv-row[data-state="approved"] .rv-state { color: #1f6b3a; }
.rv-row[data-state="changed"] .rv-state { color: var(--red); font-weight: 700; }
.rv-note-btn { font: inherit; font-size: 12px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.rv-note { grid-column: 1 / -1; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); }
.rv-sign { margin-top: 50px; background: #fff; border: 1px solid var(--line); padding: 30px; display: grid; gap: 16px; max-width: 640px; }
.rv-sign h2 { font-family: Georgia, serif; font-weight: 400; font-size: 28px; color: var(--navy); margin: 0; }
.rv-sign label { display: grid; gap: 6px; font-size: 14px; }
.rv-sign input:not([type="checkbox"]) { font: inherit; padding: 12px; border: 1px solid var(--line); }
.rv-sign .rv-attest { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.rv-sign .rv-submit { background: var(--navy); color: #fff; border: 0; justify-self: start; padding: 15px 22px; cursor: pointer; font: inherit; font-weight: 700; }
.rv-result { border-top: 1px solid var(--line); padding-top: 16px; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rv-small { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .rv-row { grid-template-columns: 1fr auto; } .rv-state { grid-column: 1; padding-left: 30px; } }
