/* ==========================================================================
   ClipartDay
   Single stylesheet, no build step, no framework. It ships in one request and
   is small enough to stay well inside the first round trip.

   System fonts throughout — a webfont on an image-heavy site buys nothing and
   costs a render-blocking request on exactly the mobile connections this
   audience is on.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --brand:        #6d4aff;
  --brand-dark:   #5a37e8;
  --brand-soft:   #f1edff;
  --accent:       #ff9f1c;

  --ink:          #14161f;
  --ink-2:        #3c4152;
  --muted:        #6b7186;
  --line:         #e6e8ef;
  --line-soft:    #f0f2f7;
  --bg:           #ffffff;
  --surface:      #f7f8fb;
  --surface-2:    #eef1f7;

  --ok:           #0f9d58;
  --ok-soft:      #e8f6ee;
  --err:          #d93636;
  --err-soft:     #fdecec;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 31, .05);
  --shadow:    0 4px 16px rgba(20, 22, 31, .07);
  --shadow-lg: 0 12px 40px rgba(20, 22, 31, .12);

  --wrap: 1240px;
  --gap:  clamp(14px, 2vw, 22px);

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

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 1.15rem + 2.1vw, 2.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h3 { font-size: 1rem; }
p  { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img, picture, svg { max-width: 100%; }
img { height: auto; border: 0; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(28px, 4vw, 52px); }
.section + .section { padding-top: 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: clamp(16px, 2vw, 24px); flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-more { font-size: .92rem; font-weight: 600; white-space: nowrap; }

.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: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.muted { color: var(--muted); font-size: .9rem; }
.empty {
  padding: 48px 24px; text-align: center; color: var(--muted);
  background: var(--surface); border-radius: var(--r); border: 1px dashed var(--line);
}

/* --- Announcement --------------------------------------------------------- */
.announce {
  background: var(--ink); color: #fff; font-size: .88rem;
  padding: 9px 0; text-align: center;
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 9px; color: var(--brand); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; }
.brand-name { font-size: 1.22rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.brand-name span { color: var(--brand); }

/* Search ------------------------------------------------------------------- */
.search { position: relative; flex: 1; max-width: 560px; }
.search input {
  width: 100%; height: 44px; padding: 0 46px 0 16px;
  font-size: .95rem; font-family: inherit; color: var(--ink);
  background: var(--surface);
  border: 1.5px solid transparent; border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  outline: none; background: #fff;
  border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.search button {
  position: absolute; right: 5px; top: 5px;
  width: 34px; height: 34px; display: grid; place-items: center;
  color: #fff; background: var(--brand); border: 0; border-radius: 50%;
}
.search button:hover { background: var(--brand-dark); }

.suggest-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.suggest-panel a {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  color: var(--ink); font-size: .93rem;
}
.suggest-panel a:hover, .suggest-panel a.is-active { background: var(--surface); text-decoration: none; }
.suggest-panel img {
  width: 34px; height: 34px; object-fit: contain; flex-shrink: 0;
  background: var(--surface-2); border-radius: 6px;
}

/* Nav ---------------------------------------------------------------------- */
.nav-toggle {
  display: none; width: 42px; height: 42px; flex-direction: column;
  justify-content: center; gap: 5px; padding: 0 10px;
  background: none; border: 0; margin-left: auto;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.primary-nav { border-top: 1px solid var(--line-soft); }
.nav-scroll {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding-block: 6px;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a {
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  font-size: .91rem; font-weight: 500; color: var(--ink-2);
}
.nav-scroll a:hover { background: var(--surface); color: var(--brand); text-decoration: none; }
.nav-all { color: var(--brand) !important; font-weight: 600 !important; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; min-height: 60px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 10px; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav.is-open .nav-scroll { flex-direction: column; padding-block: 10px; }
  .primary-nav.is-open .nav-scroll a { padding: 10px 12px; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding-block: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(900px 380px at 12% -10%, #f3efff 0%, transparent 62%),
    radial-gradient(760px 340px at 88% 0%, #fff4e6 0%, transparent 60%);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.hero h1 { max-width: 17ch; margin-inline: auto; }
.hero-sub {
  max-width: 62ch; margin: 0 auto 26px; font-size: clamp(1rem, .95rem + .3vw, 1.13rem);
  color: var(--ink-2);
}
.hero-sub strong { color: var(--ink); }

.hero-search { position: relative; max-width: 640px; margin: 0 auto; display: flex; gap: 8px; }
.hero-search input {
  flex: 1; height: 56px; padding: 0 20px; font-size: 1rem; font-family: inherit;
  background: #fff; border: 2px solid var(--line); border-radius: 999px; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.hero-search input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft);
}
.hero-search button {
  height: 56px; padding: 0 30px; font-weight: 650; font-size: .98rem;
  color: #fff; background: var(--brand); border: 0; border-radius: 999px;
  transition: background .15s, transform .12s;
}
.hero-search button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.hero-search .suggest-panel { top: calc(100% + 10px); text-align: left; }
.hero-search-inline { margin-top: 20px; }

.hero-tags { margin-top: 20px; font-size: .9rem; color: var(--muted); }
.hero-tags span { margin-right: 4px; }
.hero-tags a {
  display: inline-block; margin: 3px 3px 0; padding: 4px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); font-weight: 500;
}
.hero-tags a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* --- Page head ------------------------------------------------------------ */
.page-head { padding-top: clamp(20px, 3vw, 34px); }
.page-head-center { text-align: center; }
.page-head-center .hero-search { margin-inline: auto; }
.page-head h1 { margin-bottom: .35em; }
.page-intro { max-width: 68ch; color: var(--ink-2); font-size: 1.03rem; }
.page-head-center .page-intro { margin-inline: auto; }
.page-count { color: var(--muted); font-size: .92rem; margin: 0; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .4em;
}

/* --- Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs { padding-top: 16px; font-size: .85rem; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0;
}
.breadcrumbs li + li::before { content: "/"; color: var(--line); margin-right: 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 500; }

/* --- Clipart grid --------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: var(--gap);
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }

/* The frame is tinted from the artwork's own dominant colour, computed at
   ingest. A flat white card would swallow every white or very pale clipart —
   the tint is what guarantees each piece has something to sit against. */
.card-frame {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--tint) 35%, #fff) 0%,
              var(--tint) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.card-link:hover .card-frame {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
/* Absolute inset rather than max-height: an <img> with intrinsic dimensions
   inside a grid cell can force the aspect-ratio box taller, which is what
   makes a row of cards drift out of alignment. */
.card-frame picture { display: contents; }
.card-frame img {
  position: absolute;
  inset: 13%;
  width: 74%; height: 74%;
  object-fit: contain;
}

.badge {
  position: absolute; top: 8px; right: 8px;
  font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 5px;
}
.badge-svg { background: var(--ink); color: #fff; }

.card-title {
  margin: 10px 2px 0; font-size: .87rem; font-weight: 550; line-height: 1.35;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-link:hover .card-title { color: var(--brand); }

.card-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 5px 2px 0; font-size: .74rem; color: var(--muted);
}
.card-cat {
  color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-cat:hover { color: var(--brand); }
.card-dl { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }

/* --- Category tiles ------------------------------------------------------- */
.cat-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.cat-tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.cat-tile:hover {
  text-decoration: none; transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow);
}
.cat-thumb {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--tint, #e6eaf2) 40%, #fff) 0%,
              var(--tint, #e6eaf2) 100%);
}
.cat-thumb picture { display: contents; }
.cat-thumb img {
  position: absolute; inset: 10%;
  width: 80%; height: 80%; object-fit: contain;
}
/* A category with nothing in it yet gets a quiet placeholder instead of an
   empty rectangle that reads as a broken image. */
.cat-thumb.is-empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  display: grid; place-items: center;
}
.cat-thumb.is-empty::after {
  content: ""; width: 26%; aspect-ratio: 1; border-radius: 6px;
  background: var(--line); opacity: .6;
}
.cat-body { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.cat-name { font-weight: 650; font-size: .95rem; }
.cat-count { font-size: .76rem; color: var(--muted); }

/* Category index page */
.cat-index { display: grid; gap: clamp(24px, 3vw, 38px); }
.cat-block { padding-bottom: clamp(20px, 3vw, 30px); border-bottom: 1px solid var(--line-soft); }
.cat-block:last-child { border-bottom: 0; }
.cat-block-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.cat-block-head h2 { margin: 0 0 .25em; }
.cat-block-head p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.cat-block-thumb {
  flex-shrink: 0; width: 84px; height: 84px; display: grid; place-items: center;
  padding: 8px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--tint, #eef1f5) 16%, #fff);
  border: 1px solid var(--line);
}

/* --- Chips ---------------------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row-center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; font-size: .88rem; font-weight: 500;
  color: var(--ink-2); background: var(--surface);
  border: 1px solid transparent; border-radius: 999px;
  transition: background .14s, color .14s, border-color .14s;
}
.chip:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.chip.is-current { background: var(--brand); color: #fff; }
.chip span { font-size: .76rem; color: var(--muted); }
.chip:hover span { color: inherit; opacity: .75; }
.chip.is-current span { color: rgba(255,255,255,.75); }
.chip-sm { padding: 5px 11px; font-size: .82rem; }

/* --- Pagination ----------------------------------------------------------- */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: clamp(28px, 4vw, 44px); flex-wrap: wrap;
}
.page-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.page-num, .page-gap {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--r-sm); font-size: .9rem; font-weight: 550; color: var(--ink-2);
}
a.page-num:hover { background: var(--surface); text-decoration: none; color: var(--brand); }
.page-num.is-current { background: var(--brand); color: #fff; }
.page-gap { color: var(--muted); min-width: 24px; }
.page-arrow {
  padding: 9px 16px; border-radius: 999px; font-size: .89rem; font-weight: 550;
  border: 1px solid var(--line); color: var(--ink-2);
}
a.page-arrow:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-arrow.is-disabled { opacity: .38; }
@media (max-width: 560px) { .page-list { display: none; } }

/* --- Clipart detail ------------------------------------------------------- */
.detail {
  display: grid; gap: clamp(22px, 3vw, 44px);
  padding-top: clamp(16px, 2vw, 26px);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) { .detail { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); } }

.detail-stage { min-width: 0; }
.stage-canvas {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  /* Checkerboard: the fastest way to show that the PNG is genuinely cut out. */
  background-color: #fff;
  background-image:
    linear-gradient(45deg, var(--surface-2) 25%, transparent 25%),
    linear-gradient(-45deg, var(--surface-2) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--surface-2) 75%),
    linear-gradient(-45deg, transparent 75%, var(--surface-2) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
/* Same absolute-inset rule as the cards: a tall portrait clipart would
   otherwise stretch the 4:3 stage into a column half a screen high. */
.stage-canvas picture { display: contents; }
.stage-canvas img {
  position: absolute; inset: clamp(18px, 4%, 48px);
  width: auto; height: auto;
  max-width: calc(100% - 2 * clamp(18px, 4%, 48px));
  max-height: calc(100% - 2 * clamp(18px, 4%, 48px));
  margin: auto;
  object-fit: contain;
}
.stage-note { margin-top: 10px; font-size: .8rem; color: var(--muted); text-align: center; }

.detail-side h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); }
.detail-desc { color: var(--ink-2); margin-bottom: 22px; }

.download-block { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

/* flex-wrap belongs on every button, not just the download one: .btn-sub is a
   full-width child, so without it the label breaks mid-phrase and the sub-line
   ends up beside the text instead of under it. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  flex-wrap: wrap;
  padding: 15px 24px; border: 0; border-radius: var(--r);
  font-size: 1rem; font-weight: 650; text-align: center;
  transition: background .15s, transform .12s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(109, 74, 255, .28); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 6px 20px rgba(109, 74, 255, .34); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-download { width: 100%; }
.btn-sub { display: block; width: 100%; font-size: .78rem; font-weight: 450; opacity: .82; }

.size-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.size-label { font-size: .82rem; color: var(--muted); margin-right: 2px; }
.size-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 13px; font-size: .86rem; font-weight: 600;
  color: var(--ink-2); background: var(--surface); border-radius: var(--r-sm);
}
.size-chip:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.size-chip em { font-style: normal; font-size: .76rem; font-weight: 400; color: var(--muted); }

.fact-list { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line-soft); }
.fact-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 2px; border-bottom: 1px solid var(--line-soft); font-size: .9rem;
}
.fact-list span { color: var(--muted); }
.fact-list strong { font-weight: 600; text-align: right; }

.source-note {
  font-size: .82rem; color: var(--muted); padding: 12px 14px;
  background: var(--surface); border-radius: var(--r-sm); border-left: 3px solid var(--line);
}

.tag-row { margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.tag-row h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 6px 0 0; }

/* --- Tag index ------------------------------------------------------------ */
.alpha-jump { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 20px; }
.alpha-jump a {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--surface); border-radius: var(--r-sm); font-weight: 650; font-size: .88rem;
  color: var(--ink-2);
}
.alpha-jump a:hover { background: var(--brand); color: #fff; text-decoration: none; }

.tag-index { display: grid; gap: 30px; }
.tag-letter h2 {
  font-size: 1.1rem; padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.tag-letter ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 4px 20px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.tag-letter li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; padding: 3px 0; }
.tag-letter span { color: var(--muted); font-size: .8rem; }

/* --- Prose ---------------------------------------------------------------- */
.prose-block { color: var(--ink-2); }
.prose-block h2 { color: var(--ink); margin-top: 1.6em; }
.prose-block h2:first-child { margin-top: 0; }
.prose-block p, .prose-block li { font-size: 1rem; line-height: 1.72; }
.prose-block ul, .prose-block ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose-block li { margin-bottom: .45em; }
.prose-narrow { max-width: 74ch; }

.license-cards { display: grid; gap: 16px; margin-bottom: 34px; }
@media (min-width: 720px) { .license-cards { grid-template-columns: 1fr 1fr; } }
.license-card { padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line); }
.license-card h2 { margin-top: 0; font-size: 1.05rem; }
.license-card ul { margin-bottom: 0; padding-left: 1.15em; }
.license-yes { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 22%, transparent); }
.license-yes h2 { color: #0b7a45; }
.license-no { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 20%, transparent); }
.license-no h2 { color: #b52b2b; }

.no-results {
  padding: clamp(24px, 4vw, 40px); background: var(--surface);
  border-radius: var(--r); display: grid; gap: 16px;
}
.no-results p { margin: 0; }

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 20px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .96rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.hint { margin: 0; font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 24px; font-size: .94rem; }
.alert ul { margin: 8px 0 0; padding-left: 1.2em; }
.alert-success { background: var(--ok-soft); color: #0b6b3f; }
.alert-error { background: var(--err-soft); color: #a12525; }

/* --- Ads ------------------------------------------------------------------ */
.ad {
  display: block; margin: clamp(24px, 3vw, 36px) auto; width: 100%;
  max-width: var(--wrap); padding-inline: clamp(16px, 4vw, 32px);
  overflow: hidden;
}
.ad-rectangle { max-width: 340px; margin-inline: 0; padding-inline: 0; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(36px, 4vw, 56px);
  background: var(--surface); border-top: 1px solid var(--line);
  font-size: .92rem;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-bottom: 36px;
}
.footer-brand { grid-column: span 2; max-width: 40ch; }
@media (max-width: 620px) { .footer-brand { grid-column: span 1; } }
.footer-brand p { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--brand); }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-block: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}
.footer-legal p { margin: 0; }
