/* ─────────────────────────────────────────────────────────────────────
   SvarKlar - /resources/ hub + the 5 article pages.

   The hub: a photo hero (.t-hero-bg / .t-hero-overlay), a 3-column grid of
   light guide cards on cream, then the shared .t-final closing band.
   An article: a cream title block (.t-res-titleblock - h1 + sub + one
   byline line + a /start/ CTA + a hairline divider, no photo), a single
   centered prose column on cream (a "Quick answer" callout at the top,
   then the article body verbatim), then a "Next step" closing block.
   The article pages carry body.t-res-article so the otherwise-transparent
   .t-header is pinned to a dark bar (it sits on cream, not a photo).

   Mirrors /about's photo hero (hub) and /privacy's "port a legacy page to
   the new design system" pattern (the article title block + dark-pinned
   header echo legal.css's .legal-page / .legal-head). Loaded after
   tokens.css + components.css + site.css (via head-assets partial).
   The legacy style.css and its .resources-* / .article-* rules have since
   been retired; all classes here are t-res-* by convention.
   ───────────────────────────────────────────────────────────────────── */


/* ── Page shell ───────────────────────────────────────────────────── */
/* Set the surface to the design-system cream; each section below carries
   its own clearance for the new fixed header. */
body {
  background: var(--arc-2);
  color: var(--ink);
  padding-top: 0;
}

/* Article pages sit on cream (no photo hero), so the otherwise-transparent
   .t-header is unreadable. Pin it to a dark bar - same recipe legal.css
   uses for /privacy + /terms. The hub keeps its photo hero, so it does NOT
   carry body.t-res-article and its header stays transparent-at-top. */
body.t-res-article .t-header,
body.t-res-article .t-header.is-scrolled {
  background: rgba(12, 13, 15, 0.94);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(245, 240, 230, 0.10);
}


/* ════════════════════════════════════════════════════
   1. PHOTO HERO  (hub only)

   Same recipe as /about: a <picture> bg behind a dark overlay,
   a centered H1 + sub + one CTA. The article pages use the cream
   title block in section 1b instead.
   ════════════════════════════════════════════════════ */
.t-res-hero {
  position: relative;
  min-height: 480px;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
}
.t-res-hero picture { display: contents; }   /* hero bg is a <picture> (avif/webp); keep it transparent to layout */
.t-res-hero .t-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.t-res-hero .t-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 46%, rgba(8,8,10,0.56) 0%, rgba(8,8,10,0.24) 70%, rgba(8,8,10,0.10) 100%),
    linear-gradient(180deg, rgba(8,8,10,0.52) 0%, rgba(8,8,10,0.30) 34%, rgba(8,8,10,0.38) 66%, rgba(8,8,10,0.60) 100%);
}
.t-res-hero-inner {
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 184px 32px 96px;          /* generous clearance below the fixed header */
  max-width: 880px; margin: 0 auto;
}
.t-res-hero .t-hero-h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.022em;
  color: var(--cream);
  margin: 0 0 20px;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 2px 14px rgba(0,0,0,0.30);
}
.t-res-hero-sub {
  margin: 0 auto 30px;
  max-width: 60ch;
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--cream);
  font-weight: 400;
  text-wrap: pretty;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 14px rgba(0,0,0,0.5);
}

/* Article hero byline: one quiet line (By SvarKlar / date / for <reader>) */
.t-res-hero-byline {
  margin: 0 0 28px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--body-on-dark);
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}

.t-res-hero-cta { margin: 0; }


/* ════════════════════════════════════════════════════
   1b. ARTICLE TITLE BLOCK  (articles only)

   Replaces the photo hero on the 5 article pages: a cream block that
   sits on the page surface (no <picture>, no overlay, no dark bg).
   Generous top padding clears the fixed header, like legal.css's
   .legal-page; the H1 mirrors legal.css's .legal-head h1. Ends with a
   hairline divider before the prose column below.
   ════════════════════════════════════════════════════ */
.t-res-titleblock {
  background: var(--arc-2);
  padding: 152px 24px 0;             /* top clears the fixed header (matches .legal-page) */
}
.t-res-titleblock-h1 {
  font-family: var(--heading-font);
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  letter-spacing: var(--h1-ls);
  line-height: var(--h1-lh);
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.t-res-titleblock-sub {
  margin: 0 0 18px;
  max-width: 60ch;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}
.t-res-titleblock-byline {
  margin: 0 0 26px;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(26, 26, 26, 0.50);
}
.t-res-titleblock .t-cta { margin: 0; }
.t-res-titleblock-rule {
  height: 1px;
  margin: 56px 0 0;
  background: rgba(28, 24, 12, 0.16);
}


/* ════════════════════════════════════════════════════
   2. READING BODY  (cream, centered column)

   Used on both the hub (the guide grid lives here) and the
   articles. Switzer headings, gold inline links + list markers.
   ════════════════════════════════════════════════════ */
.t-res-body {
  background: var(--arc-2);
  padding: 88px 24px 104px;
}
.t-res-col {
  max-width: 760px;
  margin: 0 auto;
}
/* the hub guide grid wants more room than the 760px reading column;
   widen the column when it holds the grid (the article prose keeps 760). */
.t-res-body .t-res-col:has(.t-res-grid) { max-width: 1040px; }


/* ── Hub: section intro (above the grid) ──────────────────────────── */
.t-res-list-head {
  margin: 0 0 40px;
  max-width: 760px;
}
.t-res-list-head h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 10px;
  text-wrap: balance;
}
.t-res-list-head p {
  font-size: 1.075rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}


/* ── Hub: 3-column guide grid (5 cards -> 3 + 2) ──────────────────── */
.t-res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.t-res-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-default) var(--ease-standard),
              box-shadow var(--dur-default) var(--ease-standard),
              border-color var(--dur-default) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .t-res-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(107, 82, 18, 0.45);
  }
}
.t-res-card-title {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.28;
  color: var(--ink);
  text-decoration: none;
  text-wrap: balance;
  transition: color var(--dur-default) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .t-res-card:hover .t-res-card-title,
  .t-res-card-title:hover { color: var(--gold-ink); }
}
.t-res-card-summary {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 10px 0 0;
  text-wrap: pretty;
  flex: 1;
}
.t-res-card-date {
  display: block;
  margin: 16px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(26, 26, 26, 0.48);          /* small + faint */
}


/* ── Hub: closing .t-final band (extends site.css .t-final) ───── */
/* The "see services and pricing" secondary link sits under the gold CTA
   on the dark band; light text, gold underline. */
.t-res-final-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 217, 126, 0.4);
  transition: border-color var(--dur-default) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .t-res-final-link:hover { border-bottom-color: var(--gold); }
}


/* ── "Quick answer" callout (top of an article's prose column) ────── */
.t-res-quickanswer {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-md);
  padding: 22px 24px 18px;
  margin: 0 0 40px;
  box-shadow: var(--shadow-xs);
}
.t-res-quickanswer h2 {
  font-family: var(--heading-font);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 10px;
}
.t-res-quickanswer p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.t-res-quickanswer ul {
  list-style: disc;
  margin: 0;
  padding-left: 22px;
}
.t-res-quickanswer li {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 6px;
}
.t-res-quickanswer li::marker { color: var(--gold-ink); }
.t-res-quickanswer li:last-child { margin-bottom: 0; }


/* ── Article prose ────────────────────────────────────────────────── */
/* Reading styles are scoped under .t-res-prose: list markers, link
   underlines, and heading weights for long-form copy. */
.t-res-prose {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}
.t-res-prose > p:first-child {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 16px;
}
.t-res-prose h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 44px 0 14px;
  text-wrap: balance;
}
.t-res-prose h3 {
  font-family: var(--heading-font);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 28px 0 10px;
}
.t-res-prose p { margin: 0 0 16px; }
.t-res-prose ul,
.t-res-prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.t-res-prose ul { list-style: disc; }
.t-res-prose ol { list-style: decimal; }
.t-res-prose li { margin-bottom: 8px; }
.t-res-prose li::marker { color: var(--gold-ink); }
.t-res-prose strong { color: var(--ink); font-weight: 600; }
.t-res-prose em {
  /* article-body <em> are plain phrase emphasis (quoted homeowner lines),
     not the Caveat brand accent. Keep them as quiet italics. */
  font-family: var(--body-font);
  font-style: italic;
  font-weight: 400;
  font-size: 1em;
  letter-spacing: 0;
  color: var(--ink);
  line-height: inherit;
}

/* Inline links: deep bronze text + matching soft underline (gold-ink). */
.t-res-prose a {
  color: var(--gold-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 82, 18, 0.42);
  transition: border-color var(--dur-default) var(--ease-standard),
              background-color var(--dur-default) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .t-res-prose a:hover {
    border-bottom-color: var(--gold-ink);
    background: var(--gold-wash);
  }
}

/* The body's own .article-signoff block (kept verbatim inside .t-res-prose).
   Re-assert on-cream reading colours since the article surface is cream,
   not the dark surface the signoff was originally written for. */
.t-res-prose .article-signoff {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(28, 24, 12, 0.14);
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.7;
}
.t-res-prose .article-signoff p { margin: 0 0 12px; color: var(--ink); }
.t-res-prose .article-signoff p:last-child { margin-bottom: 0; }
.t-res-prose .article-signoff a {
  color: var(--gold-ink);
  border-bottom: 1px solid rgba(107, 82, 18, 0.42);
}
@media (hover: hover) and (pointer: fine) {
  .t-res-prose .article-signoff a:hover {
    border-bottom-color: var(--gold-ink);
    background: var(--gold-wash);
  }
}


/* ── Article: "Next step" closing block (below the prose) ─────────── */
.t-res-next {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 28px 28px 26px;
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.t-res-next h3 {
  font-family: var(--heading-font);
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  letter-spacing: var(--h3-ls);
  line-height: var(--h3-lh);
  color: var(--ink);
  margin: 0 0 8px;
}
.t-res-next p {
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.t-res-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.t-res-next-link {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--gold-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 82, 18, 0.42);
  transition: border-color var(--dur-default) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .t-res-next-link:hover { border-bottom-color: var(--gold-ink); }
}


/* ════════════════════════════════════════════════════
   3. RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .t-res-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .t-res-hero-inner { padding: 138px 20px 76px; }
  .t-res-hero .t-hero-h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .t-res-hero-sub { font-size: 1.06rem; }

  .t-res-titleblock { padding: 104px 18px 0; }
  .t-res-titleblock-sub { font-size: 1.06rem; }
  .t-res-titleblock-rule { margin-top: 40px; }

  .t-res-body { padding: 64px 18px 80px; }
  .t-res-list-head { margin-bottom: 30px; }

  .t-res-quickanswer { padding: 18px 18px 16px; margin-bottom: 32px; }
  .t-res-prose { font-size: 1.02rem; }
  .t-res-prose > p:first-child { font-size: 1.1rem; }
  .t-res-prose h2 { font-size: 1.32rem; margin-top: 36px; }

  .t-res-next { padding: 22px 20px; margin-top: 44px; }

  .t-res-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════
   4. ARTICLE TITLE BLOCK with photo on the right
      (the .t-res-titleblock-side modifier; every article uses it)
   ════════════════════════════════════════════════════ */
.t-res-titleblock-side {
  padding-top: 132px;
}
.t-res-titleblock-side .t-res-titleblock-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.t-res-titleblock-side .t-res-titleblock-rule {
  max-width: 1080px;
  margin: 56px auto 0;
}
.t-res-titleblock-side .t-res-titleblock-content > h1,
.t-res-titleblock-side .t-res-titleblock-content > p { max-width: none; }
.t-res-titleblock-photo {
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}
.t-res-titleblock-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
@media (max-width: 1100px) {
  .t-res-titleblock-side .t-res-titleblock-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .t-res-titleblock-side { padding-top: 104px; }
}


/* ════════════════════════════════════════════════════
   5. HUB CARD THUMBNAIL  (one photo per card on the 3-col grid;
      every .t-res-card is now an <a> wrapping a picture + body)
   ════════════════════════════════════════════════════ */
.t-res-card {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.t-res-card-thumb {
  display: block;
  position: relative;
  overflow: hidden;
}
.t-res-card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-default) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .t-res-card:hover .t-res-card-thumb img { transform: scale(1.03); }
}
.t-res-card-body {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  flex: 1;
}
.t-res-card-body .t-res-card-title { margin: 0; }
.t-res-card-body .t-res-card-summary { margin-top: 10px; }
.t-res-card-body .t-res-card-date { margin-top: 16px; }
