/* Design read: editorial extension of Mappy. Variance 5, motion 2, density 4.
   Native brand colors and type; calm reading, visible focus, no tracking. */
:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --surface: #fff;
  --ink: #1c1e21;
  --muted: #575b62;
  --line: #d8dbe0;
  --link: #2348b8;
  --soft: #f0f2f5;
  --orange: #f19a48;
  --yellow: #ffca4e;
  --blue: #658cff;
  --pink: #fc9893;
  --red: #eb594f;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue",
    Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 48px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 5;
  padding: 14px;
  background: var(--surface);
}
.skip:focus {
  top: 12px;
}
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 104px;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1.6px;
  text-decoration: none;
}
.wordmark img {
  background: #fff;
  border-radius: 7px;
}
.site-head nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.site-head nav > a:not(.button) {
  padding-block: 12px;
  text-decoration: none;
}
.site-head nav > a[aria-current] {
  text-decoration: underline;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid #1c1e21;
  border-radius: 10px;
  color: #fff;
  background: #1c1e21;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}
.button:hover {
  background: #343840;
  transform: translateY(-1px);
}
.button.compact {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.hub-hero {
  padding: 58px 0 66px;
  border-top: 1px solid var(--line);
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}
.hub-hero h1 {
  max-width: 900px;
  font-size: clamp(48px, 6.8vw, 88px);
  line-height: 0.99;
  letter-spacing: -0.062em;
  font-weight: 680;
  margin: 28px 0 34px;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}
.hero-bottom p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  margin: 0;
}
.text-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.text-link span {
  margin-left: 15px;
}
.featured {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 54px;
  align-items: center;
  border-radius: 18px;
  padding: 48px;
  background: var(--orange);
  color: #1c1e21;
  text-decoration: none;
}
.featured h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 25px 0 18px;
}
.featured p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.5;
}
.featured .text-link {
  display: inline-block;
  margin-top: 18px;
}
.featured:hover .text-link {
  text-decoration: underline;
}
figure {
  margin: 0;
  min-width: 0;
}
img {
  max-width: 100%;
  height: auto;
}
.featured img {
  display: block;
  border: 1px solid #1c1e2120;
  border-radius: 10px;
  background: #fff;
}
figcaption {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
}
.library {
  padding-top: 94px;
}
.library-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.library-head h2,
.related h2 {
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin-bottom: 0;
}
.library-head > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3px;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 9px 22px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
}
.filters label {
  font-size: 13px;
  font-weight: 600;
}
.filters label[for="guide-topic"] {
  grid-column: 2;
  grid-row: 1;
}
.search-line {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  gap: 8px;
  min-width: 0;
}
input,
select {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 48px;
  color: var(--ink);
  background: var(--surface);
  padding: 11px 13px;
  min-width: 0;
}
input {
  width: 100%;
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
select {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
}
.search-line button {
  border: 0;
  background: transparent;
  font-size: 13px;
  text-decoration: underline;
  padding: 12px;
}
.result-count {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 0;
  min-height: 20px;
}
.topic-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 8px;
  margin: 12px 0 32px;
  font-size: 13px;
}
.topic-links a {
  padding-block: 8px;
}
.topic-group {
  border-top: 1px solid var(--line);
  padding: 38px 0 14px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 65px;
  scroll-margin-top: 20px;
}
.chapter-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}
.topic-label h3 {
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.topic-label p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 240px;
}
.guide-row {
  border-bottom: 1px solid var(--line);
}
.guide-row:last-child {
  border: 0;
}
.guide-row a {
  display: flex;
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  text-decoration: none;
}
.guide-row:first-child a {
  padding-top: 0;
}
.guide-row h4 {
  font-size: 22px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.022em;
  margin-bottom: 9px;
}
.guide-row p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 12px;
}
.read-time {
  font-size: 12px;
  color: var(--muted);
}
.row-arrow {
  margin-left: auto;
  font-size: 23px;
  flex-shrink: 0;
  transition: transform 160ms ease;
}
.guide-row a:hover h4 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide-row a:hover .row-arrow {
  transform: translate(2px, -2px);
}
.empty-state {
  padding: 44px 0;
}
.hub-note {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.end-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--blue);
  color: #161c2b;
  margin: 76px 0 72px;
  border-radius: 18px;
  padding: 42px;
}
.end-cta h2 {
  font-size: 32px;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.end-cta p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}
.cta-action {
  flex-shrink: 0;
}
.cta-action small {
  display: block;
  max-width: 250px;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
}
.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 30px;
  padding-bottom: 42px;
}
.site-foot p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 22px;
  font-size: 13px;
  padding-top: 12px;
}
.tone-orange {
  background: var(--orange);
  color: #1c1e21;
}
.tone-yellow {
  background: var(--yellow);
  color: #1c1e21;
}
.tone-blue {
  background: var(--blue);
  color: #161c2b;
}
.tone-pink {
  background: var(--pink);
  color: #1c1e21;
}
.tone-red {
  background: var(--red);
  color: #241310;
}
.article-head {
  border-radius: 18px;
  padding: 46px 52px;
  margin: 8px 0 58px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 38px;
}
.article-head h1 {
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  max-width: 890px;
  margin-bottom: 30px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.reading-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 710px);
  gap: 65px;
  align-items: start;
}
.contents {
  position: sticky;
  top: 28px;
  font-size: 13px;
  line-height: 1.5;
}
.contents ol {
  padding-left: 17px;
  margin: 20px 0 25px;
}
.contents li {
  padding-left: 4px;
  margin-bottom: 13px;
}
.contents a {
  color: var(--muted);
  text-decoration: none;
}
.contents a:hover {
  text-decoration: underline;
}
.prose {
  width: 100%;
  font-size: 18px;
  line-height: 1.75;
  min-width: 0;
  overflow-wrap: break-word;
}
.prose section {
  margin-bottom: 46px;
}
.prose h2 {
  font-size: 29px;
  letter-spacing: -0.027em;
  line-height: 1.17;
  margin: 0 0 20px;
}
.prose p {
  margin-bottom: 21px;
}
.prose li {
  padding-left: 5px;
  margin-bottom: 12px;
}
.prose li li {
  margin: 4px 0;
}
.prose ul,
.prose ol {
  padding-left: 23px;
  margin: 0 0 25px;
}
.prose a {
  color: var(--link);
}
.prose .answer {
  background: var(--soft);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 40px;
}
.answer h2 {
  font-size: 24px;
}
.answer p:last-child {
  margin-bottom: 0;
}
.prose .eyebrow {
  line-height: 1.5;
  margin-bottom: 15px;
}
.prose .disclosure,
.editor-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 18px;
  margin-bottom: 40px;
}
.prose figure {
  margin: 12px 0 42px;
}
.prose figure img {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.prose figcaption {
  font-size: 13px;
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
.prose caption {
  padding: 16px;
  text-align: left;
  font-weight: 650;
}
.prose th,
.prose td {
  padding: 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  min-width: 150px;
}
.prose thead,
.prose tfoot {
  background: var(--soft);
}
.prose tbody th {
  font-weight: 600;
}
.prose .download-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-block: 40px;
}
.prose .download-card h2 {
  margin-top: 0;
}
.prose .download-card .button {
  color: #fff;
  text-decoration: none;
  white-space: normal;
}
.prose .download-detail {
  font-size: 14px;
  color: var(--muted);
}
.resource-link {
  font-size: 15px;
}
pre {
  background: var(--soft);
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.65;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.related {
  border-top: 1px solid var(--line);
  padding-top: 38px;
  margin-top: 24px;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.related li {
  border-bottom: 1px solid var(--line);
}
.related a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 18px;
  text-decoration: none;
}
.related a:hover {
  text-decoration: underline;
}
.facts {
  max-width: 740px;
  margin: auto;
}
.lead {
  font-size: 21px;
  line-height: 1.6;
  margin-bottom: 0;
}
.fact-list > div {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 16px;
}
dt {
  font-weight: 600;
}
dd {
  margin: 0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191b1f;
    --surface: #202328;
    --ink: #f1f2f5;
    --muted: #b3b8c3;
    --line: #41464f;
    --link: #a9bcff;
    --soft: #252931;
  }
  .site-head .button {
    background: #f1f2f5;
    color: #191b1f;
  }
}
@media (max-width: 1000px) {
  .shell {
    padding-inline: 28px;
  }
  .featured {
    gap: 28px;
    padding: 32px;
  }
  .topic-group {
    grid-template-columns: 220px 1fr;
    gap: 35px;
  }
  .reading-layout {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 35px;
  }
  .end-cta {
    padding: 32px;
  }
}
@media (max-width: 720px) {
  .shell {
    padding-inline: 20px;
  }
  .site-head {
    min-height: 86px;
    gap: 15px;
  }
  .wordmark {
    font-size: 26px;
  }
  .wordmark img {
    display: none;
  }
  .site-head nav {
    gap: 15px;
    font-size: 12px;
  }
  .site-head nav > a[href="/mappy/"] {
    display: none;
  }
  .button.compact {
    font-size: 12px;
    padding: 9px 12px;
  }
  .hub-hero {
    padding: 36px 0 36px;
  }
  .hub-hero h1 {
    font-size: clamp(44px, 10vw, 67px);
    margin: 23px 0;
  }
  .hero-bottom {
    display: block;
  }
  .hero-bottom p {
    font-size: 17px;
  }
  .hero-bottom .text-link {
    display: inline-block;
    margin-top: 23px;
  }
  .featured {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 28px;
  }
  .featured h2 {
    max-width: 460px;
    font-size: 32px;
    margin-top: 18px;
  }
  .featured .text-link {
    margin-top: 5px;
  }
  .library {
    padding-top: 54px;
  }
  .library-head {
    display: block;
  }
  .library-head h2,
  .related h2 {
    font-size: 34px;
  }
  .library-head > p {
    margin-top: 13px;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .filters label[for="guide-topic"] {
    grid-column: 1;
    grid-row: 3;
    margin-top: 12px;
  }
  select {
    grid-column: 1;
    grid-row: 4;
  }
  .topic-links {
    gap: 3px 18px;
  }
  .topic-group {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 28px;
  }
  .topic-label {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 9px 15px;
  }
  .chapter-number {
    grid-row: 1 / 3;
    margin: 0;
  }
  .topic-label h3 {
    font-size: 24px;
    margin: 0;
  }
  .topic-label p {
    grid-column: 2;
    max-width: none;
  }
  .guide-row h4 {
    font-size: 21px;
  }
  .guide-row a {
    gap: 17px;
  }
  .guide-row:first-child a {
    padding-top: 10px;
  }
  .end-cta {
    display: block;
    padding: 28px;
    margin: 45px 0;
  }
  .end-cta h2 {
    font-size: 30px;
  }
  .cta-action {
    margin-top: 26px;
  }
  .cta-action small {
    max-width: none;
  }
  .site-foot {
    display: block;
  }
  .site-foot nav {
    padding-top: 15px;
  }
  .article-head {
    padding: 28px 24px;
    margin-bottom: 30px;
  }
  .article-head h1 {
    font-size: clamp(35px, 8vw, 52px);
  }
  .breadcrumbs {
    margin-bottom: 28px;
  }
  .article-meta {
    gap: 8px 18px;
  }
  .reading-layout {
    display: flex;
    flex-direction: column;
    gap: 27px;
  }
  .contents {
    position: static;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .contents ol {
    columns: 2;
    column-gap: 24px;
  }
  .contents li {
    break-inside: avoid;
  }
  .contents .quiet-link {
    display: none;
  }
  .prose {
    font-size: 17px;
    line-height: 1.72;
  }
  .prose .answer {
    padding: 23px;
  }
  .prose h2 {
    font-size: 26px;
  }
  .answer h2 {
    font-size: 23px;
  }
  .lead {
    font-size: 18px;
  }
  .fact-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-head,
  .site-foot,
  .contents,
  .end-cta,
  .related,
  .skip {
    display: none;
  }
  :root {
    --bg: #fff;
    --ink: #111;
    --muted: #333;
    --line: #ccc;
    --soft: #f5f5f5;
    --link: #111;
  }
  .shell {
    max-width: none;
    padding: 0;
  }
  .article-head {
    background: none;
    color: #111;
    padding: 0;
  }
  .article-head h1 {
    font-size: 32px;
  }
  .reading-layout {
    display: block;
  }
  .prose {
    font-size: 12pt;
  }
  .prose h2 {
    break-after: avoid;
  }
  pre {
    white-space: pre-wrap;
  }
}
