/* Selina UK Desk — navy-gold-flat, same tokens as us-desk. Not uk-prep green. */
:root {
  --cream: #F8F5EF;
  --navy: #0A203B;
  --gold: #C9A24A;
  --white: #fffdf8;
  --border: rgba(10, 32, 59, 0.12);
  --gold-line: rgba(201, 162, 74, 0.55);
  --muted: rgba(10, 32, 59, 0.72);
  --top: 72px;
  --radius: 22px;
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--navy); }
html { font-size: 17px; }
body {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(201, 162, 74, 0.45); outline-offset: 3px; }

.pin-wall {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 28px 20px;
  background: var(--cream);
}
.pin-wall.hidden { display: none; }
.pin-card {
  width: min(560px, 100%);
  padding: 44px 40px 36px;
  border-radius: 28px;
  background: var(--white);
  text-align: center;
}
.pin-mark {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
}
.pin-mark svg { width: 34px; height: 34px; }
.pin-card .eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px; font-weight: 700;
}
.pin-card h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.pin-copy {
  margin: 0 auto 22px;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.45;
}
.role-switch { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.role-option {
  background: transparent;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700; font-size: 14px;
}
.role-option.active { background: var(--navy); color: var(--cream); }
.pin-card label {
  display: block; text-align: left; font-size: 13px; font-weight: 700; margin-bottom: 8px;
}
.pin-row { display: flex; gap: 10px; }
.pin-row input {
  flex: 1;
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--cream);
}
.pin-go {
  background: var(--gold); color: var(--navy);
  border: 0; border-radius: 12px;
  padding: 12px 18px; font-weight: 800;
}
.form-message { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }
.form-message.error { color: #8a2b22; }

.app { min-height: 100vh; background: var(--cream); display: flex; flex-direction: column; }
.app[hidden] { display: none; }

.topbar {
  height: var(--top);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: var(--navy);
  color: var(--cream);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--gold);
}
.brand small { color: var(--cream); font-weight: 500; font-size: 13px; }
.tabs { display: flex; gap: 2px; height: 100%; }
.tab {
  background: none; border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 14px;
  color: var(--cream);
  font-weight: 600; font-size: 15px;
  opacity: 0.78;
}
.tab.active { opacity: 1; border-bottom-color: var(--gold); }
.chrome { display: flex; align-items: center; gap: 12px; justify-self: end; }
.fresh {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
}
.fresh i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); display: block; }
.lock {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; color: var(--cream);
  font-size: 14px; font-weight: 600;
}
.lock svg { width: 16px; height: 16px; }
.back {
  color: var(--gold); text-decoration: none;
  font-size: 13px; font-weight: 700;
}

main { width: min(1180px, 100%); margin: 0 auto; padding: 36px 28px 64px; }
.page { display: none; }
.page.active { display: block; }

h1.desk {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.lede { margin: 12px 0 22px; font-size: 18px; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1.2fr 0.8fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.navy-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.navy-card h2, .card h2, .card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.navy-card h2 { color: var(--gold); border-bottom: 1.5px solid var(--gold); padding-bottom: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800; font-size: 13px;
}
.chip.gold { background: var(--gold); color: var(--navy); }
.chip.green { background: #cfe6d4; color: var(--navy); }
.chip.red { background: #efd0cc; color: #6b221c; }
.chip.gray { background: #e8e4da; color: var(--navy); }

.badge {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px; font-weight: 700;
}
.badge.verify { background: #e7f3ea; }
.badge.live { background: #f6e7c4; }
.badge.conflict { background: #efd0cc; }
.badge.stale { background: #e8e4da; }
.badge.gap { background: #ece9e1; color: var(--muted); }

.list { display: grid; gap: 10px; }
.row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.04em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filter {
  border: 1.5px solid var(--navy);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px; font-weight: 700;
}
.filter.active { background: var(--navy); color: var(--cream); }

.cite { font-size: 12px; color: var(--muted); }
.cite a { color: var(--navy); font-weight: 700; }
.footer-note {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr; height: auto; padding: 12px 16px 0; gap: 8px; }
  .tabs { overflow-x: auto; height: 44px; }
  .chrome { justify-self: start; padding-bottom: 10px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  main { padding: 24px 16px 48px; }
}
