/* ============================================================================
   05-library.css — TEMPLATE-LAB PROPOSED EXTENSION LAYER
   ----------------------------------------------------------------------------
   Everything in this file is a PROPOSED EXTENSION (per the project's binding
   rule: new modules compose ONLY from existing primitives, modules, styles and
   tokens; gaps are named, never improvised). Composed exclusively from the
   frozen tokens (01-foundations.css), the approved type roles
   (design-system/COMPONENT-CONTRACTS.md §1) and the approved motion vocabulary
   (M5 underline hover, D-M6 gold focus ring). No new colours, radii, shadows,
   durations or easings.

   Contents:
   §1 .ed   — editorial band (eyebrow → h2 → lead → row grid) used by the
              About / Insights / Contact samples. Page roles: intro, values,
              contact channels. Ground is always light (white); author
              data-header-contrast="light".
   §2 .ix   — insights article index rows (label + title + arrow per row),
              used by the Insights sample. Reuses the cs__strip pill row
              (03-sections.css) for topic navigation; the strip's own default
              geometry (incl. its translate offset) is kept.

   Owner approval pending: promote to the shared system or retire after review.
   ============================================================================ */

/* §1 editorial band — .ed ------------------------------------------------- */
/* Band shell: white ground, content-box measure, section-space rhythm
   (tokens only — the same rhythm every approved band uses). */
.ed{background:var(--surface-default);}
.ed__inner{max-width:var(--content-box);margin-inline:auto;padding:var(--section-space) var(--gutter);}
/* Eyebrow rides the approved .label role (500, +.12em, uppercase, muted). */
.ed__title{margin-top:18px;}
/* Lead keeps the approved reading width + 1.25rem role from foundations. */
.ed .lead{margin-top:24px;}
/* Row grid: 1 column ≤639, 3 columns ≥640 (the site's own band boundaries). */
.ed__rows{margin-top:var(--section-space);display:grid;grid-template-columns:1fr;gap:40px 40px;}
@media (min-width:640px){ .ed__rows{grid-template-columns:repeat(3,1fr);} }
/* Row: hairline top rule = 1px ink at reduced opacity (the site's hairline idiom),
   h3 keeps the approved h3 role (500), body stays Regular 400. */
.ed__row{border-top:1px solid color-mix(in srgb, var(--color-timber) 20%, transparent);padding-top:22px;}
.ed__row h3{font-weight:500;}
.ed__row p{margin-top:12px;color:var(--text-primary);}
/* Row links (contact channels): ink links, underline hover — M5 family;
   focus = canonical gold ring (D-M6). */
.ed__row a{color:var(--color-outer-space);text-decoration:none;}
.ed__row a:hover{text-decoration:underline;text-underline-offset:4px;}
.ed__row a:focus-visible{outline:2px solid #f0d074;outline-offset:3px;}

/* §2 insights index — .ix -------------------------------------------------- */
/* Band shell mirrors .ed (white ground, content box). */
.ix{background:var(--surface-default);}
.ix__inner{max-width:var(--content-box);margin-inline:auto;padding:var(--section-space) var(--gutter);}
/* Article row: hairline top rule, label / title / arrow on one line.
   Title uses the case-title role (32 mobile → 40 desktop, 700, uppercase). */
.ix__row{display:grid;grid-template-columns:1fr;align-items:center;gap:10px 24px;
  padding:26px 0;border-top:1px solid color-mix(in srgb, var(--color-timber) 20%, transparent);
  color:inherit;text-decoration:none;}
@media (min-width:640px){ .ix__row{grid-template-columns:200px 1fr 30px;} }
.ix__label{font-size:.875rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);}
.ix__title{font-size:clamp(32px,4vw,40px);line-height:1.1;font-weight:700;text-transform:uppercase;color:#1a2b2b;}
.ix__arrow{width:30px;height:auto;justify-self:end;}
/* Hover = M5 underline on the title (the approved navigation-family pattern);
   no new motion. Focus = canonical gold ring (D-M6). */
.ix__row:hover .ix__title{text-decoration:underline;text-underline-offset:6px;}
.ix__row:focus-visible{outline:2px solid #f0d074;outline-offset:3px;}
/* §3 case index — .case-index --------------------------------------------- */
/* Records 1230262216 (About: t812 under "Some of the brands…"; Services: the
   same t812 under "See more case studies"). Rows are shared; each page owns
   its own heading element above them. */
.case-index { background: var(--surface-default); padding-block: 46px 60px; }
.case-index__title {
  margin: 0 0 34px;
  color: var(--color-timber, #1a2b2b);
  font-weight: 800;
  font-size: 30px;
  line-height: 30px;
  max-width: 730px;
}
.case-index__list { margin: 0; padding: 0; list-style: none; }
.case-index__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 18px 0 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-timber) 28%, transparent);
  color: inherit;
  text-decoration: none;
}
.case-index__name {
  color: var(--color-timber, #1a2b2b);
  font-size: 16px;
  line-height: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.case-index__cta {
  color: var(--color-timber, #1a2b2b);
  font-size: 16px;
  line-height: 21px;
  font-weight: 700;
  text-align: right;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.case-index__meta {
  grid-column: 1 / -1;
  color: var(--color-sirocco, #6a787b);   /* source #888 → 3.54:1; sirocco is 4.63:1 */
  font-size: 14px;
  line-height: 20px;
}
.case-index__meta b { color: var(--color-timber, #1a2b2b); font-weight: 700; }
.case-index__row:hover .case-index__name,
.case-index__row:hover .case-index__cta { text-decoration: underline; text-decoration-thickness: 2px; }
.case-index__row:focus-visible { outline: 2px solid var(--color-accent, #f0d074); outline-offset: 3px; }

.case-index__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 40px;
  padding: 0 26px;
  background: var(--color-timber, #1a2b2b);
  color: #dde2e5;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease-in-out;
}
.case-index__more:hover { background: var(--color-outer-space, #363f43); }
.case-index__more:focus-visible { outline: 2px solid var(--color-accent, #f0d074); outline-offset: 3px; }

@media (min-width: 640px) {
  .case-index { padding-block: 50px 70px; }
  .case-index__title { font-size: 60px; line-height: 60px; margin-bottom: 40px; max-width: 900px; }
  .case-index__row { padding: 20px 0 18px; }
  .case-index__name, .case-index__cta { font-size: 18px; line-height: 24px; }
  .case-index__meta { font-size: 16px; line-height: 24px; }
  .case-index__more { min-height: 58px; font-size: 18px; }
}

@media (min-width: 1200px) {
  .case-index { padding-block: 60px 90px; }
  .case-index__title { font-size: 100px; line-height: 100px; margin-bottom: 46px; max-width: 1000px; }
  .case-index__row { padding: 16px 0 15px; }
  .case-index__name, .case-index__cta { font-size: 20px; line-height: 26px; }
  .case-index__meta { font-size: 20px; line-height: 26px; }
  .case-index__more { min-height: 60px; margin-top: 56px; padding: 0 30px; font-size: 18px; }
}
