/*
 * Discover stories (2026-11-17, Troy: "a real poster for discover page, something in-depth and informative"). A family,
 * told through the real Meqa cards of the horses in it: their records from the sources the catalogue cites, every
 * photograph credited, and a card that says so when no free photograph exists.
 */
.hl-card { display: block; width: 100%; height: auto; border-radius: 4.6% / 3.3%; box-shadow: 0 26px 50px rgba(74, 48, 40, .2), 0 8px 18px rgba(74, 48, 40, .12); }

/* The opening: the words, and Heartbreaker's card with his sire's behind it. */
.hl-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-top: 32px; padding-bottom: 88px; }
.hl-hero h1 { font-size: clamp(48px, 7vw, 92px); margin: 16px 0 22px; letter-spacing: -.01em; }
.hl-dek { font-size: 20px; color: var(--ink-soft); margin: 0 0 30px; max-width: 32em; }
.hl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 620px; }
.hl-stats div { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 14px 14px 13px; box-shadow: 0 10px 24px rgba(74, 48, 40, .06); }
.hl-stats b { display: block; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
.hl-stats span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--ink-faint); }
.hl-pair { position: relative; height: min(560px, 62vw); }
.hl-pair .hl-card { position: absolute; width: min(320px, 58%); }
.hl-sire { left: 2%; top: 4%; rotate: -8deg; filter: saturate(.9); opacity: .92; }
.hl-main { right: 4%; top: 10%; rotate: 4deg; }
.hl-tag { position: absolute; left: 4%; bottom: 2%; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); }
@media (hover: hover) and (pointer: fine) {
  .hl-pair .hl-card { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
  .hl-pair .hl-card:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 40px 80px rgba(74, 48, 40, .26); z-index: 2; }
  .hl-step .hl-card { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
  .hl-step .hl-card:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 36px 70px rgba(74, 48, 40, .24); }
}

/* Generation one: where he came from. */
.hl-roots { padding-bottom: 72px; }
.hl-gen { display: flex; gap: 22px; align-items: flex-start; background: var(--linen); border-radius: 28px; padding: 32px 34px; }
.hl-gen-n { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--on-navy); font-family: var(--serif); font-weight: 600; font-size: 24px; }
.hl-gen h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 8px 0 10px; }
.hl-gen p { margin: 0; color: var(--ink-soft); max-width: 46em; }
.hl-gen b { color: var(--ink); font-weight: 600; }

/* The tree: three lanes down from him, each a short line of cards joined by a thread. */
.hl-tree { padding-bottom: 40px; }
.hl-tree-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.hl-tree-head h2 { font-size: clamp(36px, 4.6vw, 56px); margin: 10px 0 12px; }
.hl-tree-head p { color: var(--ink-soft); margin: 0; }
.hl-lanes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }
.hl-lanes::before { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: -18px; height: 18px; border: 1.5px solid var(--rose-light); border-bottom: 0; border-radius: 14px 14px 0 0; }
.hl-lane { position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: 28px; padding: 22px 22px 26px; box-shadow: 0 18px 44px rgba(74, 48, 40, .07); }
.hl-lane::before { content: ""; position: absolute; left: 50%; top: -19px; height: 19px; border-left: 1.5px solid var(--rose-light); }
.hl-lane > header { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.hl-lane-n { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--rose); font-family: var(--serif); font-weight: 600; font-size: 20px; font-variant-numeric: lining-nums; }
.hl-lane h3 { font-size: 28px; margin-top: 2px; }
.hl-lane-note { margin: -4px 0 16px; font-size: 15px; color: var(--ink-soft); }
.hl-lane-note b { color: var(--ink); }
.hl-step { position: relative; margin: 0; }
.hl-step + .hl-step { margin-top: 30px; }
.hl-step + .hl-step::before { content: ""; position: absolute; left: 50%; top: -24px; height: 18px; border-left: 1.5px dashed var(--rose-light); }
.hl-step .hl-card.small { width: 58%; margin: 0 auto; }
.hl-step .hl-card:not(.small) { width: 86%; margin: 0 auto; }
.hl-step figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); text-align: center; }
.hl-step figcaption b { display: block; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.1; color: var(--ink); }
.hl-step figcaption span { display: block; margin: 3px 0 7px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--rose); }
.hl-step figcaption em { font-style: normal; color: var(--ink); font-weight: 600; }
.hl-twins { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.hl-twins .hl-step + .hl-step { margin-top: 0; }
.hl-twins .hl-step + .hl-step::before { display: none; }
.hl-twins .hl-card.small { width: 92%; }
.hl-twins figcaption b { font-size: 20px; }
.hl-ours { background: linear-gradient(180deg, var(--surface), var(--blush)); }

/* Action-Breaker has no catalogue card, so his record is an engraved plate in the card's own metal. */
.hl-plate { width: 86%; margin: 0 auto; border-radius: 18px; padding: 20px 20px 16px; text-align: center; color: #3A1E18;
  background: linear-gradient(110deg, #F6DCD0 0%, #E3A894 30%, #F7D6C8 52%, #C9806C 78%, #E9B6A2 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 18px 34px rgba(74, 48, 40, .2); }
.hl-plate-book { display: inline-block; font-size: 11px; letter-spacing: .16em; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: rgba(58, 30, 24, .12); }
.hl-plate b { display: block; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; margin: 8px 0 2px; }
.hl-plate-sub { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; opacity: .75; }
.hl-plate ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; text-align: left; font-size: 14.5px; }
.hl-plate li { display: flex; gap: 12px; padding-top: 6px; border-top: 1px solid rgba(58, 30, 24, .14); }
.hl-plate li i { font-style: normal; font-weight: 700; letter-spacing: .08em; opacity: .7; }

/* The close and the sources. */
.hl-close { padding-top: 56px; padding-bottom: 36px; }
.hl-close-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--navy); color: var(--on-navy); border-radius: 30px; padding: 40px 44px; }
.hl-close-card .eyebrow { color: var(--brass); }
.hl-close-card h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0 10px; }
.hl-close-card p { margin: 0; color: rgba(251, 247, 242, .82); max-width: 34em; }
.hl-close-card .cta { flex: none; }
.hl-close-card .button.quiet { background: rgba(251, 247, 242, .12); color: var(--on-navy); }
.hl-close-card .button.primary { background: var(--on-navy); color: var(--navy); box-shadow: none; }
.hl-close-card .button.primary:hover { background: #fff; color: var(--navy); }
.hl-sources { padding-bottom: 72px; font-size: 14px; color: var(--ink-faint); }
.hl-sources h2 { font-size: 24px; margin: 18px 0 8px; color: var(--ink); }
.hl-sources p { margin: 0 0 10px; max-width: 70em; }
.hl-sources a { color: var(--ink-soft); }

/* Every card in the story is the real card, and works like one: tap to turn it, drag to spin it (site.js). */
.hl-card.mcard { box-shadow: none; border-radius: 0; background: none; }
.dcard { --t: 3px; perspective: 1400px; }
.dcard .mcard-body { rotate: 0deg; aspect-ratio: 616 / 860; }
.dcard .mface { box-shadow: 0 22px 44px rgba(74, 48, 40, .2), 0 6px 14px rgba(74, 48, 40, .12); }
.dcard[data-rim="gold"] { --edge: linear-gradient(90deg, #8A6A22, #D9B259 30%, #F6E7B8 50%, #C9A045 70%, #8A6A22); }
.dcard[data-rim="lilac"] { --edge: linear-gradient(90deg, #6E5E9C, #B7A6DA 30%, #EDE6F8 50%, #A592CF 70%, #6E5E9C); }
.dcard[data-rim="silver"] { --edge: linear-gradient(90deg, #6F7A8A, #B9C2CE 30%, #F1F4F8 50%, #A9B3C1 70%, #6F7A8A); }
.hl-hint { display: flex; justify-content: center; align-items: center; gap: 9px; margin: 14px 0 0; font-size: 14px; color: var(--ink-faint); }
.hl-hint i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); animation: ping 1.9s infinite; flex: none; }

/* The next generation: Cornet's sons, three across on a wide screen. */
.hl-next { padding-top: 64px; padding-bottom: 8px; }
.hl-sons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }
.hl-sons .hl-step { background: var(--surface); border: 1px solid var(--hair); border-radius: 28px; padding: 24px 20px 26px; box-shadow: 0 18px 44px rgba(74, 48, 40, .07); }
.hl-sons .hl-step .hl-card { width: 78%; }
.hl-sons .hl-step + .hl-step { margin-top: 0; }
.hl-sons .hl-step + .hl-step::before { display: none; }

@media (max-width: 960px) {
  .hl-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 56px; }
  .hl-pair { height: min(520px, 108vw); max-width: 520px; width: 100%; justify-self: center; }
  .hl-lanes { grid-template-columns: minmax(0, 1fr); gap: 46px; max-width: 520px; margin: 0 auto; }
  .hl-lanes::before { display: none; }
  .hl-lane::before { top: -40px; height: 34px; }
  .hl-lane:first-child::before { display: none; }
  .hl-close-card { flex-direction: column; align-items: flex-start; }
  .hl-sons { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; gap: 22px; }
}
@media (max-width: 600px) {
  .hl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-dek { font-size: 17.5px; }
  .hl-pair .hl-card { width: 58%; }
  .hl-sire { left: 7%; }
  .hl-main { right: 5%; }
  .hl-gen { flex-direction: column; gap: 14px; padding: 24px 20px; border-radius: 24px; }
  .hl-gen-n { width: 44px; height: 44px; font-size: 20px; }
  .hl-lane { padding: 18px 16px 22px; border-radius: 24px; }
  .hl-close-card { padding: 30px 22px; border-radius: 26px; }
  .hl-close-card .cta .button { flex: 1 1 auto; }
}

/* --- Every horse in the family, each to its own page (2026-11-17, the horse search) ---------------------------- */
.hl-find { padding-top: 24px; padding-bottom: 80px; text-align: center; }
.hl-find h2 { font-size: clamp(32px, 4vw, 48px); margin: 10px 0 10px; }
.hl-find p { color: var(--ink-soft); max-width: 34em; margin: 0 auto 22px; }
.hl-find-list { list-style: none; margin: 0 auto 26px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; }
.hl-find-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s ease; }
.hl-find-list a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(74, 48, 40, .1); color: var(--ink); }
