/* cards.css — editorial clipping cards (hairlines only) + related/archive variants */

.wh-clipping {
  padding: 36px 0;
  border-top: 1px solid var(--c-stone);
  border-bottom: 0;
  margin-top: 0;
  transition: padding-left 0.3s ease;
}
.wh-clipping:first-child { border-top: 1px solid var(--c-accent); }
.wh-clipping:last-child { border-bottom: 1px solid var(--c-stone); }
.wh-clipping:hover { padding-left: 12px; }
@media (prefers-reduced-motion: reduce) { .wh-clipping:hover { padding-left: 0; } }

.wh-clipping-kicker {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 12px;
}

.wh-clipping h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 12px;
}
.wh-clipping-h3-op {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wh-clipping-h3-op .wh-op-icon--md {
  width: 28px; height: 28px; border-radius: 4px;
}
.wh-clipping h3 a {
  color: var(--c-ink);
  border-bottom-color: transparent;
}
.wh-clipping h3 a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }

.wh-clipping-excerpt {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--c-ink);
  line-height: 1.55;
  margin: 0 0 var(--space-item);
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wh-clipping-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-item);
}

/* 3-column grid for home "From the Quarterly" — softer grid with saffron accent on first card */
.wh-clipping-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wh-clipping-grid .wh-clipping {
  padding: 32px 24px;
  background: var(--c-paper);
  border: 1px solid var(--c-stone);
  border-radius: var(--r-md);
  margin: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.wh-clipping-grid .wh-clipping:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
  padding-left: 24px;
}
.wh-clipping-grid .wh-clipping:first-child { border-top-color: var(--c-saffron); border-top-width: 2px; padding-top: 31px; }
.wh-clipping-grid.wh-clipping-grid--bottom-ruled { border: 0; }

@media (prefers-reduced-motion: reduce) {
  .wh-clipping-grid .wh-clipping:hover { transform: none; }
}

@media (max-width: 900px) {
  .wh-clipping-grid { grid-template-columns: 1fr; }
  .wh-clipping-grid .wh-clipping {
    border-left: 0; border-right: 0;
    padding: 28px 0;
  }
}

/* Bookmaker archive row (editorial table) */
.wh-bm-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) auto 1fr auto auto;
  gap: var(--space-item);
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-stone);
}
.wh-bm-row:first-of-type { border-top: 1px solid var(--c-stone); }
.wh-bm-row .wh-bm-name {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--c-ink);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wh-bm-row .wh-bm-byline { color: var(--c-stone); font-size: 14px; }
.wh-bm-row .wh-bm-tested { color: var(--c-stone); font-size: 14px; font-feature-settings: "tnum"; }
.wh-bm-row .wh-bm-read { font-size: var(--f-body-s); font-weight: 500; }

@media (max-width: 900px) {
  .wh-bm-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name tier"
      "byline byline"
      "tested tested"
      "read   read";
    row-gap: 6px;
  }
  .wh-bm-row .wh-bm-name    { grid-area: name; }
  .wh-bm-row .wh-tier       { grid-area: tier; }
  .wh-bm-row .wh-bm-byline  { grid-area: byline; }
  .wh-bm-row .wh-bm-tested  { grid-area: tested; }
  .wh-bm-row .wh-bm-read    { grid-area: read; justify-self: start; }
}

/* Sport directory row (horizontal) */
.wh-sport-directory {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
}
.wh-sport-directory .wh-sport-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-accent);
  align-items: baseline;
}
.wh-sport-directory .wh-sport-row:first-child { border-top: 1px solid var(--c-accent); }
.wh-sport-directory .wh-sport-num {
  font-family: var(--f-body); font-weight: 500; color: var(--c-stone);
  font-size: 13px; letter-spacing: 0.1em;
}
.wh-sport-directory .wh-sport-label {
  font-family: var(--f-display); font-weight: 500;
  font-size: 1.75rem;
}
.wh-sport-directory .wh-sport-label a { color: var(--c-ink); border-bottom-color: transparent; }
.wh-sport-directory .wh-sport-label a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.wh-sport-directory .wh-sport-editor {
  font-family: var(--f-body); color: var(--c-stone); font-size: 14px;
  font-weight: 500; letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .wh-sport-directory .wh-sport-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "num label" ".   editor";
  }
  .wh-sport-directory .wh-sport-num    { grid-area: num; }
  .wh-sport-directory .wh-sport-label  { grid-area: label; font-size: 1.5rem; }
  .wh-sport-directory .wh-sport-editor { grid-area: editor; }
}

/* Licensed-operators grid — all 22 UKGC-licensed bookmakers on home */
.wh-licensed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--c-accent);
  border-left: 1px solid var(--c-accent);
}
.wh-licensed-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-right: 1px solid var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
  text-decoration: none;
  background: var(--c-paper);
  transition: background-color 0.15s ease;
  min-height: 68px;
}
.wh-licensed-cell:hover {
  background: var(--c-paper-alt);
  border-bottom-color: var(--c-accent);
}
.wh-licensed-cell .wh-op-icon {
  width: 28px; height: 28px; border-radius: 4px;
}
.wh-licensed-cell-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.wh-licensed-cell-name {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--c-ink);
  letter-spacing: 0.01em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.wh-licensed-cell-ukgc {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-stone);
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .wh-licensed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .wh-licensed-grid { grid-template-columns: 1fr; }
}

/* UKGC verification banner — above the grid */
.wh-licensed-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-item);
  align-items: center;
  padding: 24px 28px;
  background: var(--c-paper-alt);
  border: 1px solid var(--c-accent);
  border-radius: var(--r-md);
  margin-bottom: var(--space-block);
}
.wh-licensed-banner-count {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--c-accent);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.wh-licensed-banner-text {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-ink);
  line-height: 1.55;
  max-width: 58ch;
}
.wh-licensed-banner-text strong { font-weight: 600; }
.wh-licensed-banner-seal {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-saffron-dp);
  border: 1px solid var(--c-saffron);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .wh-licensed-banner {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 20px;
  }
  .wh-licensed-banner-count { font-size: 2.5rem; }
  .wh-licensed-banner-seal { justify-self: start; }
}

/* Editor bios on /about/ */
.wh-editor-bio {
  padding: 28px 0; border-bottom: 1px solid var(--c-stone);
}
.wh-editor-bio:first-of-type { border-top: 1px solid var(--c-stone); }
.wh-editor-bio .wh-ed-name {
  font-family: var(--f-display); font-weight: 500; font-size: 1.5rem;
  margin: 0 0 6px;
}
.wh-editor-bio .wh-ed-role {
  font-family: var(--f-body); font-weight: 500; font-size: var(--f-label);
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-accent);
  margin: 0 0 12px;
}
.wh-editor-bio .wh-ed-bio { max-width: 65ch; color: var(--c-ink); }
