/* ============================================================
   releaseMyAd microsite redesign — shared tokens
   ============================================================ */

/* Editorial theme (Variant A) — newsroom/newsprint */
.theme-editorial {
  --paper: #faf7f0;
  --paper-2: #f3ede0;
  --ink: #15140f;
  --ink-2: #2b261d;
  --muted: #6a6253;
  --muted-2: #948c7c;
  --rule: #15140f;
  --rule-soft: #d9d1bf;
  --accent: #a8141a;        /* masthead crimson */
  --accent-ink: #ffffff;
  --gold: #b08a32;
  --green: #2f6b3a;
  --shadow: 0 1px 0 #00000010;

  --font-display: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Bold conversion theme (Variant B) — MakeMyTrip energy */
.theme-bold {
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --ink: #0b0e14;
  --ink-2: #2a2f39;
  --muted: #5a626f;
  --muted-2: #8b94a3;
  --rule: #e7e9ee;
  --rule-soft: #f0f2f6;
  --accent: #d31027;        /* electric red */
  --accent-2: #ff5a3c;
  --accent-ink: #ffffff;
  --warn: #ffb800;
  --good: #00a37a;
  --shadow-sm: 0 1px 2px rgba(11, 14, 20, 0.06), 0 0 0 1px rgba(11, 14, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 14, 20, 0.08), 0 0 0 1px rgba(11, 14, 20, 0.04);
  --shadow-lg: 0 12px 36px rgba(11, 14, 20, 0.12), 0 0 0 1px rgba(11, 14, 20, 0.04);

  --font-display: "Inter", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Reset within artboards */
.theme-editorial *, .theme-bold *,
.theme-editorial *::before, .theme-bold *::before,
.theme-editorial *::after, .theme-bold *::after {
  box-sizing: border-box;
}
.theme-editorial h1, .theme-editorial h2, .theme-editorial h3, .theme-editorial h4, .theme-editorial p,
.theme-bold h1, .theme-bold h2, .theme-bold h3, .theme-bold h4, .theme-bold p {
  margin: 0;
}
.theme-editorial ul, .theme-bold ul {
  margin: 0; padding: 0; list-style: none;
}
.theme-editorial a, .theme-bold a { color: inherit; text-decoration: none; }
.theme-editorial button, .theme-bold button {
  font: inherit; cursor: pointer; border: none; background: none; color: inherit;
}
.theme-editorial table, .theme-bold table { border-collapse: collapse; width: 100%; }

/* Tabular numerals everywhere prices live */
.tnum, .price, .rate-cell { font-variant-numeric: tabular-nums; }

/* ============================================================
   EDITORIAL — primitives
   ============================================================ */
.ed-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.ed-rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.ed-rule-soft { border: 0; border-top: 1px solid var(--rule-soft); margin: 0; }
.ed-rule-double { border: 0; border-top: 3px double var(--rule); margin: 0; }
.ed-rule-thick { border: 0; border-top: 4px solid var(--rule); margin: 0; }

.ed-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ed-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.ed-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.ed-dek {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-2);
}
.ed-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

.ed-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 2px;
  transition: transform .08s ease;
}
.ed-btn:hover { transform: translateY(-1px); }
.ed-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.ed-btn--lg { padding: 16px 28px; font-size: 15px; }

.ed-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--ink);
  border: 1px solid var(--rule); padding: 4px 9px;
  background: var(--paper);
}
.ed-pill--accent { color: var(--accent); border-color: var(--accent); }

.ed-tag { /* small inline label, like a folio */
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

.ed-card {
  background: var(--paper);
  border: 1px solid var(--rule);
}

/* ============================================================
   BOLD — primitives
   ============================================================ */
.bd-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.bd-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.bd-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.bd-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.bd-muted { color: var(--muted); }

.bd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(211, 16, 39, 0.25);
  transition: transform .08s ease, box-shadow .12s ease;
}
.bd-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(211, 16, 39, 0.35); }
.bd-btn--lg { padding: 18px 32px; font-size: 17px; border-radius: 12px; }
.bd-btn--ghost {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1.5px solid var(--rule);
}
.bd-btn--ghost:hover { background: var(--paper-2); box-shadow: none; }

/* Outline variant — clear default, fills red on hover */
.bd-btn--outline {
  background: white;
  color: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent) inset;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.bd-btn--outline:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(211, 16, 39, 0.25), 0 0 0 1.5px var(--accent) inset;
}

/* ── Select field — polished native <select> ──────────────────────────────
   Use as: <div class="bd-select-wrap"><span class="bd-select-icon">…</span>
             <select class="bd-select">…</select></div>
   The wrap positions a leading icon + the chevron; the select keeps native
   accessibility/keyboard behaviour. Leading icon is optional — omit it and the
   text padding falls back via .bd-select--noicon. */
.bd-select-wrap {
  position: relative;
  display: block;
}
.bd-select {
  width: 100%;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font: inherit; font-weight: 600; font-size: 14.5px;
  color: var(--ink);
  padding: 14px 40px 14px 40px;
  line-height: 1.2;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 18, 27, 0.04);
  cursor: pointer;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.bd-select--noicon { padding-left: 16px; }
.bd-select:hover { border-color: var(--ink-2); background: var(--paper); }
.bd-select:focus,
.bd-select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(211, 16, 39, 0.14);
  background: #fff;
}
.bd-select-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--accent); pointer-events: none; display: flex;
}
.bd-select-chev {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; display: flex;
  transition: color .14s ease;
}
.bd-select:hover ~ .bd-select-chev,
.bd-select:focus ~ .bd-select-chev { color: var(--ink); }
/* Tidy the native option list where the OS honours it (Firefox/Chromium). */
.bd-select option { color: var(--ink); padding: 8px; }

/* ── Custom dropdown — fully styleable open list (native <option> can't be) ───
   Trigger reuses the .bd-select field look; the menu is an absolutely-positioned
   list whose rows match the field but in a smaller font. Driven by Alpine
   (open / selected state on the parent component). Markup:
     <div class="bd-cselect" :class="open && 'is-open'">
       <button class="bd-cselect-field" @click="open=!open">…label… <chev></button>
       <div class="bd-cselect-menu" x-show="open" @click.outside="open=false">
         <button class="bd-cselect-opt" :class="i===sel && 'is-sel'">…</button>
       </div>
     </div>                                                                      */
.bd-cselect { position: relative; }
.bd-cselect-field {
  width: 100%;
  display: flex; align-items: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 14.5px; color: var(--ink);
  text-align: left;
  padding: 14px 14px 14px 40px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 18, 27, 0.04);
  cursor: pointer;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.bd-cselect-field:hover { border-color: var(--ink-2); }
.bd-cselect.is-open .bd-cselect-field,
.bd-cselect-field:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(211, 16, 39, 0.14);
}
.bd-cselect-field > .bd-cselect-label { flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.bd-cselect-field > .bd-cselect-fieldchev { color: var(--muted); flex-shrink: 0;
  display: flex; transition: transform .15s ease, color .14s ease; }
.bd-cselect.is-open .bd-cselect-field > .bd-cselect-fieldchev { transform: rotate(180deg); color: var(--ink); }

.bd-cselect-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 30;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(16, 18, 27, 0.16);
  padding: 5px;
  max-height: 240px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bd-cselect-opt {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: inherit; font-weight: 600; font-size: 12px; color: var(--ink-2);
  text-align: left;
  padding: 8px 11px;
  background: none; border: 0; border-radius: 8px;
  cursor: pointer;
  transition: background .1s ease, color .1s ease;
}
.bd-cselect-opt:hover { background: var(--paper-2); color: var(--ink); }
.bd-cselect-opt.is-sel { background: rgba(211, 16, 39, 0.07); color: var(--accent); font-weight: 700; }
.bd-cselect-opt > .bd-cselect-opt-name { min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.bd-cselect-opt > .bd-cselect-opt-meta { flex-shrink: 0; color: var(--muted);
  font-weight: 700; font-size: 11.5px; }
.bd-cselect-opt.is-sel > .bd-cselect-opt-meta { color: var(--accent); }
.bd-cselect-field-icon { position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%); color: var(--accent); pointer-events: none; display: flex; }

.bd-card {
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.bd-card--hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bd-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 6px 12px;
  background: var(--paper-2);
  border-radius: 999px;
  color: var(--ink-2);
}
.bd-chip--accent { background: rgba(211, 16, 39, 0.08); color: var(--accent); }
.bd-chip--good { background: rgba(0, 163, 122, 0.1); color: var(--good); }

.bd-divider { height: 1px; background: var(--rule); border: 0; }

/* Pixel-art newspaper clipping placeholder, used in both themes */
.clipping {
  display: block;
  background-image:
    linear-gradient(90deg, currentColor 0 60%, transparent 60%),
    linear-gradient(90deg, currentColor 0 80%, transparent 80%),
    linear-gradient(90deg, currentColor 0 50%, transparent 50%),
    linear-gradient(90deg, currentColor 0 70%, transparent 70%),
    linear-gradient(90deg, currentColor 0 90%, transparent 90%),
    linear-gradient(90deg, currentColor 0 65%, transparent 65%),
    linear-gradient(90deg, currentColor 0 45%, transparent 45%),
    linear-gradient(90deg, currentColor 0 75%, transparent 75%);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 5px, 0 12px, 0 19px, 0 26px, 0 33px, 0 40px, 0 47px, 0 54px;
  color: currentColor;
  opacity: 0.55;
}
