/* ==========================================================================
   INSIGHTS — the editorial section (index + articles)
   Layout after the "Silence" editorial study (CodePen, GemmaCroad, no licence
   stated): masthead rule, oversized hero split 2fr/1fr, a three-column body
   with a sticky section label, a pull-quote and a two-column close.
   Rebuilt in LifeSolutions.Work's own tokens — Space Grotesk, ink #111,
   orange #FF4500, 2px ink borders — so it reads as this site, not as theirs.
   Deliberately a different shape from /magazine: that page is a card grid of
   other people's stories; this one is a publication of our own.
   ========================================================================== */

.insights { background: #fff; }
.i-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* --- masthead: the publication rule -------------------------------------- */
.i-mast {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 20px; padding: 118px 0 20px; border-bottom: 2px solid var(--ink);
}
.i-mast h1, .i-mast .i-mast-h {
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--orange); margin: 0;
}
.i-mast .i-issue { font-size: 0.82rem; letter-spacing: 0.06em; color: #555; margin: 0; }

/* --- hero: the lead piece ------------------------------------------------ */
.i-hero {
    display: grid; grid-template-columns: 2fr 1fr; gap: 44px;
    padding: 56px 0 62px; border-bottom: 2px solid var(--ink);
}
.i-hero h1, .i-hero h2 {
    font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 500; line-height: 1.0;
    letter-spacing: -0.025em; margin: 0 0 20px; max-width: 22ch;
}
.i-hero h1 a, .i-hero h2 a { color: var(--ink); text-decoration: none; }
.i-hero h1 a:hover, .i-hero h2 a:hover { color: var(--orange); }
.i-stand {
    font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.5; color: #444;
    max-width: 46ch; margin: 0;
}
.i-hero-meta {
    display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
    font-size: 0.85rem; line-height: 1.6;
}
.i-hero-meta .i-tag {
    align-self: flex-start; border: 2px solid var(--ink); padding: 3px 10px;
    font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.i-hero-meta p { margin: 0; color: #333; }
.i-hero-meta p.i-dim { color: #777; }

.i-intro p { font-size: 1.06rem; line-height: 1.6; color: #333; margin: 0; }

/* --- the list of pieces -------------------------------------------------- */
.i-list { padding: 54px 0 10px; }
.i-row {
    /* Three columns, none of them empty. The date used to occupy its own 96px column between
       the thumbnail and the text, which read as a gap; it now sits above the headline inside
       the text column, so the only space left between thumbnail and text is the grid gutter. */
    display: grid; grid-template-columns: 168px 1fr 150px; gap: 14px;
    align-items: start; padding: 26px 0; border-bottom: 1px solid #e2e2e2;
}
.i-row:first-of-type { border-top: 1px solid #e2e2e2; }
.i-row .i-date { font-size: 0.8rem; letter-spacing: 0.08em; color: #666; margin-bottom: 2px; }
.i-row h3 { font-size: 1.32rem; font-weight: 600; line-height: 1.25; margin: 0 0 8px; }
.i-row h3 a { color: var(--ink); text-decoration: none; }
.i-row h3 a:hover { color: var(--orange); }
.i-row p { margin: 0; color: #555; font-size: 0.95rem; line-height: 1.55; }
.i-row .i-kind {
    font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: #666; text-align: right; padding-top: 6px;
}

/* --- how we write these -------------------------------------------------- */
.i-policy {
    display: grid; grid-template-columns: 1fr 4fr 2fr; gap: 40px;
    padding: 52px 0; border-bottom: 2px solid var(--ink);
}
.i-label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: #888; position: sticky; top: 104px; align-self: start;
}
.i-label::after {
    content: ""; display: block; width: 30px; height: 2px; background: var(--orange);
    margin-top: 9px;
}
.i-prose { max-width: 42rem; }
.i-prose p { margin: 0 0 17px; line-height: 1.68; }
.i-prose p:last-child { margin-bottom: 0; }
.i-prose h2 {
    font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em;
    margin: 34px 0 14px; max-width: 40ch;
}
.i-prose h2:first-child { margin-top: 0; }
.i-prose ol, .i-prose ul { margin: 0 0 18px; padding-left: 24px; }
.i-prose li { margin-bottom: 10px; line-height: 1.6; }
.i-prose strong { font-weight: 700; }
.i-aside { font-size: 0.9rem; line-height: 1.6; color: #333; }
.i-aside h3 {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink); margin: 0 0 12px;
}
.i-aside ul { list-style: none; margin: 0; padding: 0; }
.i-aside li { padding: 9px 0; border-bottom: 1px solid #e8e8e8; }
.i-aside li:last-child { border-bottom: 0; }

/* --- abstract art --------------------------------------------------------
   One composition per piece, generated from its slug (build_insights.abstract_art).
   Halftone dot fields in the house palette, faded through a seeded mask, with a couple
   of geometric marks. Deterministic, so an article keeps its own art; no text inside the
   SVG, so nothing in it can clip. */
.i-art {
    margin: 0 0 34px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
    overflow: hidden;
}
.i-art svg { display: block; width: 100%; height: 220px; }
.i-thumb { border: 2px solid var(--ink); overflow: hidden; }
.i-thumb svg { display: block; width: 100%; height: auto; }

/* --- figures -------------------------------------------------------------
   Two orientations, both inline with the body: one chart floats and lets the prose
   wrap around it, one landscape diagram takes the full measure at a section break.
   Everything is inline SVG with a halftone dot pattern - no external files, no
   raster resize, sharp at any width, and nothing invented: both figures plot a
   figure or an arrangement that is stated in the source the article cites. */
.i-fig { margin: 0; }
.i-fig svg { display: block; width: 100%; height: auto; }
.i-fig figcaption {
    font-size: 0.78rem; line-height: 1.55; color: #666; margin-top: 10px;
    letter-spacing: 0.01em; max-width: 46ch;
}
.i-fig--float {
    float: left; width: 44%; margin: 8px 28px 20px 0;
}
.i-fig--float figcaption { max-width: none; }
.i-fig--wide {
    clear: left; width: 100%; margin: 34px 0 30px;
}
.i-fig--wide figcaption { max-width: 58ch; }

/* --- pull quote ---------------------------------------------------------- */
.i-quote {
    border-left: 4px solid var(--orange); padding: 6px 0 6px 26px;
    margin: 36px 0; max-width: 42rem;
}
.i-quote p {
    font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.35;
    font-weight: 500; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--ink);
}
.i-quote cite { font-size: 0.8rem; letter-spacing: 0.06em; color: #666; font-style: normal; }

/* --- two-column close ---------------------------------------------------- */
.i-two { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }

/* --- sources + honesty blocks ------------------------------------------- */
.i-src {
    border-top: 1px solid #ddd; margin-top: 46px; padding-top: 22px;
    font-size: 0.84rem; line-height: 1.75; color: #555;
}
.i-src h3 {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink); margin: 0 0 12px;
}
.i-src ol { margin: 0; padding-left: 20px; }
.i-src a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); }
.i-claim {
    border: 2px solid var(--ink); padding: 22px 24px; margin: 34px 0 0;
    max-width: 42rem; font-size: 0.92rem; line-height: 1.65;
}
.i-claim h3 {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; margin: 0 0 10px; color: var(--orange);
}
.i-claim p { margin: 0 0 10px; }
.i-claim p:last-child { margin-bottom: 0; }

/* --- related + CTA ------------------------------------------------------ */
.i-rel { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.i-rel a {
    border: 2px solid var(--ink); padding: 9px 16px; font-size: 0.85rem;
    font-weight: 600; color: var(--ink); text-decoration: none;
}
.i-rel a:hover { background: var(--ink); color: #fff; }
.i-cta {
    margin-top: 34px; padding: 26px 28px; border: 2px solid var(--ink);
    background: #fffbe8; max-width: 42rem;
}
.i-cta p { margin: 0 0 8px; line-height: 1.6; }
.i-cta p:last-child { margin-bottom: 0; }
.i-cta strong { font-weight: 700; }

/* --- credit -------------------------------------------------------------- */
.i-credit {
    font-size: 0.78rem; color: #777; padding: 22px 0 8px; line-height: 1.6;
}
.i-credit a { color: #555; }

@media (max-width: 900px) {
    .i-wrap { padding: 0 20px; }
    .i-mast { padding-top: 96px; flex-direction: column; gap: 6px; }
    .i-hero { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 44px; }
    .i-hero h1, .i-hero h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .i-policy { grid-template-columns: 1fr; gap: 20px; padding: 38px 0; }
    .i-label { position: static; }
    .i-row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
    .i-thumb { max-width: 240px; }
    .i-row .i-kind { text-align: left; padding-top: 0; }
    .i-two { grid-template-columns: 1fr; gap: 24px; }
    .i-fig--float { float: none; width: 100%; margin: 26px 0; }
    .i-label { top: 92px; }
}

/* --- FAQ (article pages) -------------------------------------------------
   The visible Q&A is rendered by build_insights.faq_from_config(), which reads the
   SAME array seo/build_seo.py turns into FAQPage schema — one list, so the markup
   cannot assert a question a reader cannot see. */
.i-faq { margin: 4px 0 18px; max-width: 42rem; }
.i-faq dt {
    font-weight: 700; font-size: 1.02rem; line-height: 1.45;
    margin: 22px 0 6px; color: var(--ink);
}
.i-faq dt:first-child { margin-top: 0; }
.i-faq dd { margin: 0; color: #333; line-height: 1.68; }

/* the honesty note can carry a list (the deepfake piece states five limits) */
.i-claim ol { margin: 10px 0 0; padding-left: 20px; }
.i-claim li { margin-bottom: 8px; line-height: 1.58; }
