:root {
  --bg: #f7f9ff;
  --surface: #ffffff;
  --surface-2: #edf3ff;
  --ink: #101828;
  --muted: #596579;
  --line: #d7dfef;
  --green: #00a85a;
  --green-dark: #007a43;
  --blue: #0057ff;
  --amber: #ffb000;
  --clay: #ff3b30;
  --charcoal: #08111f;
  --violet: #6d35ff;
  --sky: #00a3ff;
  --shadow: 0 22px 70px rgba(0, 40, 120, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer,
.hero,
.section,
.notice-band {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  width: 100%;
  padding: 0 max(16px, calc((100vw - 1120px) / 2));
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  color: var(--ink);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
}

.top-nav,
.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.top-nav {
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--muted);
}

.top-nav > a,
.nav-group > button {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 9px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.top-nav a:hover,
.top-nav button:hover {
  color: var(--blue);
}

.site-footer a:hover {
  color: var(--green-dark);
}

.nav-group {
  position: relative;
}

.nav-group > button::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.nav-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 140ms ease;
}

.nav-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--blue);
  background: #eef4ff;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 38px;
  align-items: stretch;
  padding: 46px 0 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.24;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(38px, 5.2vw, 68px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(23, 32, 31, 0.18);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.button.secondary,
.button.ghost {
  background: var(--surface);
}

.route-map {
  position: relative;
  min-height: 520px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(0, 87, 255, 0.95), rgba(8, 17, 31, 0.98) 48%, rgba(255, 59, 48, 0.92));
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.route-map::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(250, 239, 224, 0.14);
  border-radius: 8px;
}

.route-map::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -70px;
  background: radial-gradient(circle, rgba(255, 176, 0, 0.86), transparent 68%);
}

.route-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 18px;
  color: #faefe0;
  border: 1px solid rgba(250, 239, 224, 0.2);
  border-radius: 8px;
}

.route-node span,
.route-node small {
  color: rgba(250, 239, 224, 0.66);
  font-size: 13px;
}

.route-node strong {
  font-size: 22px;
}

.route-node.start {
  width: min(280px, 100%);
  margin: 18px auto 42px;
  background: rgba(250, 239, 224, 0.08);
  text-align: center;
}

.route-lines {
  position: absolute;
  z-index: 0;
  top: 158px;
  left: 50%;
  width: 2px;
  height: 86px;
  background: rgba(250, 239, 224, 0.28);
}

.route-lines::before {
  content: "";
  position: absolute;
  left: -142px;
  bottom: 0;
  width: 284px;
  height: 2px;
  background: rgba(250, 239, 224, 0.28);
}

.route-options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 92px;
}

.route-options .route-node {
  min-height: 170px;
  align-content: end;
}

.route-node.dependent {
  background: var(--green);
}

.route-node.continue {
  background: var(--blue);
  transform: translateY(32px);
}

.route-node.local {
  background: var(--clay);
}

.notice-band {
  padding: 15px 18px;
  color: #101828;
  background: #fff1b8;
  border: 2px solid var(--amber);
  border-radius: 8px;
}

.notice-band p {
  margin: 0;
}

.section {
  padding: 58px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
}

.quick-facts article {
  min-height: 150px;
  padding: 18px;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-facts article:nth-child(1) {
  background: var(--blue);
}

.quick-facts article:nth-child(2) {
  background: var(--green);
}

.quick-facts article:nth-child(3) {
  background: var(--clay);
}

.quick-facts span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.quick-facts strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.quick-facts p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.calculator-studio {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.calculator-studio .section-heading {
  grid-column: 1 / -1;
}

.result-panel,
.source-box,
.topic-grid article,
.calculator {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calculator {
  padding: 0;
  overflow: hidden;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 900;
}

legend span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-size: 13px;
}

.input-group-work {
  background: #ffffff;
}

.input-group-income {
  background: #eff6ff;
}

.input-group-home {
  background: #fff7d7;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #bfd0ea;
  border-radius: 8px;
  font: inherit;
}

input:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(22, 119, 97, 0.22);
  outline-offset: 2px;
}

.form-actions {
  margin: 0;
  padding: 22px 24px;
  background: #ffffff;
}

.form-actions .button.primary {
  min-width: 160px;
}

.result-panel {
  position: sticky;
  top: 16px;
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--blue), #08111f 62%);
  border-color: rgba(255, 255, 255, 0.14);
}

.result-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.result-panel .eyebrow {
  color: var(--amber);
}

.result-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.result-card span,
.metrics span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.result-card strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.result-card p,
.breakdown p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.metrics {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.metrics div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.breakdown {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.result-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.result-table div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #101828;
  background: #ffffff;
  border-radius: 8px;
}

.result-table span {
  color: #596579;
  font-size: 13px;
  font-weight: 800;
}

.result-table strong {
  color: var(--blue);
}

.action-plan {
  margin-top: 14px;
  padding: 14px;
  color: #101828;
  background: #fff1b8;
  border-radius: 8px;
}

.action-plan strong {
  display: block;
  margin-bottom: 8px;
}

.action-plan ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.content-layout article {
  max-width: 760px;
}

.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  color: var(--muted);
}

.source-box {
  padding: 20px;
  background: var(--violet);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.source-box p {
  color: rgba(255, 255, 255, 0.78);
}

.source-box a {
  display: block;
  margin-top: 10px;
  color: #fff1a8;
  font-weight: 900;
}

.basis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.basis-grid article {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.basis-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #ffffff;
  background: var(--green);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.basis-grid h3 {
  margin: 0 0 8px;
}

.basis-grid p {
  margin: 0;
  color: var(--muted);
}

.basis-table {
  display: grid;
  margin-top: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.basis-table > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
}

.basis-table > div + div {
  border-top: 1px solid var(--line);
}

.basis-table strong,
.basis-table span {
  padding: 14px 16px;
}

.basis-table strong {
  color: #ffffff;
  background: #18242f;
}

.basis-table span {
  color: var(--muted);
}

.basis-table span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.basis-table span + span,
.basis-table strong + strong {
  border-left: 1px solid var(--line);
}

.info-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-lanes article {
  min-height: 190px;
  padding: 18px;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-lanes article:nth-child(1) {
  background: var(--blue);
}

.info-lanes article:nth-child(2) {
  background: var(--green);
}

.info-lanes article:nth-child(3) {
  background: var(--amber);
  color: #101828;
}

.info-lanes article:nth-child(4) {
  background: var(--clay);
}

.info-lanes strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
}

.info-lanes p {
  margin: 12px 0 0;
  color: inherit;
  opacity: 0.84;
}

.local-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.local-grid article {
  min-height: 240px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.local-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.local-grid article:nth-child(2) span {
  background: var(--green);
}

.local-grid article:nth-child(3) span {
  color: #101828;
  background: var(--amber);
}

.local-grid article:nth-child(4) span {
  background: var(--clay);
}

.local-grid h3 {
  margin-top: 16px;
}

.local-grid p {
  color: var(--muted);
}

.deep-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  color: #ffffff;
  background: var(--charcoal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.deep-link p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.deep-link a {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #101828;
  background: var(--amber);
  border-radius: 8px;
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline article,
.case-grid article {
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.timeline article {
  border-left: 8px solid var(--blue);
}

.timeline article:nth-child(2) {
  border-left-color: var(--green);
}

.timeline article:nth-child(3) {
  border-left-color: var(--amber);
}

.timeline article:nth-child(4) {
  border-left-color: var(--clay);
}

.timeline span,
.case-grid span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.timeline p,
.case-grid p {
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.case-grid article:nth-child(1) {
  background: #eef4ff;
}

.case-grid article:nth-child(2) {
  background: #e9fff4;
}

.case-grid article:nth-child(3) {
  background: #fff5cc;
}

.case-grid article:nth-child(4) {
  background: #fff0ef;
}

.post-list {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 14px;
}

.post-list article {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-list .featured-post {
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--violet));
  border-color: transparent;
}

.post-list span {
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
}

.post-list .featured-post span {
  color: #fff1a8;
}

.post-list h3 {
  margin-top: 10px;
}

.post-list p {
  color: var(--muted);
}

.post-list .featured-post p {
  color: rgba(255, 255, 255, 0.82);
}

.post-list a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
}

.post-list .featured-post a {
  color: #fff1a8;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-grid article {
  padding: 18px;
  border-top: 5px solid var(--green);
}

.topic-grid article:nth-child(2) {
  border-top-color: var(--blue);
}

.topic-grid article:nth-child(3) {
  border-top-color: var(--amber);
}

.topic-grid article:nth-child(4) {
  border-top-color: var(--clay);
}

.topic-grid p {
  color: var(--muted);
}

.topic-grid a {
  color: var(--green-dark);
  font-weight: 900;
}

.faq {
  padding-top: 24px;
}

details {
  margin-bottom: 10px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

.page {
  width: min(840px, calc(100% - 32px));
  margin: 40px auto 80px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page p,
.page li {
  color: var(--muted);
}

.page a {
  color: var(--blue);
  font-weight: 900;
}

.article-summary,
.note-box {
  margin: 22px 0;
  padding: 18px;
  background: #eef4ff;
  border: 1px solid #bfd0ea;
  border-left: 8px solid var(--blue);
  border-radius: 8px;
}

.article-summary strong,
.note-box strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.article-summary p,
.note-box p {
  margin: 8px 0 0;
}

.note-box {
  background: #fff7d7;
  border-color: #ffd76b;
  border-left-color: var(--amber);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.two-col article {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.two-col h3 {
  font-size: 18px;
}

.related-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.related-actions a {
  padding: 10px 14px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
}

.official-sources {
  margin: 28px 0;
  padding: 20px;
  background: #f7fbff;
  border: 1px solid #bfd0ea;
  border-radius: 8px;
}

.official-sources h2 {
  font-size: 24px;
}

.official-sources ul {
  padding-left: 20px;
}

.official-sources .updated {
  margin-bottom: 0;
  color: var(--blue);
  font-weight: 900;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-table th,
.info-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.info-table th {
  background: var(--surface-2);
}

.data-page h2 {
  margin-top: 28px;
  font-size: 24px;
}

.data-source-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.data-source-list article {
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-source-list h2 {
  margin-top: 0;
}

.data-source-list dl {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.data-source-list dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.data-source-list dt {
  color: var(--ink);
  font-weight: 900;
}

.data-source-list dd {
  margin: 0;
  color: var(--muted);
}

.magazine-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 320px);
  gap: 40px;
  align-items: start;
  justify-content: space-between;
}

.category-hero,
.article-page {
  width: 100%;
  min-width: 0;
}

.category-hero {
  padding: 18px 0 24px;
}

.category-hero h1,
.article-page h1 {
  max-width: 860px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.2;
}

.category-hero p,
.article-lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.article-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
}

.article-grid article {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}

.article-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef4fb;
}

.article-grid span,
.article-grid h2,
.article-grid p,
.article-grid a {
  margin-left: 18px;
  margin-right: 18px;
}

.article-grid span {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.article-grid h2 {
  font-size: 22px;
  line-height: 1.35;
}

.article-grid p {
  color: var(--muted);
}

.article-grid a {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--blue);
  font-weight: 900;
}

.article-page {
  padding: 8px 0 0;
}

.article-page section {
  margin-top: 30px;
}

.article-page h2 {
  margin-top: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.35;
}

.article-page p,
.article-page li {
  color: #344054;
  font-size: 18px;
  line-height: 1.78;
}

.article-visual {
  display: block;
  width: 100%;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4fb;
  box-shadow: 0 22px 54px rgba(16, 24, 40, 0.1);
}

.article-summary ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.comparison-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.comparison-box div,
.tool-link-box {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-box span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.comparison-box strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
}

.tool-link-box {
  background: #eef9f4;
}

.content-sidebar {
  position: sticky;
  top: 78px;
}

.content-sidebar section {
  margin-top: 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content-sidebar h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.content-sidebar a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  border-top: 1px solid #edf1f7;
}

.content-sidebar a:first-of-type {
  border-top: 0;
}

.content-sidebar a:hover {
  color: var(--blue);
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  margin: 22px 0;
  color: #8792a2;
  background: #f4f7fb;
  border: 1px dashed #b8c4d5;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.ad-middle {
  min-height: 140px;
}

.sidebar-ad {
  min-height: 250px;
  margin-top: 0;
}

.ad-footer {
  min-height: 110px;
  margin-top: 34px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero,
  .calculator-studio,
  .content-layout,
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .route-map {
    min-height: auto;
  }

  .result-panel {
    position: static;
  }

  .content-sidebar {
    position: static;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-facts,
  .basis-grid,
  .article-grid,
  .info-lanes,
  .local-grid,
  .timeline,
  .case-grid,
  .post-list {
    grid-template-columns: 1fr;
  }

  .deep-link {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    padding-inline: 16px;
  }

  .top-nav {
    width: 100%;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .top-nav > a,
  .nav-group > button {
    min-height: 42px;
    white-space: nowrap;
  }

  .nav-menu {
    position: fixed;
    top: 92px;
    left: 16px;
    right: 16px;
  }

  fieldset,
  .two-col,
  .comparison-box,
  .route-options,
  .basis-table > div,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .basis-table strong + strong,
  .basis-table span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .route-lines {
    display: none;
  }

  .route-options {
    margin-top: 24px;
  }

  .route-node.continue {
    transform: none;
  }

  h1 {
    font-size: 34px;
  }
}
