/* insights.css: every Insights page, the director's (the index links it as its own; the categories and the articles
   get it from src\partials\head.mjs). Reading pages, light on the phone: one still photo each, no clip and no scene.
   Each claim type carries its year: twelve months, lit where its claims peak (as on the home page's claim cards). */

/* ---------- a claim type's year ---------- */
.ins-strip { display: inline-grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; width: 84px; height: 12px; flex: none; vertical-align: middle; }
.ins-strip i { border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.ins-strip i[data-s="o"] { background: color-mix(in srgb, var(--c-brand) 42%, transparent); }
.ins-strip i[data-s="p"] { background: var(--c-brand); }
.ins-strip--small { width: 56px; height: 9px; gap: 1.5px; }

/* the categories, as links */
.ins-topics ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ins-topics a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--c-hair-strong); background: rgba(7, 9, 12, 0.72); color: var(--c-paper); font: 500 var(--fs-small)/1.2 var(--font-ui); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.ins-topics a:hover { border-color: var(--c-brand); background: rgba(0, 200, 255, 0.1); }
.ins-topics__title { margin: 0 0 14px; font: 600 var(--fs-h3)/1.2 var(--font-display); color: var(--c-brand); }
.ins-topics--foot { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--c-hair); }

/* ---------- the index's header: the newest article's photo, still, graded toward the words ---------- */
.ins-hero { position: relative; overflow: clip; display: grid; align-items: end; min-height: clamp(640px, 92svh, 900px); padding: clamp(128px, 12vw, 160px) 0 clamp(56px, 6vw, 88px); }
.ins-hero__media { position: absolute; inset: 0; margin: 0; }
.ins-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.ins-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.8) 38%, rgba(0, 0, 0, 0.25) 72%, rgba(0, 0, 0, 0.1)), linear-gradient(0deg, #000 0, rgba(0, 0, 0, 0) 26%), linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0) 22%); }
.ins-hero__in { position: relative; z-index: 1; width: 100%; box-sizing: border-box; max-width: calc(var(--max-w) + 2 * var(--gutter)); }
.ins-hero__words { max-width: 620px; }
.ins-hero h1 { margin: 0 0 18px; font-size: clamp(2.3rem, 1.3rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.026em; }
.ins-hero__line { margin: 0 0 28px; max-width: 52ch; color: var(--c-text-soft); font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); }
.ins-hero__lead { display: grid; gap: 8px; margin-top: 32px; padding: 20px 22px; border-radius: var(--radius-m); border: 1px solid var(--c-hair-strong); background: rgba(7, 9, 12, 0.78); color: var(--c-paper); text-decoration: none; transition: border-color 0.2s; }
.ins-hero__lead:hover { border-color: var(--c-brand); }
.ins-hero__cat { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.2 var(--font-ui); color: var(--c-brand-on-ink); }
.ins-hero__title { font: 600 clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem)/1.25 var(--font-display); letter-spacing: -0.01em; }
.ins-hero__meta { font: 400 14px/1.3 var(--font-ui); color: var(--c-text-soft); }
/* F3.12: each article's excerpt under its title (the cards' .ins-card__lede, the lead's, the article's own) */
.ins-hero__lede { color: var(--c-text-soft); font-size: var(--fs-small); line-height: 1.45; }
.art__lede { margin: -4px 0 18px; max-width: 62ch; color: var(--c-text-soft); font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); line-height: 1.5; }
.ins-hero__feed { margin: 18px 0 0; font: 500 14px/1.3 var(--font-ui); }
.ins-hero__feed a { color: var(--c-text-soft); }

/* ---------- article cards ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ins-card { min-width: 0; }
.ins-card__link { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--c-hair); background: var(--c-panel); color: var(--c-paper); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.ins-card__link:hover { border-color: var(--c-brand); transform: translateY(-2px); }
.ins-card__photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-panel-2); }
.ins-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ins-card__body { display: grid; align-content: start; gap: 10px; padding: 18px 20px 22px; }
.ins-card__cat { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.2 var(--font-ui); color: var(--c-brand-on-ink); }
.ins-card__title { font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.ins-card__lede { color: var(--c-text-soft); font-size: var(--fs-small); }
.ins-card__meta { font: 400 14px/1.3 var(--font-ui); color: var(--c-text-soft); }

/* ---------- the next step under every page: the audit and the calculator, beside the lit year ---------- */
.ins-next__box { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 48px); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-l); border: 1px solid var(--c-hair); background: radial-gradient(70% 120% at 0% 50%, rgba(0, 200, 255, 0.1), rgba(0, 200, 255, 0) 60%), var(--c-panel); }
.ins-next__ring { width: 200px; height: 200px; }
.ins-next__ring line { stroke: var(--c-brand); stroke-width: 1.6; }
.ins-next__words h2 { margin: 0 0 10px; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
.ins-next__words p { margin: 0; color: var(--c-text-soft); }
.ins-next__acts { display: grid; gap: 18px; justify-items: start; }
.ins-next__calc { font-size: var(--fs-small); }

/* ---------- a category's header: its photo through its year ---------- */
.ins-cat { padding-top: clamp(112px, 11vw, 148px); }
.ins-cat h1 { margin: 0 0 14px; font-size: clamp(2.3rem, 1.3rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.026em; }
.ins-cat__line { margin: 0 0 clamp(28px, 3vw, 40px); max-width: 62ch; color: var(--c-text-soft); font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); }
.ins-cat__window { position: relative; margin: 0; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius-l); background: var(--c-panel-2); }
.ins-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ins-cat__months { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.ins-cat__months > span { position: relative; display: grid; align-items: end; justify-items: center; padding-bottom: 14px; box-shadow: inset 0 0 0 2px #000; }
.ins-cat__months > span[data-s="-"] { background: rgba(0, 0, 0, 0.86); }
.ins-cat__months > span[data-s="o"] { background: rgba(0, 0, 0, 0.5); }
.ins-cat__months > span[data-s="p"]::before { content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 4px; background: var(--c-brand); box-shadow: 0 0 12px var(--c-glow); }
.ins-cat__months b { font: 600 13px/1 var(--font-ui); color: var(--c-paper); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.ins-cat__months > span[data-s="-"] b { color: var(--c-text-faint); text-shadow: none; }
.ins-cat__l { display: none; }
.ins-cat__busy { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font: 500 var(--fs-small)/1.3 var(--font-ui); color: var(--c-text-soft); }

/* ---------- an article ---------- */
.art { padding: clamp(112px, 11vw, 148px) 0 clamp(48px, 6vw, 80px); }
.art__wrap { max-width: 1040px; }
.art__head { max-width: 860px; }
.art__cat { display: inline-flex; align-items: center; gap: 10px; }
.art__cat a { color: var(--c-brand-on-ink); text-decoration: none; }
.art__cat a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art h1 { margin: 0 0 18px; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.024em; }
.art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 clamp(28px, 4vw, 40px); font: 400 var(--fs-small)/1.4 var(--font-ui); color: var(--c-text-soft); }
.art__photo { margin: 0 0 clamp(32px, 4vw, 48px); aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-l); background: var(--c-panel-2); }
.art__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art__text { max-width: 68ch; font-size: 1.0625rem; line-height: 1.7; color: rgba(255, 255, 255, 0.86); }
.art__text p { margin: 0 0 1.2em; }
.art__text h2 { margin: 1.8em 0 0.6em; font: 600 clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem)/1.25 var(--font-display); letter-spacing: -0.015em; color: var(--c-brand); }
.art__text h3 { margin: 1.5em 0 0.5em; font: 600 1.2rem/1.3 var(--font-display); color: var(--c-paper); }
.art__text ul, .art__text ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.art__text li { margin: 0 0 0.5em; }
.art__text li::marker { color: var(--c-brand); }
.art__text strong { color: var(--c-paper); }
.art__text a { color: var(--c-brand-on-ink); text-decoration: underline; text-underline-offset: 3px; }
.art__text blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--c-brand); font-size: 1.15rem; color: var(--c-paper); }
.art__text blockquote p { margin: 0; }
.art__figure { margin: 1.6em 0; }
.art__figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); }
.art__figure figcaption { margin-top: 8px; font-size: 14px; color: var(--c-text-soft); }
/* a table in an article (F4.3, Arnold's study): in a box of its own, which scrolls inside itself if it ever must */
.art__table { margin: 1.6em 0; border: 1px solid var(--c-hair); border-radius: var(--radius-m); background: var(--c-panel); overflow-x: auto; }
.art__table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.art__table th { padding: 12px 14px; text-align: left; vertical-align: bottom; font: 600 0.95rem/1.4 var(--font-ui); color: var(--c-brand); border-bottom: 1px solid var(--c-hair-strong); }
.art__table td { padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--c-hair); overflow-wrap: anywhere; }
.art__table tr:last-child td { border-bottom: 0; }
.art__table td:first-child { color: var(--c-paper); font-weight: 600; overflow-wrap: normal; }

/* ---------- narrower screens ---------- */
@media (max-width: 1023.98px) {
  .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-next__box { grid-template-columns: 140px minmax(0, 1fr); }
  .ins-next__ring { width: 140px; height: 140px; }
  .ins-next__acts { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ins-hero { min-height: 0; padding-top: 0; align-items: start; }
  .ins-hero__media { position: relative; inset: auto; height: 300px; }
  .ins-hero__media::after { background: linear-gradient(0deg, #000 0, rgba(0, 0, 0, 0) 55%), linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0) 30%); }
  .ins-hero__in { margin-top: -24px; }
  .ins-grid { grid-template-columns: minmax(0, 1fr); }
  .ins-next__box { grid-template-columns: minmax(0, 1fr); }
  .ins-next__ring { width: 120px; height: 120px; }
  .ins-cat__window { aspect-ratio: 4 / 5; }
  .ins-cat__months > span { padding-bottom: 10px; box-shadow: inset 0 0 0 1px #000; }
  .ins-cat__m { display: none; }
  .ins-cat__l { display: block; }
  .art h1 { font-size: clamp(1.9rem, 1.3rem + 3vw, 2.4rem); }
  .art__table table { font-size: 0.875rem; }
  .art__table th, .art__table td { padding: 10px; }
}
