@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-var-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --paper: #f7f9fc;
  --white: #fff;
  --sky: #e4f1fa;
  --sky-2: #c4e1f2;
  --peri: #5466b0;
  --blue: #2b4596;
  --navy: #0f2342;
  --navy-2: #1b3560;
  --orange: #c4570f;
  --orange-2: #f08a2c;
  --ink: #14181f;
  --ink-2: #3a4252;
  --muted: #5e6778;
  --rule: #d6dde8;
  --sheen: linear-gradient(90deg, #ffffff 0%, #eef6fc 45%, #cfe6f4 100%);
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--sky); padding: .1em .35em; border-radius: 3px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.icon { width: 1.5em; height: 1.5em; flex: none; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--navy); color: var(--white); padding: .5rem .8rem; z-index: 10; }
.skip:focus { left: .5rem; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--orange); margin: 0 0 .8rem; }
.kicker.spaced { margin-top: 1.3rem; }

/* Top line and masthead */
.topline { background: var(--navy); color: #b9c7e2; font-size: .8rem; }
.topline .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; }
.topline a { color: #b9c7e2; text-decoration: none; }
.topline a:hover { color: var(--white); }
.masthead { background: var(--sheen); border-bottom: 1px solid var(--sky-2); position: relative; overflow: hidden; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.15rem; position: relative; }
.masthead-graph { position: absolute; right: -1rem; top: 50%; transform: translateY(-50%); width: 22rem; height: 6rem; color: var(--peri); opacity: .35; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 3rem; height: 3rem; }
.brand-name { display: block; font-weight: 800; font-size: 2.1rem; line-height: 1; letter-spacing: -.035em; }
.brand-name span { color: var(--peri); }
.brand-line { display: block; font-size: .92rem; font-weight: 500; color: var(--ink-2); margin-top: .3rem; }
.mast-note { position: relative; font-size: .85rem; color: var(--navy-2); background: rgba(255,255,255,.75); border: 1px solid var(--sky-2); border-radius: 99px; padding: .35rem .85rem; }

/* Navigation */
.navbar { background: var(--navy); border-bottom: 4px solid var(--peri); }
.navbar .wrap { display: flex; align-items: stretch; min-height: 3.2rem; }
.nav { display: flex; }
.nav a { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; color: var(--white); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:hover { background: var(--navy-2); color: var(--white); }
.nav a[aria-current] { background: var(--navy-2); box-shadow: inset 0 -4px 0 var(--orange-2); }
.nav .icon { width: 1.1rem; height: 1.1rem; color: var(--sky-2); }
.menu { display: none; }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1.1rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--peri); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.25rem; border-radius: var(--radius); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; background: var(--blue); color: var(--white); border: 2px solid var(--blue); }
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn .icon { width: 1.1rem; height: 1.1rem; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }

/* Home hero */
.hero { padding-block: 3.5rem 3.25rem; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); letter-spacing: -.035em; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--peri); }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.triples { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 18px 40px rgba(15,35,66,.08); padding: 1rem 1rem .6rem; }
.triples svg { width: 100%; height: auto; }
.triples figcaption { font-size: .82rem; color: var(--muted); padding: .4rem .3rem 0; }
.triples .edge { stroke: var(--peri); stroke-width: 1.6; fill: none; }
.triples .edge-label { font: 600 11px var(--mono); fill: var(--peri); }
.triples .node rect { rx: 8; }
.triples .node text { font: 700 13px var(--font); }
.triples .n-navy rect { fill: var(--navy); } .triples .n-navy text { fill: var(--white); }
.triples .n-sky rect { fill: var(--sky); stroke: var(--sky-2); } .triples .n-sky text { fill: var(--navy); }
.triples .n-orange rect { fill: var(--orange); } .triples .n-orange text { fill: var(--white); }
.triples .n-white rect { fill: var(--white); stroke: var(--peri); stroke-width: 1.5; } .triples .n-white text { fill: var(--navy); }

/* Blocks */
.block { padding-block: 3.5rem; }
.block.sky { background: var(--sky); }
.block.navy { background: var(--navy); color: #d6e0f2; }
.block.navy h2 { color: var(--white); }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.block-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); max-width: 40rem; }
.block-head p { max-width: 30rem; color: var(--ink-2); margin: 0; }
.block.navy .block-head p { color: #b9c7e2; }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.way { display: flex; flex-direction: column; gap: .9rem; background: var(--white); border: 1px solid var(--sky-2); border-radius: var(--radius); padding: 1.6rem; color: var(--ink); text-decoration: none; }
.way:hover { color: var(--ink); border-color: var(--peri); box-shadow: 0 12px 26px rgba(15,35,66,.1); }
.way h3 { font-size: 1.45rem; }
.way p { margin: 0; color: var(--ink-2); }
.way ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.way li { font-size: .9rem; color: var(--navy-2); padding-left: 1rem; position: relative; }
.way li::before { content: ""; position: absolute; left: 0; top: .55em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--peri); }
.way .more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--blue); }
.way .more .icon { width: 1rem; height: 1rem; }
.way-icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: var(--radius); color: var(--white); background: var(--blue); }
.way.t-navy .way-icon { background: var(--navy); }
.way.t-orange .way-icon { background: var(--orange); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.cards.spaced { margin-top: 2rem; }
.card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.3rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--peri); color: var(--ink); }
.card:hover h3 { color: var(--blue); }
.card .tile { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; background: var(--sky); color: var(--blue); border-radius: var(--radius); }
.card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.card .num { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: .45rem; }

/* Glossary strip on home */
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 0; }
.terms > div { border-top: 3px solid var(--orange-2); padding-top: 1rem; }
.terms dt { font-weight: 700; font-size: 1.15rem; color: var(--white); margin-bottom: .55rem; }
.terms dd { margin: 0; font-size: .95rem; line-height: 1.55; color: #c3d0e8; }
.terms-more { margin: 2rem 0 0; }
.terms-more a { color: var(--white); display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.terms-more .icon { width: 1rem; height: 1rem; }

/* In practice box */
.practice { border: 1px solid var(--navy); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.practice-head { display: flex; align-items: center; gap: .7rem; background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%); color: var(--white); padding: .9rem 1.25rem; }
.practice-head h2, .practice-head h3 { font-size: 1.2rem; color: var(--white); }
.practice-head .icon { width: 1.45rem; height: 1.45rem; color: var(--orange-2); }
.practice-cols { display: grid; grid-template-columns: 1fr 1fr; }
.practice-col { padding: 1.2rem 1.4rem; }
.practice-col + .practice-col { border-left: 1px solid var(--rule); }
.practice-col h3, .practice-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem; color: var(--blue); }
.practice-col.obstacles h3, .practice-col.obstacles h4 { color: var(--orange); }
.practice-col ul { margin: 0; padding-left: 1.1rem; }
.practice-col li { margin-bottom: .55rem; line-height: 1.5; }
.practice-col.fixes li::marker { color: var(--peri); }
.practice-col.obstacles li::marker { color: var(--orange); }
.practice-start { background: var(--sky); padding: 1rem 1.4rem; border-top: 1px solid var(--sky-2); }
.practice-start p { margin: 0; }

.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.feature h2 { font-size: clamp(1.8rem, 3vw, 2.35rem); margin-bottom: 1rem; }

/* Hubs and simple pages */
.hub-hero { background: var(--sheen); border-bottom: 1px solid var(--sky-2); padding-block: .2rem 2.75rem; }
.hub-hero .wrap > div { max-width: 48rem; }
.hub-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: .8rem 0 1rem; letter-spacing: -.03em; }
.hub-hero p { font-size: 1.15rem; color: var(--ink-2); }
.hub-body { padding-block: 2.75rem 1rem; }
.hub-title { font-size: 1.4rem; margin-bottom: 1.25rem; }
.hub-intro { max-width: 46rem; }
.page-body { padding-block: 2.5rem 4rem; }

/* Guide pages */
.guide-head { border-bottom: 1px solid var(--rule); padding-block: .2rem 2.25rem; background: var(--sheen); }
.guide-head .wrap { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.guide-head .tile-lg { width: 4.5rem; height: 4.5rem; margin-top: 3.3rem; display: grid; place-items: center; background: var(--navy); color: var(--white); border-radius: var(--radius); box-shadow: inset 0 -4px 0 var(--orange-2); }
.guide-head .tile-lg .icon { width: 2.3rem; height: 2.3rem; }
.guide-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -.03em; margin: .8rem 0 .9rem; max-width: 46rem; }
.standfirst { font-size: 1.2rem; color: var(--ink-2); max-width: 44rem; margin: 0 0 1rem; }
.byline { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; }

.guide-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 17rem; gap: 2.75rem; padding-block: 2.5rem 3.5rem; align-items: start; }
.side { position: sticky; top: 1.25rem; }
.side-box { background: var(--sky); border-radius: var(--radius); padding: 1.1rem 1.1rem 1.2rem; margin-bottom: 1.25rem; }
.side-box h2 { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); margin-bottom: .7rem; }
.side-box ol { list-style: none; margin: 0; padding: 0; }
.side-box li a { display: block; padding: .32rem 0 .32rem .7rem; border-left: 2px solid var(--sky-2); color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.side-box li a:hover { border-left-color: var(--orange); color: var(--blue); }
.side-box li a[aria-current] { border-left-color: var(--orange); font-weight: 700; }
.toc-box { background: transparent; border: 1px solid var(--rule); }
.toc-box h2 { color: var(--muted); }
.toc-box li a { border-left-color: var(--rule); }

.terms-box { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; }
.terms-box h2 { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--orange); margin-bottom: .2rem; }
.terms-box dl { margin: 0; }
.terms-box dt { font-weight: 700; color: var(--navy); margin-top: .85rem; line-height: 1.3; }
.terms-box dd { margin: .25rem 0 0; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }

.prose { max-width: 42rem; }
.prose > p:first-child { font-size: 1.15rem; }
.prose h2 { font-size: 1.6rem; margin: 2.4rem 0 .9rem; padding-top: .9rem; border-top: 3px solid var(--sky-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.7rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--peri); }
.prose sup.cite { font-size: .7em; line-height: 0; margin-left: .1em; }
.prose sup.cite a { text-decoration: none; font-weight: 700; color: var(--orange); padding: 0 .1em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; background: var(--white); }
.prose caption { text-align: left; font-weight: 700; padding-bottom: .6rem; color: var(--navy); }
.prose th, .prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose thead th { background: var(--navy); color: var(--white); border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: #f3f7fb; }
.table-scroll { overflow-x: auto; }
.prose .note { background: var(--white); border-left: 5px solid var(--orange); padding: 1rem 1.2rem; margin: 1.6rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.prose .note p { margin: 0; }
.prose .worked { background: var(--sky); padding: 1.1rem 1.3rem; margin: 1.6rem 0; border-radius: var(--radius); }
.prose .worked p:last-child { margin-bottom: 0; }
.prose .worked-label { font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }
.prose .worked p > code:only-child { display: block; white-space: pre-wrap; background: var(--white); border: 1px solid var(--sky-2); padding: .8rem 1rem; overflow-x: auto; }

.after { margin-top: 2.75rem; }
.sources { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.sources h2 { font-size: 1.15rem; border: 0; margin: 0 0 .8rem; padding: 0; }
.sources ol { padding-left: 1.4rem; margin: 0; font-size: .9rem; color: var(--ink-2); }
.sources li { margin-bottom: .5rem; }
.sources li:target { background: var(--sky); }
.sources .acc { color: var(--muted); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pager a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pager a:hover { border-color: var(--peri); }
.pager small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.pager strong { font-size: 1.05rem; color: var(--navy); }
.pager .next { text-align: right; grid-column: 2; }

/* Footer */
.footer { background: var(--navy); color: #b9c7e2; padding-block: 3rem 1.5rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer .brand, .footer .brand:hover { color: var(--white); }
.footer .brand-name span { color: var(--sky-2); }
.footer .brand-line { color: #b9c7e2; }
.footer p { font-size: .92rem; margin-top: 1rem; max-width: 22rem; }
.footer h2 { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--white); margin-bottom: .9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .4rem; line-height: 1.35; }
.footer a { color: #b9c7e2; text-decoration: none; font-size: .92rem; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #263f69; display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: #8ea0c2; }
.footer-stripe { height: 6px; background: linear-gradient(90deg, var(--peri) 0 45%, var(--sky-2) 45% 75%, var(--orange-2) 75% 100%); }

.lost { padding-block: 4rem 5rem; }
.lost h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); margin: .6rem 0 1rem; }

@media (max-width: 1100px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr) 16rem; }
  .guide-layout .side-left { display: none; }
  .terms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 2.25rem; }
  .ways { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mast-note, .masthead-graph { display: none; }
  .nav { display: none; }
  .menu { display: block; width: 100%; }
  .menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; font-weight: 700; color: var(--white); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
  .menu[open] summary::after { content: "−"; }
  .menu nav { display: flex; flex-direction: column; padding-bottom: .8rem; }
  .menu nav a { color: var(--white); text-decoration: none; padding: .65rem 0; border-top: 1px solid rgba(255,255,255,.14); }
  .guide-layout { grid-template-columns: 1fr; gap: 2rem; }
  .side { position: static; }
  .side-right { order: -1; }
  .guide-head .wrap { grid-template-columns: 1fr; }
  .guide-head .tile-lg { display: none; }
  .block-head { flex-direction: column; align-items: start; gap: .8rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topline .wrap span:last-child { display: none; }
  .brand-name { font-size: 1.75rem; }
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .brand-line { font-size: .82rem; }
  .cards, .terms { grid-template-columns: 1fr; }
  .practice-cols { grid-template-columns: 1fr; }
  .practice-col + .practice-col { border-left: 0; border-top: 1px solid var(--rule); }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .hero { padding-block: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .topline, .navbar, .side, .footer, .footer-stripe, .pager { display: none; }
  .guide-layout { grid-template-columns: 1fr; }
}

/* Size tweaks after first preview */
.masthead .brand-name { font-size: 2.4rem; }
.masthead .brand-mark { width: 3.4rem; height: 3.4rem; }
.triples .node text { font-size: 15px; }
.triples .edge-label { font-size: 12px; }
@media (max-width: 640px) {
  .masthead .brand-name { font-size: 1.85rem; }
  .masthead .brand-mark { width: 2.7rem; height: 2.7rem; }
}
.prose .worked p > code:only-child { white-space: pre; font-size: .8em; line-height: 1.7; overflow-x: auto; }
@media (max-width: 640px) {
  .topline .wrap span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Blog */
.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--peri); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.post-card:hover { border-color: var(--peri); border-top-color: var(--orange); color: var(--ink); box-shadow: 0 12px 26px rgba(15,35,66,.08); }
.post-card h3 { font-size: 1.2rem; line-height: 1.25; }
.post-card:hover h3 { color: var(--blue); }
.post-card p { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.post-card .post-meta { font-size: .8rem; color: var(--muted); }
.post-card .more { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .92rem; color: var(--blue); }
.post-card .more .icon { width: 1rem; height: 1rem; }
.block.sky .post-card { border-color: var(--sky-2); border-top-color: var(--peri); }
.block-head p a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.block-head p a .icon { width: 1rem; height: 1rem; }

.post-head .wrap { grid-template-columns: 1fr; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3.5rem; padding-block: 2.5rem 3.5rem; align-items: start; }
.post-layout .prose { max-width: 44rem; }

.guide-links { background: var(--sky); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.25rem; }
.guide-links h2, .related-box h2 { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); margin-bottom: .8rem; }
.guide-links a { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center; padding: .65rem; margin-bottom: .5rem; background: var(--white); border: 1px solid var(--sky-2); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.guide-links a:last-child { margin-bottom: 0; }
.guide-links a:hover { border-color: var(--peri); }
.guide-links a:hover strong { color: var(--blue); }
.guide-links .tile { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--navy); color: var(--white); border-radius: var(--radius); }
.guide-links .tile .icon { width: 1.3rem; height: 1.3rem; }
.guide-links strong { display: block; font-size: .95rem; line-height: 1.3; color: var(--navy); }
.guide-links small { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }

.related-box { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin-top: 1.25rem; }
.related-box ul { list-style: none; margin: 0; padding: 0; }
.related-box li { padding: .5rem 0; border-top: 1px solid var(--rule); line-height: 1.35; }
.related-box li:first-child { border-top: 0; padding-top: 0; }
.related-box a { font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--navy); }
.related-box a:hover { color: var(--blue); text-decoration: underline; }

@media (max-width: 1100px) {
  .post-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; gap: 2rem; }
  .post-layout .side-right { order: 0; }
}
@media (max-width: 640px) {
  .post-cards { grid-template-columns: 1fr; }
}
.hub-hero p.kicker { font-size: .78rem; color: var(--orange); }
.post-cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .post-cards.two { grid-template-columns: 1fr; } }
