/* Fonts, self-hosted (OFL, see assets/fonts/LICENSES.txt) */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/bodoni-moda-latin-opsz-normal.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: 'Bodoni Moda'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/bodoni-moda-latin-ext-opsz-normal.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: 'STIX Two Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/stix-two-text-latin-400-normal.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: 'STIX Two Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/stix-two-text-latin-ext-400-normal.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: 'STIX Two Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/stix-two-text-latin-400-italic.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: 'STIX Two Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/stix-two-text-latin-ext-400-italic.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: 'STIX Two Text'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/stix-two-text-latin-600-normal.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: 'STIX Two Text'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/stix-two-text-latin-ext-600-normal.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-400-normal.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-ext-400-normal.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: 'Caveat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/caveat-latin-400-normal.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: 'Caveat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/caveat-latin-ext-400-normal.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: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/caveat-latin-500-normal.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: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/caveat-latin-ext-500-normal.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: 'Latin Modern Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lmsans10-regular.woff2') format('woff2'); }
@font-face { font-family: 'Latin Modern Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/lmsans10-bold.woff2') format('woff2'); }

@font-face { font-family: 'Latin Modern Math'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lmmath-simboluri.woff2') format('woff2'); unicode-range: U+0370-03FF,U+2070-209F,U+2100-214F,U+2190-21FF,U+2200-22FF,U+2300-23FF,U+25A0-25FF,U+27C0-27EF,U+2A00-2AFF,U+1D400-1D7FF; }

:root {
  color-scheme: light;
  --font-body: 'STIX Two Text', 'Latin Modern Math', 'Times New Roman', Times, serif;
  --font-display: 'Bodoni Moda', 'STIX Two Text', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Latin Modern Math', ui-monospace, 'Courier New', monospace;
  --font-hand: 'Caveat', 'Latin Modern Math', 'Segoe Print', 'Bradley Hand', cursive;
  --font-lm: 'Latin Modern Sans', 'Latin Modern Math', 'CMU Sans Serif', 'Helvetica Neue', Arial, sans-serif;

  /* paper and ink */
  --paper: #ebe6da;
  --paper-2: #e2dccd;
  --paper-white: #f6f3ec;
  --ink: #2b3134;
  --ink-muted: #5b6266;
  --line: rgba(43, 49, 52, .18);
  --line-soft: rgba(43, 49, 52, .10);
  --pencil: #6f7377;

  /* pastels drawn from the faculty coat of arms: azure, gules, or */
  --blue: #5b8fc7;
  --blue-soft: #b9cfe6;
  --blue-deep: #2f5f94;
  --red: #c9605a;
  --red-soft: #e8b8b2;
  --red-deep: #a8433d;
  --gold: #c9ab5a;
  --gold-soft: #eadfb6;
  --gold-deep: #8a6d1f;

  /* the glacier card */
  --card: #171e1d;
  --card-title: #f4f0db;
  --card-kicker: #dddfcbaa;
  --card-radius: 22px;
  --card-shadow: 0 1px 2px rgba(21, 25, 21, .35), 0 18px 34px -16px rgba(36, 43, 33, .45), 0 40px 60px -24px rgba(38, 48, 33, .35);
  --card-scrim: linear-gradient(90deg, #11191888 0%, #11191818 29%, transparent 48%), linear-gradient(0deg, #0c151bec 0%, #1119185e 11%, transparent 27%);
  --card-rim: inset 0 0 0 1px #ffffff21, inset 0 2px 1px #ffffff22, inset 0 -2px 3px #0008;

  --focus: #2f5f94;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-body);
  font-feature-settings: 'onum', 'kern';
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(47, 95, 148, .45); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: italic; }
kbd { display: inline-block; min-width: 1.9em; padding: 1px 6px; font: 400 12px/1.5 var(--font-mono); text-align: center; color: var(--ink); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--paper-white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 12px 16px; background: var(--ink); color: var(--paper); border-radius: 6px; font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }

.eticheta { font: 400 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .01em; }
.mana { font-family: var(--font-hand); font-size: 19px; color: var(--pencil); }
.nowrap { white-space: nowrap; }

/* Page frame */
.pagina { width: min(1120px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.continut { padding-block: 8px 48px; }

/* Masthead */
.antet {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 8px;
  border-bottom: 1px solid var(--line);
}
.antet-marca { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.antet-nume { display: flex; flex-direction: column; gap: 4px; }
.antet-persoana { font: 700 20px/1.1 var(--font-lm); letter-spacing: .005em; color: var(--ink); }
.antet-facultate { font: 400 12px/1.2 var(--font-lm); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.marca { width: 44px; height: 44px; flex: none; color: var(--blue); }
.marca svg { width: 100%; height: 100%; overflow: visible; }
.marca path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* light travelling through the curve like in an optical fibre, once it has drawn itself */
.marca .fibra, .marca .fibra-halou { opacity: 0; transition: opacity .8s ease; }
.marca .fibra { stroke: #f4fbff; stroke-width: 2; }
.marca .fibra-halou { stroke: #8fc1f0; stroke-width: 5.5; }
.marca.aprins .fibra { opacity: 1; }
.marca.aprins .fibra-halou { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .marca .fibra, .marca .fibra-halou { display: none; } }
.nav { display: flex; gap: 0 8px; flex-wrap: wrap; align-items: center; }
.nav a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 8px; font: 400 16px/1 var(--font-body); color: var(--ink); text-decoration: none; }
.nav a::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .nav a::after { transition: none; } }

/* Article sheet: a text column of reading width and a wide margin for the figures */
:root { --coloana: 660px; --margine: 360px; --jgheab: 48px; }
.foaie { counter-reset: sectiune; }
.rand { display: grid; grid-template-columns: minmax(0, var(--coloana)) var(--margine); justify-content: space-between; column-gap: var(--jgheab); align-items: start; padding-block: 32px; }
.rand.lat { display: block; }
.rand + .rand { border-top: 1px solid var(--line-soft); }
.rand.articol { padding-top: 32px; }
.text-col { min-width: 0; }
.margine { min-width: 0; display: grid; gap: 32px; }

.text-col > p, .rezumat p, .biblio li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; }
.fisa p, .cv-sectiune li div, .fig figcaption, .tabel td { text-align: left; hyphens: manual; }
.text-col p + p { margin-top: .85em; }
.text-col h2 { font: 600 22px/1.25 var(--font-body); margin: 0 0 16px; text-align: left; }
.text-col h2.nr { counter-increment: sectiune; }
.text-col h2.nr::before { content: counter(sectiune); display: inline-block; min-width: 1.6em; font-variant-numeric: tabular-nums; }
.text-col h3 { font: 600 17px/1.3 var(--font-body); margin: 24px 0 8px; }
.text-col h2 + h3 { margin-top: 4px; }
.text-col .mai-mult { margin-top: 16px; font-size: 14.5px; text-align: left; }
.text-col .mai-mult a, .subsol .legaturi a, .colofon a { display: inline-block; padding-block: 13px; margin-block: -13px; }
.subsol address a, .fig figcaption a, .tabel .materiale a, .biblio .linkuri a { display: inline-block; padding: 13px 8px; margin: -13px -8px; }
.subsol address a:focus-visible, .fig figcaption a:focus-visible, .tabel .materiale a:focus-visible, .biblio .linkuri a:focus-visible { outline-offset: -10px; border-radius: 6px; }

/* Title block */
.articol-supra { font: 400 12px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); text-align: left; }
.articol-cap { display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 8px 32px; align-items: start; }
.articol-titlu { font: 600 28px/1.2 var(--font-body); letter-spacing: -.005em; margin: 8px 0 8px; text-wrap: balance; }
.portret { width: 124px; margin: 4px 0 0; text-align: center; }
.portret img, .portret-gol { display: block; width: 124px; height: 124px; border-radius: 50%; }
.portret img { object-fit: cover; border: 1px solid var(--line-soft); box-shadow: 0 0 0 4px var(--paper-white), 0 0 0 5px var(--line-soft); filter: saturate(.9) contrast(.97); }
.portret-gol { display: grid; place-items: center; border: 1px dashed var(--line); background: var(--paper-white); font-family: var(--font-hand); font-size: 17px; color: var(--ink-muted); text-align: center; line-height: 1.1; }
.portret figcaption { margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--ink-muted); text-align: center; }
@media (max-width: 480px) { .articol-cap { grid-template-columns: minmax(0, 1fr) 96px; } .portret { width: 96px; } .portret img, .portret-gol { width: 96px; height: 96px; } }
.articol-autor { font-size: 16.5px; text-align: left; }
.articol-autor .afiliere { color: var(--ink-muted); }
.rezumat { margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.text-col .rezumat-titlu { font: 600 13px/1.2 var(--font-body); font-variant: small-caps; letter-spacing: .08em; margin: 0 0 8px; text-align: left; }
.rezumat p + p { margin-top: .7em; }
.text-col .cuvinte, .text-col .msc, .text-col .articol-supra { margin-top: 8px; font-size: 14px; line-height: 1.5; text-align: left; }
.text-col .articol-supra { margin-top: 0; font-size: 12px; }
.cuvinte b, .msc b { font-weight: 600; font-variant: small-caps; letter-spacing: .04em; margin-right: .4em; }
.msc { color: var(--ink-muted); }
.msc span { font-family: var(--font-mono); font-size: 13px; }
.anunt { margin: 24px 0 -8px; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--paper-white); font-size: 15.5px; }

/* Figures */
.fig { margin: 0; }
.fig-desen svg { width: 100%; height: auto; overflow: visible; }
.fig figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.fig figcaption b { color: var(--ink); font-weight: 600; }
.fig figcaption .taste { display: block; margin-top: 4px; font: 400 12px/1.6 var(--font-mono); text-align: left; }
.fig-constructie .separator { display: block; padding: 0; color: var(--pencil); }
.fig-constructie .separator svg { width: 100%; height: auto; font-family: var(--font-lm); }
.fig-lata .fig-desen { max-width: 760px; margin: 0 auto; }
.fig-lata figcaption { max-width: 76ch; margin-inline: auto; text-align: center; hyphens: manual; }
.fig-schita .marginalia { float: none; width: 100%; margin: 0; color: var(--pencil); font-family: var(--font-hand); }
.fig-schita .marginalia svg { width: 100%; height: auto; overflow: visible; }
.js .fig-schita:not(.viu) svg * { animation-play-state: paused !important; }
.marginalia .creion { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.marginalia .creion-subtire { fill: none; stroke: currentColor; stroke-width: .7; stroke-linecap: round; opacity: .75; }
.marginalia .creion-albastru { fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.marginalia .creion-rosu { fill: none; stroke: var(--red); stroke-width: 1.2; stroke-linecap: round; }
.marginalia .hasura { fill: none; stroke: currentColor; stroke-width: .55; opacity: .55; }
.marginalia .umbra { fill: currentColor; opacity: .06; }
.marginalia .eticheta-mana { font-family: var(--font-hand); font-size: 15px; fill: currentColor; }
.marginalia .eticheta-albastra { fill: var(--blue-deep); }
.marginalia .eticheta-rosie { fill: var(--red-deep); }
.marginalia .punct { fill: currentColor; }
.marginalia .formula { font-family: var(--font-body); font-style: italic; font-size: 12.5px; fill: var(--ink-muted); }
.js .separator [data-deseneaza] { stroke-dasharray: var(--l, 9999); stroke-dashoffset: var(--l, 9999); }
.separator.desenat [data-deseneaza] { animation: deseneaza 1.4s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: var(--d, 0s); }
.js .separator [data-apare] { opacity: 0; }
.separator.desenat [data-apare] { animation: apare .6s ease forwards; animation-delay: var(--d, 0s); }
@keyframes deseneaza { to { stroke-dashoffset: 0; } }
@keyframes apare { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .separator [data-deseneaza] { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; } .separator [data-apare] { opacity: 1 !important; animation: none !important; } }

/* The glacier card */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; min-width: 200px;
  aspect-ratio: 795 / 875;
  container-type: inline-size;
  border-radius: var(--card-radius);
  background: var(--card);
  box-shadow: var(--card-shadow);
  transform-style: preserve-3d;
  will-change: transform;
}
.card:has(.card-hit:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; }
.film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: scale(1.012); transform-origin: 50% 50%; will-change: transform; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: var(--card-scrim); }
.caption { position: absolute; bottom: 3.9cqw; left: 3.8cqw; margin: 0; display: flex; align-items: flex-end; gap: .7cqw; pointer-events: none; }
.caption-kicker { padding-bottom: .2cqw; color: var(--card-kicker); font: 400 max(11px, 2.3cqw)/1.2 var(--font-body); font-style: italic; writing-mode: vertical-rl; transform: rotate(180deg); }
.caption-title { color: var(--card-title); font: 500 13.3cqw/.96 var(--font-display); letter-spacing: -.055em; writing-mode: vertical-rl; transform: rotate(180deg); }
.rim { position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--card-rim); pointer-events: none; }
.card-hit { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.card-hit:focus-visible { outline: none; }
.control {
  position: absolute; top: 3.8cqw; right: 3.8cqw; width: max(36px, 6.4cqw); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; color: var(--card-title);
  background: #11191859; box-shadow: inset 0 0 0 1px #f4f0db3d; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: .72; transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1), background-color .4s ease;
}
.control svg { width: 38%; height: 38%; }
.card-hit:hover .control, .card-hit:focus-visible .control { opacity: 1; background-color: #11191880; transform: scale(1.06); }
.icon-pause { display: none; }
.card[data-state="playing"] .icon-play { display: none; }
.card[data-state="playing"] .icon-pause { display: block; }
.card-meta { width: min(520px, 100%); display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 20px; flex-wrap: wrap; font: 400 12px/1.5 var(--font-mono); color: var(--ink-muted); }
.card-meta .mana { font-size: 18px; line-height: 1.2; }
@media (hover: none) { .fig figcaption .taste { display: none; } }
/* Discreet edit control: a pencil in the corner, out of the reading flow */
.editare {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 15;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink-muted); background: var(--paper-white); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(43, 49, 52, .05), 0 8px 18px -12px rgba(43, 49, 52, .5);
  opacity: .55; transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1), color .3s ease;
}
.editare svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.editare:hover, .editare:focus-visible { opacity: 1; color: var(--blue-deep); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .editare { transition: none; } }
@media (max-width: 600px), (hover: none) { .editare { display: none; } }
@media print { .editare { display: none; } }
@media (prefers-reduced-motion: reduce) { .control { transition: none; } }


/* Bibliography-style lists */
.biblio-sectiune { counter-reset: ref; }
.biblio { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.biblio li { position: relative; padding-left: 2.7em; counter-increment: ref; font-size: 16px; line-height: 1.5; }
.biblio li::before { content: '[' counter(ref) ']'; position: absolute; left: 0; top: 0; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.biblio .titlu { font-weight: 600; }
.biblio .linkuri { margin-left: .5em; font: 400 12.5px/1.6 var(--font-mono); white-space: nowrap; }
.biblio .rol { margin-left: 8px; font: 400 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.an-eticheta { margin: 16px 0 8px; font: 400 12px/1 var(--font-mono); letter-spacing: .1em; color: var(--ink-muted); text-align: left; }
.biblio + .an-eticheta { margin-top: 18px; }

/* Journal tables */
.tabel-wrap { overflow-x: auto; margin-top: 4px; }
.tabel { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.tabel caption { caption-side: top; text-align: left; padding: 0 0 8px; font-size: 13.5px; color: var(--ink-muted); }
.tabel caption b { color: var(--ink); font-weight: 600; }
.tabel th { padding: 7px 10px 7px 0; font: 600 13px/1.3 var(--font-body); text-align: left; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tabel td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel td.centru, .tabel th.centru { text-align: center; padding-right: 6px; white-space: nowrap; }
.tabel .disciplina { font-weight: 600; }
.tabel .nota { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-muted); }
.tabel .materiale { display: block; margin-top: 3px; font: 400 12.5px/1.6 var(--font-mono); }
.tabel .materiale a + a { margin-left: 10px; }

/* Index cards (fișe) */
.fise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.fisa:only-child { max-width: 420px; }
.fisa {
  position: relative; padding: 40px 16px 16px; min-height: 120px;
  border: 1px solid var(--line-soft); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(43, 49, 52, .06), 0 6px 14px -10px rgba(43, 49, 52, .25);
  transform: rotate(var(--r, 0deg));
}
.fisa .eticheta { position: absolute; top: 11px; left: 18px; }
.fisa strong { display: block; font: 600 17px/1.35 var(--font-body); }
.fisa .mono { display: block; margin-top: 4px; color: var(--ink-muted); overflow-wrap: anywhere; }
.fisa p { margin-top: 6px; font-size: 15px; }
.fisa a.fisa-link { position: absolute; inset: 0; border-radius: inherit; text-decoration: none; }
.fisa a.fisa-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fisa .stare { position: absolute; top: 10px; right: 16px; font: 400 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.fisa.goala { background-image: none; color: var(--ink-muted); font-style: italic; font-size: 15px; }


/* CV */
.cv-sectiune { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.cv-sectiune:first-of-type { border-top: 0; padding-top: 0; }
.cv-sectiune h3 { margin: 0; font: 600 16.5px/1.3 var(--font-body); }
.cv-sectiune ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cv-sectiune li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; }
.cv-sectiune li .mono { color: var(--ink-muted); padding-top: 3px; }
@media (max-width: 640px) { .cv-sectiune, .cv-sectiune li { grid-template-columns: minmax(0, 1fr); } }

/* Footer: correspondence address, a view of the building, the faculty */
.subsol { margin-top: 16px; border-top: 1.5px solid var(--ink); padding-block: 8px 32px; }
.subsol .rand { padding-block: 24px 8px; }
.subsol h2 { font: 600 14px/1.2 var(--font-body); font-variant: small-caps; letter-spacing: .08em; margin: 0 0 10px; }
.subsol address p { margin: 0 0 3px; text-align: left; }
.subsol .legaturi { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.subsol .stema { display: inline-flex; align-items: center; gap: 16px; margin-top: 24px; text-decoration: none; color: var(--ink); }
.subsol .stema img { width: 44px; height: auto; flex: none; filter: saturate(.72) contrast(.95); opacity: .88; transition: filter .4s ease, opacity .4s ease; }
.subsol .stema:hover img { filter: none; opacity: 1; }
.subsol .stema span { font: 700 14px/1 var(--font-lm); white-space: nowrap; color: var(--ink); }
.vedere { margin: 0; }
.vedere img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 100%; filter: sepia(.15) saturate(.6) contrast(.9) brightness(1.04); border: 1px solid var(--line-soft); }
.colofon { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line-soft); font: 400 12px/1.6 var(--font-mono); color: var(--ink-muted); }
.colofon a { color: inherit; }

/* Texture comparison page */
.texturi { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.textura-mostra { position: relative; padding: 22px 20px 20px; min-height: 260px; border: 1px solid var(--line); border-radius: 4px; background-repeat: repeat; text-decoration: none; color: var(--ink); display: grid; align-content: start; gap: 10px; }
.textura-mostra h3 { font: 400 26px/1.1 var(--font-display); }
.textura-mostra p { font-size: 15px; }
.textura-mostra .eticheta { color: var(--ink-muted); }
.textura-mostra[aria-current="true"] { outline: 2px solid var(--blue); outline-offset: 3px; }
.textura-mostra .mana { font-size: 20px; }


@media (max-width: 960px) {
  .rand { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .margine { max-width: 400px; }
  .rand.articol .margine { max-width: 460px; }
}
@media (max-width: 600px) {
  .rand { padding-block: 24px; }
  .text-col p, .text-col li, .rezumat, .fig figcaption { text-align: left; }
}
@media print {
  body { background: #fff !important; background-image: none !important; }
  .nav, .editare, .skip, .fig figcaption .taste { display: none !important; }
  .rand { break-inside: avoid; }
}

/* Phones: wide figure scrolls at a legible size, menu stays on one row, table folds the programme under the discipline */
.tabel .nota-program { display: none; }
@media (max-width: 600px) {
  .fig-lata .fig-desen { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .fig-lata .fig-desen svg { min-width: 640px; }
  .tabel .col-program { display: none; }
  .tabel .nota-program { display: block; }
  .rand.articol { padding-top: 24px; }
}
@media (max-width: 480px) {
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { padding: 0 6px; }
  .nav a::after { left: 6px; right: 6px; }
}
