:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #18181b;
  background: #f5f4f0;
  --text: #18181b;
  --muted: #52525b;
  --accent: #3730a3;
  --accent-hover: #312e81;
  --accent-soft: #eef2ff;
  --accent-border: #c7d2fe;
  --line: #e2dfd7;
  --line-strong: #cbc6bb;
  --panel: #ffffff;
  --surface-alt: #faf9f6;
  --verified-bg: #ecfdf5;
  --verified-border: #059669;
  --verified-text: #064e3b;
  --unverified-bg: #fffbeb;
  --unverified-border: #d97706;
  --unverified-text: #78350f;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.04), 0 3px 8px -2px rgba(24, 24, 27, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(24, 24, 27, 0.06), 0 12px 28px -6px rgba(24, 24, 27, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.6;
  background-color: #f5f4f0;
  background-image: linear-gradient(180deg, #eceae3 0%, #f5f4f0 22rem);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 2px;
}

h1, h2, h3, p, dl {
  margin: 0;
}

p + p {
  margin-top: 0.65rem;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: #111113;
}

h1 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 750;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.wrap {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  top: -8rem;
  left: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  font-weight: 700;
}

.skip:focus {
  top: 0.5rem;
  z-index: 20;
}

/* Masthead & Navigation */
.masthead {
  background: var(--panel);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(24, 24, 27, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #111113;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.22rem;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.disclosure {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #312e81;
  background: #eef2ff;
  border: 1px solid #a5b4fc;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.32rem 0.75rem;
}

.disclosure::before {
  content: "";
  flex: 0 0 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4f46e5;
}

.header-inner nav {
  margin-inline-start: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.header-inner nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0.1rem;
}

.header-inner nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.dest-bar {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

.dest-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  padding-block: 0.55rem;
}

.dest-nav a {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
}

.dest-nav a:hover {
  color: var(--text);
  background: #eceae3;
}

.dest-nav a[aria-current="page"] {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Hero Section */
.hero {
  padding-block: clamp(1.6rem, 4vw, 2.6rem) 1.35rem;
}

.hero > p {
  max-width: 64ch;
  margin-top: 0.7rem;
  font-size: 1.05rem;
  color: #27272a;
}

.hero > p.muted {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.hero > p.muted::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  margin-top: -0.12rem;
  border-radius: 50%;
  background: #059669;
}

.hero > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
}

.hero > a::before {
  content: "←";
}

.hero > a:hover {
  color: var(--accent);
  border-color: var(--accent-border);
}

.topic h1 {
  max-width: 28ch;
}

/* Topic Key Answers Grid */
.answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.answers > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0.75rem;
  padding: 0.95rem 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.answers dt {
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.answers dd {
  margin-left: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.answers dd .sources {
  display: block;
  margin-top: 0.45rem;
  font-weight: 500;
}

.official-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0;
  color: transparent;
}

.official-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--panel);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.42rem 0.85rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.official-list a::after {
  content: "↗";
  font-size: 0.82em;
  opacity: 0.85;
}

.official-list a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Panels & Website Checker */
.panel {
  background: var(--panel);
  padding: clamp(1.1rem, 2.8vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.checker {
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.input-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 0.45rem;
}

label {
  display: inline-block;
  font-weight: 700;
  font-size: 0.96rem;
  color: #111113;
}

input, button, select {
  font: inherit;
}

input, select {
  border: 1.5px solid #b8b2a6;
  border-radius: 0.55rem;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 48, 163, 0.14);
}

.input-row input {
  flex: 1 1 16rem;
  min-width: 0;
}

button {
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: #ffffff;
  border-radius: 0.55rem;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  cursor: default;
  opacity: 0.6;
}

/* Verification Result Cards — Instant Visual Clarity */
.result {
  margin-top: 1.2rem;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 2px solid var(--line-strong);
  border-left-width: 6px;
  background: var(--surface-alt);
  border-radius: 0.75rem;
}

.result > .disclosure {
  display: flex;
  width: 100%;
  margin-bottom: 0.95rem;
  background: rgba(255, 255, 255, 0.88);
  color: #27272a;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.result > .disclosure::before {
  background: #52525b;
}

#check-verdict {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#check-verdict::before {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 0.45rem;
  margin-bottom: 0.55rem;
}

/* Official Verified State (Green Badge) */
.result[data-verdict="verified"] {
  background: var(--verified-bg);
  border-color: var(--verified-border);
}

.result[data-verdict="verified"] #check-verdict::before {
  content: "✓ Verified Official Government Domain";
  background: #059669;
  color: #ffffff;
}

.result[data-verdict="verified"] h2 {
  color: var(--verified-text);
}

.result[data-verdict="verified"] .checked-host {
  background: rgba(5, 150, 105, 0.12);
  color: #064e3b;
  border-color: rgba(5, 150, 105, 0.35);
}

.result[data-verdict="verified"] .result-fees li {
  background: #ffffff;
  border-color: #a7f3d0;
}

.result[data-verdict="verified"] .result-fees li a {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.result[data-verdict="verified"] .result-fees li a:hover {
  background: #047857;
  border-color: #047857;
}

/* Unverified Neutral Notice State (Warm Amber-Neutral) */
.result[data-verdict="unknown"] {
  background: var(--unverified-bg);
  border-color: var(--unverified-border);
}

.result[data-verdict="unknown"] #check-verdict::before {
  content: "Notice · Unverified Domain (Not on Official List)";
  background: #b45309;
  color: #ffffff;
}

.result[data-verdict="unknown"] h2 {
  color: var(--unverified-text);
}

.result[data-verdict="unknown"] .checked-host {
  background: rgba(217, 119, 6, 0.12);
  color: #78350f;
  border-color: rgba(217, 119, 6, 0.35);
}

.result[data-verdict="unknown"] .result-fees li {
  background: #ffffff;
  border-color: #fde68a;
}

/* Invalid Format State */
.result[data-verdict="invalid"] {
  background: #fef2f2;
  border-color: #dc2626;
}

.result[data-verdict="invalid"] #check-verdict::before {
  content: "Check Address Format";
  background: #dc2626;
  color: #ffffff;
}

.result h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.result p {
  margin-top: 0.5rem;
  max-width: 68ch;
}

.checked-host {
  margin-top: 0 !important;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line-strong);
  background: #ffffff;
}

.result-fees {
  list-style: none;
  padding: 0;
  margin: 0.65rem 0 0;
  width: 100%;
  display: grid;
  gap: 0.55rem;
}

.result-fees li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  align-items: center;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #ffffff;
}

.result-fees li strong {
  font-size: 0.98rem;
  color: #111113;
  min-width: 7.5rem;
}

.result-fees li span {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1 1 14rem;
}

.result-fees li a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.36rem 0.75rem;
  border-radius: 0.45rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.result-fees li a::after {
  content: "↗";
  font-size: 0.82em;
}

.result-fees li a:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Report Unverified Site Accordion */
#report-site {
  padding-bottom: 0;
  margin-top: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

#report-site summary {
  font-size: 0.92rem;
  color: var(--muted);
}

#report-site summary:hover {
  color: var(--text);
}

#report-form, #subscribe-form {
  margin-top: 0.75rem;
}

#report-form p[role="status"], #subscribe-form p[role="status"] {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Sections & Comparison Table */
.section {
  margin-block: 2.5rem;
}

.section > .muted {
  margin-block: 0.35rem 0.9rem;
  font-size: 0.94rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 38rem;
  background: var(--panel);
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--surface-alt);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1.5px solid var(--line-strong);
}

tbody tr:hover {
  background: #fcfbf9;
}

tbody th a {
  font-weight: 750;
  text-decoration: none;
  color: var(--accent);
}

tbody th a:hover {
  text-decoration: underline;
}

tbody td:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 650;
  font-size: 0.92rem;
}

tbody td:last-child a::after {
  content: "↗";
  font-size: 0.82em;
}

tr:last-child td, tbody tr:last-child th {
  border-bottom: 0;
}

.sources {
  font-size: 0.82rem;
  color: var(--muted);
}

.sources a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}

.sources a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

td .sources {
  display: block;
  margin-top: 0.25rem;
}

/* Before You Travel Checklist & Photo Tool */
.checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0.95rem 0;
}

.checklist article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checklist article:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.checklist article p {
  margin-block: 0.5rem 0.9rem;
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}

.checklist article a, .button-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.3rem;
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 0.42rem 0.85rem;
  border-radius: 0.5rem;
}

.checklist article a:hover, .button-link:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.photo-sheet {
  margin-top: 0.9rem;
}

.photo-sheet[open] summary {
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.photo-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-block: 0.9rem;
}

.photo-fields label {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  flex: 1 1 14rem;
}

.photo-fields input, .photo-fields select {
  max-width: 100%;
  width: 100%;
}

#photo-status {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

#photo-preview {
  display: block;
  width: min(100%, 32rem);
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  margin: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

/* ETIAS Reminder Panel */
#etias-reminder {
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
  border-left: 4px solid var(--accent);
}

#etias-reminder > p {
  margin-top: 0.45rem;
  max-width: 65ch;
}

/* Frequently Asked Questions */
.faq {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.6rem;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.faq details[open] {
  border-color: var(--line-strong);
}

details {
  padding-block: 0.5rem;
}

summary {
  font-weight: 700;
  cursor: pointer;
  color: #111113;
  line-height: 1.4;
}

.faq summary {
  font-size: 1.02rem;
}

details p {
  max-width: 75ch;
  margin-top: 0.6rem;
  color: #27272a;
}

details p.sources {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line);
}

/* Footer */
.footer {
  padding-block: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  font-weight: 650;
  font-size: 0.92rem;
}

.footer nav a {
  text-decoration: none;
}

.footer nav a:hover {
  text-decoration: underline;
}

.footer details {
  color: var(--muted);
  font-size: 0.88rem;
  padding-block: 0.25rem;
}

.footer details summary {
  color: var(--muted);
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

/* Mobile Responsive Layout (320px–390px and up to 44rem) */
@media (max-width: 44rem) {
  .wrap {
    width: calc(100% - 1.5rem);
  }

  .header-inner {
    column-gap: 0.65rem;
    row-gap: 0.5rem;
    padding-block: 0.7rem;
  }

  .header-inner .disclosure {
    order: 3;
    width: 100%;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }

  .header-inner nav {
    gap: 0.3rem 0.7rem;
    font-size: 0.86rem;
  }

  .dest-nav {
    gap: 0.3rem 0.35rem;
    padding-block: 0.45rem;
  }

  .dest-nav a {
    font-size: 0.78rem;
    padding: 0.24rem 0.55rem;
  }

  .hero > p.muted {
    border-radius: 0.5rem;
  }

  .answers {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row input {
    flex: auto;
    width: 100%;
  }

  .input-row button {
    width: 100%;
    text-align: center;
  }

  .result-fees li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .result-fees li span {
    flex: auto;
  }

  .result-fees li a {
    width: 100%;
    justify-content: center;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table {
    min-width: 0;
    background: transparent;
  }

  table, tbody, tr, th, td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tbody tr {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 0.75rem;
    margin-block: 0.65rem;
    padding: 0.75rem 0.9rem;
    box-shadow: var(--shadow-sm);
  }

  tbody th {
    padding: 0 0 0.45rem;
    margin-bottom: 0.45rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  tbody td {
    padding: 0.35rem 0;
    border: 0;
    font-size: 0.93rem;
  }

  tbody td::before {
    display: block;
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.1rem;
  }

  tbody td:nth-of-type(1)::before {
    content: "Official fee";
  }

  tbody td:nth-of-type(2)::before {
    content: "Current status";
  }

  tbody td:nth-of-type(3)::before {
    content: "Government website";
  }

  td .sources {
    display: inline;
    margin-left: 0.25rem;
  }

  .checklist {
    grid-template-columns: 1fr;
  }
}
