:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --text: #161617;
  --muted: #62666d;
  --faint: #dfe2e7;
  --line: rgba(22, 22, 23, 0.12);
  --card: #ffffff;
  --card-soft: #eceff3;
  --accent: #d72027;
  --accent-2: #0a7c86;
  --accent-3: #2d7d46;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --max: 1180px;
  --header-h: 64px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0f;
  --bg-elevated: rgba(18, 19, 23, 0.78);
  --text: #f5f5f7;
  --muted: #a5a8af;
  --faint: #2a2d34;
  --line: rgba(245, 245, 247, 0.14);
  --card: #15171c;
  --card-soft: #1e2229;
  --accent: #ff4d55;
  --accent-2: #28b7c2;
  --accent-3: #6fd184;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

body[dir="rtl"] {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body[lang="ja"] {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(24px);
  background: var(--bg-elevated);
  border-bottom: 1px solid transparent;
  display: flex;
  gap: 28px;
  height: var(--header-h);
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 46px);
  position: fixed;
  right: 0;
  top: 0;
  transition: border-color 180ms ease, background 180ms ease;
  z-index: 20;
}

.site-header[data-elevated="true"] {
  border-color: var(--line);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  font-weight: 650;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--text);
  border-radius: 6px;
  color: var(--bg);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2.5vw, 34px);
  justify-content: center;
}

.main-nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.icon-button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  position: relative;
  width: 46px;
}

.sun,
.moon {
  border-radius: 50%;
  position: absolute;
}

.sun {
  background: #f5a623;
  height: 13px;
  opacity: 1;
  width: 13px;
}

.moon {
  border: 2px solid var(--text);
  border-left-color: transparent;
  height: 14px;
  opacity: 0;
  transform: rotate(-25deg);
  width: 14px;
}

[data-theme="dark"] .sun {
  opacity: 0;
}

[data-theme="dark"] .moon {
  opacity: 1;
}

.hero {
  align-items: flex-end;
  display: flex;
  min-height: 86vh;
  overflow: hidden;
  padding: calc(var(--header-h) + 70px) clamp(18px, 5vw, 70px) 70px;
  position: relative;
}

.hero-image,
.hero-scrim {
  inset: 0;
  position: absolute;
}

.hero-image {
  filter: saturate(0.94);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.06)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.44), transparent 52%);
}

.hero-content {
  color: #fff;
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ff737a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(52px, 8vw, 104px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 22px;
  max-width: 760px;
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.35;
  max-width: 710px;
}

.hero-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-primary-actions a {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #111;
  font-weight: 760;
  padding: 14px 20px;
}

.hero-primary-actions a + a {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.search-panel {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  height: 62px;
  margin-top: 34px;
  max-width: 680px;
  padding: 0 24px;
}

.search-icon {
  border: 2px solid #5b626c;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 18px;
  position: relative;
  width: 18px;
}

.search-icon::after {
  background: #5b626c;
  border-radius: 2px;
  content: "";
  height: 8px;
  position: absolute;
  right: -5px;
  top: 12px;
  transform: rotate(45deg);
  width: 2px;
}

.search-panel input {
  background: transparent;
  border: 0;
  color: #111;
  min-width: 0;
  outline: none;
  width: 100%;
}

.quick-start {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-start a {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  padding: 10px 14px;
  transition: background 160ms ease;
}

.quick-start a:hover {
  background: rgba(255, 255, 255, 0.28);
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 92px clamp(18px, 4vw, 46px);
}

.section-tight {
  padding-bottom: 58px;
}

.section-header {
  max-width: 820px;
}

.section-header p:not(.eyebrow) {
  font-size: clamp(18px, 2vw, 23px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill-row span {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 10px 14px;
}

.action-hub {
  padding-top: 56px;
}

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

.answer-grid a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  min-height: 230px;
  padding: 24px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.answer-grid a:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}

.answer-grid span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 34px;
  text-transform: uppercase;
}

.answer-grid strong {
  display: block;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.1;
}

.answer-grid p {
  align-self: end;
  font-size: 15px;
  line-height: 1.5;
  margin: 22px 0 0;
}

.update-band {
  align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  margin-top: 18px;
}

.update-band h2 {
  font-size: clamp(30px, 4.4vw, 58px);
}

.update-band p {
  max-width: 760px;
}

.update-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.update-actions a {
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  font-weight: 720;
  padding: 14px 18px;
  white-space: nowrap;
}

.update-actions a.secondary-link {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
}

.content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.content-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-card,
.mini-card,
.arrival-board article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 250px;
  padding: 28px;
}

.guide-card {
  display: flex;
  flex-direction: column;
}

.guide-card p,
.mini-card p,
.arrival-board p {
  font-size: 16px;
}

.card-kicker {
  color: var(--accent-2);
  display: block;
  font-size: 13px;
  font-weight: 720;
  margin-bottom: 42px;
  text-transform: uppercase;
}

.guide-card a {
  color: var(--accent);
  font-weight: 650;
  margin-top: auto;
}

.split-band {
  max-width: none;
  padding-left: max(clamp(18px, 4vw, 46px), calc((100vw - var(--max)) / 2 + 46px));
  padding-right: max(clamp(18px, 4vw, 46px), calc((100vw - var(--max)) / 2 + 46px));
}

.arrival-board {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.arrival-board article {
  border-radius: 0;
  cursor: pointer;
  min-height: 280px;
  transition: background 160ms ease, transform 160ms ease;
}

.arrival-board article:hover {
  background: var(--card-soft);
  transform: translateY(-2px);
}

.arrival-board article:focus-visible,
.guide-card a:focus-visible,
.quick-start a:focus-visible,
.city-strip a:focus-visible,
.guide-nav a:focus-visible,
.tool-grid button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

.arrival-board article:first-child {
  border-bottom-left-radius: var(--radius);
  border-top-left-radius: var(--radius);
}

.arrival-board article:last-child {
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.arrival-board span {
  color: var(--accent-3);
  display: block;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 50px;
}

.city-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.city-strip a,
.tool-grid button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  font-weight: 660;
  min-height: 76px;
  padding: 20px;
  text-align: start;
  transition: transform 160ms ease, border-color 160ms ease;
}

.city-strip a:hover,
.tool-grid button:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}

.mini-card {
  display: block;
  min-height: 210px;
  transition: border-color 160ms ease, transform 160ms ease;
}

a.mini-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}

.culture-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  max-width: 780px;
}

.culture-list a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 680;
  padding: 22px 24px;
}

.tool-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.reading-lane {
  padding-top: 52px;
}

.reading-list {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.reading-list a {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 20px;
  grid-template-columns: 54px minmax(0, 0.7fr) minmax(0, 1fr);
  padding: 20px 22px;
  transition: background 160ms ease, transform 160ms ease;
}

.reading-list a:hover {
  background: var(--card-soft);
  transform: translateY(-1px);
}

.reading-list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.reading-list strong {
  font-size: clamp(19px, 2vw, 26px);
}

.reading-list p {
  font-size: 16px;
  margin: 0;
}

.roadmap {
  padding-top: 58px;
}

.roadmap-list {
  counter-reset: steps;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.roadmap-list li {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  display: grid;
  font-size: 18px;
  gap: 18px;
  grid-template-columns: 46px 1fr;
  padding: 18px 22px;
}

.roadmap-list li::before {
  color: var(--accent);
  content: counter(steps, decimal-leading-zero);
  counter-increment: steps;
  font-size: 13px;
  font-weight: 760;
}

.search-results {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  bottom: 24px;
  box-shadow: var(--shadow);
  max-height: min(460px, calc(100vh - 110px));
  overflow: auto;
  padding: 18px;
  position: fixed;
  right: 24px;
  width: min(420px, calc(100vw - 48px));
  z-index: 30;
}

body[dir="rtl"] .search-results {
  left: 24px;
  right: auto;
}

.search-results > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.search-results span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

#closeSearch {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 28px;
  position: relative;
  width: 28px;
}

#closeSearch::before,
#closeSearch::after {
  background: var(--muted);
  content: "";
  height: 2px;
  left: 6px;
  position: absolute;
  top: 13px;
  width: 16px;
}

#closeSearch::before {
  transform: rotate(45deg);
}

#closeSearch::after {
  transform: rotate(-45deg);
}

#resultList {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

#resultList a {
  border-radius: 6px;
  color: var(--text);
  display: block;
  padding: 10px 8px;
}

#resultList strong,
#resultList small {
  display: block;
}

#resultList small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 3px;
}

#resultList a:hover {
  background: var(--card-soft);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 34px clamp(18px, 4vw, 46px) 44px;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: 100%;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--text);
}

.article-main {
  margin: 0 auto;
  max-width: 980px;
  padding: calc(var(--header-h) + 72px) clamp(18px, 5vw, 46px) 70px;
}

.article-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 42px;
}

.article-hero h1 {
  color: var(--text);
  font-size: clamp(44px, 7vw, 86px);
  max-width: 900px;
}

.article-deck {
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.42;
  max-width: 820px;
}

.article-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 10px 16px;
  margin-top: 28px;
}

.article-meta span {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.article-layout {
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1fr) 230px;
  padding-top: 46px;
}

.article-body {
  min-width: 0;
}

.article-body h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  margin: 54px 0 14px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 22px;
  margin: 30px 0 10px;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

body[dir="rtl"] .article-body ul,
body[dir="rtl"] .article-body ol {
  padding-left: 0;
  padding-right: 22px;
}

.article-body a {
  color: var(--accent);
  font-weight: 650;
}

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  margin: 28px 0;
  padding: 22px 24px;
}

body[dir="rtl"] .callout {
  border-left: 1px solid var(--line);
  border-right: 4px solid var(--accent);
}

.quick-answer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 34px;
  padding: clamp(22px, 4vw, 32px);
}

.quick-answer span {
  color: var(--accent-2);
  display: block;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.quick-answer p {
  color: var(--text);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.38;
  margin: 0;
}

.decision-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}

.decision-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.decision-grid h3 {
  font-size: 20px;
}

.decision-grid p {
  font-size: 16px;
}

.checklist {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 1px;
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.checklist li {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.checklist li:last-child {
  border-bottom: 0;
}

.article-side {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.side-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.side-box h2 {
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.side-box a {
  color: var(--muted);
  display: block;
  font-size: 14px;
  padding: 7px 0;
}

.source-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.source-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.update-list {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.update-list > li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 32px);
}

.update-list time {
  color: var(--accent-2);
  display: block;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.update-list h2 {
  font-size: clamp(24px, 3vw, 38px);
  margin: 0 0 12px;
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.guide-nav a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 650;
  padding: 11px 14px;
}

.tool-surface {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 32px;
  margin-top: 42px;
  padding: clamp(22px, 4vw, 38px);
}

.tool-surface h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

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

.checker-form label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 650;
  gap: 8px;
}

.checker-form select,
.checker-form input[type="number"] {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  height: 48px;
  padding: 0 13px;
  width: 100%;
}

.checker-options {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checker-options label {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 10px;
  min-height: 54px;
  padding: 12px;
}

.primary-action {
  background: var(--text);
  border: 0;
  border-radius: 999px;
  color: var(--bg);
  cursor: pointer;
  font-weight: 720;
  grid-column: 1 / -1;
  height: 50px;
  justify-self: start;
  padding: 0 22px;
}

.checker-result {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.checker-result span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.checker-result h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 10px;
}

.checker-result ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

body[dir="rtl"] .checker-result ul {
  padding-left: 0;
  padding-right: 20px;
}

.checker-result.yes {
  border-color: color-mix(in srgb, var(--accent-3) 52%, var(--line));
}

.checker-result.maybe {
  border-color: color-mix(in srgb, var(--accent-2) 52%, var(--line));
}

.checker-result.no {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
}

.compact-layout {
  padding-top: 58px;
}

.tool-heading-row {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.progress-ring {
  --progress: 0deg;
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, var(--card) 0 58%, transparent 59%),
    conic-gradient(var(--accent-3) var(--progress), var(--faint) 0deg);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  display: grid;
  flex: 0 0 auto;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  height: 94px;
  justify-content: center;
  user-select: none;
  width: 94px;
}

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

.checklist-board section {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.checklist-board h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.checklist-board label {
  align-items: flex-start;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  gap: 10px;
  line-height: 1.45;
  padding: 11px 0;
}

.checklist-board input {
  accent-color: var(--accent);
  flex: 0 0 auto;
  margin-top: 3px;
}

.readiness-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.readiness-card span {
  color: var(--accent-2);
  display: block;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.readiness-card h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 10px;
}

.tool-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.secondary-action {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 720;
  padding: 14px 18px;
}

.secondary-button {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-weight: 720;
  padding: 14px 18px;
}

.emergency-tool {
  grid-template-columns: 1fr;
}

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

.emergency-form label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 650;
  gap: 8px;
}

.emergency-form input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  height: 48px;
  padding: 0 13px;
}

.phrase-selector {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phrase-selector label {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 54px;
  padding: 12px;
}

.phrase-selector input {
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.emergency-card-preview {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius);
  color: #111;
  padding: clamp(22px, 5vw, 42px);
}

.emergency-card-preview > div:first-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 22px;
  padding-bottom: 22px;
}

.emergency-card-preview span {
  color: #676b73;
  display: block;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.emergency-card-preview strong {
  display: block;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.08;
}

.emergency-card-preview p {
  color: #4f535a;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.35;
  margin: 12px 0 0;
}

.emergency-card-preview ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.emergency-card-preview li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 14px;
}

.emergency-card-preview li strong {
  font-size: clamp(26px, 5vw, 42px);
}

.emergency-card-preview li span {
  color: #555b63;
  font-size: 18px;
  font-weight: 500;
  margin: 8px 0 0;
  text-transform: none;
}

.emergency-card-preview dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.emergency-card-preview dl:empty {
  display: none;
}

.emergency-card-preview dl div {
  background: #f3f5f8;
  border-radius: 7px;
  padding: 12px;
}

.emergency-card-preview dt {
  color: #1c1d20;
  font-weight: 760;
}

.emergency-card-preview dt span {
  color: #686d75;
  font-size: 12px;
  margin: 3px 0 0;
  text-transform: none;
}

.emergency-card-preview dd {
  color: #111;
  font-size: 18px;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

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

.cost-form label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 650;
  gap: 8px;
}

.cost-form select,
.cost-form input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  height: 48px;
  padding: 0 13px;
  width: 100%;
}

.cost-result {
  display: grid;
  gap: 14px;
}

.cost-total {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
}

.cost-total span,
.cost-breakdown span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cost-total strong {
  display: block;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1;
}

.cost-total p {
  margin: 16px 0 0;
}

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

.cost-breakdown div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.cost-breakdown strong {
  display: block;
  font-size: 24px;
}

.cost-note {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius);
  margin: 0;
  padding: 16px 18px;
}

body[dir="rtl"] .cost-note {
  border-left: 1px solid var(--line);
  border-right: 4px solid var(--accent-2);
}

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

.rail-form label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 650;
  gap: 8px;
}

.rail-form select,
.rail-form input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  height: 48px;
  padding: 0 13px;
  width: 100%;
}

.rail-result {
  display: grid;
  gap: 14px;
}

.rail-summary,
.rail-stations article,
.rail-checklist {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}

.rail-summary {
  border-left: 4px solid var(--accent-3);
}

.rail-summary.warning {
  border-left-color: var(--accent);
}

body[dir="rtl"] .rail-summary {
  border-left: 1px solid var(--line);
  border-right: 4px solid var(--accent-3);
}

body[dir="rtl"] .rail-summary.warning {
  border-right-color: var(--accent);
}

.rail-summary span,
.rail-stations span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.rail-summary h2 {
  font-size: clamp(30px, 5vw, 56px);
  margin-bottom: 10px;
}

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

.rail-stations h3,
.rail-checklist h3 {
  font-size: 23px;
}

.rail-checklist ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

body[dir="rtl"] .rail-checklist ul {
  padding-left: 0;
  padding-right: 20px;
}

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

.timeline-checklist section {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.timeline-checklist section > span {
  color: var(--accent-3);
  display: block;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 18px;
}

.timeline-checklist h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.timeline-checklist label {
  align-items: flex-start;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  gap: 10px;
  line-height: 1.45;
  padding: 11px 0;
}

.timeline-checklist input {
  accent-color: var(--accent);
  flex: 0 0 auto;
  margin-top: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .site-header {
    gap: 14px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding-bottom: 44px;
  }

  .content-grid,
  .content-grid.four,
  .answer-grid,
  .arrival-board,
  .city-strip,
  .tool-grid,
  .checklist-board,
  .emergency-form,
  .phrase-selector,
  .cost-form,
  .cost-breakdown,
  .rail-form,
  .rail-stations,
  .timeline-checklist,
  .decision-grid,
  .article-layout,
  .checker-form,
  .checker-options {
    grid-template-columns: 1fr 1fr;
  }

  .update-band {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .update-actions {
    justify-content: flex-start;
  }

  .reading-list a {
    grid-template-columns: 44px 1fr;
  }

  .reading-list p {
    grid-column: 2;
  }

  .article-layout {
    gap: 32px;
  }

  .article-side {
    position: static;
  }

  .arrival-board article,
  .arrival-board article:first-child,
  .arrival-board article:last-child {
    border-radius: var(--radius);
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    display: none;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    min-height: 88vh;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 52%);
  }

  h1 {
    font-size: 50px;
  }

  .search-panel {
    height: 56px;
    padding: 0 18px;
  }

  .content-grid,
  .content-grid.four,
  .answer-grid,
  .arrival-board,
  .city-strip,
  .tool-grid,
  .checklist-board,
  .emergency-form,
  .phrase-selector,
  .cost-form,
  .cost-breakdown,
  .rail-form,
  .rail-stations,
  .timeline-checklist,
  .decision-grid,
  .article-layout,
  .checker-form,
  .checker-options {
    grid-template-columns: 1fr;
  }

  .reading-list a {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .reading-list p {
    grid-column: auto;
  }

  .tool-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-action {
    justify-self: stretch;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .guide-card,
  .mini-card,
  .arrival-board article {
    min-height: 0;
    padding: 24px;
  }

  .card-kicker,
  .arrival-board span {
    margin-bottom: 28px;
  }
}
