/* Single light theme matching the school website. Layout: site header, blue title band, sticky automatic index on the left and the issue as one long scrolling column; index collapses to a button on phones */
:root {
  --bg: #ffffff;
  --soft: #f3f5f7;
  --ink: #232323;
  --muted: #66707a;
  --line: #dfe4e9;
  --blue: #0177bf;
  --blue-ink: #0d5a8f;
  --green: #69961f;
  --photo: #d9ddd3;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --brandface: "Merriweather", Georgia, serif;
  --ui: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --text: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 var(--text); padding-inline: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

/* site chrome */
.site { border-bottom: 1px solid var(--line); }
.site .wrap { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.site .logo { display: flex; align-items: center; gap: 10px; font: 15px/1.05 var(--ui); letter-spacing: .02em; text-transform: uppercase; color: #3d4247; }
.site nav { margin-left: auto; display: flex; gap: 26px; font: 15px var(--ui); color: #3d4247; }
.band { background: var(--blue); color: #fff; }
.band .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.band h1 { font-family: var(--brandface); font-size: clamp(28px, 4vw, 42px); margin: 0; }
.band p { font: 15px var(--ui); opacity: .9; }

/* layout: index + content */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 40px 80px; }
.toc { position: sticky; top: calc(20px + var(--bar-h, 0px)); align-self: start; font-family: var(--ui); }
.toc h2 { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 8px 0 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.3; }
.toc a small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.toc a:hover { color: var(--blue); }
.toc a.on { border-left-color: var(--blue); color: var(--blue); font-weight: 500; }
.toc-btn { display: none; }

.issue { display: flex; flex-direction: column; gap: 88px; min-width: 0; }
.issue > section { scroll-margin-top: calc(20px + var(--bar-h, 0px)); }

/* shared pieces */
.ph { background: var(--photo); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #7d8474; font-size: 13px; aspect-ratio: 3 / 2; position: relative; overflow: hidden; }
.ph svg { width: 34px; height: 34px; }
.ph.dark { background-color: #5d6b4c; color: #c9d3bb; }
.ph.tall { aspect-ratio: 4 / 5; }
.ph.sq { aspect-ratio: 1; }
.it { font-family: var(--display); font-style: italic; font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.01em; text-wrap: balance; font-size: clamp(36px, 5vw, 56px); }
.it small { display: block; font-size: .6em; margin-top: 8px; line-height: 1.15; }
.light { font-weight: 300; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0; }
.kick { color: var(--c); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.kick.g { color: var(--c); }
.lead { text-transform: uppercase; font-size: 15px; line-height: 1.6; letter-spacing: .02em; color: #444; max-width: 60ch; }
.body { display: flex; flex-direction: column; gap: 16px; max-width: 64ch; hyphens: auto; }
.cols2 { columns: 2 300px; column-gap: 40px; }
.cols2 p { margin-bottom: 16px; break-inside: avoid-column; }
.pull { color: var(--c); font-weight: 700; text-transform: uppercase; font-size: 20px; line-height: 1.3; border-top: 3px solid var(--c); padding-top: 14px; }
.box { background: var(--c); color: #fff; font-weight: 700; padding: 24px; font-size: 1em; line-height: 1.4; }
.over { position: absolute; left: 32px; right: 32px; bottom: 32px; color: #fff; }
.over h1, .over > h2, .over .ttl { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(34px, 5vw, 60px); line-height: 1; margin: 0 0 12px; text-shadow: 0 1px 16px rgba(0,0,0,.5); }
.over p { font-size: 15px; background: rgba(0,0,0,.45); padding: 6px 12px; display: inline-block; }
.sec-head { font: 12px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px; }
/* Page footer: number · star · date */
.folio { margin-top: 36px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; font: 12px var(--ui); color: var(--muted); letter-spacing: .06em; }
.folio .star { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; text-align: center; }
.folio .star img { display: block; }
.folio .star small { font-size: 9px; color: var(--ink); letter-spacing: .04em; }

/* section layouts */
.cover { position: relative; }
.cover .top { background: var(--c); color: #fff; padding: 22px 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.cover .top b { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(48px, 7vw, 84px); line-height: .85; }
.cover .top span { font: 13px var(--ui); letter-spacing: .12em; text-transform: uppercase; text-align: right; }
.cover .ph { aspect-ratio: 21 / 9; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--ui); }
.card:hover { border-color: var(--blue); }
.card b { font-family: var(--mono); font-weight: 500; color: var(--blue); font-size: 13px; }
.card span { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.1; }
.card small { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.signs { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-bottom: 20px; }
.sign { display: flex; gap: 12px; align-items: center; font-size: 11px; text-transform: uppercase; line-height: 1.35; }
.sign .av { width: 64px; aspect-ratio: 1; background: #c9cdc3; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #666; box-shadow: 2px 2px 6px rgba(0,0,0,.2); flex: none; }
.sign b { font-size: 12px; display: block; }
.art { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; margin-top: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.qa { display: flex; flex-direction: column; gap: 10px; max-width: 64ch; }
.qa .q { color: var(--c); font-weight: 700; margin-top: 8px; }
.bleed { position: relative; }
.bleed .ph { aspect-ratio: 16 / 7; }
/* Gallery layouts: each photo is a <figure> (photo + optional caption) */
.gal { margin-top: 24px; }
.gal figure { margin: 0; display: flex; flex-direction: column; gap: 6px; break-inside: avoid; }
.gal figcaption { font: 13px/1.4 var(--ui); color: var(--muted); }
.gal.v-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gal.v-mosaic > figure:first-child { grid-column: span 2; grid-row: span 2; }
.gal.v-mosaic > figure:first-child .ph { aspect-ratio: auto; flex: 1; }
.gal.v-quadricula { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gal.v-columnes { columns: 3; column-gap: 10px; }
.gal.v-columnes figure { margin-bottom: 10px; }
.gal.v-llista { display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.gal.v-llista figcaption { font-size: 14px; }
.ph.nat { aspect-ratio: auto; min-height: 120px; }
.ph.nat img { position: static; display: block; width: 100%; height: auto; }

/* phones */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .site nav { gap: 14px; font-size: 13px; }
  .site a.logo img { height: 40px; }
  .band .wrap { padding-block: 26px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0 60px; }
  .toc { position: sticky; top: var(--bar-h, 0px); z-index: 2; background: var(--bg); margin-inline: -16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .toc h2 { display: none; }
  .toc-btn { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
  .toc-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toc ol { display: none; margin-top: 8px; max-height: 60vh; overflow-y: auto; }
  .toc.open ol { display: block; }
  .issue { gap: 56px; padding-top: 24px; }
  .issue > section { scroll-margin-top: calc(70px + var(--bar-h, 0px)); }
  .art, .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .signs { flex-direction: column; gap: 12px; }
  .cover .top { padding: 16px; }
  .cover .ph, .bleed .ph { aspect-ratio: 4 / 5; }
  .over { left: 16px; right: 16px; bottom: 20px; }
  .gal.v-mosaic, .gal.v-quadricula { grid-template-columns: 1fr 1fr; }
  .gal.v-columnes { columns: 2; }
}
.site .logo { text-decoration: none; }
.site .logo img { display: block; height: 53px; width: auto; }
.site nav a { color: inherit; text-decoration: none; }
.site nav a:hover { color: var(--blue); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.empty { background-image: none; }
.sign .av { overflow: hidden; }
.sign .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Draft preview bar: stays at the top; --bar-h (set by reader-web.js) keeps the sticky index and the page jumps below it */
.preview-bar { position: sticky; top: 0; z-index: 5; background: #fbf1d9; color: #7a5a0e; font: 13px var(--ui); text-align: center; padding: 8px 16px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.preview-bar a { color: inherit; font-weight: 600; white-space: nowrap; }

/* Reserve the scrollbar space so the layout does not jump when a page starts scrolling */
html { scrollbar-gutter: stable; }

/* ---------- colour accents, section ribbon and the colour templates ---------- */
.issue > section { position: relative; }
.issue > section { flex-shrink: 0; }
.issue > section.has-ribbon { --y: calc(46px + var(--n, 8) * 4.9px); overflow: hidden; padding-top: calc(var(--y) + 34px); }
.ribbon { position: absolute; left: calc(var(--y) * .866); top: calc(var(--y) * .5); width: calc(var(--y) * 2 + 200px); transform: translate(-50%, -50%) rotate(-30deg); background: var(--c); color: #fff; padding: 8px 0; font: 700 14px/1.15 var(--text); text-transform: uppercase; letter-spacing: .06em; text-align: center; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 2; }
.ribbon small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.sign .av { background: var(--cs); color: var(--c); font-weight: 700; }
.cards .card { background: var(--cs); border-color: transparent; }
.cards .card:hover { border-color: var(--c); }
.cards .card small { color: var(--c); }
/* Requadres de color */
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.cbox { background: var(--c); color: #fff; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.cbox h3 { margin: 0; font-size: 20px; line-height: 1.2; text-transform: uppercase; }
.cbox .sub { font-weight: 700; }
.cbox p { font-size: 1em; line-height: 1.55; }
.cbox .ph { margin-top: 10px; }
/* Breus */
.cards-b { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; align-items: start; margin-top: 24px; }
.bcard { background: var(--cs); padding: 18px; font-size: 1em; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.bcard b { color: var(--c); }
.bcard .ph { margin: -18px -18px 8px; aspect-ratio: 3 / 2; }
/* Destacat */
.full { background: var(--c); color: #fff; padding: 70px 48px; text-align: center; }
.full .msg { font-family: var(--display); font-style: italic; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.full .by { margin-top: 18px; font: 14px var(--ui); text-transform: uppercase; letter-spacing: .1em; }
.full .ribbon { background: #fff; color: var(--c); }
/* Xifres */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 24px; }
.fig { background: var(--c); color: #fff; padding: 24px 20px; }
.fig b { display: block; font-size: 52px; font-weight: 300; line-height: 1; margin-bottom: 8px; }
.fig span { font-size: 1em; line-height: 1.35; }
@media (max-width: 860px) { .boxes { grid-template-columns: 1fr; } .full { padding: 48px 24px; } }

/* ---------- editor's web preview (?embed): header, band and index stay put, only the issue scrolls ---------- */
html:has(#app.embed) { scrollbar-gutter: auto; }
#app.embed { height: 100vh; display: flex; flex-direction: column; }
#app.embed .layout { flex: 1; min-height: 0; width: 100%; grid-template-rows: minmax(0, 1fr); padding-block: 20px 0; }
#app.embed .issue { overflow-y: auto; padding: 14px 14px 60px; scrollbar-gutter: stable; }
#app.embed .issue > section { scroll-margin-top: 0; }
#app.embed .toc { position: static; align-self: stretch; overflow-y: auto; }
#app.embed .issue > section { cursor: pointer; }
#app.embed .issue > section:hover { outline: 2px dashed var(--line); outline-offset: 6px; }
#app.embed .issue > section.selected, #app.embed .issue > section.selected:hover { outline: 2px solid var(--blue); outline-offset: 6px; }
/* "↑ Índex": back to the top, where the index is */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 6; border: 0; border-radius: 99px; background: var(--blue); color: #fff; font: 600 14px var(--ui); padding: 10px 16px; box-shadow: 0 4px 14px rgba(20,40,60,.25); cursor: pointer; }
.to-top:hover { background: var(--blue-ink); }
.to-top[hidden] { display: none; }

/* ---------- lists, links and the templates added in October 2026 ---------- */
/* Lines starting with "- " in any text */
ul.bul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
ul.bul li::marker { color: var(--c); }
.cbox ul.bul li::marker, .full ul.bul li::marker, .sidebox ul.bul li::marker, .s-ple ul.bul li::marker { color: #fff; }
.cols2 ul.bul { margin-bottom: 16px; break-inside: avoid-column; }
/* Links written in the texts ([text](https://…)); on coloured backgrounds they keep the text colour */
.lnk { color: var(--c); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.lnk:hover { text-decoration-thickness: 2px; }
.cbox .lnk, .sidebox .lnk, .s-ple .lnk, .full .lnk, .box .lnk, .gal-note .lnk, .fig .lnk, .tbl th .lnk { color: inherit; }
.intro { margin-top: 14px; }
.more { display: inline-block; margin-top: 22px; background: var(--c); color: #fff; text-decoration: none; font: 600 15px var(--ui); padding: 11px 20px; border-radius: 99px; }
.more:hover { filter: brightness(.92); }
.ph.wide { aspect-ratio: 16 / 9; } /* photo on top of a text in two columns: panoramic */
.script { font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--c); max-width: 60ch; margin-top: 14px; text-wrap: pretty; }
/* Cover collage */
.cover .collage { position: relative; display: grid; grid-auto-rows: 1fr; gap: 4px; aspect-ratio: 21 / 9; background: #5d6b4c; }
.cover .collage.odd > .ph:first-child { grid-row: span 2; }
.cover .collage .ph { aspect-ratio: auto; }
.cover .collage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; }
/* Gallery collage: the text as a coloured box among the photos */
.gal.v-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gal-note { background: var(--c); color: #fff; padding: 22px; font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.3; display: flex; align-items: center; }
/* Article: box under the quote, beside the text */
.sidebox { background: var(--c); color: #fff; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 1em; line-height: 1.5; }
.sidebox h3 { margin: 0; font-size: 1em; line-height: 1.25; text-transform: uppercase; }
/* Tres columnes */
.cols3 { display: grid; grid-template-columns: repeat(var(--k, 3), minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.col3 { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 1em; line-height: 1.55; }
.col3 h3 { margin: 0; font-size: 1em; line-height: 1.25; text-transform: uppercase; }
.col3 .ph { margin: -22px -20px 6px; aspect-ratio: 4 / 3; }
.s-ple .col3 { background: var(--c); color: #fff; }
.s-linia .col3 { border: 2px solid var(--c); }
.s-linia .col3 h3, .s-suau .col3 h3 { color: var(--c); }
.s-suau .col3 { background: var(--cs); }
/* Punts numerats: outlined cards with the number on the corner */
/* Every point of a row as tall as the tallest one of that row (long text or a photo) */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px 20px; margin-top: 34px; align-items: stretch; }
.step { position: relative; border: 2px solid var(--c); padding: 26px 20px 20px; }
.step .num { position: absolute; top: -17px; left: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font: 700 17px/34px var(--ui); text-align: center; }
.step-in { display: flex; flex-direction: column; gap: 8px; font-size: 1em; line-height: 1.55; }
.step h3 { margin: 0; font-size: 1em; line-height: 1.25; text-transform: uppercase; color: var(--c); }
.step .ph { margin-top: 6px; }
/* Fases: side by side under arrow headings */
.fases { display: grid; grid-template-columns: repeat(var(--k, 3), minmax(0, 1fr)); gap: 6px; margin-top: 28px; align-items: start; }
.fase { display: flex; flex-direction: column; gap: 12px; }
.chev { background: var(--c); color: #fff; min-height: 58px; padding: 9px 26px 9px 22px; display: flex; flex-direction: column; justify-content: center; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 12px 50%); }
.fase:first-child .chev { padding-left: 14px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
.chev b { font: 700 14px/1.2 var(--ui); text-transform: uppercase; }
.chev small { font: 12px/1.3 var(--ui); opacity: .9; }
.fase-t { display: flex; flex-direction: column; gap: 8px; font-size: 1em; line-height: 1.5; padding-right: 10px; }
/* Testimonis */
/* Every testimony of a row as tall as the tallest one; the name and photo sit at the bottom, aligned across the row */
.veus { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; align-items: stretch; }
.veu { margin: 0; background: var(--cs); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.veu blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.35; display: flex; flex-direction: column; gap: 10px; }
.veu blockquote::before { content: '“'; color: var(--c); font-size: 54px; line-height: .55; font-style: normal; }
.veu figcaption { display: flex; gap: 12px; align-items: center; font: 13px/1.3 var(--ui); margin-top: auto; }
.veu .av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #fff; color: var(--c); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.veu .av img, .perfil .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.veu b { display: block; text-transform: uppercase; color: var(--c); font-size: 13px; }
.veu small { display: block; color: var(--muted); font-size: 13px; }
/* Presentació de persones: main photo beside the profile cards */
.perfils-wrap { margin-top: 28px; }
.perfils-wrap.with-photo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.perfils { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.perfil { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px 14px; align-items: end; }
.perfil .av { width: 72px; aspect-ratio: 1; background: var(--cs); color: var(--c); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; overflow: hidden; box-shadow: 2px 2px 6px rgba(0,0,0,.2); }
.perfil .who b { display: block; font-size: 13px; text-transform: uppercase; line-height: 1.3; }
.perfil .who small { display: block; font-size: 12px; color: var(--c); line-height: 1.3; margin-top: 2px; }
.perfil .bio { grid-column: 1 / -1; border-left: 3px solid var(--c); padding-left: 14px; font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; gap: 8px; }
/* Conversa: photo and quote on the left, questions on the right */
.talk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; margin-top: 26px; align-items: start; }
.talk { display: flex; flex-direction: column; gap: 24px; max-width: 64ch; }
.issue > section > .talk { margin-top: 26px; }
.pq { display: flex; flex-direction: column; gap: 8px; font-size: 1em; line-height: 1.6; }
.pq .who { color: var(--c); text-transform: uppercase; font-size: 14px; line-height: 1.25; }
.pq .det { color: var(--muted); font: 13px var(--ui); margin-top: -6px; }
.pq .ask { font-weight: 700; }
.talk-quote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; color: var(--c); border-top: 3px solid var(--c); padding-top: 14px; }
.talk-quote cite { display: block; margin-top: 10px; font: 600 13px/1.3 var(--ui); color: var(--ink); text-transform: uppercase; }
/* Foto de grup */
.grup { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 20px; }
.grup .script { margin-top: 0; }
.names { font: 12px/1.5 var(--ui); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
/* Vídeo: a poster with a play button; the player loads on press */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 900px; margin-top: 24px; background: var(--c); overflow: hidden; }
.video .play { all: unset; position: absolute; inset: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video .play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .tri { position: relative; width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 6px 22px rgba(0,0,0,.3); transition: transform .15s; }
.video .tri::after { content: ''; position: absolute; left: 33px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--c); }
.video .play:hover .tri { transform: scale(1.06); }
.video .play:focus-visible .tri { outline: 3px solid #fff; outline-offset: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Taula */
.tbl-wrap { overflow-x: auto; margin-top: 24px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.tbl th { background: var(--c); color: #fff; text-align: left; padding: 10px 14px; font: 600 13px/1.3 var(--ui); text-transform: uppercase; letter-spacing: .03em; vertical-align: bottom; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--cs); vertical-align: top; }
.tbl tbody tr:nth-child(even) td { background: var(--cs); }
.note { margin-top: 12px; font: 13px var(--ui); color: var(--muted); }
/* Contraportada */
.bye { color: var(--c); }
.bye-pics { display: grid; gap: 12px; margin-top: 24px; }
.bye-pics.n2 { grid-template-columns: 1fr 1fr; }
.bye-pics.n1 { max-width: 760px; }
.credits { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 14px; font: 13px/1.55 var(--ui); color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 860px) {
  .cols3, .perfils-wrap.with-photo, .talk-grid, .grup { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fases { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .chev, .fase:first-child .chev { clip-path: none; padding-left: 14px; min-height: 0; }
  .gal.v-collage { grid-template-columns: 1fr 1fr; }
  .cover .collage { aspect-ratio: 4 / 5; }
}
/* Issue date: lines break only between words (never inside «2024-25») */
.w { white-space: nowrap; }
/* Page titles: H1 = the template title; H2 (subtítol) and H3 (títol 3) under it, in one group */
.heads { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sub2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; text-wrap: balance; }
.sub3 { margin: 0; font: 700 14px/1.3 var(--text); text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.over .heads { gap: 8px; margin-bottom: 12px; }
.over .heads h1, .over .heads .ttl { margin: 0; }
.over .sub2 { text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.over .sub3, .full .sub3 { color: #fff; }
/* «Disposició al web»: photo inside the text (integrada) or on top with the text in two columns (dalt) */
.wrapflow { margin-top: 24px; }
.wrapflow::after { content: ""; display: block; clear: both; }
.ph.float { float: right; width: 40%; margin: 4px 0 18px 32px; }
.ph.tall.float { width: 34%; }
.flowtext { display: block; max-width: none; }
.flowtext > * + * { margin-top: 14px; }
.qa.flowtext > .q { margin-top: 20px; }
.talk.flowtext > * + * { margin-top: 22px; }
.lay-dalt { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.qa.cols2, .talk.cols2 { display: block; max-width: none; columns: 2 300px; column-gap: 40px; }
.qa.cols2 > p { margin-bottom: 10px; }
.qa.cols2 > .q { break-after: avoid; }
.talk.cols2 > * { break-inside: avoid; margin-bottom: 24px; }
.after { margin-top: 24px; max-width: 64ch; }
@media (max-width: 860px) { .ph.float, .ph.tall.float { float: none; width: 100%; margin: 0 0 18px; } }
/* A block that continues an article: no kind label (pages.js) and closer to the block before it */
.issue > section.cont { margin-top: -48px; }
@media (max-width: 860px) { .issue > section.cont { margin-top: -28px; } }
/* Requadres de color one under the other: each box takes the whole width, its photo beside the text */
.boxes.o-vertical { grid-template-columns: minmax(0, 1fr); }
.boxes.o-vertical .cbox.has-ph { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cbox .cb-t { display: flex; flex-direction: column; gap: 10px; }
.boxes.o-vertical .cbox.has-ph > .ph { margin-top: 0; }
@media (max-width: 860px) { .boxes.o-vertical .cbox.has-ph { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
/* Page titles (the H1, and the title of a page that continues an article, which looks the same): like the school website */
.issue .ttl { font-family: var(--brandface); font-weight: 700; font-style: normal; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: 0; }
.issue .ttl.cur { font-style: italic; }
/* Article with a photo: on top (wide), beside the text (wider side column) or inside the text columns */
.ph.art-top { margin-top: 24px; }
@media (min-width: 861px) { .art.with-ph { grid-template-columns: minmax(0, 1fr) 320px; } }
.cols2 > .ph { break-inside: avoid; margin-bottom: 16px; }
