/* Directorul specialităților (/specialitati/, src/site/specialties-brand.mjs), după brand.css. Mobil întâi. */

/* Medicii, unul lângă altul: portretele au același fundal de studio, deci se contopesc între ele și cu bleumarinul */
.oxx .os-hero { position: relative; isolation: isolate; padding-top: calc(var(--oxc-head-h) + 8px); background: var(--oxc-navy); color: #d9e2ee; overflow: hidden; }
/* Rândul ține exact înălțimea peretelui: pe ecranele foarte late, fotografiile (mai înalte decât late) l-ar crește peste
   voalul de jos și ar rămâne o dungă neacoperită. */
.oxx .os-wall { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: clamp(176px, 50vw, 320px); overflow: hidden; }
.oxx .os-wall li { min-width: 0; margin: 0 -9%; -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); }
.oxx .os-wall li:nth-child(n+5) { display: none; }
.oxx .os-wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(13 35 64 / 0) 46%, rgb(13 35 64 / .78) 76%, #0d2340); pointer-events: none; }
.oxx .os-face { position: relative; display: block; height: 100%; overflow: hidden; }
.oxx .os-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.oxx .os-face span { display: none; }
.oxx .os-hero :focus-visible { outline-color: #fff; }
.oxx .os-face:focus-visible { outline-offset: -4px; }
.oxx .os-hero-in { position: relative; padding-bottom: 70px; }
.oxx .os-hero.has-wall .os-hero-in { margin-top: -38px; }
.oxx .os-hero:not(.has-wall) .os-hero-in { padding-top: 28px; }
.oxx .os-hero h1 { font: 400 clamp(2rem, 1.2rem + 3.4vw, 3.5rem)/1.1 var(--oh-serif); letter-spacing: -.012em; color: #fff; }
.oxx .os-hero-row p { margin-top: 8px; max-width: 46ch; color: #d9e2ee; }

/* Căutarea și filtrele, peste marginea antetului */
.oxx .os-dir-sec { position: relative; z-index: 2; padding-bottom: var(--oh-sec); }
.oxx .os-dir [hidden] { display: none !important; }
.oxx .os-dir .os-finder { margin-top: -50px; }
.oxx .os-dir:not([data-dir-ready]) .os-filters { display: none; }

/* Grupele: o linie bleumarin deschide grupa, liniile fine despart specialitățile */
.oxx .os-groups { display: grid; gap: clamp(30px, 2vw + 22px, 60px); margin-top: clamp(26px, 2vw + 18px, 52px); }
.oxx .os-group { padding-top: 18px; border-top: 1px solid var(--oxc-navy); }
.oxx .os-group-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; margin-bottom: 6px; }
.oxx .os-group-head h2 { font-size: clamp(1.45rem, 1.25rem + .9vw, 1.9rem); line-height: 1.18; }
.oxx .os-group-head p { grid-column: 1 / -1; margin-top: 8px; font-size: .95em; line-height: 1.5; }
.oxx .os-spec { display: grid; padding: 14px 0; border-top: 1px solid var(--oxc-line-2); }
.oxx .os-spec:first-child { border-top: 0; }
.oxx .os-spec:last-child { padding-bottom: 0; }
/* Tot blocul duce la pagina specialității */
.oxx .os-main { position: relative; display: grid; gap: 6px; }
.oxx .os-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oxx .os-name::after { content: ""; position: absolute; inset: 0; }
.oxx .os-name h3 { font: 400 clamp(1.3rem, 1.15rem + .7vw, 1.6rem)/1.2 var(--oh-serif); color: var(--oxc-navy); }
.oxx .os-name .oh-go { width: 32px; height: 32px; border: 1px solid var(--oxc-line-2); color: var(--oxc-navy); transition: background .15s, border-color .15s, color .15s, transform .2s; }
.oxx .os-main:hover .oh-go { background: var(--oxc-navy); border-color: var(--oxc-navy); color: #fff; }
.oxx .os-main > p { font-size: .94em; line-height: 1.45; }
.oxx .os-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--oxc-ink); }
.oxx .os-tag { display: inline-flex; align-items: center; gap: 4px; }
.oxx .os-tag svg { flex: none; color: var(--oh-gold-d); }
.oxx .os-who { display: inline-flex; align-items: center; gap: 8px; }
.oxx .os-faces { display: inline-flex; flex: none; }
.oxx .os-faces img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; box-shadow: 0 0 0 2px #fff; }
.oxx .os-faces img + img { margin-left: -7px; }
/* Pe telefon, chipurile, accesul și orașele încap pe un rând: numele medicilor sunt pe pagina specialității */
.oxx .os-faces + span { display: none; }

/* Serviciile */
.oxx .os-body { margin-top: 8px; }
.oxx .os-svcs li { border-top: 1px solid var(--oxc-line); }
.oxx .os-svcs a, .oxx .os-solo { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 0; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--oxc-ink); transition: color .15s; }
.oxx .os-svcs a::after, .oxx .os-solo::after { content: ""; flex: none; width: 6px; height: 6px; margin-right: 3px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; opacity: .45; transform: rotate(45deg); transition: opacity .15s, transform .15s; }
.oxx .os-svcs a:hover, .oxx .os-solo:hover { color: var(--oxc-blue); }
.oxx .os-svcs a:hover::after, .oxx .os-solo:hover::after { opacity: 1; transform: translateX(2px) rotate(45deg); }
.oxx .os-more { display: none; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin-top: 8px; padding: 0; border: 0; border-top: 1px solid var(--oxc-line); background: none; font: 600 14.5px/1.3 var(--oxc-font); color: var(--oxc-navy); text-align: left; cursor: pointer; }
.oxx .os-more i { position: relative; flex: none; width: 14px; height: 14px; margin-right: 1px; }
.oxx .os-more i::before, .oxx .os-more i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; transition: transform .2s; }
.oxx .os-more i::after { transform: rotate(90deg); }
.oxx .os-more[aria-expanded="true"] i::after { transform: none; }
/* Pe telefon, serviciile se deschid la cerere, din butonul de pe rândul chipurilor; un singur serviciu se vede direct; o căutare
   sau un filtru le arată pe toate. Orașele apar doar când specialitatea nu e în toate locațiile. */
@media (max-width: 1023px) {
  .oxx .os-tag.is-all { display: none; }
  .oxx .os-dir[data-dir-ready]:not(.is-filtering) .os-more { position: relative; z-index: 1; display: flex; justify-self: end; width: auto; margin: -36px 0 -8px; border: 0; }
  .oxx .os-dir[data-dir-ready]:not(.is-filtering) .os-spec:not(.is-few) .os-meta { padding-right: 104px; min-height: 26px; }
  .oxx .os-more > span > span { display: none; }
  .oxx .os-dir[data-dir-ready]:not(.is-filtering) .os-spec:not(.is-open):not(.is-few) .os-body { display: none; }
  .oxx .os-spec.is-open .os-body { margin-top: 12px; }
  .oxx .os-body:has(> .os-solo) { display: none; }
}

/* Longevitate: a doua intrare mare a clinicii, pe o bandă bleumarin până la marginile ecranului */
.oxx .os-group.is-navy { padding-block: clamp(30px, 3vw + 18px, 64px); border-top: 0; background: var(--oxc-navy); box-shadow: 0 0 0 100vmax var(--oxc-navy); clip-path: inset(0 -100vmax); color: #d9e2ee; }
.oxx .is-navy .oh-ic { background: rgb(255 255 255 / .1); color: #fff; }
.oxx .is-navy h2, .oxx .is-navy .os-name h3 { color: #fff; }
.oxx .is-navy .os-name .oh-go { border-color: rgb(255 255 255 / .3); color: #fff; }
.oxx .is-navy .os-main:hover .oh-go { background: #fff; border-color: #fff; color: var(--oxc-navy); }
.oxx .is-navy .os-spec { border-color: rgb(255 255 255 / .16); }
.oxx .is-navy .os-main > p { color: #d9e2ee; }
.oxx .is-navy .os-meta { color: #fff; }
.oxx .is-navy .os-tag svg { color: var(--oh-gold); }
.oxx .is-navy .os-faces img { box-shadow: 0 0 0 2px var(--oxc-navy); }
.oxx .is-navy .os-svcs li, .oxx .is-navy .os-more { border-color: rgb(255 255 255 / .16); }
.oxx .is-navy .os-svcs a, .oxx .is-navy .os-more, .oxx .is-navy .os-solo { color: #fff; }
.oxx .is-navy .os-svcs a:hover { color: #d9bd8f; }
.oxx .is-navy :focus-visible { outline-color: #fff; }

/* Nimic găsit */
.oxx .os-empty { display: grid; gap: 10px; justify-items: start; margin-top: 24px; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--oh-r); background: var(--oxc-soft); }
.oxx .os-empty h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); }
.oxx .os-empty-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Cine nu știe încotro */
.oxx .os-help { display: grid; gap: 12px; margin-top: var(--oh-sec); }
.oxx .os-door { display: grid; gap: 8px; justify-items: start; height: 100%; padding: 20px; border: 1px solid var(--oxc-line); border-radius: var(--oh-r); background: var(--oxc-soft); color: var(--oxc-body); transition: border-color .15s, background .15s; }
.oxx .os-door:hover { border-color: var(--oxc-navy); }
.oxx .os-door .oh-ic { background: #fff; }
.oxx .os-door h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.7rem); line-height: 1.2; }
.oxx .os-door p { font-size: .96em; line-height: 1.55; }
.oxx .os-door .oh-more { margin-top: 2px; }
.oxx .os-door.is-navy { border-color: var(--oxc-navy); background: var(--oxc-navy); color: #d9e2ee; }
.oxx .os-door.is-navy:hover { background: var(--oxc-blue); border-color: var(--oxc-blue); }
.oxx .os-door.is-navy .oh-ic { background: rgb(255 255 255 / .1); color: #fff; }
.oxx .os-door.is-navy h2, .oxx .os-door.is-navy .oh-more { color: #fff; }

@media (min-width: 768px) {
  .oxx .os-wall { height: 300px; }
  .oxx .os-wall li:nth-child(n+5) { display: block; }
  .oxx .os-wall li:nth-child(n+7) { display: none; }
  .oxx .os-hero.has-wall .os-hero-in { margin-top: -56px; }
  .oxx .os-hero-in { padding-bottom: 84px; }
  .oxx .os-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .oxx .os-dir .os-finder { margin-top: -60px; }
  .oxx .os-help { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .oxx .os-door { padding: 26px 28px; }
}
@media (min-width: 1024px) {
  .oxx .os-hero { padding-top: 0; }
  .oxx .os-wall { position: absolute; inset: 40px 0 auto; height: 400px; }
  .oxx .os-wall::after { background: linear-gradient(to bottom, rgb(13 35 64 / 0) 50%, rgb(13 35 64 / .82) 78%, #0d2340); }
  .oxx .os-hero.has-wall .os-hero-in { margin-top: 0; padding-top: 318px; }
  /* Textul stă peste fotografii, dar nu le acoperă linkurile */
  .oxx .os-hero-in { padding-bottom: 92px; pointer-events: none; }
  .oxx .os-hero-in a { pointer-events: auto; }
  /* La trecere sau la focus, cine este medicul */
  .oxx .os-face span { position: absolute; left: 50%; bottom: 150px; z-index: 1; display: block; width: max-content; max-width: 86%; padding: 7px 12px; border-radius: 8px; background: #fff; color: var(--oxc-navy); text-align: center; opacity: 0; transform: translate(-50%, 6px); transition: opacity .15s, transform .15s; pointer-events: none; }
  .oxx .os-face span b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
  .oxx .os-face span small { display: none; }
  .oxx .os-face:hover span, .oxx .os-face:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
  .oxx .os-group-head { margin-bottom: 14px; }
  .oxx .os-spec { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 40px; align-items: start; padding: 22px 0; }
  .oxx .os-spec:first-child { padding-top: 0; }
  .oxx .os-main { grid-row: 1 / span 2; grid-column: 1; }
  .oxx .os-main > p { font-size: .95em; line-height: 1.5; }
  .oxx .os-meta { gap: 6px 14px; margin-top: 4px; font-size: 13.5px; }
  .oxx .os-faces img { width: 30px; height: 30px; }
  .oxx .os-faces img + img { margin-left: -8px; }
  .oxx .os-faces + span { display: inline; }
  .oxx .os-name { justify-content: flex-start; }
  .oxx .os-name .oh-go { width: 30px; height: 30px; }
  .oxx .os-body { grid-column: 2; grid-row: 1; margin: 0; }
  .oxx .os-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .oxx .os-spec.is-few .os-svcs { grid-template-columns: minmax(0, 1fr); }
  .oxx .os-svcs li { border-top: 0; border-bottom: 1px solid var(--oxc-line); }
  .oxx .is-navy .os-svcs li { border-color: rgb(255 255 255 / .16); }
  .oxx .os-solo { border-bottom: 1px solid var(--oxc-line); }
  .oxx .os-dir[data-dir-ready]:not(.is-filtering) .os-spec.has-fold:not(.is-open) .os-svcs li:nth-child(n+7) { display: none; }
  .oxx .os-more { grid-column: 2; grid-row: 2; margin-top: 2px; border-top: 0; }
  .oxx .os-dir[data-dir-ready]:not(.is-filtering) .os-spec.has-fold .os-more:not([aria-expanded="true"]) { display: flex; }
  .oxx .os-group.is-navy { padding-top: clamp(30px, 3vw + 18px, 64px); }
}
/* Titlul grupei, în stânga specialităților ei */
@media (min-width: 1200px) {
  .oxx .os-group { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 26px; }
  .oxx .os-group-head { display: block; margin: 0; }
  .oxx .os-group-head .oh-ic { margin-bottom: 14px; }
}
@media (min-width: 1280px) {
  .oxx .os-wall li:nth-child(n+7) { display: block; }
}
