/* iontravel staff portal — brand styles (colors from ion.travel). */
:root {
  --ink: #231F20;
  --muted: #5E5F62;
  --plum: #4C485B;
  --plum-soft: #E4E2EA;
  --yellow: #F6D357;
  --yellow-hover: #EFC63A;
  --yellow-soft: #FDF4D3;
  --amber: #E8A603;
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --line: #E5E7EB;
  --line-soft: #EEF0F2;
  --ok: #15803D;
  --ok-soft: #DCFCE7;
  --danger: #C81E1E;
  --danger-soft: #FDE2E2;
  --radius: 24px;
  --pill: 48px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "NT Somic", Manrope, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--ink); }
a:hover { color: var(--plum); }
h1, h2, h3 { margin: 0; font-weight: 800; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--pill);
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none;
  border: 0; cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-hover); color: var(--ink); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-link { background: none; border: 0; color: var(--muted); font-weight: 600; padding: 8px 0; min-height: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.btn-block { width: 100%; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.input {
  width: 100%; height: 52px; padding: 0 18px;
  border: 1px solid #D1D5DB; border-radius: 16px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
}
.input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.input.code { letter-spacing: .35em; font-size: 22px; font-weight: 700; text-align: center; }
.error { color: var(--danger); font-size: 14px; font-weight: 600; }
.alert { border-radius: 16px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.alert-info { background: var(--yellow-soft); }
.alert-ok { background: var(--ok-soft); color: #14532D; font-weight: 600; }
.alert-error { background: var(--danger-soft); color: #9B1C1C; font-weight: 600; }

/* Auth screens */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; }
.auth-brand {
  flex: 1 1 480px; background: var(--plum); color: #fff; border-radius: 28px;
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth-brand img { width: 150px; height: auto; display: block; }
.auth-brand .eyebrow { font-size: 13px; font-weight: 700; color: var(--yellow); letter-spacing: .1em; text-transform: uppercase; margin-top: 18px; }
.auth-brand h1 { font-size: 44px; line-height: 1.12; max-width: 560px; }
.auth-brand p { font-size: 17px; color: var(--plum-soft); max-width: 520px; margin: 20px 0 0; }
.auth-brand .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-brand .chip { padding: 9px 16px; border-radius: var(--pill); background: #5E5A6D; font-size: 14px; font-weight: 600; }
.auth-panel {
  flex: 1 1 440px; background: #fff; border-radius: 28px;
  display: flex; align-items: center; justify-content: center; padding: 48px 24px;
}
.auth-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.auth-form h2 { font-size: 28px; }
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--plum); }

/* App shell */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.sidebar {
  flex: 0 0 264px; max-width: 100%; background: #fff; border-right: 1px solid var(--line);
  padding: 28px 16px; display: flex; flex-direction: column; gap: 4px;
}
.sidebar .logo { width: 96px; height: auto; margin: 0 16px; }
.sidebar .eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 16px 22px; letter-spacing: .08em; text-transform: uppercase; }
.nav {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: var(--pill);
  color: var(--muted); text-decoration: none; font-weight: 600; min-height: 44px; white-space: nowrap;
}
.nav:hover { background: var(--bg); color: var(--ink); }
.nav.on { background: var(--yellow); color: var(--ink); font-weight: 700; }
.nav.soon { opacity: .55; pointer-events: none; }
.nav .badge { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--bg); padding: 2px 8px; border-radius: var(--pill); }
.sidebar .spacer { flex-grow: 1; min-height: 32px; }
.me { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-top: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.me .who { flex-grow: 1; min-width: 0; }
.me .who b { display: block; font-size: 14px; }
.me .who span { font-size: 12px; color: var(--muted); }
.icon-btn { background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; display: flex; }

.main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 28px; }
.page-head .date { font-size: 14px; font-weight: 600; color: var(--muted); }
.page-head h1 { font-size: 34px; margin-top: 4px; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-title h2 { font-size: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tiles.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 150px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
.tile:hover { border-color: var(--ink); color: var(--ink); }
.tile .mono { width: 50px; height: 50px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.tiles.small .tile { min-height: 124px; }
.tiles.small .mono { width: 44px; height: 44px; background: var(--yellow-soft); color: var(--plum); font-size: 14px; }
.tile .name { font-size: 17px; font-weight: 800; }
.tile .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tile .foot { margin-top: auto; font-size: 13px; color: var(--muted); }
.empty { background: #fff; border: 1px dashed #D1D5DB; border-radius: var(--radius); padding: 28px; color: var(--muted); }

@media (max-width: 900px) {
  .sidebar { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .spacer { display: none; }
}

@media (max-width: 640px) {
  .auth-brand { padding: 24px; flex-basis: 100%; }
  .auth-brand > div:not(:first-child), .auth-brand .chips { display: none; }
  .auth-panel { padding: 32px 20px; }
  .main { padding: 24px 16px 40px; }
  .page-head h1 { font-size: 28px; }
}

/* Knowledge base & countries */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.search { position: relative; flex: 0 1 380px; }
.search svg { position: absolute; left: 18px; top: 15px; }
.search .input { height: 48px; border-radius: var(--pill); padding-left: 46px; font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: var(--plum); color: #fff; border-radius: var(--radius); padding: 20px 26px; }
.banner .t { font-size: 16px; font-weight: 800; }
.banner .s { font-size: 14px; color: var(--plum-soft); margin-top: 4px; }
.bar { flex: 1 1 240px; height: 10px; background: #6A6680; border-radius: 5px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--yellow); border-radius: 5px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.tab .n { color: var(--muted); }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab.on .n { color: var(--yellow); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.doc-list { overflow: hidden; }
.doc { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 26px; border-bottom: 1px solid var(--line-soft); }
.doc:last-child { border-bottom: 0; }
.kind { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 12px; background: var(--bg); color: var(--plum); min-width: 52px; text-align: center; }
.doc .info { flex: 1 1 280px; min-width: 0; }
.doc .title { font-size: 16px; font-weight: 700; text-decoration: none; color: var(--ink); }
.doc .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: var(--pill); }
.pill-yellow { background: var(--yellow-soft); color: var(--ink); }
.pill-ok { background: var(--ok-soft); color: #166534; }
.done { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ok); min-width: 150px; justify-content: flex-end; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; min-width: 150px; }
.viewer { width: 100%; height: 75vh; border: 0; border-radius: 16px; background: var(--bg); }
.back { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.prose { font-size: 15px; line-height: 1.65; white-space: pre-line; }

.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.country-list { flex: 1 1 260px; max-width: 100%; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.country { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--pill); text-decoration: none; color: var(--ink); min-height: 48px; }
.country:hover { background: var(--bg); color: var(--ink); }
.country.on { background: var(--yellow); font-weight: 700; }
.country .code { font-size: 13px; font-weight: 800; color: var(--muted); width: 28px; }
.country.on .code { color: var(--plum); }
.country .name { flex-grow: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.dot.stale { background: var(--amber); }
.country-card { flex: 999 1 480px; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fact { background: var(--bg); border-radius: 20px; padding: 16px 18px; }
.fact .l { font-size: 13px; font-weight: 600; color: var(--muted); }
.fact .v { font-size: 15px; font-weight: 600; margin-top: 6px; white-space: pre-line; }
.fact .v.none { color: var(--muted); font-weight: 400; }
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.legend { display: flex; gap: 16px; padding: 12px 8px 4px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-soft); margin-top: 4px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.row-link:last-child { border-bottom: 0; }
.row-link:hover { color: var(--plum); }
.duo { display: flex; flex-wrap: wrap; gap: 16px; }
.duo > .card { flex: 1 1 360px; padding: 22px 26px; }
.duo h2 { font-size: 18px; }
