/* ==========================================================================
   ADNAN KABIR — resources.css
   Loaded ONLY by resources.html. Every selector here is new or duplicated
   from about.css/case-studies.css/work-with-me.css (never imported directly,
   per the page-isolation rule), so no other page can be affected.

   Reuses existing components — .hero, .kicker, .chip, .link-arrow, .btn,
   .briefing (+ .field, .field__row, .field__input — main.js's newsletter
   handler works unmodified via [data-newsletter]), .finale, .footer — plus
   a handful of page-specific pieces (publication cards, collection cards,
   the category filter, the premium band) with no equivalent elsewhere.
   ========================================================================== */

/* ---------- Generic section wrapper --------------------------------------
   Duplicated from about.css / case-studies.css / work-with-me.css rather
   than shared, to keep each page's stylesheet independent. */

.page-section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--rule);
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .h2 { margin-bottom: .2em; }

/* ---------- Library hero ----------------------------------------------------
   Single column below 1024px, 60/40 with a sample card above it — the same
   shape as free-audit.html / case-studies.html's hero. Duplicated rather
   than shared so each page's stylesheet stays independent. */

.hero--archive {
  min-height: 0;
  padding: clamp(9rem, 20vh, 12rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero--archive .hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero--archive .hero__copy { max-width: 46rem; }
.hero--archive .hero__lede { max-width: 58ch; }

@media (min-width: 1024px) {
  .hero--archive .hero__inner {
    grid-template-columns: 60% 40%;
    column-gap: 0;
  }
  .hero--archive .hero__copy {
    max-width: none;
    padding-right: clamp(2rem, 4vw, 4rem);
  }
  .hero--archive .hero__visual { place-items: center stretch; }
}

/* ---------- Sample publication plate ----------------------------------------
   Sits in the hero's right column, the same slot and visual language as
   free-audit.html's sample report card — an elevated card rather than
   accent-tinted, so it reads as a literal document. Duplicated from
   free-audit.css. */

.report-card {
  width: 100%;
  max-width: 26rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.report-card__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
}
.report-card__title {
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}
.report-card .redact-lines { margin-bottom: 1.75rem; }
.report-card__foot {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
}

.hero__stat {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .6rem;
  color: var(--ink-3);
}
.hero__stat-num { color: var(--accent-text); }

/* Same descender fix as contact.css / free-audit.css / work-with-me.css:
   .display's line-height .96 clips the stroke-word's paintable box short of
   the font's true descent. "diagnosed" carries a "g" tail that needs the
   room. */
.hero--archive .stroke-word {
  padding-block: .12em;
  margin-block: -.12em;
}

/* ---------- Shared card atoms: dot list, footer row ------------------------
   Used by both .pub-card ("You'll Learn") and .coll-card ("Includes"). */

.dot-list { display: grid; gap: .5rem; }
.dot-list li {
  position: relative; padding-left: 1.15rem;
  color: var(--ink-2); font-size: .875rem;
}
.dot-list li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- § Featured / § The Complete Library — publication cards -------- */

.pub-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 760px) {
  .pub-grid--two   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .pub-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pub-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out);
}
.pub-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pub-card--feat { background: var(--accent-soft); border-color: var(--accent-line); }
.pub-card.is-hidden { display: none; }

.pub-card__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.pub-card__num { color: var(--ink-3); }
.pub-card__title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  margin-bottom: .5rem;
}
.pub-card__desc { color: var(--ink-2); font-size: .9375rem; margin-bottom: 1.25rem; text-wrap: pretty; }
.pub-card__block { margin-bottom: 1.1rem; }
.pub-card__block p:not(.case__k) { color: var(--ink-2); font-size: .875rem; }
.pub-card__block .dot-list { margin-top: .5rem; }

.pub-card__foot {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.pub-card__pages { color: var(--ink-3); font-size: .8125rem; }
.pub-card__price {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.pub-card__price-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ink);
}
.pub-card__price-tag--free { color: var(--accent-text); }

/* ---------- § Collections --------------------------------------------------- */

.coll-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
@media (min-width: 900px) { .coll-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.coll-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.coll-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.coll-card__eyebrow { color: var(--accent-text); margin-bottom: .85rem; }
.coll-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem; font-weight: 700; font-stretch: 96%;
  letter-spacing: -.015em;
  margin-bottom: 1.1rem;
}
.coll-card .dot-list { margin-bottom: 1.5rem; }
.coll-card__foot {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.coll-card__count { color: var(--ink-3); font-size: .8125rem; }

/* ---------- § The Complete Library — category filter ------------------------
   Enhanced by js/resources.js; without JS every card stays visible, so the
   page degrades gracefully. */

.ftabs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.ftab {
  min-height: 2.5rem;
  padding: .5rem 1rem;
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color var(--t-fast) linear, color var(--t-fast) linear, background-color var(--t-fast) linear;
}
.ftab:hover { border-color: var(--accent-line); color: var(--ink); }
.ftab[aria-pressed='true'] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }

/* ---------- Premium band ---------------------------------------------------- */

.premium {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--rule);
  background: radial-gradient(75% 70% at 15% 50%, var(--accent-soft) 0%, transparent 70%);
}
.premium__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1024px) {
  .premium__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
.premium__copy .h2 { margin-bottom: .5em; }
.premium__copy .lede { max-width: 50ch; margin-bottom: 1.5rem; }
.premium__price {
  display: flex; align-items: baseline; gap: .5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}
.premium__price small { font-size: .9375rem; font-weight: 500; color: var(--ink-3); }
.premium__note { color: var(--ink-3); font-size: .9375rem; margin-bottom: 1.75rem; }

.incl-card {
  padding: clamp(1.75rem, 4vw, 2.25rem);
  background: var(--elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.incl-card__head { color: var(--accent-text); margin-bottom: 1.25rem; }
.incl-row {
  display: flex; align-items: baseline; gap: .85rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
}
.incl-row:last-child { border-bottom: 0; padding-bottom: 0; }
.incl-row__val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--accent-text);
  min-width: 2.25rem;
}
.incl-row__lbl { color: var(--ink-2); font-size: .9375rem; }

/* ---------- Final CTA ------------------------------------------------------
   .finale is shared/frozen; the pre-title note is page-scoped. Duplicated
   from case-studies.css / work-with-me.css. */

.finale__pre {
  color: var(--ink-3);
  font-size: .9375rem;
  max-width: 52ch;
  text-wrap: pretty;
}
.finale__row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
}
.finale__or { color: var(--ink-3); }
@media (max-width: 420px) { .finale__row .btn { width: 100%; } }
