:root {
  color-scheme: light;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --ink: #161b2b;
  --muted: #546079;
  --blue: #234ac5;
  --navy: #111521;
  --line: #dce2ef;
  --paper: #f1f4fb;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-margin-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.68; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.25; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #668bfe; outline-offset: 4px; }
[id] { scroll-margin-top: 1.2rem; }
.screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -6rem; left: .65rem; z-index: 5; background: var(--white); padding: .5rem .8rem; }
.skip:focus { top: .65rem; }
.site-wrap { width: min(calc(100% - 64px), 1160px); margin-inline: auto; }

.site-header { background: #0e1017; color: #fff; border-bottom: 1px solid #30374c; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; min-height: 70px; }
.wordmark { display: inline-flex; align-items: center; gap: .58rem; flex-shrink: 0; color: inherit; text-decoration: none; white-space: nowrap; }
.wordmark img { display: block; flex: 0 0 auto; }
.wordmark span { font-size: 1.08rem; font-weight: 780; letter-spacing: -.04em; }
.wordmark strong { margin-inline-start: .12rem; color: #b7c8ff; font-family: "Helvetica Neue", system-ui, sans-serif; font-weight: 850; letter-spacing: .045em; }
.site-footer .wordmark img { width: 26px; height: 26px; }
.topbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem clamp(.8rem, 2.1vw, 1.7rem); }
.topbar nav a { padding: .45rem 0; color: #ccd3e8; font-size: .92rem; font-weight: 640; text-decoration: none; white-space: nowrap; }
.topbar nav a:is(:hover, [aria-current]) { color: #fff; text-decoration: underline; text-decoration-color: #7392ff; text-decoration-thickness: 2px; text-underline-offset: .44em; }

.hero { position: relative; isolation: isolate; min-height: 420px; background: #10131c; color: #fff; overflow: hidden; display: grid; align-items: center; }
.hero-photo { position: absolute; z-index: -2; inset: 0 0 0 auto; width: min(100%, 1440px); height: 100%; object-fit: cover; object-position: 68% center; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #10131c 0%, #10131cf5 18%, #10131c92 45%, #10131c10 71%), linear-gradient(0deg, #10131c8f, transparent 38%); }
.hero-inner { padding: 40px 0 73px; }
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(2.65rem, 5.6vw, 4.5rem); font-weight: 820; letter-spacing: -.068em; line-height: 1.13; text-wrap: balance; }
.hero h1 em { color: #a9bdff; font-style: normal; }
.hero p { max-width: 29rem; margin-top: 1.1rem; color: #d0d9f0; font-size: clamp(1rem, 1.65vw, 1.14rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.action { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .55rem .95rem; border: 1px solid transparent; border-radius: 7px; background: #4b6be6; color: #fff; font: inherit; font-size: .95rem; font-weight: 720; line-height: 1.25; text-decoration: none; cursor: pointer; }
.action:hover { background: #3455ce; color: #fff; }
.muted-action { background: #151a2bd4; border-color: #5a6685; color: #eaf0ff; }
.muted-action:hover { background: #232e4d; }

.board { position: relative; margin-top: -36px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 12px 32px #121c3810; }
.board-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .7rem 1.5rem; padding: 1.1rem 1.35rem; }
.board-heading h2 { font-size: clamp(1.35rem, 2.9vw, 1.85rem); }
.board-heading p { color: var(--muted); font-size: .88rem; margin-top: .18rem; }
.filter { width: min(100%, 330px); }
.filter input, .lookup input { width: 100%; min-height: 43px; padding: .55rem .68rem; font: inherit; border: 1px solid #cad4e9; background: #f6f8fd; color: var(--ink); border-radius: 7px; }
.filter input::placeholder, .lookup input::placeholder { color: #5d6980; font-size: .9rem; }

.comparison-table, .reference-table { width: 100%; border-collapse: collapse; line-height: 1.45; }
.comparison-table :is(th, td), .reference-table :is(th, td) { text-align: left; padding: .78rem 1.35rem; border-block: 1px solid var(--line); }
.comparison-table thead th, .reference-table thead th { color: #3b4867; background: #edf1fb; font-weight: 700; font-size: .88rem; }
.comparison-table tbody tr:hover { background: #f6f8ff; }
.comparison-table tbody th { min-width: 23%; color: var(--ink); }
.comparison-table tbody th a { color: inherit; font-weight: 780; text-decoration-color: #a7b7e7; }
.comparison-table tbody th a:hover { color: var(--blue); }
.comparison-table tbody td { font-size: .94rem; }
.comparison-table :is(th, td):last-child { text-align: right; }
.stack-domain { display: none; }
code { color: #41537f; font-size: .88em; font-family: ui-monospace, Menlo, monospace; }
.bonus-button { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; padding: .4rem .7rem; border: 1px solid #2449bc; border-radius: 6px; background: #3356cb; color: #fff; font-size: .9rem; font-weight: 740; white-space: nowrap; text-align: center; text-decoration: none; }
.bonus-button:hover { background: #2444a8; }
.bonus-dialog { width: min(calc(100% - 34px), 490px); padding: 1.15rem 1.28rem; border: 1px solid #c4d1fa; border-radius: 10px; color: var(--ink); background: var(--white); }
.bonus-dialog::backdrop { background: #101522a6; }
.bonus-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .65rem; margin-bottom: .7rem; }
.bonus-dialog h2 { font-size: 1.35rem; }
.bonus-dialog p { margin-bottom: .7rem; }
.dialog-close { background: #edf1fb; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: .34rem .52rem; font: inherit; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.board-note, .empty { padding: .7rem 1.35rem; color: var(--muted); font-size: .86rem; }
.empty { padding-block: 1rem; border-bottom: 1px solid var(--line); text-align: center; }

.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 1rem 0 2rem; }
.quick-links a { display: flex; flex-direction: column; gap: .08rem; padding: .9rem 1rem; background: var(--white); border: 1px solid var(--line); border-top: 2px solid #7289e6; color: var(--ink); text-decoration: none; }
.quick-links a:hover { border-color: #8095e8; }
.quick-links strong { font-size: 1rem; }
.quick-links span { color: var(--muted); font-size: .88rem; }

.answer { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: 1.15rem 1.28rem; border-left: 4px solid #4b6be6; background: #e6edff; margin-bottom: 2.9rem; }
.answer h2 { font-size: clamp(1.23rem, 2.55vw, 1.65rem); }
.answer p { max-width: 65ex; margin-top: .4rem; }
.text-link { flex: 0 0 auto; font-weight: 730; }

.section-head h2, .reading-section h2 { font-size: clamp(1.48rem, 3.2vw, 2rem); }
.section-head p { margin-top: .3rem; color: var(--muted); }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.65rem; margin-top: 1.1rem; border-top: 2px solid #9baade; }
.record { padding: .95rem .2rem 1rem; border-bottom: 1px solid var(--line); }
.record:target { background: #e4ebfe; }
.record h3 { font-family: "Helvetica Neue", system-ui, sans-serif; font-size: 1.16rem; letter-spacing: -.018em; }
.record p { margin: .36rem 0 .3rem; }
.record .record-facts { color: var(--muted); font-size: .88rem; }
.record a { font-size: .88rem; }
.reading-section { max-width: 920px; margin-block: 2.6rem; }
.reading-section h2 { margin-bottom: .65rem; }
.reading-section h3 { margin: .8rem 0 .25rem; font-size: 1.11rem; }
.reading-section p + p { margin-top: .66rem; }
.guidance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; }
.guidance > div { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: .8rem .9rem; }
.guidance h3 { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: .7rem .16rem; cursor: pointer; font-weight: 700; }
.faq details p { padding: 0 .8rem .8rem; }

.guide { padding-block: 1.4rem 2.65rem; max-width: 940px; }
.crumbs { display: flex; gap: .45rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; padding-bottom: .9rem; }
.guide-heading { padding: clamp(1.2rem, 4vw, 2.4rem); color: #fff; background: #141e3b; border-top: 3px solid #6c88ef; }
.guide-heading h1 { font-size: clamp(1.9rem, 4.6vw, 3.05rem); }
.guide-heading p { margin-top: .6rem; color: #dce5ff; max-width: 68ch; }
.guide-heading .review-meta { color: #bacbfa; font-size: .86rem; }
.guide-body .reading-section { margin-block: 1.8rem; }
.lookup { margin-block: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.lookup label { display: block; font-weight: 710; margin-bottom: .4rem; }
.lookup > div { display: flex; gap: .52rem; }
.lookup input { min-width: 0; }
.lookup button { flex: 0 0 auto; }
#domain-result:not(:empty) { margin-top: .65rem; padding: .54rem .65rem; background: #edf2ff; overflow-wrap: anywhere; }
.scope-note { color: var(--muted); font-size: .91rem; }
.steps { margin: .8rem 0; padding-left: 1.5rem; }
.steps li + li { margin-top: .8rem; }
.reference-table { margin-block: .7rem 1rem; background: var(--white); }
.reference-table caption { padding-bottom: .4rem; background: var(--paper); color: var(--muted); text-align: left; }
.reference-table tbody th { width: 24%; }
.callout { border-left: 3px solid #4d6be2; background: #e6edff; padding: .65rem .8rem; }
.glossary { margin: .8rem 0; }
.glossary dt { padding-top: .45rem; border-top: 1px solid var(--line); font-weight: 720; }
.glossary dd { margin: .16rem 0 .6rem; }
.site-footer { background: var(--navy); color: #fff; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; min-height: 80px; padding-block: .8rem; }
.foot > a:not(.wordmark) { color: #c5d3ff; font-size: .89rem; }
.foot .wordmark { margin-right: auto; }

@media (max-width: 800px) {
  .site-wrap { width: calc(100% - 42px); }
  .separate-domain { display: none; }
  span.stack-domain { display: inline; }
  code.stack-domain { display: block; margin-top: .22rem; }
  .comparison-table :is(th, td) { padding-inline: .8rem; }
  .comparison-table tbody th { width: 29%; }
  .comparison-table tbody td:last-child { width: 22%; }
  .answer { flex-wrap: wrap; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .site-wrap { width: calc(100% - 28px); }
  .topbar { align-items: flex-start; flex-direction: column; padding: .65rem 0 .38rem; gap: .28rem; }
  .topbar nav { width: 100%; justify-content: space-between; gap: .16rem; }
  .topbar nav a { font-size: .84rem; padding-block: .36rem; }
  .hero { min-height: 0; }
  .hero-photo { width: 100%; object-position: 83% center; opacity: .74; }
  .hero::after { background: linear-gradient(90deg, #10131cfa, #10131cbf 55%, #10131c35), linear-gradient(0deg, #10131cd6, transparent 72%); }
  .hero-inner { padding: 29px 0 53px; }
  .hero h1 { font-size: clamp(1.9rem, 8.2vw, 3.25rem); line-height: 1.12; }
  .hero p { margin-top: .65rem; font-size: .97rem; }
  .hero-actions { margin-top: .75rem; gap: .4rem; }
  .action { min-height: 41px; padding: .47rem .65rem; font-size: .89rem; }
  .board { margin-top: -23px; border-radius: 9px; }
  .board-heading { padding: .7rem .68rem; gap: .5rem; }
  .board-heading p { font-size: .82rem; }
  .comparison-table :is(th, td), .reference-table :is(th, td) { padding: .58rem .45rem; }
  .comparison-table thead th, .comparison-table tbody td { font-size: .82rem; }
  .comparison-table tbody th { font-size: .9rem; }
  .bonus-button { min-height: 36px; padding: .28rem .33rem; font-size: .78rem; }
  .board-note { padding: .57rem .65rem; font-size: .8rem; }
  .quick-links { grid-template-columns: 1fr; gap: .45rem; margin: .7rem 0 1.3rem; }
  .quick-links a { padding: .45rem .65rem; }
  .answer { gap: .55rem; padding: .65rem .7rem; margin-bottom: 1.9rem; }
  .record-grid, .guidance { grid-template-columns: 1fr; }
  .reading-section { margin-block: 1.9rem; }
  .foot { min-height: 67px; }
}
