/* Releases (news/*.html and news/_template.html), on top of core.css and inner.css.
   tools/press reads the release markup (build-press.sh, share-image.ps1, render-card.ps1, check-release.sh), so the
   pr-* and deal-* classes and the inline styles inside the deal card stay as they are; only their look is set here.
   The page: the navy page head (.ph--long.ph--compact: tag and date, headline, subhead), the article in .prose (from
   1200 px a reading column from column 4) and the aside on the right (deal card, media contact, share
   row), then a stone strip back to Press.
   One signature: the deal card assembles once when it comes into view (CSS keyed to .in, no page script). */

/* == PAGE HEAD == */
.pr-hero { display: block; }
.pr-kicker .pr-tag { color: #fff; }
.pr-kicker time { font-variant-numeric: lining-nums tabular-nums; }
/* back to Press from the water: .pr-back, in inner.css (the coverage archive uses it too) */

/* == BODY: the article reads first; the aside is a tombstone-width column on the right edge == */
.pr-body { padding-block: clamp(48px, 5.2vw, 80px) clamp(64px, 6.6vw, 104px); }
/* a reading measure of about 70 to 80 characters in Hanken (the prose default, 40em, ran 85 to 90) */
.pr-article { min-width: 0; max-width: 35em; }
.pr-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (min-width: 1024px) {
  .pr-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .pr-article { grid-column: 1 / span 7; }
  /* stretched to the article's height, so the contact card and the share row can stay in view (below); a
     tombstone-width column on the right edge: columns 9 to 12 capped at 20rem, then exactly 10 to 12 */
  .pr-aside { grid-column: 9 / -1; justify-self: end; width: min(100%, 20rem); }
}
@media (min-width: 1280px) { .pr-aside { grid-column: 10 / -1; width: auto; justify-self: stretch; } }
/* from 1200 px the article starts on column 4 (chapter titles start on column 1 since phase 5), so no
   white channel opens between the text and the aside (fix round 2, D2-02); from 1280 px it runs six columns and keeps
   a gap of about 56 px to the aside (fix round 3, D3-02: five columns there read 46 to 54 characters a line) */
@media (min-width: 1200px) and (max-width: 1279px) { .pr-article { grid-column: 4 / span 5; } }
@media (min-width: 1280px) { .pr-article { grid-column: 4 / span 6; max-width: min(35em, 100% - 32px); } }

/* -- the article: .prose (inner.css) with the release's own parts -- */
/* the first screen is running text, and Hanken arrives after first paint (the fonts block loads it without
   blocking), so the swap must move it as little as possible. This fallback matches Hanken's average width in the
   releases' own text (core's is 0.4% wider in running text and 0.9% in the bold dateline, enough to rewrap a
   paragraph) and its vertical metrics after rounding (ascent 1.0002 and descent .303 of the size: core's .99999
   rounds a 17.5 px text box 1 px lower than Hanken's 1.0). Measured over the 22 releases at 1440, 1024, 768 and 390
   it halves the swap's layout shift against core's fallback; the head's lede keeps core's (a lede fallback did worse) */
@font-face { font-family: "Hanken Release Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 300 500; size-adjust: 100.53%; ascent-override: 99.493%; descent-override: 30.14%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Release Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 93.83%; ascent-override: 106.597%; descent-override: 32.292%; line-gap-override: 0%; }
.pr-article { font-family: "Hanken Grotesk", "Hanken Release Fallback", "Hanken Roboto", "Helvetica Neue", Arial, sans-serif; }
.pr-dateline { font-weight: 600; color: var(--navy); }
/* the media releases' topic lists carry old inline spacing; the prose list sets it */
.pr-article ul[style] { margin: 1.15em 0 0 !important; padding-left: 0 !important; }
.pr-article li[style] { margin-bottom: 0 !important; }
/* quotes: the prose quote (Georgia italic on a gold rule), the opening mark hung into the margin; the name in small
   caps, the title and company beneath it */
.prose .pr-quote { margin-block: 2.1em; }
.pr-quote p { text-indent: -.42em; }
.prose .pr-quote p { font-size: clamp(19px, 1.46vw, 21px); line-height: 1.55; }
.pr-quote cite { margin-top: 16px; color: var(--navy); }
.pr-quote .cite-role { display: block; margin-top: 5px; font: 400 14.5px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.pr-quote .cite-role em { font-style: normal; }
/* "About ..." sections: a small-caps label on a rule (prose h2), then quieter text */
.prose > .pr-section { margin-top: 2.9em; }
.prose > .pr-section + .pr-section { margin-top: 2.2em; }
.pr-section h2 { margin-top: 0; }
.prose .pr-section h2 + p { margin-top: 12px; max-width: 34em; font-size: 16px; line-height: 1.68; color: var(--slate); }
.prose > .pr-end { margin-top: 2.8em; text-align: center; font: 500 13px/1 var(--sans); letter-spacing: .4em; color: var(--label); }

/* == ASIDE: deal card, media contact, share row; square, hairlines, no shadows == */
/* the logo plate: white with a 2px navy head rule; the inline styles are the share image's and stay as written,
   so their greys are mapped to the site's rule and label tokens here (#9ca3af on white fails AA) */
.deal-logo { position: relative; display: flex; align-items: center; justify-content: center; height: 128px; padding: 24px 28px; background: #fff; border: 1px solid var(--rule); border-bottom: 0; }
.deal-logo::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--navy); }
.deal-logo img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 0 !important; }
.deal-logo span[style*="#e4e7ec"] { background: var(--rule) !important; }
.deal-logo div[style*="#e4e7ec"] { border-top-color: var(--rule) !important; }
.deal-logo span[style*="#9ca3af"] { color: var(--label) !important; }
.deal-logo span[style*="text-transform"] { font-size: 10px !important; letter-spacing: .2em !important; }
.deal-card { background: #fff; border: 1px solid var(--rule); border-top: 0; }
/* the hairline under the plate is drawn, so it can draw in (below) */
.deal-body { position: relative; margin-inline: 24px; padding-block: 22px 24px; }
.deal-body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--stone-rule); transform-origin: left; }
.deal-role { font: 600 11px/1.45 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); text-wrap: balance; }
.deal-title { margin-top: 10px; font: 400 21px/1.28 var(--serif); color: var(--navy); text-wrap: balance; }
.deal-facts { margin-top: 18px; border-top: 1px solid var(--stone-rule); }
.deal-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--stone-rule); font-size: 13.5px; line-height: 1.45; }
.deal-facts span:first-child { flex-shrink: 0; color: var(--label); }
.deal-facts span:last-child { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
/* the sign-off: the framed E mark (drawn here; an old logo <img> pasted into a release stays hidden), then the line */
.deal-brand { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 12.5px; line-height: 1.4; color: var(--label); }
.deal-brand span { text-wrap: balance; }
.deal-brand img { display: none; }
.deal-brand::before { content: ""; flex: none; width: 26px; height: 26px; background: url("../Images/v2/edgewater-e-navy-96.webp") center / contain no-repeat; }
/* the case study, under the deal card, only where the release and the case tell the same story (William, 3 November
   2026): one row, the title the link, stone sweeping in from the left and the arrow nudging, as on the ledgers */
.pr-case { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "k arrow" "t arrow"; align-items: center; column-gap: 14px; row-gap: 6px; margin-top: 18px; padding: 16px 20px 18px; background: #fff; border: 1px solid var(--rule); color: var(--navy); text-decoration: none; }
.pr-case::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stone); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.pr-case:hover::before, .pr-case:focus-visible::before { transform: none; }
.pr-case-k { grid-area: k; font: 600 11px/16px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.pr-case-t { grid-area: t; font: 400 18px/1.3 var(--serif); text-wrap: balance; }
.pr-case-arrow { grid-area: arrow; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .35s var(--ease-ui); }
.pr-case:hover .pr-case-arrow, .pr-case:focus-visible .pr-case-arrow { transform: translateX(5px); }

/* media contact and Listen cards: one link per line, each a 26px target */
.media-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 20px; background: #fff; border: 1px solid var(--rule); color: var(--ink); }
.media-card h3 { margin-bottom: 6px; font: 600 11px/16px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.media-card a { padding: 3px 0; font: 500 15px/20px var(--sans); color: var(--navy); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: .25em; overflow-wrap: anywhere; transition: text-decoration-color .2s; }
.media-card a:hover { text-decoration-color: currentColor; }
.media-card br { display: none; }
/* a media release has no deal card: its first card takes the plate's navy head rule */
.pr-aside > .media-card:first-child { position: relative; }
.pr-aside > .media-card:first-child::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--navy); }

/* share buttons: navy outline; a stone fill sweeps in with the button grammar's chevron edge (core .btn timing).
   Both need the closing script (the LinkedIn link gets its URL there), so without JS the row is not shown */
.share-row { display: flex; gap: 10px; }
html:not(.js) .share-row { display: none; }
.share-btn { position: relative; isolation: isolate; overflow: hidden; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 12px; border: 1px solid var(--navy); border-radius: 0; background: #fff; color: var(--navy); font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; }
.share-btn::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -28px; width: calc(100% + 56px); background: var(--stone-2);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%); transform: translateX(-100%); transition: transform .4s var(--ease); }
.share-btn:hover::before, .share-btn:focus-visible::before { transform: none; }
.share-btn:not(:hover):not(:focus-visible)::before { transition-duration: .28s; }
.share-btn svg { flex: none; width: 14px; height: 14px; fill: currentColor; }

/* desktop: the contact card and the share row stay in view below the header while the article is read (the deal
   card itself can be taller than the screen, so it scrolls); 88px is the contact card's fixed height (px line
   heights above), so the two stay 18px apart. At the foot of the aside the card's bottom margin keeps the share
   row's place (46px row + 18px gap), so the row never slides over the contact (fix round 2, PTR2-01) */
@media (min-width: 1024px) {
  .pr-aside > .media-card:nth-last-child(2) { position: sticky; top: calc(var(--mast-h) + 24px); margin-bottom: 64px; }
  .pr-aside > .share-row { position: sticky; top: calc(var(--mast-h) + 24px + 88px + 18px); margin-top: -64px; }
}
/* tablets: the aside follows the article. A deal card runs the full width, its plate on the left and the facts on
   the right, with the contact card and the share row side by side under it; a media release keeps its Listen card
   beside the two cards. The deal-card markup (read by share-image.ps1) is unchanged: only its boxes move. */
@media (max-width: 1023px) {
  .pr-aside { margin-top: clamp(44px, 7vw, 64px); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .pr-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; column-gap: var(--gutter); row-gap: 18px; align-items: start; }
  .pr-aside > :first-child { grid-row: span 3; }
  .pr-aside:has(> div > .deal-card) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .pr-aside > div:has(> .deal-card) { grid-row: auto; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .pr-aside > div:has(> .deal-card) > .deal-logo { height: auto !important; border-bottom: 1px solid var(--rule); }
  .pr-aside > div:has(> .deal-card) > .deal-card { position: relative; border-top: 1px solid var(--rule); border-left: 0; }
  .pr-aside > div:has(> .deal-card) > .deal-card::before { content: ""; position: absolute; left: 0; right: -1px; top: -1px; height: 2px; background: var(--navy); }
  .pr-aside > div:has(> .deal-card) > .pr-case { grid-column: 1 / -1; }
}

/* == SIGNATURE: the deal card assembles once (about 1 s, transform and opacity only). The plate and frame fade in,
   the hairline under the plate draws, the role and title rise, the facts follow 45 ms apart, the sign-off lands
   last, then the contact card and share row. Hidden only under html.motion until core.js adds .in; the failsafe
   and print rules below cover every part deeper than [data-r] > * (PHASE3 1.4). == */
html.motion .pr-aside[data-r] > * { transition: opacity .7s var(--ease) var(--a, 0s), transform .8s var(--ease) var(--a, 0s); }
html.motion .pr-aside[data-r]:not(.in) > :is(.media-card, .share-row) { opacity: 0; transform: translateY(16px); }
.pr-aside > :nth-child(2) { --a: .72s; }
.pr-aside > :nth-child(3) { --a: .8s; }
.pr-aside > .media-card:first-child { --a: .1s; }
.pr-aside > .media-card:first-child + * { --a: .2s; }
.pr-aside > .media-card:first-child + * + * { --a: .28s; }
html.motion .pr-aside[data-r] :is(.deal-logo, .deal-card) { transition: opacity .7s var(--ease) .04s; }
html.motion .pr-aside[data-r]:not(.in) :is(.deal-logo, .deal-card) { opacity: 0; }
html.motion .pr-aside[data-r] .deal-body::before { transition: transform .8s var(--ease) .16s; }
html.motion .pr-aside[data-r]:not(.in) .deal-body::before { transform: scaleX(0); }
html.motion .pr-aside[data-r] :is(.deal-role, .deal-title, .deal-facts > li, .deal-brand) { transition: opacity .6s var(--ease) var(--t, 0s), transform .7s var(--ease) var(--t, 0s); }
html.motion .pr-aside[data-r]:not(.in) :is(.deal-role, .deal-title, .deal-facts > li, .deal-brand) { opacity: 0; transform: translateY(10px); }
.deal-role { --t: .24s; }
.deal-title { --t: .3s; }
.deal-facts > li { --t: calc(.38s + var(--k, 0) * 45ms); }
.deal-facts > li:nth-child(2) { --k: 1; } .deal-facts > li:nth-child(3) { --k: 2; } .deal-facts > li:nth-child(4) { --k: 3; }
.deal-facts > li:nth-child(5) { --k: 4; } .deal-facts > li:nth-child(6) { --k: 5; } .deal-facts > li:nth-child(7) { --k: 6; }
.deal-facts > li:nth-child(n+8) { --k: 7; }
.deal-brand { --t: .74s; }
html.motion .pr-aside[data-r] .pr-case { transition: opacity .6s var(--ease) .82s, transform .7s var(--ease) .82s; }
html.motion .pr-aside[data-r]:not(.in) .pr-case { opacity: 0; transform: translateY(10px); }
/* below 1024 px the aside comes after the article, often reached by Tab: the contact card and the share row do not
   wait for the deal card. At any width, focus inside the aside shows it at once (WCAG 2.4.7: a focused link and its
   ring are never faded) */
@media (max-width: 1023px) { .pr-aside > :nth-child(2), .pr-aside > :nth-child(3) { --a: .12s; } }
html.motion .pr-aside[data-r]:focus-within > :is(div, .share-row), html.motion .pr-aside[data-r]:focus-within :is(.deal-logo, .deal-card, .deal-role, .deal-title, .deal-facts > li, .deal-brand, .pr-case) { opacity: 1; transform: none; transition-delay: 0s; transition-duration: .2s; }
html.motion .pr-aside[data-r]:focus-within .deal-body::before { transform: none; transition-delay: 0s; transition-duration: .2s; }
/* failsafe copy for the deeper parts: visible after 2.5 s if core.js never boots */
html.motion:not(.ready) .pr-aside[data-r] :is(.deal-logo, .deal-card, .deal-role, .deal-title, .deal-facts > li, .deal-brand, .pr-case),
html.motion:not(.ready) .pr-aside[data-r] .deal-body::before { animation: esg-failsafe .01s 2.5s forwards; }

/* == CLOSING STRIP (stone): back to Press and on to About == */
.pr-more .ch-head { margin-bottom: 0; }
.pr-more-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 48px; }
.pr-more-title { max-width: 21em; font-size: var(--t-d2); line-height: 1.2; }
.pr-more-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-bottom: 2px; }
@media (max-width: 1023px) {
  .pr-more-main { grid-template-columns: minmax(0, 1fr); }
  .pr-more-links { flex-direction: row; flex-wrap: wrap; gap: 4px 34px; }
}

/* == FORCED COLOURS AND PRINT == */
@media (forced-colors: active) {
  /* logo plates are artwork: they keep their own ground (a white logo on Riveron's navy plate would vanish) */
  .deal-logo { forced-color-adjust: none; }
  .deal-brand::before { forced-color-adjust: none; background-color: #fff; }
  .share-btn { border-color: ButtonText; }
  .share-btn::before { display: none; }
  .share-btn:hover, .share-btn:focus-visible { text-decoration: underline; }
  .pr-case::before { display: none; }
  .pr-case:hover .pr-case-t { text-decoration: underline; }
}
@media print {
  .pr-aside > *, .pr-aside :is(.deal-logo, .deal-card, .deal-role, .deal-title, .deal-facts > li, .deal-brand, .pr-case), .deal-body::before { opacity: 1 !important; transform: none !important; }
  .pr-back, .share-row, .pr-more { display: none !important; }
  .pr-body { padding-top: 24px; }
  .pr-kicker .pr-tag { color: var(--ink); }
  .pr-wrap { display: block; }
  .pr-aside { display: block; width: auto; max-width: 20rem; margin-top: 32px; }
  .pr-aside > * { position: static !important; }
  .pr-aside > * + * { margin-top: 18px; }
  .pr-quote, .deal-logo, .deal-card, .media-card { break-inside: avoid; }
}
