/* Guides, answers, recent work and policies: the reading layout.
   Flat, square, 1px rules, site variables only (so light and dark both work). Logical properties, so Arabic mirrors. */

/* breadcrumbs */
.g-crumbs { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.g-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0; padding: 0; }
.g-crumbs li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
@media (max-width: 640px) { .g-crumbs li:nth-child(3) { display: none; } }
.g-crumbs li + li::before { content: "/"; color: var(--ink-3); }
.g-crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid transparent; }
.g-crumbs a:hover { color: var(--maroon); }
.g-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* article head */
.g-head { max-width: 860px; }
.g-head h1 { margin: 0 0 20px; line-height: 1.04; text-wrap: balance; }
.g-head .lead { max-width: 62ch; margin: 0 0 16px; }
.g-head .guide-meta { padding-top: 14px; border-top: 1px solid var(--line); max-width: 860px; }
.g-head .guide-meta time { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* key facts: a spec sheet under a strip of print layer lines */
.g-facts { position: relative; max-width: 860px; margin: 40px 0 0; padding: 30px clamp(18px, 3vw, 32px) 10px; background: var(--surface); border: 1px solid var(--rule); }
.g-facts::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px; background: var(--pei); }
.g-facts h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; }
.g-facts dl { margin: 0; }
.g-facts dl > div { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.g-facts dl > div:first-child { border-top: 0; }
.g-facts dt { font-weight: 650; color: var(--ink); }
.g-facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .g-facts dl > div { grid-template-columns: minmax(0, 1fr); } }

/* two columns from 1000px: contents rail, then the text */
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: var(--m); }
.g-toc { align-self: start; }
.g-toc .g-label { margin: 0 0 4px; font-size: 15px; font-weight: 650; color: var(--ink); }
.g-toc ol, .g-toc ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.g-toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.g-toc a:hover, .g-toc a[aria-current] { color: var(--maroon); }
.g-toc a[aria-current] { font-weight: 650; border-bottom-color: var(--maroon); }
@media (min-width: 1000px) {
  .g-layout { grid-template-columns: 232px minmax(0, 760px); gap: 72px; }
  .g-toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
}

/* the text */
.g-art .guide { max-width: none; scroll-margin-top: 84px; }
.g-art .guide:first-child { border-top: 0; padding-top: 0; }
.g-art .guide h2 { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; text-wrap: balance; }
.g-art .guide p, .g-art .guide-list { max-width: 68ch; }
.g-art .guide p { line-height: 1.7; }
.g-art .guide-list li { margin-bottom: 10px; padding-inline-start: 4px; }
.g-art ol.guide-list li::marker { font-variant-numeric: tabular-nums; }

/* tables */
.g-art .guide-tbl { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--rule); }
.g-art .guide-tbl:focus-visible { outline-offset: 2px; }
.g-art .guide-tbl table { font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.g-art .guide-tbl th, .g-art .guide-tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.g-art .guide-tbl thead th { font-size: 13px; font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.g-art .guide-tbl tbody tr > :first-child { font-weight: 650; color: var(--ink); }
.g-art .guide-tbl tbody tr:last-child > * { border-bottom: 0; }
.g-art .guide-tbl + p { margin-top: 18px; }
.g-art .guide h2 + .guide-tbl { margin-top: 4px; }

/* callouts */
.g-art .guide p.g-note { margin-top: 18px; padding: 14px 18px; background: var(--surface); border-inline-start: 3px solid var(--pei); color: var(--ink); }
.g-art .g-warn .guide-list { list-style: none; padding: 6px 20px; background: var(--surface); border-inline-start: 3px solid var(--bad); max-width: none; }
.g-art .g-warn .guide-list li { position: relative; margin: 0; padding: 12px 0; padding-inline-start: 28px; border-bottom: 1px solid var(--line); color: var(--ink); }
.g-art .g-warn .guide-list li:last-child { border-bottom: 0; }
.g-art .g-warn .guide-list li::before { content: "\00D7"; position: absolute; inset-inline-start: 0; top: 9px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--bad); }

/* links inside a section */
.g-art .guide-links { gap: 0; max-width: 68ch; border-top: 1px solid var(--line); margin-top: 20px; }
.g-art .guide-links a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--maroon); text-decoration: none; }
.g-art .guide-links a:hover { text-decoration: underline; }

/* inline call to action: the one cobalt field on the page */
.g-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin: 0 0 var(--m); padding: clamp(22px, 3vw, 32px); background: var(--cobalt); color: #FFFFFF; }
.g-cta h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.15; color: #FFFFFF; }
.g-cta p { margin: 0; max-width: 46ch; color: #DCE4F2; }
.g-cta .g-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* cards: related guides, the guides index, kinds of work */
.g-rel { margin-top: var(--m); padding: var(--m) 0 0; border-top: 1px solid var(--rule); }
.g-rel > h2, .g-sec > h2 { margin: 0 0 24px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; }
.g-sec { margin-top: calc(var(--m) * 1.5); padding: 0; }
.g-sec > h2 + p { margin: -12px 0 24px; max-width: 62ch; color: var(--ink-2); }
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.g-cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g-card { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 132px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--rule); text-decoration: none; transition: border-color .18s; }
.g-card:hover { border-color: var(--maroon); }
.g-card .g-card-t { font-size: 19px; font-weight: 650; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.g-cards.two .g-card .g-card-t { font-size: clamp(20px, 2vw, 24px); }
.g-card:hover .g-card-t { color: var(--maroon); }
.g-card .g-card-d { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.g-card .g-card-go { margin-top: auto; padding-top: 10px; font-size: 15px; font-weight: 650; color: var(--maroon); }

/* answers page */
.g-answers .guide { scroll-margin-top: 84px; }
.g-answers .guide h2 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.g-answers .guide p { max-width: 68ch; line-height: 1.7; }
.g-answers .guide-tbl { background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--rule); }
.g-answers .guide-tbl th, .g-answers .guide-tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.g-answers .guide-tbl thead th { color: var(--ink); border-bottom: 1px solid var(--rule); }
.g-answers .guides { margin-top: var(--m); }
.g-answers .guide-toc ul { margin: 0; border-top: 1px solid var(--rule); gap: 0 32px; }
.g-answers .guide-toc a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--ink-2); }

/* recent work */
.rw-status { max-width: 860px; margin-top: var(--m); padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--rule); border-inline-start: 3px solid var(--pei); }
.rw-status .rw-tag { margin: 0 0 8px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.rw-status h2 { margin: 0 0 10px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1; }
.rw-status p { margin: 0; max-width: 60ch; color: var(--ink-2); }
.rw-status .hero-actions { margin: 22px 0 0; }
.g-sec .hero-actions { margin: 0; }

/* policies */
.pol h1 { margin: 0 0 12px; }
.pol .g-toc { margin: 28px 0 0; }
.pol section { margin-top: var(--m); padding: 28px 0 0; border-top: 1px solid var(--rule); scroll-margin-top: 84px; }
.pol section h2 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; scroll-margin-top: 84px; }
.pol section p { margin: 0 0 14px; max-width: 68ch; line-height: 1.7; color: var(--ink-2); }
.pol .pol-top { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 15px; color: var(--maroon); }
