/* =========================================================
   EDITORIAL LAYOUT — the Insights pages.

   Loads AFTER style.css + home-alt.css + pages.css, so the shared
   header, footer and green scheme vars are unchanged. Everything
   below the header is set as a magazine page rather than a grid of
   cards: serif headlines in sentence case, a wide lead image, a
   narrow measure for running text, and hairline rules instead of
   boxes. All selectors namespaced .ed-*.

   The rest of the site sets headings in uppercase sans. Insights is
   deliberately the opposite — that contrast is the whole point of
   giving this section its own voice.
========================================================= */

:root{
  /* system serif stack — an editorial voice with no webfont to download */
  --ed-serif:Georgia,"Iowan Old Style","Palatino Linotype","Times New Roman",serif;
  --ed-measure:68ch;
}

/* pages.css pins the body to y=0 for its full-bleed hero. These pages
   open on a headline rather than a photo, so the padding comes back and
   the header keeps the navy-on-light treatment pages.css already sets. */
body{padding-top:84px;background:#fff}

/* =========================================================
   1. RHYTHM
========================================================= */
.ed-sec{padding:3.4rem 0}
.ed-sec.top{padding-top:2.6rem;padding-bottom:1rem}
.ed-sec.end{padding-bottom:5rem}
.ed-sec.rule{border-top:1px solid var(--line)}

.ed-crumb{font-size:.78rem;color:var(--muted);margin:0 0 2.2rem;letter-spacing:.3px}
.ed-crumb a{color:var(--muted)}
.ed-crumb a:hover{color:var(--blue-deep)}
.ed-crumb b{color:var(--navy);font-weight:600}

/* =========================================================
   2. MASTHEAD — kicker, serif headline, standfirst
========================================================= */
.ed-kicker{display:block;font-size:.7rem;font-weight:800;letter-spacing:3px;text-transform:uppercase;
  color:var(--blue);margin:0 0 1.5rem;padding-top:1.1rem;border-top:2px solid var(--navy);
  max-width:max-content}

.ed-title{font-family:var(--ed-serif);font-weight:400;color:var(--navy);
  font-size:clamp(2.3rem,5.4vw,4.2rem);line-height:1.04;letter-spacing:-.5px;
  margin:0 0 1.6rem;max-width:19ch}
.ed-title em{font-style:italic;color:var(--acc)}

.ed-standfirst{font-family:var(--ed-serif);font-size:clamp(1.1rem,1.7vw,1.4rem);line-height:1.62;
  color:var(--ink);margin:0;max-width:52ch}

/* article dateline, above the headline on a news page */
.ed-dateline{display:flex;flex-wrap:wrap;align-items:baseline;gap:.55rem;margin:0 0 1.1rem;
  font-size:.75rem;letter-spacing:1.6px;text-transform:uppercase;font-weight:800;color:var(--muted)}
.ed-dateline time{color:var(--acc)}
.ed-dateline .sep{color:var(--line);font-weight:400}
/* a headline is a headline, not a section title - slightly tighter than the hub */
.ed-title.art{font-size:clamp(1.9rem,3.8vw,3rem);max-width:24ch}

/* dateline / attribution strip under the standfirst */
.ed-meta{display:flex;flex-wrap:wrap;gap:.6rem 2rem;margin:2rem 0 0;padding:1rem 0 0;
  border-top:1px solid var(--line);font-size:.74rem;letter-spacing:1.6px;text-transform:uppercase;
  font-weight:800;color:var(--muted);max-width:52ch}
.ed-meta b{color:var(--navy);font-weight:800}

/* =========================================================
   3. LEAD IMAGE — full container width, wide crop
========================================================= */
.ed-lead{margin:2.8rem 0 0}
.ed-lead picture{display:block}
.ed-lead img{display:block;width:100%;height:auto;aspect-ratio:21/9;object-fit:cover;background:#eef2f6}
.ed-lead figcaption{margin-top:.9rem;font-size:.8rem;color:var(--muted);line-height:1.6;
  letter-spacing:.2px;max-width:60ch}

/* A portrait source cannot survive a 21:9 lead crop — heads end up outside
   the band — so it gets a gentler ratio and a crop biased toward the faces. */
.ed-lead.portrait img{aspect-ratio:4/3;object-position:center 28%}
.ed-card-img.portrait img{object-position:center 30%}

/* Posters and captioned composites are designed to be read whole: a crop takes
   the headline off the top or the caption bar off the bottom, which is exactly
   the part that says what the picture is. So they are CONTAINED in the same
   box the photographs fill, on a soft ground, and nothing is lost. */
.ed-lead.poster img,
.ed-card-img.poster img,
.ed-gallery.poster img{object-fit:contain;background:#f1f4f7}
.ed-lead.poster img{aspect-ratio:4/3}
.ed-card-img.poster img{padding:.35rem}
.ed-gallery.poster img{aspect-ratio:4/3}
/* the zoom-on-hover would push a contained image past its own frame */
.ed-card:hover .ed-card-img.poster img{transform:none}

/* =========================================================
   3b. PAGE BANNER — a short full-width strip, not a lead photo.
   Sits outside .container, immediately below the fixed header, so it
   runs the full width of the viewport. Fixed heights rather than an
   aspect ratio, or it would grow past 500px on a wide monitor.
========================================================= */
.ed-banner{margin:0;overflow:hidden;background:#eef2f6;line-height:0}
.ed-banner picture{display:block}
/* the speaker, screen and front rows sit in the upper-middle of the frame,
   so the shallow crop is biased upward rather than dead centre */
.ed-banner img{display:block;width:100%;height:374px;object-fit:cover;object-position:center 32%}

@media (max-width:992px){ .ed-banner img{height:265px} }
@media (max-width:620px){ .ed-banner img{height:187px} }

/* =========================================================
   4. RUNNING TEXT — narrow measure, drop cap on the opener
========================================================= */
.ed-body{max-width:var(--ed-measure)}
.ed-body p{margin:0 0 1.3rem;color:var(--ink);font-size:1.03rem;line-height:1.9}
.ed-body p:last-child{margin-bottom:0}
.ed-body ul{margin:0 0 1.3rem;padding-left:1.3rem;color:var(--ink);font-size:1.03rem;line-height:1.9}
.ed-body li{margin-bottom:.35rem}
.ed-body a{color:var(--blue-deep);font-weight:600;border-bottom:1px solid transparent;
  transition:border-color .2s}
.ed-body a:hover{border-bottom-color:var(--blue-deep)}

.ed-body.lede>p:first-of-type::first-letter{
  float:left;font-family:var(--ed-serif);font-size:3.9rem;line-height:.82;font-weight:700;
  color:var(--acc);margin:.32rem .6rem 0 0}

/* two columns: a short label rail on the left, the content on the right */
.ed-two{display:grid;grid-template-columns:minmax(0,.34fr) minmax(0,1fr);gap:3.5rem;align-items:start}
.ed-rail{font-size:.72rem;font-weight:800;letter-spacing:2.4px;text-transform:uppercase;
  color:var(--muted);line-height:1.8;padding-top:.4rem}
.ed-rail b{display:block;color:var(--navy);margin-bottom:.4rem}

/* section heading inside the page */
.ed-h2{font-family:var(--ed-serif);font-weight:400;color:var(--navy);
  font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.14;letter-spacing:-.3px;margin:0 0 1.1rem;
  max-width:22ch}
.ed-h2+.ed-body{margin-top:0}

/* pull quote */
.ed-quote{margin:2.8rem 0;padding:0 0 0 1.8rem;border-left:3px solid var(--acc);max-width:46ch}
.ed-quote p{font-family:var(--ed-serif);font-size:clamp(1.2rem,2.1vw,1.6rem);line-height:1.45;
  color:var(--navy);margin:0}
.ed-quote cite{display:block;margin-top:.9rem;font-family:inherit;font-style:normal;font-size:.74rem;
  letter-spacing:1.8px;text-transform:uppercase;font-weight:800;color:var(--muted)}

/* =========================================================
   5. ARTICLE LIST — ruled rows, no boxes
   The workhorse: press pieces, the magazine, the section index.
========================================================= */
.ed-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--navy)}
.ed-list li{border-bottom:1px solid var(--line)}
.ed-entry{display:grid;grid-template-columns:4.5rem minmax(0,1fr) auto;gap:0 2.5rem;
  align-items:baseline;padding:2rem .2rem;color:inherit;transition:padding-left .28s ease}
.ed-entry:hover{padding-left:1rem}
.ed-num{font-family:var(--ed-serif);font-size:1.5rem;color:var(--line);line-height:1;
  transition:color .25s}
.ed-entry:hover .ed-num{color:var(--acc)}

/* A press entry carries the publication's own logo where the number would sit.
   The mark is the attribution, so the source line is dropped from those rows.
   Sized in rem so it tracks the headline rather than a fixed pixel grid. */
.ed-list.press .ed-entry{grid-template-columns:8.5rem minmax(0,1fr) auto}
.ed-logo{align-self:start;margin-top:.2rem}
.ed-logo img{display:block;width:100%;max-width:8.5rem;height:auto}
.ed-entry h3{font-family:var(--ed-serif);font-weight:400;font-size:clamp(1.15rem,2vw,1.55rem);
  line-height:1.28;color:var(--navy);margin:0}
.ed-src{display:block;margin-top:.7rem;font-size:.73rem;letter-spacing:1.8px;text-transform:uppercase;
  font-weight:800;color:var(--muted)}
.ed-src i{font-style:normal;color:var(--acc)}
.ed-blurb{margin:.9rem 0 0;color:var(--muted);font-size:.95rem;line-height:1.75;max-width:56ch}
.ed-act{font-size:.73rem;letter-spacing:1.6px;text-transform:uppercase;font-weight:800;
  color:var(--blue-deep);white-space:nowrap;display:inline-flex;align-items:center;gap:.5rem}
.ed-act i{font-style:normal;transition:transform .28s}
.ed-entry:hover .ed-act i{transform:translateX(5px)}

/* =========================================================
   6. SECTION INDEX — the hub's list of pages, with thumbnails
========================================================= */
.ed-index{list-style:none;margin:0;padding:0;border-top:1px solid var(--navy)}
.ed-index li{border-bottom:1px solid var(--line)}
.ed-idx{display:grid;grid-template-columns:4.5rem minmax(0,1fr) 190px;gap:0 2.5rem;align-items:center;
  padding:1.8rem .2rem;color:inherit;transition:padding-left .28s ease}
.ed-idx:hover{padding-left:1rem}
.ed-idx-img{overflow:hidden;background:#eef2f6;aspect-ratio:16/9}
.ed-idx-img img{width:100%;height:100%;object-fit:cover;display:block;
  filter:grayscale(1);opacity:.85;transition:filter .4s,opacity .4s,transform .6s}
.ed-idx:hover .ed-idx-img img{filter:grayscale(0);opacity:1;transform:scale(1.04)}

/* =========================================================
   7. FILM GRID — thumbnails with a play affordance
========================================================= */
.ed-films{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1.4rem 1.2rem}
.ed-film{display:block;color:inherit}
.ed-film-img{position:relative;overflow:hidden;background:var(--navy);aspect-ratio:16/9}
.ed-film-img img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .6s,opacity .3s}
.ed-film:hover .ed-film-img img{transform:scale(1.05);opacity:.72}
/* play triangle, drawn with borders so there is no icon to load */
.ed-film-img::after{content:"";position:absolute;left:50%;top:50%;z-index:2;margin:-9px 0 0 -5px;
  border-style:solid;border-width:9px 0 9px 15px;border-color:transparent transparent transparent #fff;
  filter:drop-shadow(0 1px 4px rgba(0,0,0,.55));transition:transform .25s}
.ed-film:hover .ed-film-img::after{transform:scale(1.18)}
.ed-film span{display:block;margin-top:.6rem;font-size:.73rem;letter-spacing:1.4px;text-transform:uppercase;
  font-weight:800;color:var(--muted);transition:color .2s}
.ed-film:hover span{color:var(--acc)}

/* =========================================================
   8. FEATURE PANEL — one document given the front-page treatment
========================================================= */
.ed-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3.5rem;align-items:center}
.ed-feature img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:#eef2f6}
.ed-cta-link{display:inline-flex;align-items:center;gap:.7rem;margin-top:1.8rem;background:var(--navy);
  color:#fff;padding:1rem 2rem;font-size:.8rem;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;
  transition:background .22s}
.ed-cta-link:hover{background:var(--acc)}
.ed-cta-link i{font-style:normal;transition:transform .28s}
.ed-cta-link:hover i{transform:translateX(4px)}

/* small print under a feature */
.ed-note{margin:1.4rem 0 0;font-size:.83rem;color:var(--muted);line-height:1.75;max-width:52ch}

/* =========================================================
   8b. UPDATES — dated stories, each with its own photo set.
   The rail carries the dateline, so the date reads as metadata
   rather than as part of the headline.
========================================================= */
.ed-story{padding:3.2rem 0;border-top:1px solid var(--line)}
.ed-story:first-of-type{border-top:2px solid var(--navy)}
.ed-story .ed-h2{margin-bottom:1.3rem;max-width:26ch}
.ed-story .ed-rail time{display:block;color:var(--navy);font-size:.8rem;letter-spacing:1.6px;
  margin-bottom:.4rem}

.ed-gallery{list-style:none;margin:2rem 0 0;padding:0;display:grid;gap:1rem;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.ed-gallery img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;
  background:#eef2f6}
/* a lone photo shouldn't stretch to a 3:2 slab the width of the column */
.ed-gallery.one{grid-template-columns:minmax(0,560px)}
.ed-gallery figcaption{margin-top:.6rem;font-size:.78rem;color:var(--muted);line-height:1.5}
.ed-gallery figure{margin:0}

/* =========================================================
   8c. HAPPENINGS CARDS — image, title, standfirst, dated footer.
   Sans headings and a coloured standfirst, unlike the serif
   article pages: this is a listing grid, not running text.
========================================================= */
.ed-cards{list-style:none;margin:0;padding:0;display:grid;gap:2.6rem 1.8rem;
  grid-template-columns:repeat(3,1fr)}
.ed-card{display:flex;flex-direction:column;height:100%;color:inherit}
/* 4:3 rather than 16:10. Every card keeps the SAME box - an uneven grid is
   worse than a small picture - but the extra height gives the contained
   posters room without hurting how the photographs crop. */
.ed-card-img{display:block;overflow:hidden;background:#eef2f6;aspect-ratio:4/3}
.ed-card-img picture{display:block;width:100%;height:100%}
.ed-card-img img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .6s cubic-bezier(.2,.7,.3,1)}
.ed-card:hover .ed-card-img img{transform:scale(1.05)}
/* source and date sit above the headline, the way a dateline does in print */
.ed-card .meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:.55rem;margin:1.1rem 0 .6rem;
  font-size:.73rem;letter-spacing:1.2px;text-transform:uppercase;font-weight:800;color:var(--muted)}
.ed-card .meta .tag{color:var(--blue)}
.ed-card .meta .sep{color:var(--line);font-weight:400}
.ed-card h3{font-size:1.02rem;font-weight:700;color:var(--navy);line-height:1.4;
  margin:0 0 .7rem;transition:color .2s}
.ed-card:hover h3{color:var(--acc)}
.ed-card p{margin:0;color:var(--acc);font-size:.93rem;line-height:1.7}

/* filter pills above the grid */
.ed-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 2.4rem;padding:0;list-style:none}
.ed-filters button{background:var(--paper);border:0;cursor:pointer;font:inherit;font-size:.82rem;
  font-weight:700;color:var(--muted);padding:.55rem 1.15rem;border-radius:50px;
  transition:background .2s,color .2s}
.ed-filters button:hover{background:var(--paper-2);color:var(--acc)}
.ed-filters button[aria-pressed="true"]{background:var(--navy);color:#fff}

@media (max-width:992px){
  .ed-cards{grid-template-columns:repeat(2,1fr);gap:2.2rem 1.4rem}
}
@media (max-width:620px){
  .ed-cards{grid-template-columns:1fr;gap:2rem}
}

/* =========================================================
   8d. IMAGE VIEWER — click any article photo to see it full size
========================================================= */
.ed-zoom{display:block;width:100%;padding:0;border:0;background:none;font:inherit;cursor:zoom-in}
.ed-zoom img{transition:opacity .25s}
.ed-zoom:hover img{opacity:.9}
.ed-zoom:focus-visible{outline:2px solid var(--acc);outline-offset:3px}

.ed-lb{position:fixed;inset:0;z-index:2000;background:rgba(6,18,12,.95);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:4.5rem 4.5rem 3rem}
.ed-lb[hidden]{display:none}
.ed-lb img{max-width:100%;max-height:78vh;width:auto;height:auto;object-fit:contain;display:block}
.ed-lb-cap{margin:1.1rem 0 0;max-width:70ch;text-align:center;color:rgba(255,255,255,.82);
  font-size:.9rem;line-height:1.6}
.ed-lb-count{display:block;margin-top:.5rem;font-size:.7rem;letter-spacing:2px;text-transform:uppercase;
  font-weight:800;color:rgba(255,255,255,.5)}
.ed-lb button{position:absolute;background:rgba(255,255,255,.1);border:0;color:#fff;cursor:pointer;
  border-radius:50%;width:46px;height:46px;font-size:1.5rem;line-height:1;display:flex;
  align-items:center;justify-content:center;transition:background .2s}
.ed-lb button:hover{background:rgba(255,255,255,.24)}
.ed-lb .lb-close{top:1.5rem;right:1.5rem;font-size:1.3rem}
.ed-lb .lb-prev{left:1.2rem;top:50%;margin-top:-23px}
.ed-lb .lb-next{right:1.2rem;top:50%;margin-top:-23px}
.ed-lb.single .lb-prev,.ed-lb.single .lb-next{display:none}
body.lb-open{overflow:hidden}

@media (max-width:620px){
  .ed-lb{padding:4rem 1rem 2.5rem}
  .ed-lb .lb-prev{left:.4rem}
  .ed-lb .lb-next{right:.4rem}
}

/* =========================================================
   9. CLOSING CTA
========================================================= */
.ed-close{border-top:2px solid var(--navy);padding:3.4rem 0 0;margin-top:1rem}
.ed-close .ed-h2{margin-bottom:.9rem}
.ed-close p{color:var(--muted);line-height:1.85;margin:0 0 1.8rem;max-width:54ch}
.ed-close .links{display:flex;flex-wrap:wrap;gap:1rem 2.2rem;align-items:center}
.ed-close .plain{font-size:.8rem;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;
  color:var(--navy);border-bottom:1px solid var(--line);padding-bottom:3px;transition:border-color .2s}
.ed-close .plain:hover{border-bottom-color:var(--navy)}

/* =========================================================
   10. RESPONSIVE
========================================================= */
@media (max-width:1100px){
  .ed-films{grid-template-columns:repeat(3,1fr)}
  .ed-two{gap:2.5rem}
}
@media (max-width:992px){
  .ed-sec{padding:2.6rem 0}
  .ed-two{grid-template-columns:1fr;gap:1.4rem}
  .ed-rail{padding-top:0}
  .ed-lead img{aspect-ratio:16/9}
  .ed-feature{grid-template-columns:1fr;gap:2rem}
  .ed-idx{grid-template-columns:3rem minmax(0,1fr) 150px;gap:0 1.6rem}
  .ed-entry{grid-template-columns:3rem minmax(0,1fr);gap:0 1.6rem}
  .ed-list.press .ed-entry{grid-template-columns:6.5rem minmax(0,1fr)}
  .ed-logo img{max-width:6.5rem}
  .ed-act{grid-column:2;margin-top:1rem}
}
@media (max-width:620px){
  .ed-films{grid-template-columns:1fr 1fr;gap:1.1rem .9rem}
  .ed-title{max-width:none}
  .ed-lead img{aspect-ratio:4/3}
  .ed-entry,.ed-idx{grid-template-columns:1fr;gap:0;padding:1.6rem .2rem}
  .ed-entry:hover,.ed-idx:hover{padding-left:.4rem}
  .ed-num{display:none}
  .ed-list.press .ed-entry{grid-template-columns:1fr}
  .ed-logo{grid-row:1;margin:0 0 1.1rem}
  .ed-logo img{max-width:7.5rem}
  .ed-act{grid-column:1;margin-top:.9rem}
  .ed-idx-img{grid-row:1;margin-bottom:1rem;width:100%}
  .ed-body.lede>p:first-of-type::first-letter{font-size:3.1rem}
}
