/* components.css — buttons, tier pill (5 variants), drop cap, pull-quote, visit link */

/* ---- Buttons ---- */
.wh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4em;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1;
}
.wh-btn:hover { border-bottom-color: transparent; }
.wh-btn--primary    { background: var(--c-accent); color: var(--c-paper); }
.wh-btn--primary:hover { background: var(--c-accent-dp); color: var(--c-paper); }
.wh-btn--outline    { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.wh-btn--outline:hover { background: var(--c-ink); color: var(--c-paper); }

/* Text link (→ Visit, internal reads) — works on <a> and <button> */
.wh-textlink {
  display: inline;
  color: var(--c-accent);
  font-family: var(--f-body);
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: 0.01em;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0 0 1px 0;
  margin: 0;
  cursor: pointer;
  text-align: inherit;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.wh-textlink:hover { border-bottom-color: var(--c-accent); color: var(--c-accent-dp); }
.wh-textlink:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }
button.wh-textlink { font-family: var(--f-body); }

/* → Visit [operator] — affiliate text anchor, never a button */
.wh-visit, .wh-outbound {
  color: var(--c-accent);
  font-weight: 500; font-size: 1rem;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: border-color 0.15s ease;
}
.wh-visit:hover, .wh-outbound:hover { border-bottom-color: var(--c-accent); }

/* ---- Tier pill (5 variants) ---- */
.wh-tier {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
  vertical-align: middle;
}
.wh-tier--lg { font-size: 16px; padding: 10px 20px; letter-spacing: 0.12em; }

.wh-tier--standout {
  background: var(--c-saffron);
  color: var(--c-accent);
  border-color: var(--c-saffron);
}
.wh-tier--strong {
  background: transparent;
  color: var(--c-saffron-dp);
  border-color: var(--c-saffron);
}
.wh-tier--capable {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-accent);
}
.wh-tier--trailing {
  background: transparent;
  color: var(--c-ink-muted);
  border-color: var(--c-stone);
}
.wh-tier--not-recommended {
  background: transparent;
  color: var(--c-error);
  border-color: var(--c-error);
  text-decoration: line-through;
}

/* ---- Drop cap ---- */
.wh-dropcap::first-letter,
.wh-dropcap-wrap > p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--f-dropcap);
  line-height: 0.9;
  float: left;
  padding: 0.05em 0.15em 0 0;
  color: var(--c-accent);
  margin-top: 0.05em;
  margin-right: 0.02em;
}
.wh-dropcap--saffron::first-letter { color: var(--c-saffron); }

@media (max-width: 768px) {
  .wh-dropcap::first-letter,
  .wh-dropcap-wrap > p:first-of-type::first-letter {
    font-size: 4rem;
  }
}
@media (max-width: 480px) {
  .wh-dropcap::first-letter,
  .wh-dropcap-wrap > p:first-of-type::first-letter {
    font-size: 3.2rem;
  }
}

/* ---- Pull-quote (saffron spine) ---- */
.wh-pullquote {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--c-accent);
  padding-left: 1.25rem;
  border-left: 4px solid var(--c-saffron);
  margin: var(--space-block) 0;
  max-width: 58ch;
}
.wh-pullquote cite {
  display: block;
  font-family: var(--f-body);
  font-style: normal;
  font-size: var(--f-body-s);
  font-weight: 500;
  color: var(--c-ink-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* ---- Byline line ---- */
.wh-byline {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--f-body-s);
  letter-spacing: 0.01em;
  color: var(--c-stone);
}

/* ---- UKGC licence line ---- */
.wh-ukgc-line {
  font-family: var(--f-body); font-weight: 500;
  font-size: var(--f-label); letter-spacing: 0.06em;
  color: var(--c-stone); text-transform: uppercase;
}

/* ---- T&Cs footnote (saffron-muted) ---- */
.wh-tcs {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--c-warn);
  margin-top: 0.5rem;
}
.wh-tcs a { color: var(--c-warn); border-bottom-color: var(--c-warn); }

/* ---- Breadcrumb ---- */
.wh-breadcrumb {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--f-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-stone);
  margin: 0 0 1.5rem;
}
.wh-breadcrumb a { color: var(--c-stone); border-bottom-color: transparent; }
.wh-breadcrumb a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.wh-breadcrumb .sep { padding: 0 0.4em; color: var(--c-stone); }

/* ---- Tag/filter tabs — no borders, soft pills ---- */
.wh-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: var(--space-item) 0 var(--space-block);
  padding: 4px 0;
}
.wh-tab {
  font-family: var(--f-body); font-weight: 500; font-size: var(--f-body-s);
  letter-spacing: 0.04em;
  padding: 8px 16px; border: 1px solid var(--c-stone);
  background: var(--c-paper); color: var(--c-ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wh-tab:hover { border-color: var(--c-accent); color: var(--c-accent); }
.wh-tab.is-active { background: var(--c-accent); color: var(--c-paper); border-color: var(--c-accent); }

/* ---- Intro / subtitle ---- */
.wh-lead {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--f-subtitle);
  line-height: 1.55;
  color: var(--c-ink);
  max-width: 58ch;
  margin: 0 0 var(--space-item);
}

/* ---- Kicker bar with soft saffron accent ---- */
.wh-kicker-bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: var(--space-item);
  position: relative;
}
.wh-kicker-bar::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 2px;
  background: var(--c-saffron);
}

/* ---- Saffron-outlined box (Offers reminder) ---- */
.wh-note-saffron {
  border: 1px solid var(--c-saffron);
  padding: var(--space-item);
  border-radius: var(--r-md);
  color: var(--c-ink);
  font-family: var(--f-body);
  max-width: 58ch;
  margin: 0 auto;
}

/* Saffron-outline alert (form error) */
.wh-inline-error {
  border: 1px solid var(--c-error);
  background: transparent;
  color: var(--c-error);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin: var(--space-item) 0;
  font-size: var(--f-body-s);
}

/* Operator icon (Google Favicons — source is 128px, displayed smaller for retina sharpness) */
.wh-op-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  vertical-align: middle;
  background: #fff;
  border: 1px solid var(--c-stone);
  flex-shrink: 0;
  object-fit: contain;
  /* Default bilinear scaling — best for favicon-type raster sources at small sizes */
  image-rendering: auto;
}
.wh-op-icon--sm { width: 16px; height: 16px; }
.wh-op-icon--md { width: 28px; height: 28px; border-radius: 4px; }
.wh-op-icon--lg { width: 40px; height: 40px; border-radius: 6px; }
.wh-op-icon--xl { width: 56px; height: 56px; border-radius: 8px; }

/* Dismiss icon */
.wh-dismiss {
  background: transparent;
  border: 0;
  color: var(--c-stone);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px 8px;
}
.wh-dismiss:hover { color: var(--c-accent); }
