/* UDGHOṢA: Campus direction. Roboto Serif for headlines, Roboto for text and UI. Mobile first. */

:root {
	--ink: #111614;
	--ink-soft: #3c4642;
	--muted: #5b6661;
	--green: #1b7f45;
	--green-deep: #14633a;
	--mint: #e3f3e8;
	--paper: #f4f7f5;
	--coral: #ee5a36;
	--coral-ink: #b23a1c;
	--line: #e2e6e3;
	--white: #fff;


	/* Type scale. Below body: two fixed UI sizes. Body: 17px. Above body: ratio 1.25.
	   Every font-size in this file uses one of these; headlines may scale fluidly between two steps. */
	--fs-xs: 13px;    /* captions, badges, small labels */
	--fs-sm: 15px;    /* bylines, meta, buttons, secondary text */
	--fs-base: 17px;  /* body text */
	--fs-md: 21px;    /* card titles, sub-heads, ledes */
	--fs-lg: 27px;    /* section heads, article h2 */
	--fs-xl: 33px;    /* page titles on phones */
	--fs-2xl: 42px;
	--fs-3xl: 52px;
	--fs-4xl: 64px;   /* display headlines on wide screens */

	--font-display: "Roboto Serif", Roboto, Georgia, serif;
	--font-text: Roboto, system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Devanagari", sans-serif;

	--wrap: 1200px;
	--measure: 680px;
	--gutter: 16px;
	--radius: 14px;
	--radius-lg: 22px;
	--s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: clamp(48px, 8vw, 88px);
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--fs-base)/1.65 var(--font-text); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
button, a, [role="button"] { touch-action: manipulation; }
button, input, textarea, select { font: inherit; font-size: var(--fs-base); } /* 16px+ stops iOS zooming into fields */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .4em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
/* Long technical words ("Pharmacoepidemiology") break or hyphenate instead of pushing the page sideways. */
p { margin: 0 0 1em; text-wrap: pretty; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 782px) { :root { --gutter: 32px; --header-h: 76px; } }

/* Icons and buttons */
.icon { flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--green); color: var(--white); font: 600 var(--fs-sm)/1 var(--font-text); text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.btn:active { transform: scale(.98); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn--outline { background: transparent; color: var(--green-deep); box-shadow: inset 0 0 0 2px var(--green-deep); }
.btn--coral { background: var(--coral); color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
	.btn:hover { background: var(--green-deep); }
	.btn--outline:hover { background: var(--mint); }
	.btn--coral:hover { background: #f27552; }
	.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
	.icon-btn:hover { background: var(--paper); }
}

/* Pills and kickers */
.pill { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--mint); color: var(--green-deep); font: 600 var(--fs-xs)/1.3 var(--font-text); text-decoration: none; }
.kicker { display: inline-block; padding-block: 4px; color: var(--green-deep); font: 600 var(--fs-xs)/1.3 var(--font-text); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: #cfead8; } .kicker:hover { text-decoration: underline; } }

/* Header */
/* The blur sits on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the fixed menu drawer and clip the drawer to the header's height. */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.96); }
@supports (backdrop-filter: blur(8px)) { .site-header::before { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); } }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
.site-header__bar { display: flex; align-items: center; gap: var(--s2); height: var(--header-h); }
.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { height: 46px; width: auto; }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-toggle span { display: inline-flex; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex !important; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.nav__list a[aria-current="page"], .nav__list .current-menu-item > a { color: var(--green-deep); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* Phone: the menu is a full-height drawer */
@media (max-width: 1023px) {
	.nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 40; background: var(--white); padding: var(--s2) var(--gutter) calc(var(--s4) + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s; }
	.nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
	.nav__list li { border-bottom: 1px solid var(--line); }
	.nav__list a { display: block; padding: 16px 0; font-family: var(--font-text); font-size: var(--fs-md); font-weight: 700; }
	.nav__join { margin-top: var(--s3); width: 100%; min-height: 52px; font-size: var(--fs-sm); }
	body.nav-open { overflow: hidden; }
}
@media (min-width: 1024px) {
	.site-header__logo img { height: 58px; }
	.nav { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
	.nav__list { display: flex; gap: 22px; }
	.nav-toggle { display: none; }
	.site-header__tools { margin-left: 0; }
}
.site-search { border-top: 1px solid var(--line); background: var(--white); padding: 12px 0; }
.site-search__form { display: flex; gap: 8px; }
.site-search__form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1.5px solid #c9d1cc; border-radius: 999px; }

/* Home intro strip: says what this is before the first story */
.intro { background: var(--paper); border-bottom: 1px solid var(--line); }
.intro__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-block: 10px; }
.intro__text { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.intro__text a { font-weight: 600; white-space: nowrap; }
.intro__issue { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--white); font: 600 var(--fs-xs)/1 var(--font-text); text-decoration: none; white-space: nowrap; }
.meta__new { padding: 2px 8px; border-radius: 999px; background: #fde6df; color: var(--coral-ink); font-size: var(--fs-xs); font-weight: 600; }
.policy-line { max-width: var(--measure); margin: 0 auto var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }

/* Section headings */
.section { padding-block: var(--s4); }
.section--tint { background: var(--paper); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.section-head__title { font-size: clamp(var(--fs-lg), 3.2vw, var(--fs-xl)); margin: 0; }
.section-head__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; min-height: 44px; }
.section-head__link .icon { width: 18px; height: 18px; }

/* Media and placeholder tiles */
.media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.media__img { width: 100%; height: 100%; object-fit: cover; }
.media--fill { background: var(--fill); color: #fff; }
.media--fill::before { content: ""; position: absolute; right: -15%; top: -35%; width: 65%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0) 70%); }
.media--fill::after { content: ""; position: absolute; left: -10%; bottom: -45%; width: 50%; aspect-ratio: 1; border-radius: 50%; border: 14px solid currentColor; opacity: .12; }
/* Section gradients, from the site palette (deep green, coral, ink, mint, green-to-coral, turmeric). */
.media--fill-0 { --fill: linear-gradient(135deg, #0f4f2e 0%, #1b7f45 55%, #5fb583 100%); }
.media--fill-1 { --fill: linear-gradient(135deg, #c9401c 0%, #ee5a36 45%, #f7a585 100%); }
.media--fill-2 { --fill: linear-gradient(135deg, #0b100e 0%, #24302b 55%, #42554b 100%); }
.media--fill-3 { --fill: linear-gradient(135deg, #b9e4c9 0%, #dff2e6 55%, #f4f9f6 100%); color: var(--green-deep); }
.media--fill-4 { --fill: linear-gradient(120deg, #14633a 0%, #2f8a55 45%, #ee5a36 115%); }
.media--fill-5 { --fill: linear-gradient(135deg, #eeb35c 0%, #f5d79f 55%, #fbf1dc 100%); color: #8a5a10; }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card .pill, .card .kicker, .card .meta a { position: relative; z-index: 1; }
.card__media { display: block; text-decoration: none; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.card__title { font-size: var(--fs-md); line-height: 1.2; margin: 0; overflow-wrap: break-word; hyphens: auto; }
.card__title a { color: inherit; text-decoration: none; }
.card__deck { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.meta__time { white-space: nowrap; }
/* The dot belongs to the names: if the line wraps it ends the line instead of starting the next. */
.meta__by:not(:last-child)::after { content: "·"; margin-left: 8px; color: var(--muted); font-weight: 400; }
.card--lead .card__title { font-size: clamp(var(--fs-xl), 4.6vw, var(--fs-2xl)); line-height: 1.06; }
.card--lead .card__deck { font-size: var(--fs-base); -webkit-line-clamp: 4; }
.card--lead.is-long .card__title { font-size: clamp(var(--fs-lg), 5vw, var(--fs-2xl)); line-height: 1.08; }
.card--row { padding: 14px 0; border-top: 1px solid var(--line); gap: 4px; }
.card--row .card__title { font-size: var(--fs-base); }
@media (hover: hover) and (pointer: fine) {
	.card__title a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
	.card__media .media__img { transition: transform .5s var(--ease-out); }
	.card__media:hover .media__img { transform: scale(1.03); }
	.meta a:hover { text-decoration: underline; }
}
.grid { display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }

/* Home: lead story + latest rail */
.home-lead { padding-block: var(--s3) var(--s4); }
.home-lead__grid { display: grid; gap: var(--s4); }
.archive-lead { max-width: 860px; margin-bottom: var(--s4); }
/* Phones: a card without a photo gets a short gradient strip instead of a full tile. */
@media (max-width: 639px) { .card--noimg .media { aspect-ratio: 16 / 6; } .grid { gap: var(--s3); } }
.home-lead__rail h2 { font-size: var(--fs-sm); font-family: var(--font-text); font-weight: 700; letter-spacing: .02em; color: var(--muted); margin: 0 0 4px; }
@media (min-width: 900px) { .home-lead__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; } }

/* Issue panel (home and archive) */
.issue-panel { display: grid; gap: var(--s3); align-items: center; padding: var(--s3); border-radius: var(--radius-lg); background: var(--ink); color: #e8eeea; }
.issue-panel h2, .issue-panel h1 { color: var(--white); font-size: clamp(var(--fs-lg), 4vw, var(--fs-2xl)); margin: 6px 0 10px; }
.issue-panel__label { color: #9fddb5; font-weight: 600; font-size: var(--fs-sm); margin: 0; }
.issue-panel__cover { width: min(56vw, 240px); justify-self: center; border-radius: 6px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); transform: rotate(-2deg); }
.issue-panel__note { color: #c9d3cd; max-width: 56ch; }
.issue-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s2); }
.issue-panel__next { margin: var(--s2) 0 0; font-size: var(--fs-sm); color: #9aa69f; }
@media (min-width: 782px) { .issue-panel { grid-template-columns: 280px minmax(0, 1fr); padding: var(--s4); gap: var(--s4); } .issue-panel__cover { width: 100%; } }

/* Opportunities */
.opps { list-style: none; margin: 0; padding: 0; }
.opp { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.opp__title { font: 700 var(--fs-base)/1.3 var(--font-display); margin: 0; }
.opp__title a { color: var(--ink); text-decoration: none; }
.opp__meta { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.status { justify-self: start; display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 var(--fs-xs)/1.4 var(--font-text); }
.status--open { background: var(--mint); color: var(--green-deep); }
.status--soon { background: #fde6df; color: var(--coral-ink); }
.status--ongoing { background: var(--paper); color: var(--ink-soft); }
.status--closed { background: #eceeed; color: var(--muted); }
@media (min-width: 782px) { .opp { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s3); } .opp .status { grid-column: 2; grid-row: 1 / span 2; justify-self: end; } }
@media (hover: hover) and (pointer: fine) { .opp__title a:hover { text-decoration: underline; text-decoration-color: var(--coral); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s3); padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Calls to action */
.ctas { display: grid; gap: var(--s2); }
.cta { padding: var(--s3); border-radius: var(--radius-lg); background: var(--mint); }
.cta h2 { font-size: clamp(var(--fs-lg), 3vw, var(--fs-xl)); }
.cta p { color: var(--ink-soft); max-width: 46ch; }
.cta--dark { background: var(--green-deep); color: #e3f3e8; }
.cta--dark h2 { color: var(--white); }
.cta--dark p { color: #cfe7d7; }
@media (min-width: 782px) { .ctas { grid-template-columns: 1fr 1fr; } .cta { padding: var(--s4); } }

/* Sections index */
.sections { display: grid; gap: 0 var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.sections li { border-top: 1px solid var(--line); }
.sections a { display: block; padding: 18px 0; text-decoration: none; color: inherit; }
.sections__name { display: block; font: 700 var(--fs-md)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.sections__desc { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.sections__count { display: block; color: var(--green-deep); font-size: var(--fs-xs); font-weight: 600; margin-top: 6px; }
@media (hover: hover) and (pointer: fine) { .sections a:hover .sections__name { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; } }

/* Page and archive headers */
.page-head { padding-block: var(--s4) var(--s3); }
.page-head h1 { font-size: clamp(var(--fs-xl), 6vw, var(--fs-3xl)); line-height: 1.02; margin: 10px 0 12px; }
.page-head__lede { color: var(--ink-soft); font-size: var(--fs-md); max-width: 60ch; margin: 0; }
.page-head--center { text-align: center; }
.page-head--center .page-head__lede { margin-inline: auto; }

/* Article */
.article-head { max-width: 860px; margin-inline: auto; padding-top: var(--s4); }
.article-head h1 { font-size: clamp(var(--fs-xl), 6.4vw, var(--fs-4xl)); line-height: 1.03; margin: 14px 0 16px; }
.article-head__deck { font-size: clamp(var(--fs-base), 2.2vw, var(--fs-md)); line-height: 1.45; color: var(--ink-soft); margin: 0 0 var(--s3); }
.byline { display: flex; align-items: center; gap: 12px; padding-block: 16px; border-block: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 519px) { .byline { align-items: flex-start; } .byline .share { flex-basis: 100%; } }
.article-head.is-long h1 { font-size: clamp(var(--fs-lg), 5vw, var(--fs-2xl)); line-height: 1.08; }
.byline__avatars { display: flex; }
.byline__avatars .avatar + .avatar { margin-left: -10px; box-shadow: 0 0 0 2px var(--white); }
.byline__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.byline__text .meta { font-size: var(--fs-sm); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 600 var(--fs-sm)/1 var(--font-text); text-decoration: none; cursor: pointer; }
.share__btn--wa { border-color: #b9e3c7; background: #eefaf2; color: #0f5a32; }
@media (max-width: 520px) { .share__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .share__btn { width: 44px; padding: 0; justify-content: center; } }
.article-hero { max-width: 1100px; margin: var(--s3) auto 0; }
.article-hero .media { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
/* A decorative band, not a picture: short on every screen. */
.article-hero--fill .media { aspect-ratio: auto; height: clamp(96px, 14vw, 180px); }
/* Lead: headline over the image (photo or section gradient), with a scrim for contrast. */
/* Image and text share one grid cell, text at the bottom: a long headline makes the card taller
   instead of being clipped at the top (UI audit v3, finding 1). */
.card--overlay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; }
.card--overlay > .card__media, .card--overlay > .card__body { grid-area: 1 / 1; }
.card--overlay > .card__media { display: block; aspect-ratio: 16 / 9; min-height: 420px; }
.card--overlay .media { border-radius: 0; aspect-ratio: auto; height: 100%; }
.card--overlay .card__deck { -webkit-line-clamp: 3; }
.card--overlay .card__body { position: relative; align-self: end; z-index: 1; gap: 10px; padding: var(--s3); color: #fff; padding-top: 64px; background: linear-gradient(to top, rgba(8,12,10,.88) 0%, rgba(8,12,10,.66) calc(100% - 64px), rgba(8,12,10,0) 100%); /* fade happens in the top padding, never behind text */ pointer-events: none; }
.card--overlay .card__body a, .card--overlay .card__title a::after { pointer-events: auto; }
.card--overlay .card__title, .card--overlay .card__title a { color: #fff; }
.card--overlay .card__deck { color: rgba(255,255,255,.9); }
.card--overlay .meta, .card--overlay .meta a { color: rgba(255,255,255,.9); }
.card--overlay .meta__by::after { color: rgba(255,255,255,.7); }
.card--overlay .pill { background: rgba(255,255,255,.94); }
.card--overlay.is-light .card__body { color: var(--ink); background: linear-gradient(to top, rgba(255,255,255,.92) 0%, rgba(255,255,255,.72) calc(100% - 64px), rgba(255,255,255,0) 100%); }
.card--overlay.is-light .card__title, .card--overlay.is-light .card__title a { color: var(--ink); }
.card--overlay.is-light .card__deck, .card--overlay.is-light .meta, .card--overlay.is-light .meta a { color: var(--ink-soft); }
@media (min-width: 900px) { .card--overlay .card__body { padding: 72px var(--s4) var(--s4); } .card--overlay .card__deck { max-width: 60ch; } }
@media (max-width: 639px) { .card--overlay > .card__media { aspect-ratio: auto; min-height: 440px; } }
/* Section label on a card's image corner. */
.card .card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; box-shadow: 0 2px 8px rgba(17,22,20,.12); }
.article-hero figcaption { color: var(--muted); font-size: var(--fs-sm); margin-top: 8px; padding-inline: 4px; }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar--initials { display: inline-flex; align-items: center; justify-content: center; background: var(--mint); color: var(--green-deep); font-family: var(--font-display); font-weight: 700; }

/* Long-form text */
.prose { max-width: var(--measure); margin-inline: auto; font-size: var(--fs-base); line-height: 1.7; padding-block: var(--s4); }
.prose > * { margin-block: 0 1.1em; }
.prose h2 { font-size: clamp(var(--fs-md), 3vw, var(--fs-lg)); margin-top: 1.7em; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.5em; }
.prose a { color: var(--green-deep); text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green); }
.prose strong { font-weight: 650; }
.prose blockquote, .prose .wp-block-quote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--coral); color: var(--ink-soft); }
.prose cite { display: block; font-style: normal; font-size: var(--fs-sm); color: var(--muted); margin-top: 8px; }
.prose .wp-block-pullquote { margin-inline: 0; padding: var(--s3); border-radius: var(--radius); background: var(--mint); text-align: left; border: 0; }
.prose .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; color: var(--ink); }
.prose .wp-block-pullquote p { font: 700 clamp(var(--fs-md), 3vw, var(--fs-lg))/1.25 var(--font-display); letter-spacing: -0.02em; margin: 0; }
.prose .wp-block-table { overflow-x: auto; margin-inline: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); line-height: 1.5; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose thead th, .prose thead td { background: var(--paper); font-weight: 700; border-bottom: 2px solid var(--ink); }
.prose figure { margin-inline: 0; }
.prose img { border-radius: var(--radius); }
.prose figcaption { color: var(--muted); font-size: var(--fs-sm); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose em { font-style: normal; font-weight: 600; } /* Only upright fonts are loaded; emphasis by weight, not faux slant. */
.prose .wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--green); color: var(--white); font: 600 var(--fs-sm)/1 var(--font-text); text-decoration: none; }
.prose .wp-block-details { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.prose .wp-block-details summary { cursor: pointer; font-weight: 700; min-height: 28px; }

/* Feature stories: full-width opening image with the headline on it, drop cap, wide pull quotes. */
.feature-hero { display: grid; grid-template-columns: minmax(0, 1fr); min-height: min(78svh, 720px); background: var(--ink); color: #fff; isolation: isolate; }
.feature-hero > * { grid-area: 1 / 1; }
.feature-hero__media .media { aspect-ratio: auto; height: 100%; border-radius: 0; }
.feature-hero__body { align-self: end; z-index: 1; padding: 96px var(--gutter) var(--s4); background: linear-gradient(to top, rgba(8,12,10,.9) 0%, rgba(8,12,10,.68) calc(100% - 96px), rgba(8,12,10,0) 100%); }
.feature-hero__inner { max-width: 900px; margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.feature-hero h1 { color: #fff; margin: 0; font-size: clamp(var(--fs-xl), 6.4vw, var(--fs-4xl)); line-height: 1.06; }
.feature-hero.is-long h1 { font-size: clamp(var(--fs-lg), 5vw, var(--fs-2xl)); }
.feature-hero__deck { margin: 0; max-width: 60ch; font-size: var(--fs-md); line-height: 1.45; color: rgba(255,255,255,.92); }
.feature-hero .pill { background: rgba(255,255,255,.94); }
.feature-hero.is-light { color: var(--ink); background: var(--paper); }
.feature-hero.is-light .feature-hero__body { background: linear-gradient(to top, rgba(255,255,255,.94) 0%, rgba(255,255,255,.76) calc(100% - 96px), rgba(255,255,255,0) 100%); }
.feature-hero.is-light h1 { color: var(--ink); }
.feature-hero.is-light .feature-hero__deck { color: var(--ink-soft); }
.article-head--feature { padding-top: var(--s3); }
/* Drop cap: the editor's own paragraph setting (Typography → Drop cap), so it goes only where it reads well. */
.prose .has-drop-cap:not(:focus)::first-letter { float: left; font: 700 4.1em/0.82 var(--font-display); margin: 0.06em 0.12em 0 0; color: var(--green-deep); }
.prose--feature h2::before { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--coral); margin-bottom: 14px; }
/* Wide elements break out of the 680px column, never past the screen edge. */
.prose--feature .wp-block-pullquote, .prose--feature .alignwide { width: min(900px, calc(100vw - 2 * var(--gutter))); max-width: none; position: relative; left: 50%; transform: translateX(-50%); }
.prose--feature .wp-block-pullquote { padding: var(--s4); margin-block: var(--s4); }
.prose--feature .wp-block-pullquote p { font-size: clamp(var(--fs-md), 3.2vw, var(--fs-xl)); }
.prose--feature .alignfull { width: 100vw; max-width: none; position: relative; left: 50%; transform: translateX(-50%); }
.prose--feature .alignfull img { border-radius: 0; }

/* After the article */
.authors { max-width: var(--measure); margin: 0 auto; display: grid; gap: var(--s2); }
.author { display: flex; gap: 16px; padding: var(--s3); border-radius: var(--radius); background: var(--paper); }
.author__name { font: 700 var(--fs-md)/1.25 var(--font-display); margin: 0 0 2px; }
.author__name a { color: var(--ink); text-decoration: none; }
.author__role { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 8px; }
.author__bio { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
.issue-nav { max-width: var(--measure); margin: var(--s4) auto 0; display: grid; gap: 12px; }
.issue-nav__label { margin: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.issue-nav a { display: grid; gap: 2px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.issue-nav__dir { display: inline-flex; align-items: center; gap: 6px; color: var(--green-deep); font-size: var(--fs-xs); font-weight: 600; }
.issue-nav__dir .icon { width: 16px; height: 16px; }
.issue-nav__title { font: 700 var(--fs-base)/1.3 var(--font-display); }
@media (min-width: 640px) { .issue-nav__links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .issue-nav__next { text-align: right; } .issue-nav__next .issue-nav__dir { justify-content: flex-end; } }
@media (hover: hover) and (pointer: fine) { .issue-nav a:hover { border-color: var(--green); background: #fafdfb; } }

/* Issue page */
.toc { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.toc li { border-top: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 3ch minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; color: var(--ink); text-decoration: none; }
.toc__page { grid-row: 1 / span 3; font: 700 var(--fs-md)/1 var(--font-display); color: var(--coral); font-variant-numeric: tabular-nums; padding-top: 4px; }
.toc__title { font: 700 var(--fs-md)/1.3 var(--font-display); }
.toc__by { color: var(--muted); font-size: var(--fs-sm); }
@media (hover: hover) and (pointer: fine) { .toc a:hover .toc__title { text-decoration: underline; text-decoration-color: var(--coral); } }
.issues { display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); list-style: none; margin: 0; padding: 0; }
.issues a { display: grid; gap: 10px; color: var(--ink); text-decoration: none; }
.issues img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 24px -12px rgba(17,22,20,.45); }
.issues strong { font: 700 var(--fs-base)/1.25 var(--font-display); }
.issues span { color: var(--muted); font-size: var(--fs-sm); }

/* Page reader */
.reader__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 12px; }
.reader__bar h2 { margin: 0; font-size: clamp(var(--fs-md), 3vw, var(--fs-lg)); }
.reader__nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.reader__nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); font-size: var(--fs-md); line-height: 1; cursor: pointer; }
.reader__count { font-variant-numeric: tabular-nums; min-width: 5ch; text-align: center; font-weight: 600; }
.reader__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: var(--radius-lg); scrollbar-width: thin; }
.reader__page { box-sizing: border-box; flex: 0 0 100%; scroll-snap-align: start; display: flex; justify-content: center; padding: var(--s2); }
.reader__page img { width: auto; max-width: 100%; max-height: 85svh; background: #fff; box-shadow: 0 8px 22px -10px rgba(0,0,0,.35); }

/* Flipbook (assets/js/flipbook.js). The strip above stays for browsers without JavaScript. */
.reader.is-flipbook .reader__track, .reader.is-flipbook .reader__nav { display: none; }
.fb { outline: none; }
.fb:focus-visible .fb__book { outline: 3px solid var(--coral); outline-offset: 6px; }
.fb__stage { display: flex; justify-content: center; padding: var(--s3) 0; perspective: 2400px; }
.fb__book { position: relative; width: var(--page-w); height: var(--page-h); transition: transform .45s var(--ease-out); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer; }
.fb.is-spread .fb__book { width: calc(var(--page-w) * 2); }
.fb.is-spread .fb__book.is-cover { transform: translateX(calc(var(--page-w) / -2)); }
.fb.is-spread .fb__book.is-back { transform: translateX(calc(var(--page-w) / 2)); }
.fb__page { position: absolute; top: 0; width: var(--page-w); height: 100%; background: #fff; overflow: hidden; }
.fb__page--right { right: 0; }
.fb__page--left { left: 0; }
.fb:not(.is-spread) .fb__page--left { display: none; }
.fb__page.is-empty { background: transparent; }
.fb__page:not(.is-empty) { box-shadow: 0 18px 40px -18px rgba(17,22,20,.45), 0 2px 6px rgba(17,22,20,.12); }
.fb__page img, .fb__face img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
/* Paper depth: a soft shadow into the spine on each inner edge. */
.fb.is-spread .fb__page--left:not(.is-empty)::after, .fb.is-spread .fb__page--right:not(.is-empty)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9%; pointer-events: none; }
.fb.is-spread .fb__page--left::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.18), rgba(0,0,0,0)); }
.fb.is-spread .fb__page--right::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.18), rgba(0,0,0,0)); }
.fb__spine { display: none; }
.fb.is-spread .fb__spine { display: block; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: rgba(0,0,0,.12); pointer-events: none; }
.fb.is-spread .fb__book.is-cover .fb__spine, .fb.is-spread .fb__book.is-back .fb__spine { display: none; }
/* The turning page. */
.fb__leaf { position: absolute; top: 0; width: var(--page-w); height: 100%; transform-style: preserve-3d; z-index: 5; pointer-events: none; }
.fb.is-spread .fb__leaf { left: 50%; transform-origin: left center; }
.fb.is-spread .fb__leaf.is-back { left: 0; transform-origin: right center; }
.fb__leaf--single { left: 0; transform-origin: left center; }
.fb__face { position: absolute; inset: 0; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.fb__face--back { transform: rotateY(180deg); }
.fb__shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.fb__leaf.is-back .fb__shade { background: linear-gradient(to left, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
/* Controls */
.fb__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding-bottom: var(--s2); }
.fb__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: var(--fs-md); line-height: 1; cursor: pointer; }
.fb__btn:disabled { background: #c9d1cc; cursor: default; }
.fb__slider { width: min(320px, 50vw); accent-color: var(--green); min-height: 44px; }
.fb__count { min-width: 12ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-sm); }
.fb__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; cursor: pointer; }
@media (max-width: 520px) { .fb__slider { order: 5; width: 100%; } .fb__link { order: 6; } }
.fb:fullscreen { background: #1d2420; display: flex; flex-direction: column; justify-content: center; }
.fb:fullscreen .fb__count { color: #fff; }
.fb:fullscreen .fb__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

/* People */
.people { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; margin: 0; padding: 0; }
.person { display: flex; gap: 14px; align-items: center; }
.person a { color: var(--ink); text-decoration: none; }
.person__name { font: 700 var(--fs-base)/1.3 var(--font-display); display: block; }
.person__role { color: var(--muted); font-size: var(--fs-sm); display: block; }
@media (hover: hover) and (pointer: fine) { .person a:hover .person__name { text-decoration: underline; text-decoration-color: var(--coral); } }
.profile { display: grid; gap: var(--s3); align-items: center; padding-block: var(--s4) var(--s3); }
.profile h1 { font-size: clamp(var(--fs-xl), 5vw, var(--fs-3xl)); margin: 0 0 6px; }
@media (min-width: 640px) { .profile { grid-template-columns: auto minmax(0, 1fr); } }

/* Opportunity detail */
.facts { display: grid; gap: 0; margin: 0 0 var(--s3); padding: 0; }
.facts div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: var(--fs-sm); }
.facts dd { margin: 0; font-weight: 600; }
.notice { padding: 14px 18px; border-radius: var(--radius); background: var(--paper); color: var(--ink-soft); font-size: var(--fs-sm); }

/* Forms (pitch form) */
.ud-form { max-width: 560px; }
.ud-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.ud-form input[type=text], .ud-form input[type=email], .ud-form select, .ud-form textarea { width: 100%; font-size: var(--fs-base); padding: 12px 14px; border: 1.5px solid #c9d1cc; border-radius: 12px; background: #fff; color: var(--ink); }
.ud-form input:focus, .ud-form select:focus, .ud-form textarea:focus { border-color: var(--green); outline: 3px solid rgba(27,127,69,.18); outline-offset: 0; }
.ud-form button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: 600 var(--fs-sm)/1 var(--font-text); cursor: pointer; }
.ud-form__check label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.ud-form__check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--green); }
.ud-form__hp { position: absolute; left: -9999px; }
.ud-form__notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.ud-form__notice--ok { background: var(--mint); color: var(--green-deep); }
.ud-form__notice--err { background: #fdecea; color: #8a1f11; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-block: var(--s4); }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Event band (WAC) */
.event-band { display: grid; gap: var(--s3); align-items: center; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-deep); color: #e3f3e8; }
.event-band img { width: 100%; height: auto; }
.event-band__body { padding: 0 var(--s3) var(--s3); }
.event-band h2 { color: #fff; font-size: clamp(var(--fs-lg), 3vw, var(--fs-xl)); }
.event-band__label { color: #9fddb5; font-weight: 600; font-size: var(--fs-sm); margin: 0 0 6px; }
.event-band__note { font-size: var(--fs-sm); color: #bcd8c6; }
@media (min-width: 782px) { .event-band { grid-template-columns: 1.1fr 1fr; } .event-band__body { padding: var(--s3) var(--s4) var(--s3) 0; } }

/* Newsletter band, above the footer */
.newsletter { margin-top: var(--s5); padding: var(--s4) 0; background: var(--mint); }
.newsletter + .site-footer { margin-top: 0; }
.newsletter__inner { display: grid; gap: var(--s2) var(--s4); align-items: end; }
.newsletter h2 { font-size: clamp(var(--fs-lg), 3vw, var(--fs-xl)); margin-bottom: 6px; }
.newsletter__text p { color: var(--ink-soft); margin: 0; max-width: 46ch; }
.newsletter__form label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__row input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; font-size: var(--fs-base); border: 1.5px solid #b9c9bf; border-radius: 999px; background: #fff; color: var(--ink); }
.newsletter__row input:focus { border-color: var(--green); outline: 3px solid rgba(27,127,69,.2); outline-offset: 0; }
.newsletter__row .btn { min-height: 48px; flex: 0 0 auto; }
.newsletter__fine { margin: 10px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.newsletter__fine a { color: var(--green-deep); }
.newsletter__notice { grid-column: 1 / -1; margin: 0; background: #fff; }
@media (min-width: 900px) { .newsletter__inner { grid-template-columns: 1fr minmax(0, 480px); } }

/* Footer */
.site-footer { margin-top: var(--s5); background: var(--ink); color: #c9d3cd; padding: var(--s4) 0 calc(var(--s3) + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-sm); }
.site-footer a { color: #e8eeea; }
.site-footer__grid { display: grid; gap: var(--s4); }
.site-footer__name { font: 700 var(--fs-lg)/1.2 var(--font-display); color: #fff; margin-bottom: 8px; }
.site-footer__next { color: #9fddb5; font-weight: 600; }
.site-footer__head { font: 700 var(--fs-xs)/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: #9aa69f; margin-bottom: 14px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.site-footer__legal { border-top: 1px solid #2a332f; margin-top: var(--s4); padding-top: var(--s3); font-size: var(--fs-sm); color: #9aa69f; }
@media (min-width: 782px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (hover: hover) and (pointer: fine) { .site-footer__links a:hover { color: #9fddb5; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* The gradient band is shorter than a photo, so the text can start closer to it. */
.article-hero--fill + .wrap .prose { padding-top: var(--s3); }

/* Phones: the feature opener is a strong first screen, not the whole screen. */
@media (max-width: 639px) { .feature-hero { min-height: 62svh; } }
