/* Readable visa guidance, a focused landing page, and the selected directory layout. */
:root {
  --cream: #ffffff;
  --paper: #ffffff;
  --ink: #17202d;
  --muted: #475569;
  --line: #cbd5e1;
  --accent: #174c9a;
  --accent-hover: #103c7d;
  --accent-soft: #edf4ff;
  --green: var(--accent);
  --green-soft: var(--accent-soft);
  --coral: #174c9a;
  --shadow: none;
}
html { scroll-padding-top: 24px; }
body { --green: var(--accent); --green-soft: var(--accent-soft); font-size: 18px; line-height: 1.65; color: var(--ink); background: #fff; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.4; }
h2 { font-size: 28px; }
h3 { font-size: 21px; }
small { font-size: 14px; }
.container { width: min(1240px, calc(100% - 64px)); }
a, button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #1b67c8;
  outline-offset: 4px;
}
button:disabled { opacity: 1; color: #475569; background: #e2e8f0; border-color: #cbd5e1; }
.button, .text-button { font-size: 16px; font-weight: 600; }
.button { min-height: 48px; padding: 12px 18px; gap: 10px; border-radius: 6px; }
.button:hover { background: var(--accent-hover); transform: none; }
.button.secondary { color: var(--accent); background: #fff; border-color: #94a3b8; }
.button.secondary:hover { background: var(--accent-soft); }
.text-button { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.button svg, .text-button svg { flex-shrink: 0; width: 19px; height: 19px; }
.button:disabled:hover { background: #e2e8f0; }
.site-header { height: 78px; background: #fff; border-bottom-color: var(--line); }
.header-inner { gap: 20px; }
.brand-word { font-family: 'DM Sans', 'Noto Sans JP', sans-serif; font-size: 26px; letter-spacing: -.035em; font-weight: 700; }
.brand-mark { width: 26px; height: 26px; }
.brand { gap: 9px; white-space: nowrap; }
.language-control { padding-left: 20px; gap: 8px; }
.language-control svg { width: 20px; height: 20px; }
.language-control select { font-size: 16px; max-width: 120px; min-height: 44px; }
.eyebrow { font-size: 14px; letter-spacing: .04em; }
.utility-home { padding-bottom: 48px; }
.utility-intro { padding: 34px 0 26px; }
.intro-copy { min-width: 0; }
.utility-intro h1 { max-width: 1020px; }
.utility-description { margin-top: 12px; color: #334155; font-size: 18px; max-width: 940px; line-height: 1.75; }
.utility-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.utility-actions .button { min-height: 52px; font-size: 18px; padding: 13px 22px; }
.utility-actions > p { font-size: 15px; color: #475569; }
.scope-note { margin-top: 15px; font-size: 14px; line-height: 1.7; color: #475569; }
.utility-guides { padding-top: 28px; scroll-margin-top: 24px; }
.utility-guides .section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.utility-guides .section-heading h2 { font-size: 27px; }
.utility-guides .section-heading p { font-size: 16px; color: #475569; margin-top: 5px; }
.catalog-layout { min-width: 0; }
.guide-tools { gap: 18px; margin-bottom: 18px; }
.filters { gap: 7px; }
.filter { padding: 9px 15px; min-height: 44px; font-size: 16px; color: #334155; border-color: #cbd5e1; background: #fff; border-radius: 5px; }
.filter:hover { background: var(--accent-soft); }
.filter.active { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.search-box { min-width: 260px; min-height: 46px; border-color: #94a3b8; background: #fff; padding: 10px 13px; gap: 10px; }
.search-box svg { color: #475569; width: 20px; height: 20px; flex-shrink: 0; }
.search-box input { font-size: 16px; color: #17202d; }
.search-box input::placeholder { color: #64748b; opacity: 1; }
.guide-grid { gap: 16px; }
.guide-card { min-width: 0; min-height: 0; padding: 22px; border-color: #bdcad7; border-radius: 6px; background: #fff; cursor: default; }
.guide-card:hover { transform: none; box-shadow: none; border-color: #8298b1; }
.guide-card-top { gap: 10px; margin-bottom: 15px; }
.guide-icon, .guide-icon.peach { background: var(--accent-soft); color: var(--accent); width: 38px; height: 38px; border-radius: 5px; flex-shrink: 0; }
.guide-icon svg { width: 22px; height: 22px; }
.mini-badge { color: #244979; background: #edf4ff; font-size: 14px; line-height: 1.5; padding: 3px 8px; border-radius: 4px; white-space: normal; }
.mini-badge.preview { color: #475569; background: #f1f5f9; }
.guide-card h3 { color: #17202d; font-size: 21px; line-height: 1.5; margin-bottom: 8px; }
.guide-card > p { font-size: 16px; color: #475569; line-height: 1.75; margin-bottom: 14px; }
.guide-card-bottom { font-size: 14px; line-height: 1.7; color: #475569; margin-top: auto; }
.guide-card-bottom span { min-width: 0; overflow-wrap: anywhere; }
.guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 17px; margin-top: 18px; }
.guide-actions .button { font-size: 16px; min-height: 44px; padding: 10px 14px; }
.guide-actions .text-button { font-size: 15px; padding: 9px 0; }
.coverage-note { font-size: 14px; color: #475569; margin-top: 18px; line-height: 1.75; }
.coverage-note svg { width: 18px; height: 18px; margin-top: 3px; }
.no-results { font-size: 17px; color: #475569; }
.reference-section { padding: 35px 0 0; }
.reference-section h2 { font-size: 25px; margin-bottom: 18px; }
.reference-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.reference-item { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 12px; padding: 20px; text-align: left; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; }
.reference-item strong { font-size: 18px; line-height: 1.55; font-weight: 600; }
.reference-item span { color: #475569; font-size: 16px; grid-column: 1; }
.reference-item svg { grid-column: 2; grid-row: 1 / 3; width: 20px; height: 20px; align-self: center; color: var(--accent); }
.reference-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.guide-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid #b8c6d7; border-radius: 6px; overflow: hidden; }
.guide-card { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(240px, 1.4fr) minmax(200px, .85fr); column-gap: 30px; row-gap: 3px; padding: 20px 24px; border: 0; border-bottom: 1px solid #cbd5e1; border-radius: 0; }
.guide-card:last-child { border-bottom: 0; }
.guide-card:nth-child(even) { background: #f8fafc; }
.guide-card-top { grid-column: 1; grid-row: 1; justify-content: flex-start; margin: 0 0 2px; }
.guide-icon { display: none; }
.guide-card h3 { grid-column: 1; grid-row: 2; margin: 0; }
.guide-card > p { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; }
.guide-card-bottom { grid-column: 1; grid-row: 3; margin: 0; }
.guide-actions { grid-column: 3; grid-row: 1 / 4; margin: 0; align-self: center; justify-content: flex-end; }
.planner-page { padding-top: 28px; }
.breadcrumb, .breadcrumb button, .breadcrumb a { font-size: 15px; color: #475569; }
.breadcrumb svg { width: 16px; height: 16px; }
.planner-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 38px; }
.planner-aside h1 { font-size: 33px; }
.planner-aside > p { font-size: 16px; color: #475569; }
.planner-step { font-size: 16px; color: #475569; gap: 12px; }
.planner-step.done { color: #334155; }
.step-dot { width: 30px; height: 30px; font-size: 14px; }
.planner-card { padding: 30px; border-radius: 7px; box-shadow: none; }
.step-overline { font-size: 14px; }
.planner-card h2 { font-size: 28px; }
.question-help { font-size: 16px; color: #475569; }
.choice { padding: 22px 18px; background: #fff; min-width: 0; }
.choice.selected, .radio-option:has(input:checked) { background: var(--accent-soft); }
.choice-label { font-size: 18px; font-weight: 600; }
.choice-description { font-size: 16px; color: #475569; }
.choice-radio { width: 18px; height: 18px; }
.question-field legend { font-size: 18px; font-weight: 600; }
.radio-option { font-size: 16px; padding: 12px 15px; background: #fff; }
.radio-option input { width: 18px; height: 18px; flex-shrink: 0; }
.field-hint, .planner-footnote { font-size: 14px; color: #475569; }
.planner-footnote svg { width: 18px; height: 18px; }
.notice { font-size: 16px; background: #fff8e8; border-color: #d6bb75; color: #57451d; line-height: 1.75; }
.notice.info { color: #284569; border-color: #b5c9e1; background: #f0f6ff; }
.notice svg { width: 20px; height: 20px; }
.result-heading h1 { font-size: 35px; }
.result-heading > div > p { font-size: 17px; color: #475569; }
.result-source-label { color: #75501d; font-size: 14px; }
.result-source-label svg { width: 18px; height: 18px; }
.result-actions .button { font-size: 16px; min-height: 46px; padding: 11px 15px; }
.scenario span { background: #f1f5f9; color: #334155; font-size: 15px; padding: 6px 11px; }
.result-layout { grid-template-columns: minmax(0, 1fr) 290px; }
.result-block { padding: 27px; border-radius: 6px; }
.result-block h2 { font-size: 25px; }
.result-block > p { font-size: 16px; color: #475569; }
.process-list .process-num { width: 30px; height: 30px; font-size: 15px; background: var(--accent-soft); color: var(--accent); }
.process-list strong { font-size: 18px; font-weight: 600; }
.process-list p { font-size: 16px; color: #475569; }
.task-group-title { font-size: 16px; font-weight: 600; }
.task-row { padding: 20px 0; gap: 14px; }
.task-row input { width: 22px; height: 22px; margin-top: 4px; }
.task-title { font-size: 18px; font-weight: 600; }
.task-description { font-size: 16px; color: #475569; }
.task-row.completed .task-title { color: #475569; }
.source-link, .dialog-body .source-link { font-size: 15px; color: #174c9a; }
.source-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.task-extra { font-size: 15px; color: var(--accent); }
.progress-card { padding: 25px; border-radius: 6px; }
.progress-card h2 { color: #fff; font-size: 20px; font-weight: 600; }
.progress-number { font-family: inherit; font-size: 40px; font-weight: 600; }
.progress-number small { font-family: inherit; font-size: 16px; color: #fff; }
.progress-card p { font-size: 15px; color: #fff; }
.progress-track { background: #ffffff45; height: 7px; }
.progress-fill { background: #fff; }
.side-note { font-size: 16px; color: #475569; padding: 22px; }
.side-note h3 { font-size: 18px; color: #17202d; }
.side-note button, .result-back button { font-size: 16px; }
.dialog-header h2 { font-size: 26px; }
.close-dialog { width: 42px; height: 42px; }
.close-dialog svg { width: 20px; height: 20px; }
.dialog-body { font-size: 17px; color: #334155; line-height: 1.8; }
.dialog-body h3 { font-size: 20px; }
.dialog-kicker { font-size: 14px; color: #75501d; letter-spacing: .02em; }
.dialog-table div, .dialog-table strong { font-size: 16px; }
.dialog-footer-note { font-size: 15px; }
.site-footer { background: #f1f5f9; border-top: 1px solid #cbd5e1; padding: 28px 0 22px; }
.footer-brand p, .footer-links button, .footer-links a { font-size: 15px; color: #475569; }
.footer-bottom { font-size: 14px; color: #475569; border-color: #cbd5e1; align-items: flex-start; flex-wrap: wrap; }
.footer-bottom p:last-child { font-size: 14px; min-width: 0; white-space: normal; overflow-wrap: anywhere; height: auto; overflow: visible; }
#toast { font-size: 16px; }

/* One useful action on the landing page; visa selection lives on /visas/. */
.landing-page > .container { width: min(900px, calc(100% - 64px)); }
.landing-page .utility-intro { padding: 64px 0 72px; }
.landing-page h1 { font-size: 48px; line-height: 1.45; letter-spacing: -.035em; }
.landing-page h1 span { display: block; }
.landing-page .utility-description { max-width: 760px; margin-top: 22px; font-size: 20px; line-height: 1.85; }
.landing-page .utility-actions { display: flex; flex-direction: column; align-items: stretch; width: min(560px, 100%); margin-top: 32px; gap: 13px; }
.landing-page .utility-actions .button { width: 100%; min-height: 58px; padding: 15px 22px; font-size: 20px; }
.landing-page .utility-actions > p { font-size: 16px; }
.landing-page .scope-note { font-size: 16px; margin-top: 23px; }
.directory-page, .reference-page { padding-top: 27px; }
.directory-page .breadcrumb, .reference-page .breadcrumb { margin-bottom: 27px; }
.directory-page .utility-guides, .reference-page .reference-section { padding-top: 0; }
.directory-page .section-heading h1 { font-size: 36px; line-height: 1.45; }
.reference-page .reference-section h1 { font-size: 36px; line-height: 1.45; margin-bottom: 22px; }

@media (max-width: 1100px) {
  .container { width: calc(100% - 44px); }
  .guide-card { grid-template-columns: minmax(190px, 1fr) minmax(200px, 1.2fr) 190px; column-gap: 22px; }
  .guide-tools { flex-wrap: wrap; }
  .search-box { flex: 1; }
  .planner-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 25px; }
  .result-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
}
@media (max-width: 800px) {
  .site-header { height: 73px; }
  .language-control { margin-left: auto; }
  .utility-intro { padding: 28px 0; }
  .utility-guides .section-heading { display: block; }
  .utility-guides .section-heading p { margin-top: 9px; }
  .guide-card { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 20px; }
  .guide-card > p { grid-column: 1; grid-row: 4; margin-top: 4px; }
  .guide-actions { grid-column: 2; grid-row: 1 / 5; width: 170px; }
  .reference-list { grid-template-columns: 1fr; }
  .planner-layout { grid-template-columns: 1fr; }
  .planner-aside > p { max-width: none; }
  .planner-step { font-size: 15px; }
  .result-layout { grid-template-columns: 1fr; }
  .result-side { grid-template-columns: 1fr 1fr; }
  .progress-card { grid-column: 1 / -1; }
  .progress-number { font-size: 38px; }
}
@media (max-width: 560px) {
  body { --green: var(--accent); --green-soft: var(--accent-soft); font-size: 18px; }
  .container { width: calc(100% - 36px); }
  .site-header { height: 68px; }
  .header-inner { gap: 12px; }
  .brand-word { font-size: 24px; }
  .brand-mark { width: 24px; height: 24px; }
  .language-control { padding-left: 12px; }
  .language-control select { font-size: 16px; max-width: 109px; }
  .language-control svg { width: 18px; height: 18px; }
  .utility-intro { padding: 26px 0 23px; }
  .utility-intro h1 { font-size: 31px; line-height: 1.5; letter-spacing: -.035em; }
  .utility-description { margin-top: 12px; font-size: 17px; }
  .utility-actions { margin-top: 20px; gap: 10px; align-items: stretch; }
  .utility-actions .button { width: 100%; min-height: 52px; font-size: 18px; }
  .utility-actions > p { font-size: 15px; }
  .scope-note { font-size: 14px; margin-top: 12px; }
  .utility-guides { padding-top: 25px; }
  .utility-guides .section-heading { margin-bottom: 18px; }
  .utility-guides .section-heading h2 { font-size: 26px; }
  .utility-guides .section-heading p { font-size: 16px; }
  .guide-tools { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 16px; }
  .filters { gap: 7px; margin: 0; }
  .filter { padding: 9px 12px; font-size: 16px; }
  .search-box { width: 100%; min-width: 0; padding: 11px 12px; }
  .search-box input { font-size: 16px; }
  .guide-card h3 { font-size: 21px; }
  .guide-card > p { font-size: 16px; line-height: 1.75; }
  .guide-card-bottom { font-size: 14px; }
  .mini-badge { font-size: 14px; padding: 3px 7px; }
  .guide-actions .button { font-size: 16px; }
  .guide-actions .text-button { font-size: 15px; }
  .coverage-note { font-size: 14px; }
  .guide-card { display: flex; padding: 19px 17px; gap: 6px; }
  .guide-card-top { margin: 0; }
  .guide-card > p { margin: 4px 0; }
  .guide-card-bottom { order: 3; }
  .guide-actions { order: 4; width: 100%; justify-content: flex-start; margin-top: 7px; gap: 12px; }
  .guide-actions .button { flex: 1; }
  .reference-section { padding-top: 30px; }
  .reference-section h2 { font-size: 24px; }
  .reference-item { padding: 18px; }
  .planner-page { padding: 24px 0 36px; }
  .breadcrumb, .breadcrumb button { font-size: 14px; }
  .planner-aside h1, .result-heading h1 { font-size: 30px; }
  .planner-aside > p { font-size: 16px; }
  .planner-step-list { gap: 8px; }
  .planner-step { font-size: 14px; gap: 7px; }
  .step-dot { width: 29px; height: 29px; font-size: 14px; }
  .planner-card { padding: 23px 18px; }
  .planner-card h2 { font-size: 25px; }
  .question-help { font-size: 16px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice { padding: 18px 14px; gap: 11px; }
  .choice-label { font-size: 18px; }
  .choice-description { font-size: 16px; }
  .choice-icon svg { width: 21px; height: 21px; }
  .planner-actions { gap: 10px; align-items: stretch; }
  .planner-actions .button, .planner-actions .text-button { font-size: 16px; padding: 11px 12px; }
  .question-field legend { font-size: 17px; }
  .radio-option { font-size: 16px; padding: 11px 12px; }
  .field-hint, .planner-footnote { font-size: 14px; }
  .notice { font-size: 16px; padding: 14px 12px; gap: 9px; }
  .result-heading > div > p { font-size: 17px; }
  .result-actions { gap: 9px; }
  .result-actions .button { font-size: 15px; padding: 11px 13px; }
  .result-actions .button svg { width: 18px; height: 18px; }
  .result-source-label { font-size: 14px; }
  .scenario { gap: 7px; }
  .scenario span { font-size: 14px; padding: 5px 8px; }
  .result-side { grid-template-columns: 1fr; }
  .side-note:last-child { display: block; }
  .progress-card { padding: 21px; column-gap: 15px; }
  .progress-card h2 { font-size: 20px; }
  .progress-number { font-size: 35px; }
  .progress-card p { font-size: 15px; }
  .progress-number small { font-size: 15px; }
  .result-block { padding: 22px 17px; }
  .result-block h2 { font-size: 24px; }
  .process-list { gap: 20px; }
  .process-list li { gap: 11px; }
  .process-list strong { font-size: 18px; }
  .process-list p, .task-description { font-size: 16px; }
  .task-group-title { font-size: 16px; }
  .task-title { font-size: 18px; }
  .task-row { gap: 11px; }
  .source-link, .task-extra { font-size: 15px; }
  .side-note { font-size: 16px; }
  .dialog-header { padding: 20px; }
  .dialog-header h2 { font-size: 24px; }
  .dialog-body { padding: 20px; font-size: 17px; }
  .dialog-body .source-link { font-size: 15px; }
  .footer-brand p, .footer-links button { font-size: 15px; }
  .footer-links { gap: 15px 22px; }
  .footer-bottom, .footer-bottom p:last-child { font-size: 14px; min-width: 0; white-space: normal; overflow-wrap: anywhere; height: auto; overflow: visible; }
}

@media (max-width: 560px) {
  .landing-page > .container { width: calc(100% - 36px); }
  .landing-page .utility-intro { padding: 34px 0 45px; }
  .landing-page h1 { font-size: 32px; line-height: 1.55; }
  .landing-page .utility-description { margin-top: 18px; font-size: 18px; line-height: 1.85; }
  .landing-page .utility-actions { margin-top: 27px; gap: 12px; }
  .landing-page .utility-actions .button { min-height: 56px; font-size: 19px; padding: 14px 17px; }
  .landing-page .utility-actions > p, .landing-page .scope-note { font-size: 15px; }
  .landing-page .scope-note { margin-top: 20px; }
  .directory-page, .reference-page { padding-top: 22px; }
  .directory-page .section-heading h1, .reference-page .reference-section h1 { font-size: 30px; }
}

@media print {
  .guide-tools, .guide-actions, .utility-actions { display: none !important; }
  body { font-size: 11pt; color: #111; background: #fff; }
  .result-block, .notice, .progress-card { box-shadow: none; border-color: #aaa; }
  .progress-card, .progress-card h2, .progress-card p, .progress-number small { background: #fff; color: #111; }
  .task-title, .task-description, .process-list strong, .process-list p, .notice { font-size: 11pt; }
  .task-group-title, .result-source-label, .source-link { font-size: 10pt; }
  .site-header, .site-footer { display: none; }
}
.utility-guides { padding-top: 14px; }

/* A direct blog destination without expanding the focused home page. */
.header-blog-link { margin-left: auto; font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; white-space: nowrap; }
body[data-page="home"][data-concept="cinema"] .header-blog-link,
body[data-page="home"][data-concept="blueprint"] .header-blog-link { color: #fffdf5; }
@media (max-width: 600px) {
  .header-inner { gap: 14px; }
  .header-blog-link { font-size: 14px; }
  .header-inner .language-control { padding-left: 12px; gap: 4px; }
  .header-inner .language-control svg { display: none; }
}

/* Keep the full service name readable beside navigation on narrow screens. */
@media (max-width: 480px) {
  .site-header { height: auto; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-top: 14px; padding-bottom: 6px; }
  .header-inner > .brand { grid-column: 1 / -1; justify-self: start; }
  .header-blog-link { margin-left: 0; justify-self: start; }
  .header-inner .language-control { margin-left: 0; border-left: 0; padding-left: 0; justify-self: end; }
}
