/* ls_state-pass-cta.css — the ONE hard-gate CTA card on an evergreen page.
 *
 * The short-term paywall (owner directive, 2026-08-19): gate the article
 * that is already on the page, the way a news publisher does. One card,
 * one decision point, everything below it removed at the edge for anyone
 * without a pass. Modelled on the CNN "Keep reading with a CNN
 * subscription" panel the owner supplied as the reference, rebuilt in
 * DG4 — dark ground, Georgia headline, one gold button.
 *
 * WHERE IT COMES FROM: this markup is NOT authored per page. It is
 * emitted at the cut by paywall/build/mark_page_temp.py, so all ~1,300
 * evergreen pages carry a byte-identical card. Change the copy there,
 * change the skin here.
 *
 * Design authority: .claude/skills/design-director/SKILL.md. Namespaced
 * #hw-solar to match the evergreen family, so this file is completely
 * inert on every other page type even though it loads sitewide.
 *
 * ⚠️ PX ONLY, NEVER REM — the legacy screen.css still ships sitewide and
 * sets html{font-size:62.5%} (a 10px root), so a rem value renders at
 * 62.5% of what you meant. ls_paywall.css shipped 37.5% too small once
 * for exactly this reason ("small and squished" — owner). Same
 * convention here, and in ls_evergreen.css, which is px throughout.
 *
 * Colour semantics, shared with ls_paywall.css:
 *   gold  = buy this
 *   green = you already have it   (.hw-gate-active)
 *
 * ⚠️ SPECIFICITY: this card renders INSIDE the article, which means it
 * sits inside `<section class="gh-content">` and `.hw-article-in`, and
 * ls_evergreen.css reaches in there with rules that out-specify a plain
 * `#hw-solar .hw-gate-*`:
 *     #hw-solar .hw-article h2         (1,1,1) → would turn the card
 *                                       headline into a 13.5px gold-caps
 *                                       section header with a rule after
 *                                       it. Hence the headline is a <p>,
 *                                       not an <h2> — which also keeps it
 *                                       out of the sitewide #hw-toc
 *                                       generator, which harvests h2/h3/h4.
 *     #hw-solar .hw-article-in section a    (1,2,1) → button text
 *     #hw-solar .hw-article-in section p a  (1,2,2) → the sign-in links
 * So the anchor rules below carry matching specificity AND !important on
 * the colour, the same defensive pattern ls_account.css and
 * ls_paywall.css already use. White-on-gold is design-director §3 rule 2
 * and must not be able to regress.
 */

/* ── the band ──────────────────────────────────────────────────────────
 * Pulled UP over the last lines of the free content, with a gradient
 * scrim fading them into the page ground. That overlap is the whole
 * point: the reader can see the article continuing underneath, which is
 * what makes a paywall read as "there is more" rather than "the end".
 * It is presentational only — the paid text is physically absent from
 * the response (website/paywall/rewrite.js), never merely covered. */
#hw-solar .hw-gate {
  position: relative;
  margin: -96px 0 56px;
  padding-top: 128px;
}
#hw-solar .hw-gate::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 128px;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(11, 14, 20, 0) 0%,
    rgba(11, 14, 20, 0.72) 46%,
    rgba(11, 14, 20, 0.97) 78%,
    #0b0e14 100%);
}

/* ── the card ───────────────────────────────────────────────────────── */
#hw-solar .hw-gate-card {
  position: relative;
  text-align: center;
  padding: 44px 40px 40px;
  border: 1px solid rgba(172, 125, 70, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(172, 125, 70, 0.13) 0%, rgba(172, 125, 70, 0) 62%),
    rgba(19, 24, 34, 0.82);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.85);
}

/* The wordmark, same component as the header/footer (.hw-logo), just
 * centred and sized down. Reused, not rebuilt — design-director §1. */
#hw-solar .hw-gate-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 22px;
}
#hw-solar .hw-gate-logo .hw-logo-hoa {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  color: #fff;
  line-height: 1;
}
#hw-solar .hw-gate-logo .hw-logo-weekly {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

#hw-solar .hw-gate .hw-gate-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.22;
  color: #fbf9f4;
  margin: 0 auto 14px;
  max-width: 560px;
}
#hw-solar .hw-gate .hw-gate-sub {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 auto 26px;
  max-width: 520px;
}
#hw-solar .hw-gate .hw-gate-sub strong { color: var(--ink); font-weight: 600; }

/* The one button. Gold fill, WHITE text, gold-bright on hover only —
 * design-director §3 rules 1-2. */
#hw-solar .hw-gate a.hw-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 15px 30px;
  background: var(--gold);
  color: #fff !important;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
#hw-solar .hw-gate a.hw-gate-btn:hover,
#hw-solar .hw-gate a.hw-gate-btn:focus-visible {
  background: var(--gold-bright);
  color: #fff !important;
  box-shadow: 0 8px 22px -8px rgba(224, 160, 76, 0.65);
}
#hw-solar .hw-gate a.hw-gate-btn:active { transform: translateY(1px); }
#hw-solar .hw-gate a.hw-gate-btn:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 3px; }

#hw-solar .hw-gate .hw-gate-alt {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-dim);
  margin: 18px 0 0;
}
#hw-solar .hw-gate p.hw-gate-alt a {
  color: var(--gold) !important;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#hw-solar .hw-gate p.hw-gate-alt a:hover { color: var(--gold-bright) !important; }

#hw-solar .hw-gate .hw-gate-fine {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
#hw-solar .hw-gate p.hw-gate-fine a {
  color: var(--gold) !important;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#hw-solar .hw-gate p.hw-gate-fine a:hover { color: var(--gold-bright) !important; }

/* ── the subscriber's receipt ──────────────────────────────────────────
 * Green, never gold: gold means "buy", green means "you already have
 * it". Shown in place of the card for an entitled visitor. */
#hw-solar .hw-gate-active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 34px 0 40px;
  padding: 15px 20px;
  border: 1px solid rgba(113, 183, 132, 0.32);
  border-radius: 6px;
  background: rgba(113, 183, 132, 0.08);
  color: #a9d4b3;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  #hw-solar .hw-gate { margin: -72px 0 44px; padding-top: 104px; }
  #hw-solar .hw-gate::before { height: 104px; }
  #hw-solar .hw-gate-card { padding: 34px 22px 30px; }
  #hw-solar .hw-gate .hw-gate-title { font-size: 24px; }
  #hw-solar .hw-gate .hw-gate-sub { font-size: 15px; }
  #hw-solar .hw-gate a.hw-gate-btn { min-width: 0; width: 100%; }
}
