/* ===== Clipper Digital Delivery — Specs & Templates ===== */
:root {
  --brand-blue: #25408f;
  --brand-blue-dark: #1b2f6b;
  --brand-blue-700: #1f377d;
  --brand-red: #d2232a;
  --brand-yellow: #ece82b;

  --ink: #1c2433;
  --muted: #5b6573;
  --line: #e4e8ef;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --bg: #eef1f6;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, .10);
  --maxw: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-blue); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--brand-blue); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.svg-sprite { position: absolute; }

/* ===== Header ===== */
.site-header {
  background: var(--brand-blue);
  position: sticky; top: 0; z-index: 30;
  box-shadow: var(--shadow-sm);
}
.site-header__inner { display: flex; align-items: center; min-height: 64px; padding-block: 8px; }
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo img { height: 40px; width: auto; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 200px at 15% -40%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff;
  padding-block: 40px 84px;
}
.hero__eyebrow {
  margin: 0 0 6px; text-transform: uppercase; letter-spacing: .12em;
  font-size: 12px; font-weight: 700; color: var(--brand-yellow);
}
.hero__title { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.01em; }
.hero__lede { margin: 0; max-width: 60ch; color: rgba(255,255,255,.88); font-size: 16px; }
.hero__actions { margin-top: 22px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .04s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: #fff; color: var(--brand-blue); box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

/* ===== Controls: search + chips ===== */
.controls {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-top: -52px; position: relative; z-index: 5; box-shadow: var(--shadow-md);
}
.search {
  display: flex; align-items: center; gap: 10px; flex: 1 1 280px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; color: var(--muted);
}
.search:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(37,64,143,.15); }
.search__icon { color: var(--muted); }
.search input {
  border: 0; background: transparent; outline: none; width: 100%;
  font: inherit; color: var(--ink); padding: 0;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); transition: all .12s ease;
}
.chip:hover { border-color: #c7cfdd; color: var(--ink); }
.chip.is-active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

.results { color: var(--muted); font-size: 14px; margin: 18px 2px 4px; }
.no-results { margin: 24px 2px; font-size: 16px; color: var(--ink); }
.linkbtn {
  font: inherit; color: var(--brand-blue); background: none; border: 0;
  padding: 0; cursor: pointer; text-decoration: underline; font-weight: 600;
}

/* ===== Groups & cards ===== */
.group { margin-top: 30px; }
.group__title {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 14px; font-size: 20px; color: var(--ink);
  padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.group__tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brand-blue); background: rgba(37,64,143,.08);
  padding: 4px 10px; border-radius: 999px;
}
.subgroup__title {
  margin: 26px 0 12px; font-size: 14px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 10px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

.card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease, transform .04s ease;
}
.card:hover { border-color: #c7cfdd; box-shadow: var(--shadow-md); }
.card__body { min-width: 0; }
.card__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.card__note { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }

.card__dl {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--brand-blue); background: rgba(37,64,143,.08);
  padding: 9px 14px; border-radius: 999px; transition: background .12s ease, color .12s ease;
}
.card__dl:hover { background: var(--brand-blue); color: #fff; }

.card.is-hidden, .group.is-hidden, .subgroup__title.is-hidden, .grid.is-hidden { display: none !important; }

/* Highlight search matches */
mark { background: var(--brand-yellow); color: var(--ink); border-radius: 3px; padding: 0 2px; }

/* ===== Footer ===== */
.site-footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer__inner { padding-block: 30px; text-align: center; }
.site-footer__help { margin: 0 0 8px; font-size: 16px; }
.site-footer__help a { font-weight: 700; }
.site-footer__links { margin: 0; color: var(--muted); font-size: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.site-footer__links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { color: var(--brand-blue); text-decoration: underline; }

/* ===== Focus visibility ===== */
:focus-visible { outline: 3px solid rgba(37,64,143,.45); outline-offset: 2px; border-radius: 6px; }
.hero :focus-visible { outline-color: rgba(255,255,255,.8); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .controls { margin-top: -40px; }
  .grid { grid-template-columns: 1fr; }
  .site-header__logo img { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
