/* Ordevista brand tokens */
:root {
  --blue: #203B7B;        /* primary */
  --green: #498C67;       /* secondary: borders, large text only (4.0:1 on white) */
  --green-text: #3A6F52;  /* darker shade of secondary for small text (passes AA) */
  --lime: #9FC153;        /* highlight: accents, text on --blue */
  --bg: #FFFFFF;
  --ink: #000000;
  --muted: #3D4350;
  --line: #D9DEE8;
  --soft: #F4F7F2;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--blue); padding: 8px 12px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.hero { background: var(--blue); color: #fff; padding: 40px 0 28px; border-bottom: 6px solid var(--lime); }
.brand { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.wordmark { font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; font-size: 1.05rem; }
.tag { color: var(--lime); font-size: 0.95rem; }
.hero h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; text-shadow: var(--text-shadow); }
.lede { margin: 0 0 22px; max-width: 70ch; font-size: 1.05rem; }
.hero nav { display: flex; flex-wrap: wrap; gap: 8px; }
.hero nav a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.55); border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; }
.hero nav a:hover, .hero nav a:focus-visible { background: var(--lime); color: var(--blue); border-color: var(--lime); }

/* Filter */
.search { margin: 28px 0 8px; }
.search label { display: block; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.search input { width: 100%; max-width: 520px; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(159,193,83,0.6); }
.q-status { min-height: 1.4em; margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

/* Sections */
section { padding: 26px 0 8px; }
section h2 { margin: 0 0 4px; color: var(--blue); font-size: 1.55rem; }
section h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--lime); margin-top: 8px; border-radius: 2px; }
.section-intro { margin: 8px 0 16px; color: var(--muted); max-width: 75ch; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Cards */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s, transform .15s; }
.card:hover, .card:focus-within { box-shadow: var(--shadow); transform: translateY(-1px); }
.card.featured { grid-column: 1 / -1; border-left-color: var(--blue); background: var(--soft); border-top: 5px solid var(--lime); }
.card.featured h3 { font-size: 1.4rem; }
.card .logo { height: 48px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; margin-bottom: 4px; }
.card .meta { margin: 0; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; color: var(--blue); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card clickable */
.card h3 a:hover, .card h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--lime); outline-offset: 2px; }
.card .desc { margin: 0; }
.card .domain { margin: 2px 0 0; font-size: 0.88rem; font-weight: 700; color: var(--green-text); }
.badge { align-self: flex-start; margin-top: 6px; font-size: 0.82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-open { background: var(--lime); color: var(--blue); }
.badge-soon, .badge-closed { background: #E9ECF2; color: var(--muted); }
.state-soon h3, .state-closed h3 { color: var(--muted); }
.card[hidden] { display: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; padding-bottom: 40px; color: var(--muted); }
.foot a { color: var(--blue); }
.foot .small { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
@media print {
  .hero { background: none; color: var(--ink); border-bottom: 2px solid var(--blue); }
  .hero h1 { text-shadow: none; color: var(--blue); }
  .hero nav, .search, .skip { display: none; }
  .card { break-inside: avoid; box-shadow: none; }
  .card h3 a[href^="http"]::before { content: attr(href); display: block; font-size: 0.75rem; color: var(--muted); }
}
