/* /resurse (src/lib/resurse-page.ts), Vlad 2026-11-10.
   Layout system. Grid: 14 columns on computers (margin, 12, margin), gutter 24; phones one column, 24 px margins.
   Baseline 8. Spacing 8 16 24 32 48 72 96 120. Type: Outfit for display, DM Sans for text; 12 labels, 15 the row's
   line, 17 body, row titles 22 to 30, group titles 30 to 52, the hero 48 to 104.
   Continuity: the dark floor band. The hero's group of doctors stands on it, the stage's doctor rises out of it, and
   the footer closes the page in the same dark. */
.dpr {
  --ink: #1a1a1a; --dark: #1f1f1f; --light: #f4f4f4; --paper: #fff; --lime: #a3cb4d; --lime-ink: #7da632;
  --muted: rgba(26,26,26,.62); --rule: rgba(26,26,26,.12); --w-muted: rgba(255,255,255,.66); --w-rule: rgba(255,255,255,.16);
  --display: "Outfit", "Helvetica Neue", Arial, sans-serif; --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mx: clamp(24px, 5vw, 96px); --gut: 24px; --floor: 120px; --ease: cubic-bezier(.25,.46,.45,.94);
  font-family: var(--body); color: var(--ink); background: var(--light);
}
.dpr *, .dpr *::before, .dpr *::after { box-sizing: border-box; }
.dpr :where(h1, h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; padding: 0; }
.dpr :where(ol, ul) { list-style: none; }
.dpr :where(h1, h2, h3) { color: inherit; text-transform: none; letter-spacing: 0; overflow-wrap: normal; word-break: normal; }
.dpr a { color: inherit; text-decoration: none; }
.dpr a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.dpr img { display: block; max-width: none; }
.dpr-ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dpr-kicker { display: flex; align-items: center; gap: 12px; font: 600 12px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dpr-kicker::before { content: ""; width: 28px; height: 2px; background: var(--lime); }

/* ---------- hero: words, then the group standing on the floor band ---------- */
.dpr-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding-top: 104px; background: var(--ink); color: var(--paper); }
/* the team photo the site menu shows behind "Echipa", full bleed down to the band; a shade rises from its foot under
   the words */
.dpr-hero__photo { position: absolute; inset: 0 0 var(--floor) 0; overflow: hidden; }
.dpr-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 42%; will-change: transform; }
.dpr-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 38%, rgba(0,0,0,.62)); pointer-events: none; }
.dpr-hero__text { position: relative; z-index: 1; padding-bottom: 56px !important; }
.dpr-hero .dpr-kicker { color: rgba(255,255,255,.82); }
.dpr-hero__text { padding: 0 var(--mx); }
.dpr-hero__title { margin-top: 16px; font: 200 clamp(44px, 6vw, 104px)/.98 var(--display); letter-spacing: -.02em; }
.dpr-hero__title span, .dpr-hero__title strong { display: block; }
.dpr-hero__title strong { font-weight: 600; }
.dpr-hero__lead { margin-top: 24px; max-width: 30ch; font: 300 clamp(18px, 1.5vw, 24px)/1.5 var(--display); color: rgba(255,255,255,.88); }


.dpr-floor { position: relative; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 40px; min-height: var(--floor); padding: 24px var(--mx);
  background: var(--dark); }
.dpr-floor a { font: 500 12px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--w-muted); transition: color .2s var(--ease); }
.dpr-floor a:hover { color: var(--paper); }
.dpr-floor sup { margin-left: 6px; font-size: 10px; font-weight: 700; color: var(--lime); vertical-align: 6px; }

/* ---------- index: groups of numbered rows ---------- */
.dpr-index { padding: 0 var(--mx) 120px; }
.dpr-topic { padding-top: 96px; scroll-margin-top: 24px; }
.dpr-topic__name { font: 300 clamp(30px, 3.2vw, 52px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.dpr-topic__name strong { font-weight: 700; }
.dpr-topic__name em { font-style: normal; text-transform: none; color: var(--lime-ink); }
.dpr-rows { margin-top: 32px; border-top: 1px solid var(--rule); }
.dpr-row { border-bottom: 1px solid var(--rule); }
.dpr-row__link { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; align-items: start; padding: 32px 0; }
.dpr-row__num { padding-top: 6px; font: 600 13px/1 var(--body); letter-spacing: .08em; color: var(--lime-ink); }
.dpr-row__text { display: flex; flex-direction: column; min-width: 0; }
.dpr-row__title { font: 300 clamp(22px, 1.9vw, 30px)/1.25 var(--display); }
.dpr-row__title strong { display: block; font-weight: 600; transition: color .25s var(--ease); }
.dpr-row__title span { display: block; color: rgba(26,26,26,.72); }
/* one line: the description's first sentence, cut at the row's edge */
.dpr-row__line { margin-top: 8px; font: 400 15px/1.6 var(--body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpr-row__doc { display: flex; align-items: center; gap: 10px; margin-top: 16px; font: 600 12px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.dpr-row__doc::before { content: ""; width: 16px; height: 2px; background: var(--lime); }
.dpr-row__go { justify-self: end; padding-top: 4px; font-size: 22px; color: var(--muted); transition: transform .25s var(--ease), color .25s var(--ease); }
.dpr-row__link:hover .dpr-row__go, .dpr-row.is-on .dpr-row__go { color: var(--lime-ink); transform: translateX(4px); }
/* the row in view or under the pointer: its number fills in lime (the title keeps its ink, for contrast) */
.dpr-row__num { transition: color .25s var(--ease), background-color .25s var(--ease); }
.dpr-row__link:hover .dpr-row__num, .dpr-row.is-on .dpr-row__num { color: var(--ink); }
.dpr-row__cut { display: none; }
.dpr-stage { display: none; }

/* ---------- footer: the site's closing block, square and full width ---------- */
.dpr-foot { position: relative; margin-top: -1px; background: var(--dark); color: var(--paper); padding: 72px 47px; display: flex; flex-direction: column; gap: 48px; }
/* the photo runs to the top of the screen, under the transparent header: no page padding above it */
main#page { padding-top: 0 !important; }
/* this page closes on its own footer: the site's footer sections are left out (Vlad, 2026-11-10) */
#footer-sections { display: none !important; }
.dpr-foot__title { font: 300 clamp(30px, 3.2vw, 52px)/1.1 var(--display); text-transform: uppercase; }
.dpr-foot__title span, .dpr-foot__title strong { display: block; }
.dpr-foot__title strong { font-weight: 700; color: var(--lime); }
.dpr-foot__lead { margin-top: 16px; max-width: 22ch; font: 300 clamp(24px, 2.2vw, 34px)/1.3 var(--display); }
.dpr-foot__text { margin-top: 24px; max-width: 44ch; font: 400 17px/1.7 var(--body); color: rgba(255,255,255,.78); }
.dpr-foot__rows div { padding: 16px 0; border-bottom: 1px solid var(--w-rule); }
.dpr-foot__rows div:first-child { padding-top: 0; }
.dpr-foot__rows div:last-child { border-bottom: 0; padding-bottom: 0; }
.dpr-foot__rows dt { font: 600 12px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.dpr-foot__rows dd { margin-top: 8px; font: 400 17px/1.5 var(--body); }
.dpr-foot__rows a { border-bottom: 1px solid var(--lime); padding-bottom: 2px; }
.dpr-foot__rows a:hover { color: var(--lime); }

/* =================================================================
   Phones and tablets (no hover, or narrower than 1024): each row carries its doctor on a shelf.
   ================================================================= */
@media (max-width: 1023px), (hover: none) {
  .dpr-row { border-bottom: 0; }
  .dpr-row__link { grid-template-columns: minmax(0, 1fr) 34%; grid-template-rows: auto 1fr; column-gap: 16px; padding: 32px 0 0; }
  .dpr-row__num { grid-column: 1; grid-row: 1; padding: 0 0 12px; }
  .dpr-row__text { grid-column: 1; grid-row: 2; padding-bottom: 32px; }
  .dpr-row__go { display: none; }
  .dpr-row__title { font-size: 22px; }
  .dpr-row__line { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  /* the shelf: the doctor stands on a green line with a soft shadow above it, as on /kids */
  .dpr-row__cut { position: relative; display: block; grid-column: 2; grid-row: 1 / 3; align-self: end; height: 184px; }
  .dpr-row__cut img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; transform: translateX(-50%); }
  .dpr-row__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; border-bottom: 1px solid var(--lime); background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.06)); z-index: -1; }
  .dpr-row__link { z-index: 0; }
  .dpr-rows { border-top: 0; margin-top: 8px; }
}
@media (max-width: 767px) {
  /* phones: the whole team on top (the square photo fills the width), the words under it on the dark, never over a
     face; the photo's foot fades into that dark */
  .dpr-hero { padding-top: 0; justify-content: flex-start; }
  .dpr-hero__photo { position: relative; inset: auto; height: auto; aspect-ratio: 1 / 1; flex: none; order: -1; }
  .dpr-hero__photo img { object-position: 54% 0; }
  .dpr-hero__photo::after { background: linear-gradient(rgba(26,26,26,0) 62%, var(--ink)); }
  .dpr-hero__text { margin-top: -24px; padding-bottom: 40px !important; flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end; }
  .dpr-floor { gap: 8px 24px; padding: 28px 24px; }
  /* at phone width one line holds three or four words of the excerpt: the title says it better */
  .dpr-row__line { display: none; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  /* the five treatments on one row */
  .dpr-floor { flex-wrap: nowrap; gap: 28px; }
  .dpr-floor a { font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
  .dpr-foot { padding: 96px 56px; }
  .dpr-row__cut { height: 240px; }
  .dpr-row__title { font-size: 26px; }
}

/* =================================================================
   Computers (hover, 1024 and up): the index with the sticky stage.
   ================================================================= */
@media (min-width: 1024px) and (hover: hover) {
  .dpr-hero { padding-top: 128px; }
  /* landscape crop: from just above Dr. Constantinovici's raised hand to the seated row's faces */
  .dpr-hero__photo img { object-position: 55% 18%; }
  .dpr-hero__photo::after { background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 48%), linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,.45)); }
  .dpr-hero__title { font-size: clamp(44px, 4.2vw, 80px); line-height: 1.02; }
  .dpr-hero__title span, .dpr-hero__title strong { white-space: nowrap; }
  .dpr-hero__text { padding: 0 var(--mx); }

  .dpr-index { display: grid; grid-template-columns: var(--mx) repeat(12, minmax(0, 1fr)) var(--mx); column-gap: var(--gut); padding: 0; }
  /* room under the last row, so it reaches the middle of the screen (where rows switch the doctor) while the stage
     is still pinned */
  .dpr-list { grid-column: 2 / 9; grid-row: 1; padding-bottom: 40vh; }
  .dpr-stage { grid-column: 10 / 15; grid-row: 1; align-self: start; position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; height: 100svh; }
  .dpr-stage__room { position: relative; flex: 1 1 0; overflow: hidden; }
  /* the doctor's box starts after the band's rounded corner (48 px), so the photo's straight bottom edge always
     rests on the flat part of the band */
  .dpr-stage__doc { position: absolute; left: 48px; right: 0; top: 104px; bottom: 0; transform: translateY(104%); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
  .dpr-stage__doc img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
  .dpr-stage__doc.is-on { transform: none; transition-delay: .12s; }
  .dpr-stage__floor { position: relative; height: var(--floor); background: var(--dark); color: var(--paper); border-radius: 48px 0 0 0; }
  .dpr-stage__who { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--mx) 0 48px; opacity: 0; transition: opacity .3s var(--ease); }
  .dpr-stage__who.is-on { opacity: 1; transition-delay: .2s; }
  .dpr-stage__who strong { font: 600 20px/1.2 var(--display); }
  .dpr-stage__who span { font: 500 12px/1.5 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--w-muted); }

  .dpr-foot { display: grid; grid-template-columns: var(--mx) repeat(12, minmax(0, 1fr)) var(--mx); column-gap: var(--gut); padding: 120px 0; }
  .dpr-foot__words { grid-column: 2 / 8; grid-row: 1; }
  /* inside corner on the footer's top edge, just left of the stage's column: where the stage's dark band comes down
     onto the footer, the two read as one shape */
  .dpr-foot::before { content: ""; grid-column: 10; grid-row: 1; align-self: start; width: 48px; height: 48px; margin: -168px 0 0 -48px;
    background: radial-gradient(circle at 0 0, transparent 47.5px, var(--dark) 48px); }
  /* phone and e-mail on the stage's text line: its column, 48 px in, like the doctor's name above */
  .dpr-foot__rows { grid-column: 10 / 14; grid-row: 1; align-self: end; padding-left: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .dpr * { transition: none !important; }
  .dpr-stage__doc { transform: translate(-50%, 0); opacity: 0; }
  .dpr-stage__doc.is-on { opacity: 1; }
}

/* The desktop overlay darkens the hero's left edge, where the header sits; the header's sampler reads only the photo,
   so the hero states its tone (adaptive-header.js). */
@media (min-width: 1024px) and (hover: hover) {
  .dpr-hero { --dp-header-tone: dark; }
}
