/* Partnerships — the partners portal and each partner's feature article.
   Loaded after styles.css, on partnerships/ pages only. The pages keep the
   Four Our Future header and footer, on the site's usual night ground.

   Modelled on the Media Services page (creative-services.css): soft discs of
   colour behind the cover, a full-width coloured band, a glowing partner
   card. Here the colour is Four Our Future's own: the logo blue, with the
   logo's Seed of Life green as a faint second light. The type is Four Our
   Future's too, from the design system (Four Our Future Design
   System/Foundations): Poppins SemiBold in capitals for display, Nunito Sans
   Light for reading, Barlow for buttons, labels and navigation. The layout is
   a news portal: a cover and section tabs, then a featured partner story
   flanked by sidebar panels, so new partners arrive as new stories.

   Fonts are self-hosted (SIL OFL 1.1) because the site's
   Content-Security-Policy allows no third-party origins. The declarations
   below are copied from the design system's fonts.css. */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 300 600; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/nunito-sans-300-600var-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 300 600; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/nunito-sans-300-600var-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-500-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-500-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Palette — Four Our Future's own, from styles.css and the design system.
   The page sits on the site's usual night ground; the colour comes from the
   logo's blue, with its Seed of Life green as a faint second light, in soft
   glows kept as quiet as the rest of the site's. The ceremonial four (red,
   yellow, black, white) are deliberately not used as decoration. */
.page-partners {
  --pt-ground: var(--night-950);      /* #0a0d10, the site's page colour */
  --pt-deep: #0e1c26;                 /* night with a little brand blue, behind photos as they load */
  --pt-text: var(--night-text);       /* 17.6:1 on the ground */
  --pt-lead: var(--ink-200);          /* 15:1 */
  --pt-body: var(--ink-300);          /* 12.2:1 */
  --pt-muted: var(--night-muted);     /* 9.6:1 */
  --pt-label: var(--blue-100);        /* the site's eyebrow colour, 15.2:1 */
  --pt-blue: var(--blue-500);         /* #1aa8de, the logo blue: 7.1:1 */
  --pt-blue-light: #5ec4ec;           /* hover and on-blue text: 9.8:1 */
  --pt-green: var(--green-500);       /* #00a651, keylines only */
}

/* Type, spacing and radius tokens — scoped to the page content, because
   styles.css already defines --font-display and --radius-* for the rest of
   the site. */
.pt {
  --color-border: rgb(58 70 80 / .7);
  --color-border-blue: rgb(26 168 222 / .1);

  /* The Four Our Future type: the design system's free stand-ins for the
     brand's Lulo Clean, Avenir Light and DIN Next. */
  --font-display: "Poppins", "Lulo Clean W01 One Bold", "Futura", "Century Gothic", sans-serif;
  --font-body: "Nunito Sans", "Avenir LT W01 35 Light", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Barlow", "DIN Next W01 Light", "Archivo", "Roboto Condensed", sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --glow-blue: rgb(26 168 222 / .08);
  --glow-green: rgb(0 166 81 / .033);

  /* The glows below sit at z-index -1 inside this stacking context: under
     every card and line of text, over the page colour, free to bleed across
     section edges. Sideways they stop at the window's edge, so the page
     never scrolls left and right. */
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--pt-ground);
  color: var(--pt-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
}

/* Headings: Poppins SemiBold in capitals, tracked, as the design system sets them. */
.pt h1, .pt h2, .pt h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--pt-text); }
.pt p { margin: 0; }
.pt a { color: var(--pt-blue); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pt a:hover { color: var(--pt-blue-light); }
.pt strong { font-weight: 600; }
.pt :focus-visible { outline: 2px solid var(--pt-blue-light); outline-offset: 3px; }

.pt-eyebrow { margin: 0 0 var(--space-md); font-family: var(--font-display); font-weight: 600; font-size: 12px; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--pt-label); }
.pt-eyebrow-blue { color: var(--pt-blue); }
.pt-lead { font-size: 23px; line-height: 1.5; color: var(--pt-lead); }
.pt-sub { font-size: 23px; line-height: 1.45; color: var(--pt-lead); }
.pt-meta { font-family: var(--font-ui); font-weight: 400; font-size: 15px; letter-spacing: .02em; color: var(--pt-muted); }

/* ---- buttons ----
   Pills, like the site's. The primary is the logo blue with the page's
   night colour on it (7.1:1), lightening on hover (9.8:1). */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border: 1.5px solid transparent; border-radius: var(--radius-full); font-family: var(--font-ui); font-weight: 500; font-size: 17px; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.pt .pt-btn-primary { background: var(--pt-blue); color: var(--pt-ground); box-shadow: 0 12px 28px -14px rgb(26 168 222 / .22); }
.pt .pt-btn-primary:hover { background: var(--pt-blue-light); color: var(--pt-ground); }
.pt .pt-btn-secondary { border-color: var(--color-border-blue); color: var(--pt-text); background: rgb(10 13 16 / .35); }
.pt .pt-btn-secondary:hover { border-color: var(--pt-blue); color: var(--pt-text); }
.pt-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ---- badges ---- */
.pt-badge { display: inline-block; padding: 5px 14px; border: 1px solid var(--color-border-blue); border-radius: var(--radius-full); background: rgb(10 13 16 / .72); font-family: var(--font-display); font-weight: 600; font-size: 11px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--pt-label); }

/* ---- cover ----
   A short band, everything on the left: the eyebrow, the title, one line and
   the Articles button. Behind it, a soft blue light high on the right and a faint
   green one low on the left, spilling down into the featured story. */
.pt-hero { position: relative; }
.pt-hero::before { content: ""; position: absolute; z-index: -1; inset: 0 -15vw -340px; pointer-events: none; background: radial-gradient(36% 46% at 80% 18%, var(--glow-blue), transparent 72%), radial-gradient(34% 40% at 24% 30%, rgb(15 142 189 / .05), transparent 72%), radial-gradient(28% 30% at 8% 64%, var(--glow-green), transparent 72%), radial-gradient(40% 24% at 58% 72%, rgb(26 168 222 / .022), transparent 72%); }
.pt-hero-copy { max-width: 760px; }
.pt-hero .pt-eyebrow { margin-bottom: var(--space-md); }
.pt-hero h1 { margin: 0 0 var(--space-sm); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: .02em; color: var(--pt-blue); }
/* Over an article the cover is shorter: the article's own title follows. */
.pt-hero-compact::before { bottom: -200px; }
.pt-hero-compact .pt-eyebrow { margin-bottom: var(--space-sm); }
.pt-hero-compact .pt-sub { margin-top: var(--space-sm); font-size: 20px; }
.pt-nameplate { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 37px); line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; }
.pt .pt-nameplate a { color: var(--pt-blue); text-decoration: none; }
.pt .pt-nameplate a:hover { color: var(--pt-blue-light); }

/* ---- articles ----
   Under the line, a larger "Articles" button. A click opens every article in
   a row to its right (and closes it again); articles that don't fit the row
   move behind a down arrow at its end, which lists them. The arrow only
   shows when something is hidden. app/partnerships.js does the opening and
   the fitting. */
.pt-articles-nav { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-lg); }
.pt-articles-nav [hidden] { display: none !important; }
.pt-articles-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 6px 0 28px; border: 1.5px solid var(--color-border-blue); border-radius: var(--radius-full); background: rgb(10 13 16 / .45); color: var(--pt-blue); font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.pt-articles-btn:hover, .pt-articles-btn[aria-expanded="true"] { border-color: var(--pt-blue); background: rgb(26 168 222 / .033); }
/* Its arrow: a circle, as the brand prefers, pointing back while the row is open. */
.pt-articles-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(26 168 222 / .044); transition: background-color .2s ease, color .2s ease; }
.pt-articles-btn[aria-expanded="true"] .pt-articles-arrow { background: var(--pt-blue); color: var(--pt-ground); }
.pt-articles-btn[aria-expanded="true"] .pt-articles-arrow svg { rotate: 180deg; }
.pt-articles-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .2s ease; }

/* The row of articles, sliding in beside the button. */
.pt-articles-track { display: flex; align-items: center; gap: var(--space-md); min-width: 0; animation: pt-row-in .25s ease; }
@keyframes pt-row-in { from { opacity: 0; translate: -12px 0; } }
.pt-articles-row { display: flex; align-items: center; gap: var(--space-lg); min-width: 0; margin: 0; padding: 0; list-style: none; }
.pt-articles-row li { flex: 0 0 auto; }
/* When not even the first article fits on one line (a phone), it wraps. */
.pt-articles-row li.is-squeezed { flex: 0 1 auto; min-width: 0; }
.pt-articles-track:has(.is-squeezed) { flex: 1 1 0; }
.pt .pt-articles-row a { display: block; padding: 6px 0; font-family: var(--font-ui); font-weight: 500; font-size: 18px; line-height: 1.35; white-space: nowrap; color: var(--pt-lead); text-decoration: none; box-shadow: inset 0 -1.5px 0 transparent; transition: color .2s ease, box-shadow .2s ease; }
.pt .pt-articles-row .is-squeezed a { white-space: normal; }
.pt .pt-articles-row a:hover { color: var(--pt-text); box-shadow: inset 0 -1.5px 0 rgb(26 168 222 / .28); }
.pt .pt-articles-row a[aria-current="page"] { color: var(--pt-text); box-shadow: inset 0 -1.5px 0 var(--pt-blue); }

/* The down arrow, and the articles that didn't fit. */
.pt-articles-more { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--color-border-blue); border-radius: 50%; background: rgb(10 13 16 / .45); color: var(--pt-blue); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.pt-articles-more:hover { border-color: var(--pt-blue); }
.pt-articles-track:has(.pt-articles-rest:popover-open) .pt-articles-more { border-color: var(--pt-blue); background: var(--pt-blue); color: var(--pt-ground); }
.pt-articles-track:has(.pt-articles-rest:popover-open) .pt-articles-more svg { rotate: 180deg; }
.pt-articles-rest { width: min(380px, calc(100vw - 40px)); max-height: min(440px, 70vh); margin: auto; padding: 0; overflow: hidden auto; overscroll-behavior: contain; border: 1px solid var(--color-border-blue); border-radius: var(--radius-lg); background: radial-gradient(120% 60% at 100% 0%, rgb(26 168 222 / .06), transparent 60%), linear-gradient(160deg, #0f1a21, #10181f 55%); color: var(--pt-text); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .75); scrollbar-width: thin; scrollbar-color: rgb(26 168 222 / .17) transparent; }
.pt-articles-rest.is-anchored { position: fixed; inset: auto; top: var(--pt-pop-top); left: var(--pt-pop-left); max-height: min(440px, var(--pt-pop-room)); margin: 0; }
.pt-articles-rest.is-anchored.is-above { top: auto; bottom: var(--pt-pop-bottom); }
.pt-articles-rest ul { margin: 0; padding: 8px; list-style: none; }
.pt .pt-articles-rest a { display: block; padding: 10px 12px; border-radius: var(--radius-md); font-family: var(--font-ui); font-weight: 500; font-size: 16px; line-height: 1.3; color: var(--pt-text); text-decoration: none; }
.pt .pt-articles-rest a:hover, .pt .pt-articles-rest a:focus-visible { background: rgb(26 168 222 / .04); color: var(--pt-text); }
.pt .pt-articles-rest a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--pt-blue); }

/* ---- featured story ----
   With nothing beside it, the story has the page's full width: photo on the
   left, words on the right, light pooling behind both. */
.pt-featured { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; padding: var(--space-2xl) 0 var(--space-3xl); }
.pt-featured::before { content: ""; position: absolute; z-index: -1; inset: 0 -20vw; pointer-events: none; background: radial-gradient(34% 44% at 30% 46%, rgb(26 168 222 / .044), transparent 72%), radial-gradient(24% 30% at 86% 30%, rgb(15 142 189 / .033), transparent 72%), radial-gradient(22% 26% at 70% 78%, rgb(0 166 81 / .019), transparent 72%); }
.pt .pt-featured-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--pt-deep); box-shadow: 0 30px 60px -30px rgb(26 168 222 / .14); }
.pt-featured-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.pt-featured-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, rgb(10 13 16 / .7), transparent); pointer-events: none; }
.pt-featured-media .pt-badge { position: absolute; z-index: 1; left: var(--space-md); bottom: var(--space-md); }
.pt-featured-media:hover img { transform: scale(1.02); }
.pt-featured .pt-eyebrow { margin: 0 0 var(--space-md); }
.pt-featured h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.pt .pt-featured h2 a { color: inherit; text-decoration: none; transition: color .2s ease; }
.pt .pt-featured h2 a:hover { color: var(--pt-blue); }
.pt-featured .pt-meta { margin-top: var(--space-lg); }
.pt-featured .pt-lead { margin-top: var(--space-md); }
.pt-featured .pt-actions { margin-top: var(--space-xl); }

/* ---- the article ----
   One layout for every article, so each reads like the last. On top, a box
   in the partner form's colours, the full width of the window, holds the
   kicker and headline, then the photo with the summary and date beside it;
   its colour fades out towards the bottom, leading the eye down into the
   text. Below, a single
   reading column of plain headings, paragraphs, lists and quotes, styled by
   element rather than by class, so a new article (or one filled in from a
   database) needs no new markup. */
.pt-story { padding-top: 0; }
.pt-story-top { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-xl) var(--space-2xl); align-items: center; padding: var(--space-2xl) 0; }
/* The box's colour runs the full width of the window, straight under the
   cover, while its words keep to the page's column. */
.pt-story-top::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); pointer-events: none; background: radial-gradient(70% 120% at 0% 0%, rgb(26 168 222 / .088), transparent 70%), radial-gradient(50% 80% at 100% 20%, rgb(0 166 81 / .028), transparent 70%), linear-gradient(135deg, #0f1a21, #101719 60%, #172229); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.pt-story-title { grid-column: 1 / -1; }
.pt-story-title h1 { margin: 0; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: .02em; }
.pt-story-photo { margin: 0; }
.pt-story-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.pt figcaption.pt-caption { margin-top: var(--space-md); font-family: var(--font-ui); font-size: 15px; line-height: 1.5; color: var(--pt-muted); }
.pt-story-summary .pt-meta { margin-top: var(--space-lg); }

/* The text runs most of the page's width on a computer (about 95 characters
   a line), in a column centred on the page; its lines stay left-aligned. */
.pt-story-body { width: min(920px, 100%); margin: var(--space-lg) auto 0; font-size: 19px; line-height: 1.6; color: var(--pt-body); }
.pt .pt-story-body > * { margin: var(--space-lg) 0 0; }
.pt .pt-story-body > :first-child { margin-top: 0; }
.pt .pt-story-body h2 { margin-top: 48px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.pt .pt-story-body h3 { margin-top: 32px; font-size: 17px; line-height: 1.3; letter-spacing: .08em; }
.pt .pt-story-body h2 + *, .pt .pt-story-body h3 + * { margin-top: var(--space-md); }
.pt-story-body ul, .pt-story-body ol { padding-left: 1.3em; }
.pt-story-body li + li { margin-top: var(--space-sm); }
.pt-story-body li::marker { color: var(--pt-muted); }
.pt-story-body blockquote { margin: 0; padding-left: var(--space-lg); border-left: 2px solid var(--color-border); }
.pt .pt-story-body blockquote p { font-size: clamp(22px, 2.6vw, 27px); line-height: 1.4; color: var(--pt-text); }
.pt .pt-story-body figcaption { margin-top: var(--space-sm); padding-left: var(--space-lg); font-family: var(--font-ui); font-size: 15px; color: var(--pt-muted); }

/* ---- partner call ----
   A card with the logo blue glowing in from the left. */
.pt-partner { position: relative; padding: var(--space-3xl) 0; }
/* Straight after the featured story, its own bottom space is enough. */
.pt-featured + .pt-partner { padding-top: 0; }
/* The form's box, which the cover repeats at the top of the page. */
.pt-partner-card, .pt-hero-card { position: relative; overflow: hidden; padding: var(--space-2xl); border: 1px solid var(--color-border-blue); border-radius: var(--radius-lg); background: radial-gradient(70% 120% at 0% 50%, rgb(26 168 222 / .088), transparent 70%), radial-gradient(50% 80% at 100% 100%, rgb(0 166 81 / .028), transparent 70%), linear-gradient(135deg, #0f1a21, #101719 60%, #172229); box-shadow: 0 40px 80px -40px rgb(26 168 222 / .12); }
/* At the top it runs the full width of the window, straight under the site
   header: no edges but the one below, no corners, and the cover's words keep
   to the page's column inside it. */
.pt-hero-card { padding: var(--space-xl) 0; border-width: 0 0 1px; border-radius: 0; }
.pt-hero-compact .pt-hero-card { padding-block: var(--space-lg); }
.pt-partner-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: start; }
/* His words, small, under the call: the form spans both rows on the right
   and the quote settles to the foot of the left column, level with the
   button. On a phone it simply follows the form. */
.pt-partner-inner:has(.pt-partner-words) { grid-template-rows: auto 1fr; }
.pt-partner-inner:has(.pt-partner-words) > .pt-form { grid-column: 2; grid-row: 1 / span 2; }
.pt-partner-words { grid-column: 1; grid-row: 2; align-self: end; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-lg); align-items: center; padding-top: var(--space-xl); border-top: 1px solid var(--color-border); }
.pt-partner-words img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 2px rgb(0 166 81 / .55), 0 0 0 6px rgb(10 13 16 / .45); }
.pt-partner-words .pt-eyebrow { margin-bottom: var(--space-sm); font-size: 11px; }
.pt-partner-words blockquote { margin: 0; }
.pt .pt-partner-words blockquote p { font-size: 20px; line-height: 1.4; color: var(--pt-text); }
.pt .pt-partner-words-cite { margin-top: var(--space-sm); font-family: var(--font-ui); font-size: 15px; color: var(--pt-muted); }
.pt .pt-partner-words a { display: inline-block; margin-top: var(--space-xs); font-family: var(--font-ui); font-weight: 500; font-size: 16px; }
.pt-partner h2 { margin: 0 0 var(--space-lg); font-size: clamp(28px, 3.8vw, 42px); line-height: 1.12; }
.pt-partner .pt-lead { margin-bottom: var(--space-lg); }
/* A line under the heading, in the eyebrow's style; only its first word is in italics. */
.pt .pt-partner-tag { margin: calc(-1 * var(--space-md)) 0 var(--space-lg); }

/* The form: same fields and behaviour as the homepage form, in this palette. */
.pt .pt-form label > span { margin-bottom: var(--space-xs); font-family: var(--font-ui); font-weight: 500; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-label); }
.pt .pt-form input, .pt .pt-form textarea { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgb(10 13 16 / .8); color: var(--pt-text); font-family: var(--font-body); font-weight: 300; font-size: 18px; }
.pt .pt-form input::placeholder, .pt .pt-form textarea::placeholder { color: rgb(169 184 193 / .75); }
.pt .pt-form input:focus, .pt .pt-form textarea:focus { outline: 2px solid var(--pt-blue); border-color: transparent; }
.pt .pt-form .pt-btn { width: 100%; }
.pt .pt-form .form-status { font-family: var(--font-body); font-size: 16px !important; color: var(--pt-lead); }
.pt .pt-form .form-status.is-error { color: #f3b4a8; }
.pt .pt-form .form-status a { color: var(--pt-blue-light); }

@media (prefers-reduced-motion: reduce) {
  .pt-featured-media img, .pt-btn, .pt .pt-featured h2 a, .pt-articles-btn, .pt-articles-arrow, .pt-articles-nav svg, .pt .pt-articles-row a, .pt-articles-more { transition: none; }
  .pt-articles-track { animation: none; }
  .pt-featured-media:hover img { transform: none; }
}

@media (max-width: 900px) {
  .pt-featured { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding-top: var(--space-2xl); }
  .pt-partner-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .pt-partner-inner:has(.pt-partner-words) { grid-template-rows: none; }
  .pt-partner-inner:has(.pt-partner-words) > .pt-form, .pt-partner-words { grid-column: auto; grid-row: auto; }
  .pt-story-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 780px) {
  .pt-hero .pt-sub, .pt-lead { font-size: 20px; }
  .pt-featured { padding: var(--space-xl) 0 var(--space-2xl); }
  .pt-partner { padding: var(--space-2xl) 0; }
  .pt-story-top { padding: var(--space-xl) 0; }
  .pt-story-body { font-size: 18px; }
  .pt .pt-story-body h2 { margin-top: var(--space-xl); }
  .pt .pt-story-body h3 { margin-top: var(--space-lg); }
  .pt-story-title h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .pt-story-summary .pt-meta { margin-top: var(--space-md); }
  .pt-partner-card { padding: var(--space-xl) var(--space-lg); }
  .pt-hero-card { padding-block: var(--space-lg); }
  .pt-actions .pt-btn { flex: 1 1 100%; }
  .pt-btn { padding: 0 var(--space-lg); text-align: center; }
}

/* On a phone the row drops below the button. */
@media (max-width: 600px) {
  .pt-articles-nav .pt-articles-track { flex: 0 0 100%; }
}
