/* Newsroom v4 — collage front (Figma Version A), story popup, archive filters */

/* ── Front: collage (positions 1-4) ── */
.v4-front {
  padding: 48px max(80px, calc((100% - 1280px) / 2)) 24px;
  background: var(--white, #fff);
}
.v4-collage {
  display: grid;
  grid-template-columns: 640fr 300fr 300fr;
  grid-template-rows: 250px 250px;
  gap: 20px;
}
.v4-p1 { grid-column: 1; grid-row: 1 / 3; }
.v4-p2 { grid-column: 2; grid-row: 1 / 3; }
.v4-p3 { grid-column: 3; grid-row: 1; }
.v4-p4 { grid-column: 3; grid-row: 2; }

.v4-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  background: var(--navy-800, #144781);
}
.v4-tile > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.v4-tile:hover > img, .v4-tile:focus-visible > img { transform: scale(1.04); }
.v4-tile:focus-visible { outline: 3px solid var(--blue-cta, #3378C6); outline-offset: 3px; }
.v4-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,41,0) 35%, rgba(8,20,41,.82) 100%);
}
.v4-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 24px;
}
.v4-p1 .v4-copy { padding: 32px; }
.v4-byline { font-size: 14px; font-weight: 500; }
.v4-title {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  font-size: 20px;
  color: #fff;
}
.v4-p1 .v4-title { font-size: 36px; }
.v4-p2 .v4-title { font-size: 24px; }
.v4-action, .v4-hl-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700;
}
.v4-action svg, .v4-hl-action svg { transition: transform .25s ease; }
.v4-tile:hover .v4-action svg, .v4-hl:hover .v4-hl-action svg { transform: translateX(3px); }

.v4-play {
  position: absolute; left: 50%; top: 50%;
  width: 88px; height: 88px;
  margin: -84px 0 0 -44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--navy-800, #144781);
  transition: transform .25s ease;
  z-index: 1;
}
.v4-play svg { width: 38%; height: 38%; margin-left: 6%; }
.v4-tile:hover .v4-play, .v4-hl:hover .v4-play { transform: scale(1.08); }

/* ── Highlights (positions 5-8) ── */
.v4-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.v4-hl {
  display: flex; flex-direction: column; gap: 12px;
  color: inherit; text-decoration: none;
}
.v4-hl-media {
  position: relative; display: block;
  height: 200px; border-radius: 8px; overflow: hidden;
  background: var(--navy-800, #144781);
}
.v4-hl-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.v4-hl:not(.is-static):hover .v4-hl-media > img { transform: scale(1.04); }
.v4-hl .v4-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.v4-hl-title { font-size: 18px; font-weight: 600; line-height: 1.3; color: #1A1A1A; }
.v4-hl-action { color: var(--blue-cta, #3378C6); }
.v4-hl:hover .v4-hl-action { color: var(--navy-800, #144781); }
.v4-hl-caption { font-size: 16px; font-style: italic; line-height: 1.4; color: #4A4A4A; }
.v4-hl:focus-visible { outline: 3px solid var(--blue-cta, #3378C6); outline-offset: 4px; border-radius: 8px; }
.v4-cover.report-cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, #3378C6 0%, #144781 55%, #0D3163 100%);
}
.v4-cover .report-mark { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #9CC7F0; }
.v4-cover .report-title { font-size: 28px; font-weight: 700; line-height: 1.1; color: #fff; max-width: 8ch; }
.is-static { cursor: default; }

/* ── In the News band ── */
.v4-itn {
  position: relative;
  margin-top: 48px;
  padding: 32px;
  border-radius: 8px;
  background: var(--tint-primary, #EDF7FF);
}
.v4-itn-heading { margin: 0; font-size: 28px; font-weight: 700; color: #1A1A1A; }
.v4-itn-deck { margin: 6px 0 24px; font-size: 16px; color: #4A4A4A; }
.v4-itn-all { position: absolute; top: 32px; right: 32px; }
.v4-itn-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.v4-itn-list li { padding: 0 24px; border-left: 1px solid var(--tint-border, #CDE4F6); }
.v4-itn-list li:first-child { padding-left: 0; border-left: 0; }
.v4-itn-item { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.v4-itn-outlet {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-cta, #3378C6);
}
.v4-itn-title { font-size: 16px; font-weight: 600; line-height: 1.35; color: #1A1A1A; }
.v4-itn-item:hover .v4-itn-title { color: var(--navy-800, #144781); text-decoration: underline; text-underline-offset: 3px; }
.v4-itn-date { font-size: 13px; color: #6C6D6D; }

#front .is-hidden { display: none !important; }

@media (max-width: 1024px) {
  .v4-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 240px 240px; }
  .v4-p1 { grid-column: 1 / 3; grid-row: 1; }
  .v4-p2 { grid-column: 1; grid-row: 2 / 4; }
  .v4-p3 { grid-column: 2; grid-row: 2; }
  .v4-p4 { grid-column: 2; grid-row: 3; }
  .v4-highlights { grid-template-columns: repeat(2, 1fr); }
  .v4-itn-list { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .v4-itn-list li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .v4-front { padding: 24px 16px 8px; }
  .v4-collage { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 12px; }
  .v4-p1, .v4-p2, .v4-p3, .v4-p4 { grid-column: 1; grid-row: auto; height: 260px; }
  .v4-p1 { height: 340px; }
  .v4-p1 .v4-title { font-size: 28px; }
  .v4-p1 .v4-copy { padding: 24px; }
  .v4-highlights { gap: 16px; }
  .v4-hl-media { height: 140px; }
  .v4-hl-title { font-size: 16px; }
  .v4-cover.report-cover { padding: 14px; }
  .v4-cover .report-title { font-size: 19px; }
  .v4-itn { padding: 24px; }
  .v4-itn-all { position: static; margin-top: 24px; }
  .v4-itn-list { grid-template-columns: 1fr; }
  .v4-itn-list li, .v4-itn-list li:nth-child(3) { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--tint-border, #CDE4F6); }
  .v4-itn-list li:first-child { padding-top: 0; border-top: 0; }
}

/* ── Story popup: stories without a page of their own ── */
.story-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(8, 20, 41, .72);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.story-modal.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.story-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(8, 20, 41, .35);
  transform: translateY(16px) scale(.98);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.story-modal.open .story-dialog { transform: none; }
.story-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0D3163;
}
.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-media.is-photo { aspect-ratio: auto; background: #F3F5F8; }
.story-media.is-photo img { max-height: 70vh; object-fit: contain; }
.story-media .v4-play { margin: -44px 0 0 -44px; border: 0; cursor: pointer; }
.story-media .story-media-note {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(8,20,41,.7); color: #fff;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; transition: opacity .2s ease;
}
.story-media .story-media-note.visible { opacity: 1; }
.story-text { padding: 28px 32px 32px; }
.story-date { font-size: 14px; color: var(--meta-ink, #868585); }
.story-heading { margin: 6px 0 0; font-size: 28px; font-weight: 700; line-height: 1.2; color: #1A1A1A; }
.story-caption { margin: 0; font-size: 17px; font-style: italic; line-height: 1.45; color: #4A4A4A; }
.story-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #144781;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8,20,41,.2);
}
.story-close:hover { background: #fff; }
.story-close:focus-visible, .story-media .v4-play:focus-visible { outline: 3px solid #3378C6; outline-offset: 2px; }
body.story-open { overflow: hidden; }
@media (max-width: 640px) {
  .story-modal { padding: 12px; }
  .story-text { padding: 20px; }
  .story-heading { font-size: 22px; }
}

/* ── Blog pages whose copy has not arrived yet ── */
.story-pending { display: flex; flex-direction: column; gap: 14px; margin: 40px 0 8px; }
.story-pending span { display: block; height: 14px; border-radius: 7px; background: #EEF1F5; }
.story-pending span:nth-child(4n) { width: 72%; margin-bottom: 18px; }
.story-pending span:nth-child(4n+2) { width: 94%; }
.story-pending span:nth-child(4n+3) { width: 88%; }

/* ── News archive filters ── */
.v4-archive-filters {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.v4-month select {
  appearance: none;
  padding: 9px 40px 9px 14px;
  border: 1px solid var(--tint-border, #CDE4F6);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23144781' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--ink, #144781);
  cursor: pointer;
}
.v4-month select:focus-visible { outline: 2px solid var(--ink, #144781); outline-offset: 2px; }
.v4-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tag.tag-features { background: var(--tint-border, #CDE4F6); }
.release-card.is-static { cursor: default; }

/* no "Read more" pill over cards that do not open */
body:has([aria-disabled="true"]:hover) .cursor-tag { opacity: 0 !important; }

body.story-open .cursor-tag { opacity: 0 !important; }

/* ── The CFO and CEO portraits are never cropped (Klara, Nov 2). Every other photo is
   untouched. In a box that is not square, v4.js shows the portrait whole, centred over a
   soft blur of itself, so the card has no empty band. ── */
.portrait-fit { position: relative; overflow: hidden; }
.portrait-fit > img.portrait-blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(26px); z-index: 0; }
.portrait-fit > img.portrait-main { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; object-fit: contain !important; object-position: center !important; }
/* popup: photos show whole (it is a viewer, not a card) */
.story-media.is-photo img { object-fit: contain; }

/* In the News preview popup: text only, then out to the outlet */
.story-dialog.is-link { width: min(640px, 100%); }
.story-dialog.is-link .story-text { padding: 40px 40px 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.story-outlet { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-cta, #3378C6); padding-right: 48px; }
.story-dialog.is-link .story-heading { margin: 4px 0 24px; padding-right: 24px; }
.story-out { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 4px; background: var(--blue-cta, #3378C6); color: #fff; font-family: var(--font); font-size: 16px; font-weight: 700; text-decoration: none; transition: background .2s ease; }
.story-out:hover { background: var(--navy-800, #144781); }
.story-out:focus-visible { outline: 2px solid var(--navy-800, #144781); outline-offset: 3px; }
@media (max-width: 640px) { .story-dialog.is-link .story-text { padding: 28px 22px 24px; } }

/* ── Article table of contents: wider rail, numbers aligned to the first line ── */
@media (min-width: 1101px) {
  .article-layout:has(.toc-card) { gap: 40px; }
  .article-layout:has(.toc-card) .article-body { flex: 1 1 700px; max-width: 852px; min-width: 0; }
  .article-layout:has(.toc-card) .article-rail { flex: 0 0 460px; }
}
.toc-card { padding: 24px; }
.toc-list { gap: 14px; }
.toc-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: baseline;
  column-gap: 8px;
  font-size: 15px;
  line-height: 1.45;
}
.toc-num { font-variant-numeric: tabular-nums; }
