/* Akanksha Singh — portfolio styles
   VOICE   warm, bright and academic: a student scientist's own page, not a template.
   IDEA    the Gram stain: crystal violet and safranin pink on clean paper, the colours of her lab work.
   PICTURE her portrait set in a petri-dish ring; real photos from the lab and the poster session.
   TYPE    Lora (headings, her name) with DM Sans (text). Both self-hosted, both SIL Open Font License.
   LAYOUT  full-width colour bands, content to 1200px, stacked single column below 760px. */

/* ---------- Fonts ---------- */
@font-face { font-family: "Lora"; src: url("../assets/fonts/lora.woff") format("woff"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../assets/fonts/lora-italic.woff") format("woff"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../assets/fonts/dmsans.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../assets/fonts/dmsans-italic.woff") format("woff"); font-weight: 400 500; font-style: italic; font-display: swap; }

/* ---------- Design settings ---------- */
:root {
  --paper: #fbf6f7;
  --ink: #2a1f29;
  --muted: #6b5d68;
  --line: #e8dbe1;
  --violet: #5c2a6b;        /* crystal violet */
  --wine: #8a3b5e;          /* links and buttons */
  --pink: #e8a7b9;          /* safranin */
  --pink-soft: #f6e6ec;
  --tint: #f3ecf0;
  --night: #2a2030;         /* research band */
  --night-ink: #f4e9f0;
  --night-muted: #c9b6c4;
  --lilac: #6a3a7c;         /* internship accent */
  --lilac-soft: #efe5f4;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1200px, 100% - 2 * max(5vw, 20px));
  --radius: 18px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -.01em; }
h3 { font-size: 24px; }
em, i { font-style: italic; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html[data-motion="reduce"] { scroll-behavior: auto; }

/* ---------- Shared pieces ---------- */
.kicker { color: var(--wine); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.meta { color: var(--muted); }
.text-link { padding-block: 11px; color: var(--wine); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.text-link:hover { text-decoration-color: currentColor; }
.links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--wine); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .2s, transform .2s; }
.button:hover { background: var(--violet); transform: translateY(-1px); }
.button-quiet { background: transparent; color: var(--wine); box-shadow: inset 0 0 0 1.5px currentColor; }
.button-quiet:hover { background: var(--pink-soft); color: var(--violet); }

.band { padding: clamp(64px, 8vw, 112px) 0; }
.band > * { width: var(--page); margin-inline: auto; }
.band-tint { background: var(--tint); }
.band-lilac { background: var(--lilac-soft); }
.band-lilac .kicker, .band-lilac .text-link { color: var(--lilac); }
.band-lilac h2 { color: var(--violet); }
.band-dark { background: var(--night); color: var(--night-ink); }
.band-dark .text-link { color: var(--pink); }
.band-contact { background: linear-gradient(135deg, var(--pink-soft), #efe3f3); text-align: center; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.section-head { margin-bottom: 40px; }
.split .section-head { margin-bottom: 0; }
.section-head p { color: var(--muted); max-width: 60ch; }
.band-dark .section-head p { color: var(--night-muted); }

.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: inset 0 0 0 2px var(--lilac); }

/* Dated lists: the date hangs to the left of each entry. */
.dated { list-style: none; padding: 0; margin: 0; }
.dated li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.dated li:last-child { border-bottom: 1px solid var(--line); }
.dated .date { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 2px; white-space: nowrap; }
.dated-roles strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; }
.dated-roles li > span:last-child { color: var(--muted); }
.dated-roles strong { color: var(--ink); }
.dated .is-new .date { color: var(--lilac); font-weight: 600; }
.band-dark .dated li { border-color: rgba(244, 233, 240, .16); }
.band-dark .dated .date { color: var(--night-muted); }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--pink-soft); font-size: 15px; line-height: 1.4; }
.tags li:nth-child(3n+2) { background: #ece4f2; }
.tags li:nth-child(3n) { background: #f8eee6; }

.photo { margin: 0 auto; }
.photo img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.photo figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.band-dark .photo figcaption { color: var(--night-muted); }

/* ---------- Header and menu ---------- */
.site-header { width: var(--page); margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 22px 0; }
.brand { font: italic 500 38px/1 var(--serif); color: var(--wine); text-decoration: none; letter-spacing: -.04em; margin-right: auto; }
.header-links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.header-links a { text-decoration: none; padding: 8px 0; }
.header-links a:hover { color: var(--wine); }
.menu-button { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pink-soft); color: var(--ink); font: 600 15px var(--sans); cursor: pointer; }
.menu-button:hover { background: #f0d7e1; }
.menu-lines, .menu-lines::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.menu-lines::before { content: ""; position: absolute; top: 5px; }
.menu-lines { transform: translateY(-2.5px); }
.has-dialog .menu-button { display: inline-flex; }
.has-dialog .fallback-nav { display: none; }
.fallback-nav { width: var(--page); margin: 0 auto 8px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.fallback-nav a, .site-footer nav a { text-decoration: none; }
[aria-current="page"] { color: var(--wine); font-weight: 600; }

.menu { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(420px, 100%); padding: 22px clamp(24px, 5vw, 40px) 32px; border: 0; background: var(--paper); color: var(--ink); display: none; flex-direction: column; }
.menu[open] { display: flex; animation: menu-in .3s cubic-bezier(.2, .8, .2, 1); }
.menu::backdrop { background: rgba(42, 32, 48, .45); }
.menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.menu-close { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--tint); font: 600 15px var(--sans); color: var(--ink); cursor: pointer; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font: 500 30px/1.2 var(--serif); padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.menu nav a:hover { color: var(--wine); }
.menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; justify-items: start; font-size: 15px; }
.menu-foot a { color: var(--wine); font-weight: 600; }
.motion-toggle { margin-top: 8px; padding: 8px 0; border: 0; background: none; font: 500 14px var(--sans); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.motion-toggle:disabled { text-decoration: none; cursor: default; }
html.menu-open { overflow: hidden; }
@keyframes menu-in { from { transform: translateX(40px); opacity: 0; } }

/* ---------- Home: hero ---------- */
.hero { width: var(--page); margin: 0 auto; padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-name { font-size: clamp(58px, 9.4vw, 124px); line-height: .98; letter-spacing: -.025em; margin: 0 0 28px; }
.hero-name em { display: block; color: var(--violet); }
.hero-role { font: 400 clamp(21px, 2.2vw, 26px)/1.4 var(--serif); max-width: 30ch; margin-bottom: 18px; }
.hero-lede { color: var(--muted); max-width: 54ch; margin-bottom: 32px; }

/* Portrait in a petri dish: the plate, its white rim, a thin violet outer ring and a soft safranin-pink glow, all centred. */
.dish { margin: 0; position: relative; aspect-ratio: 1; width: 100%; max-width: 500px; justify-self: center; }
.dish::before { content: ""; position: absolute; inset: -9%; border-radius: 50%; background: radial-gradient(circle, rgba(232, 167, 185, .5) 52%, rgba(232, 167, 185, 0) 70%); }
.dish::after { content: ""; position: absolute; inset: -3%; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--violet) 35%, transparent); }
.dish-plate { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 10px rgba(255, 255, 255, .75), 0 30px 60px -30px rgba(92, 42, 107, .5); background: #8f8f8f; }
.dish-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.32); transform-origin: 50% 40%; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 24px 0 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 500 20px/1.35 var(--serif); }

/* ---------- Home: research band ---------- */
.band-dark h2, .band-dark h3 { color: #fff; }
/* Research studies: an animated illustration beside each project; the workflow step being read
   drives the drawing (research.js sets data-active-step and --study-progress). */
.studies { margin: 0 auto 64px; }
.study { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding: 56px 0; border-top: 1px solid rgba(244, 233, 240, .16); }
.study-flip .study-visual { order: 2; }
.study-visual { position: sticky; top: 32px; margin: 0; padding: 22px 24px 20px; border-radius: var(--radius); background: radial-gradient(ellipse at 50% 45%, rgba(138, 59, 94, .28), transparent 70%), #332839; box-shadow: inset 0 0 0 1px rgba(232, 167, 185, .18); overflow: hidden; }
.study-visual-head { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--night-muted); }
.active-stage-label { color: var(--pink); font-weight: 600; }
.study-art { margin: 4px -16px 0; }
.study-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.study-progress { height: 3px; border-radius: 2px; background: rgba(244, 233, 240, .14); overflow: hidden; }
.study-progress span { display: block; height: 100%; background: var(--pink); transform: scaleX(var(--study-progress, .05)); transform-origin: left; transition: transform .15s linear; }
.study-stages { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--night-muted); }
.study-visual[data-active-step="0"] .study-stages span:nth-child(1),
.study-visual[data-active-step="1"] .study-stages span:nth-child(2),
.study-visual[data-active-step="2"] .study-stages span:nth-child(3) { color: var(--night-ink); }
.study-copy h3 { font-size: clamp(26px, 2.6vw, 32px); }
.study-copy p { color: var(--night-muted); }
.workflow { list-style: none; margin: 28px 0 0; padding: 0; }
.workflow-stage { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid rgba(244, 233, 240, .16); }
.workflow-stage::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--pink); transition: width .5s; }
.workflow-stage.is-current::before { width: 100%; }
.stage-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(232, 167, 185, .5); color: var(--night-muted); font-size: 14px; font-weight: 600; transition: background .35s, color .35s, transform .35s; }
.workflow-stage.is-current .stage-dot { background: var(--pink); color: var(--night); transform: scale(1.08); }
.workflow-stage h4 { margin: 3px 0 6px; font: 600 17px/1.3 var(--sans); color: var(--night-ink); }
.workflow-stage p { margin: 0; font-size: 16px; }

/* The drawings. Scroll progress tilts the plate, sweeps the scan line and lifts the specimens;
   each step changes what the drawing emphasises. */
.art-plate { transform-origin: 240px 190px; transform: rotate(calc(-7deg + var(--study-progress, 0) * 11deg)); transition: transform .2s linear; }
.art-well { opacity: calc(.4 + var(--study-progress, .2) * .6); transition: opacity .3s, fill .5s; transition-delay: calc(var(--well-index) * 18ms); }
.study-visual[data-active-step="1"] .art-well:nth-of-type(3n+1),
.study-visual[data-active-step="2"] .art-well:nth-of-type(3n+1),
.study-visual[data-active-step="1"] .art-well:nth-of-type(4n),
.study-visual[data-active-step="2"] .art-well:nth-of-type(4n) { fill: url(#drug-well-treated); }
.art-scan { opacity: 0; transform: translateY(calc(var(--study-progress, 0) * 150px)); transition: transform .2s, opacity .4s; }
.study-visual[data-active-step="2"] .art-scan { opacity: 1; }
.art-orbits { transform-origin: 240px 190px; transform: rotate(calc(var(--study-progress, 0) * 32deg)); }
.art-particles { transform: translateY(calc(var(--study-progress, 0) * -16px)); }
.art-dna { transform-origin: 240px 80px; transform: translateY(calc(var(--study-progress, 0) * -8px)); transition: opacity .5s; }
.study-visual:not([data-active-step="0"]) .art-dna { opacity: .55; }
.art-phages { transform: translateY(calc(var(--study-progress, 0) * 34px)); transition: transform .2s linear; }
.art-biofilm { opacity: calc(.65 + var(--study-progress, 0) * .35); transition: opacity .5s; }
.study-visual[data-active-step="2"] .art-biofilm { opacity: .45; }
@keyframes specimen-drift { 50% { translate: 0 -7px; } }
.study.is-on-screen .art-particles, .study.is-on-screen .art-phages { animation: specimen-drift 5s ease-in-out infinite; }
.talks { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: 56px; border-top: 1px solid rgba(244, 233, 240, .16); }
.photo-tall img { aspect-ratio: 3 / 4; }
.talk-title { font: italic 400 21px/1.45 var(--serif); color: var(--night-ink); margin-bottom: 24px; }
.talks .dated { margin-bottom: 28px; }

/* ---------- Home: about, contact ---------- */
/* Weber State feature: publication panel + story. */
.featured { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); margin-top: clamp(40px, 5vw, 64px); border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--pink-soft); box-shadow: 0 24px 50px -36px rgba(92, 42, 107, .55); transition: transform .25s, box-shadow .25s; }
.featured:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -34px rgba(92, 42, 107, .6); }
.featured-pub { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 3.5vw, 44px); background: var(--violet); color: #fff; }
.featured-pub::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 210px; height: 210px; border-radius: 50%; background: var(--pink); opacity: .3; }
.featured-source, .featured-date { font-size: 15px; color: #e7cfe3; position: relative; z-index: 1; }
.featured-date { margin-top: auto; }
.publication-mark { font: 500 clamp(44px, 4.6vw, 60px)/.95 var(--serif); letter-spacing: -.02em; position: relative; z-index: 1; }
.publication-mark small { display: block; margin-top: 12px; font: 500 13px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #e7cfe3; }
.featured-copy { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 52px); color: var(--ink); }
.featured-label { color: var(--wine); font-weight: 600; font-size: 15px; }
.featured-title { font: 500 clamp(26px, 3vw, 38px)/1.2 var(--serif); text-wrap: balance; }
.featured-summary { color: var(--muted); max-width: 60ch; }
.featured-cta { color: var(--wine); font-weight: 600; margin-top: 6px; }
.featured:hover .featured-cta { color: var(--violet); }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 72px); }
.skill-grid h3 { font-size: 22px; }
.band-contact h2 { font-size: clamp(40px, 6vw, 72px); }
.band-contact p { color: var(--muted); max-width: 48ch; margin-inline: auto; }
.contact-email { font: 500 clamp(20px, 2.4vw, 26px) var(--serif); margin: 12px 0 28px; }
.contact-email a { color: var(--violet); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.band-contact .actions { justify-content: center; }

/* ---------- Detail pages ---------- */
.page-head { width: var(--page); margin: 0 auto; padding: clamp(32px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1; letter-spacing: -.02em; margin-bottom: 20px; }
.page-head p { color: var(--muted); font-size: 19px; max-width: 60ch; }
.page-body { width: var(--page); margin: 0 auto; padding-bottom: clamp(64px, 8vw, 112px); }
.page-body > section + section { margin-top: clamp(56px, 7vw, 96px); }
.page-body h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--tint); }
.card:nth-child(2n) { background: var(--pink-soft); }
.card h2, .card h3 { font-size: 26px; }
.card ul:not(.tags) { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }
.card-lilac { background: var(--lilac-soft) !important; }
.card-lilac .kicker, .card-lilac .text-link { color: var(--lilac); }
.card-lilac h2 { color: var(--violet); }
.roles article { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.roles article:last-child { border-bottom: 1px solid var(--line); }
.roles .date { color: var(--muted); font-size: 15px; padding-top: 6px; }
.roles h3 { margin-bottom: 4px; }
.roles .org { color: var(--muted); margin-bottom: 10px; }
.roles ul { margin: 0; padding-left: 20px; }
.roles li { margin-bottom: 6px; }
.resume-pages { display: grid; gap: 24px; max-width: 880px; }
.resume-pages a { display: block; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -32px rgba(92, 42, 107, .45); transition: transform .2s; }
.resume-pages a:hover { transform: translateY(-2px); }
.resume-pages img { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: 56px 0 32px; font-size: 15px; }
.site-footer > div { width: var(--page); margin: 0 auto; }
.footer-main { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(244, 233, 240, .16); }
.footer-main p { margin: 0; }
.footer-name { font: 500 28px/1.2 var(--serif); color: #fff; margin-bottom: 6px !important; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; max-width: 600px; }
.site-footer nav a:hover, .footer-bottom a:hover { color: #fff; }
.site-footer [aria-current="page"] { color: var(--pink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 24px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:last-child { margin-left: auto; }

/* ---------- Reveal on scroll (only once the script is running) ---------- */
.has-reveals [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.has-reveals [data-reveal].in-view { opacity: 1; transform: none; }
html[data-motion="reduce"] [data-reveal] { opacity: 1; transform: none; transition: none; }
html[data-motion="reduce"] .study-visual { --study-progress: .6 !important; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .skill-grid { grid-template-columns: minmax(0, 1fr); }
  .study { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .study-flip .study-visual { order: 0; }
  .study-visual { position: relative; top: 0; max-width: 560px; }
  .talks { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-links { display: none; }
  .has-dialog .header-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 8px; }
  .dish { order: -1; max-width: 300px; justify-self: start; margin-left: 4px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .facts dd { text-align: right; font-size: 17px; }
  .split, .talks, .cards, .featured { grid-template-columns: minmax(0, 1fr); }
  .featured-pub { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
  .featured-source { flex-basis: 100%; }
  .featured-date { margin-top: 0; }
  .talks .photo { max-width: 380px; }
  .dated li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; }
  .roles article { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-bottom a:last-child { margin-left: 0; }
}
@media (max-width: 380px) {
  .button { width: 100%; justify-content: center; }
}

/* ---------- Detail-page variants ---------- */
.card-wide { padding: clamp(28px, 4vw, 48px); }
.card-wide p { max-width: 62ch; }
.card-degree { background: linear-gradient(135deg, var(--pink-soft), #ece2f1) !important; padding: clamp(32px, 5vw, 56px); }
.card-degree h2 { font-size: clamp(32px, 4.4vw, 52px); }
.card-degree em { color: var(--violet); }
.talks-light { border-top: 0; padding-top: 8px; align-items: start; margin-bottom: 24px; }
.page-head .actions { margin-top: 8px; }
.page-body .dated { margin-top: 8px; }
