/*
Theme Name: CJRAE Modern
Theme URI: https://nou.cjraect.ro
Author: CJRAE Constanța
Description: Temă editorială modernă pentru Centrul Județean de Resurse și Asistență Educațională Constanța. Paletă bej/teracotă, Fraunces + Inter, dark mode, accesibilitate.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: cjrae-modern
*/

/* ============================================================
   CJRAE Constanța — design system
   Paletă: bej cald · negru moale · accent teracotă
   Tipografie: Fraunces (serif) · Inter (sans) · JetBrains Mono
   ============================================================ */

:root {
  --bg: #f5f1ea;
  --bg-elev: #ede7dc;
  --bg-card: #faf7f1;
  --ink: #1a1a1a;
  --ink-soft: #4a4540;
  --ink-muted: #7a736a;
  --line: #d8cfbe;
  --accent: #c4463a;
  --accent-soft: #e8826f;
  --gold: #c9a24a;
  --olive: #6b7a4a;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 24px;

  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(26,26,26,0.04), 0 2px 8px rgba(26,26,26,0.04);
  --shadow-lg: 0 4px 16px rgba(26,26,26,0.06), 0 24px 64px rgba(26,26,26,0.08);

  --max: 1280px;
}

[data-theme="dark"] {
  --bg: #0f0e0c;
  --bg-elev: #161410;
  --bg-card: #1c1915;
  --ink: #f0ebe0;
  --ink-soft: #c9c2b4;
  --ink-muted: #8a8275;
  --line: #2d2821;
  --accent: #e8826f;
  --accent-soft: #f0a394;
  --gold: #e8c06a;
  --olive: #9fb079;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.25);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.4), 0 24px 64px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* ——— Nav ——— */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 36px;
  padding: 18px 32px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 0.01em; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background-image: var(--logo-url);
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
[data-theme="dark"] .brand-mark { background-color: #f5f1ea; background-size: 90%; }
.brand small { display: block; font-family: var(--sans); font-size: 11px; color: var(--ink-muted); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; list-style: none; }
.nav-links a { color: var(--ink-soft); transition: color 0.2s; position: relative; padding: 6px 0; display: inline-block; }
.nav-links a:hover, .nav-links li.current-menu-item > a, .nav-links li.current_page_item > a, .nav-links a.active { color: var(--ink); }
.nav-links li.current-menu-item > a::after, .nav-links li.current_page_item > a::after, .nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
}
.nav-actions { display: flex; gap: 10px; align-items: center; }

.icon-btn, .theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.icon-btn:hover, .theme-toggle:hover { background: var(--bg-elev); border-color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); color: var(--bg); }

/* ——— Mobile nav ——— */
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; margin-left: 0;
    transform: translateY(-120%); transition: transform 0.3s ease; z-index: 49;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); display: block; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent; color: var(--ink);
    align-items: center; justify-content: center; cursor: pointer;
  }
  .nav-actions { margin-left: 8px; }
}

/* ——— Footer ——— */
.footer { border-top: 1px solid var(--line); margin-top: 120px; padding: 64px 0 40px; background: var(--bg-elev); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer h5 { font-family: var(--sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--ink-muted); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a { color: var(--ink-soft); transition: color 0.2s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-muted); gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-credit { margin-top: 16px; padding-top: 16px; text-align: center; font-size: 12px; color: var(--ink-muted); letter-spacing: 0.01em; }
.footer-credit a { color: var(--ink-soft); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.footer-credit a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ——— Utility ——— */
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 20px 0 24px; text-wrap: balance; }
.section-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }
@media (max-width: 720px) { .hide-mobile { display: none; } }

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; } }

/* Paginare */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--ink-soft); transition: all 0.2s;
}
.pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .page-numbers.dots { border: none; background: none; pointer-events: none; }

/* Prose — conținut articol/pagină */
.prose { max-width: 72ch; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.prose > *:first-child { margin-top: 0; }
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; color: var(--ink); margin: 40px 0 18px; letter-spacing: -0.01em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; color: var(--ink); margin: 36px 0 16px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--ink); margin: 28px 0 12px; }
.prose h4 { font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--ink); margin: 24px 0 10px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 24px 0; cursor: zoom-in; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-elev); font-weight: 600; color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 18px; margin: 24px 0; color: var(--ink-muted); font-style: italic; }
.prose iframe { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* Document/PDF item */
.doc { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); transition: all 0.2s; cursor: pointer; }
.doc:hover { border-color: var(--accent); transform: translateX(4px); }
.doc-icon { width: 40px; height: 48px; border-radius: 4px; flex-shrink: 0; background: var(--bg-elev); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; color: var(--ink-muted); position: relative; }
.doc-info h4 { font-size: 15px; font-weight: 500; margin-bottom: 4px; line-height: 1.3; color: var(--ink); }
.doc-info p { font-size: 12px; color: var(--ink-muted); font-family: var(--mono); }

/* Card simplu (info boxes) */
.info-card { padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.info-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 10px; color: var(--ink); letter-spacing: -0.01em; }
.info-card p { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }

.block-title { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--ink); letter-spacing: -0.01em; margin: 44px 0 20px; }

.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.feature-list svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-grid .ci { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.check-grid .ci svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--bg-elev); color: var(--ink-soft); border: 1px solid var(--line); }

.callout { padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.callout::before { content: ''; position: absolute; top: -40%; right: -15%; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.7; }
.callout > * { position: relative; }
.callout h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.callout p { font-size: 14px; opacity: 0.82; margin-bottom: 18px; }
.callout .btn { background: var(--bg); color: var(--ink); }
.lead { font-size: 20px; color: var(--ink); line-height: 1.6; }

/* ——— Announce bar ——— */
.announce { background: var(--ink); color: var(--bg); position: relative; overflow: hidden; z-index: 51; }
.announce-inner { max-width: var(--max); margin: 0 auto; padding: 10px 32px; display: flex; align-items: center; gap: 16px; font-size: 13px; position: relative; }
.announce-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 70%, transparent); animation: announcepulse 2s ease-out infinite; }
@keyframes announcepulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 0%, transparent); } }
.announce-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; flex-shrink: 0; }
.announce-text { flex: 1; min-width: 0; }
.announce-text strong { font-weight: 600; }
.announce-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-soft); font-weight: 500; flex-shrink: 0; transition: color 0.2s; }
.announce-link:hover { color: #fff; }
.announce-close { background: none; border: none; color: var(--bg); opacity: 0.5; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 4px; transition: opacity 0.2s; flex-shrink: 0; }
.announce-close:hover { opacity: 1; }
@media (max-width: 720px) { .announce-link { display: none; } }

/* ——— Hero ——— */
.hero { position: relative; overflow: hidden; padding: 80px 0 120px; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0); background-size: 28px 28px; opacity: 0.5; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.03em; margin: 24px 0 28px; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 14px 22px; font-size: 15px; }
.hero-visual { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); border: 1px solid var(--line); aspect-ratio: 1; }
.carousel-track { position: absolute; inset: 0; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; color: #fff; }
.carousel-slide.active { opacity: 1; }
.carousel-slide::before { content: ''; position: absolute; inset: 0; background: var(--slide-color, var(--accent)); z-index: 0; }
.carousel-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%); z-index: 1; }
.carousel-art { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.carousel-art svg { width: 62%; height: 62%; opacity: 0.95; }
.carousel-caption { position: relative; z-index: 2; }
.carousel-caption .tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; background: rgba(255,255,255,0.18); border-radius: 999px; backdrop-filter: blur(4px); }
.carousel-caption h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; margin-top: 12px; letter-spacing: -0.01em; text-wrap: balance; }
.carousel-caption p { font-size: 14px; margin-top: 8px; opacity: 0.88; line-height: 1.45; max-width: 30ch; }
.carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot { width: 24px; height: 4px; border-radius: 2px; background: var(--line); border: none; padding: 0; cursor: pointer; transition: background 0.25s, width 0.25s; }
.carousel-dot.active { background: var(--ink); width: 36px; }
.carousel-arrows { display: flex; gap: 6px; }
.carousel-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; }
.carousel-arrow:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero-stats { max-width: var(--max); margin: 0 auto; padding: 48px 32px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; z-index: 2; }
.hero-stats .stat { border-top: 1px solid var(--line); padding-top: 18px; }
.hero-stats .stat-num { font-family: var(--serif); font-size: 40px; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.hero-stats .stat-label { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 360px; margin: 0 auto; width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ——— Quick actions ——— */
.actions-section { padding: 100px 0 40px; }
.actions-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 32px; flex-wrap: wrap; }
.actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.action-card { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); transition: all 0.25s ease; cursor: pointer; display: flex; flex-direction: column; min-height: 220px; overflow: hidden; }
.action-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.action-card.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.action-card.featured .num { color: rgba(245,241,234,0.6); }
.action-card.featured p { color: rgba(245,241,234,0.75); }
.action-card.featured .icon { background: color-mix(in oklab, var(--accent) 22%, var(--ink)); color: var(--accent-soft); }
.action-card.featured::before { content: ''; position: absolute; bottom: -50%; right: -30%; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: 0.55; pointer-events: none; }
.action-card.featured > * { position: relative; }
.action-card .badge { position: absolute; top: 20px; right: 20px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.action-card .badge .pulse { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); animation: badgepulse 1.8s ease-out infinite; }
@keyframes badgepulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.action-card .num { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); letter-spacing: 0.08em; }
.action-card .icon { width: 44px; height: 44px; margin-top: 18px; margin-bottom: auto; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--bg-elev); color: var(--accent); }
.action-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin-top: 18px; margin-bottom: 6px; }
.action-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.action-card .arrow { position: absolute; top: 24px; right: 24px; opacity: 0; transform: translate(-4px, 4px); transition: all 0.25s; }
.action-card:hover .arrow { opacity: 1; transform: translate(0, 0); color: var(--accent); }
@media (max-width: 900px) { .actions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .actions-grid { grid-template-columns: 1fr; } }

/* ——— Services ——— */
.services { padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.services-list { list-style: none; border-top: 1px solid var(--line); }
.service-row { border-bottom: 1px solid var(--line); }
.service-row .sr-link { padding: 28px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; transition: padding 0.25s; }
.service-row .sr-link:hover { padding-left: 12px; padding-right: 12px; }
.service-row .sr-code { font-family: var(--mono); font-size: 13px; color: var(--ink-muted); width: 48px; }
.service-row .sr-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 400; }
.service-row .sr-title small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-muted); margin-top: 4px; font-weight: 400; letter-spacing: 0; }
.service-row .sr-arrow { color: var(--ink-muted); transition: transform 0.25s, color 0.25s; }
.service-row .sr-link:hover .sr-arrow { color: var(--accent); transform: translateX(6px); }
.services-side { position: sticky; top: 110px; padding: 32px; border-radius: var(--radius-lg); background: var(--ink); color: var(--bg); overflow: hidden; }
.services-side::before { content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.8; }
.services-side h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin-bottom: 12px; position: relative; }
.services-side p { font-size: 14px; opacity: 0.8; margin-bottom: 24px; position: relative; }
.services-side .btn { position: relative; }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-side { position: static; }
  .service-row .sr-title { font-size: 20px; }
}

/* ——— News (home) ——— */
.news { padding: 100px 0; background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 32px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.news-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: all 0.2s; cursor: pointer; min-height: 280px; }
.news-card:hover { border-color: var(--ink-soft); transform: translateY(-2px); }
.news-card.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); position: relative; overflow: hidden; }
.news-card.featured::before { content: ''; position: absolute; bottom: -40%; left: -20%; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 60%); opacity: 0.6; }
.news-card > * { position: relative; z-index: 1; }
.news-meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-muted); letter-spacing: 0.04em; flex-wrap: wrap; }
.news-card.featured .news-meta { color: rgba(245,241,234,0.7); }
.news-cat { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.news-card.featured .news-cat { border-color: rgba(245,241,234,0.3); }
.news-card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.22; letter-spacing: -0.01em; margin: 18px 0 12px; flex: 1; }
.news-card.featured h3 { font-size: 32px; }
.news-card p { font-size: 13px; color: var(--ink-muted); margin-bottom: 20px; }
.news-card.featured p { color: rgba(245,241,234,0.75); }
.news-card .read { font-size: 13px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.news-card.featured .read { color: var(--accent-soft); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* ——— CTA band ——— */
.cta-band { padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 60%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 60%); opacity: 0.5; }
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; margin: 24px auto 28px; text-wrap: balance; }
.cta-band h2 em { font-style: italic; color: var(--accent); }
.cta-band p { font-size: 18px; color: var(--ink-soft); max-width: 48ch; margin: 0 auto 36px; }

/* ——— News card (archive) ——— */
.nc { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); transition: all 0.2s; height: 100%; }
.nc:hover { border-color: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.nc-link { display: flex; flex-direction: column; padding: 26px; height: 100%; }
.nc-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.04em; }
.nc-cat { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.nc h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin: 16px 0 10px; flex: 1; }
.nc:hover h3 { color: var(--accent); }
.nc p { font-size: 13px; color: var(--ink-muted); line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.nc-read { font-size: 13px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.nc-pdf { font-family: var(--mono); font-size: 10px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ——— Service card ——— */
.svc-card { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); transition: all 0.25s ease; }
.svc-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.svc-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--bg-elev); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: all 0.25s ease; }
.svc-card:hover .svc-icon { background: var(--accent); color: #fff; }
.svc-body { flex: 1; min-width: 0; }
.svc-titlerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.svc-titlerow h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.svc-abbr { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding: 3px 8px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line); }
.svc-body p { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--accent); }
.svc-card:hover .svc-link svg { transform: translateX(4px); }
.svc-link svg { transition: transform 0.2s; }

/* ——— Page header ——— */
.page-header { position: relative; overflow: hidden; padding: 56px 0 48px; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.page-header::before { content: ''; position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0); background-size: 28px 28px; opacity: 0.6; -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 70%); }
.page-header .wrap { position: relative; z-index: 1; }
.crumb { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumb a { color: var(--ink-muted); transition: color 0.2s; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: 0.5; }
.crumb .cur { color: var(--ink-soft); }
.page-header h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.page-header .ph-sub { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; margin-top: 18px; }

/* ——— Single article ——— */
.article-wrap { max-width: 820px; }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--ink-muted); }
.article-cat { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.attachments { margin-top: 40px; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); }
.attachments h3 { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 18px; }
.attach-list { display: grid; gap: 10px; }
.article-nav { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }

/* ——— PDF modal ——— */
.pdfm { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.pdfm.open { display: flex; }
.pdfm-backdrop { position: absolute; inset: 0; background: rgba(10, 9, 8, 0.7); backdrop-filter: blur(4px); animation: pdfm-fade 0.2s ease; }
@keyframes pdfm-fade { from { opacity: 0; } to { opacity: 1; } }
.pdfm-dialog { position: relative; z-index: 1; width: min(960px, 100%); height: min(88vh, 100%); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pdfm-rise 0.25s ease; }
@keyframes pdfm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.pdfm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.pdfm-title { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); }
.pdfm-title svg { color: var(--accent); flex-shrink: 0; }
.pdfm-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfm-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pdfm-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; font-family: var(--sans); border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); transition: all 0.18s; }
.pdfm-btn:hover { border-color: var(--ink); color: var(--ink); }
.pdfm-btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.pdfm-btn-accent:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pdfm-close { padding: 9px; }
.pdfm-body { flex: 1; background: #525659; min-height: 0; }
.pdfm-body iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) {
  .pdfm { padding: 0; }
  .pdfm-dialog { width: 100%; height: 100%; border-radius: 0; border: none; }
  .pdfm-btn-label { display: none; }
  .pdfm-btn { padding: 9px; }
}

/* ——— Contact ——— */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cc { padding: 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); transition: all 0.2s; }
.cc:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.cc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-elev); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.cc h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.cc p { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.cc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--accent); }
.cc-mail { font-size: 14px; color: var(--accent); word-break: break-all; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 100%; min-height: 480px; background: var(--bg-elev); }
.contact-map iframe { display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-map { min-height: 360px; } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

/* ——— Documente checklist ——— */
.checklist { list-style: none; display: grid; gap: 10px; margin: 28px 0 56px; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.checklist .num { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--bg-elev); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; font-weight: 500; margin-top: 1px; }

/* ——— Programari ——— */
.prog-wrap { max-width: 980px; }
.prog-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow-sm); }
/* Iframe CEOSP cross-origin (SPA Angular, fără auto-resize): ~2000px pe desktop, mai înalt pe ecrane mici */
.prog-frame iframe { display: block; width: 100%; background: #fff; height: 2600px; border: 0; }
@media (max-width: 980px) { .prog-frame iframe { height: 2700px; } }
@media (max-width: 767px)  { .prog-frame iframe { height: 4400px; } }
@media (max-width: 480px)  { .prog-frame iframe { height: 6500px; } }

/* ——— Team / objectives / compartiment cards ——— */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-member { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.tm-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: var(--bg-elev); color: var(--accent); display: flex; align-items: center; justify-content: center; }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.obj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.obj-card { padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); transition: all 0.2s; }
.obj-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.obj-num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.obj-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); margin: 12px 0 8px; letter-spacing: -0.01em; }
.obj-card p { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
@media (max-width: 700px) { .obj-grid { grid-template-columns: 1fr; } }
.compartiment { display: block; transition: all 0.2s; }
.compartiment:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.compartiment:hover h3 { color: var(--accent); }
.cmp-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--accent); }
.subnav { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.downloads { margin-top: 16px; }
.docs-block { margin-top: 48px; }

/* ——— Accessibility widget ——— */
.a11y-fab { position: fixed; bottom: 24px; right: 24px; z-index: 100; width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform 0.2s; }
.a11y-fab:hover { transform: scale(1.08); }
.a11y-panel { position: fixed; bottom: 88px; right: 24px; z-index: 100; width: 300px; max-height: 78vh; overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.25s ease; }
.a11y-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--ink); color: var(--bg); font-family: var(--serif); font-size: 17px; }
.a11y-reset { font-family: var(--sans); font-size: 12px; cursor: pointer; background: color-mix(in oklab, var(--bg) 20%, transparent); color: var(--bg); border: none; padding: 5px 10px; border-radius: 999px; transition: background 0.2s; }
.a11y-reset:hover { background: color-mix(in oklab, var(--bg) 35%, transparent); }
.a11y-body { padding: 18px; overflow-y: auto; max-height: 64vh; display: grid; gap: 18px; }
.a11y-group label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 10px; }
.a11y-row { display: flex; gap: 8px; }
.a11y-row .a11y-btn { flex: 1; }
.a11y-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-btn { padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); font-size: 13px; font-weight: 500; font-family: var(--sans); transition: all 0.15s; text-align: center; }
.a11y-btn:hover { border-color: var(--accent); color: var(--ink); }
.a11y-btn.a11y-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.a11y-reading-line { position: fixed; left: 0; right: 0; height: 3px; background: color-mix(in oklab, var(--accent) 60%, transparent); z-index: 90; pointer-events: none; }
.a11y-reading-line.hidden { display: none; }
html.a11y-high-contrast body { background: #fff !important; color: #000 !important; }
html.a11y-high-contrast p, html.a11y-high-contrast span, html.a11y-high-contrast li, html.a11y-high-contrast td { color: #000 !important; }
html.a11y-high-contrast a { color: #0000EE !important; text-decoration: underline !important; }
html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert img, html.a11y-invert video, html.a11y-invert iframe { filter: invert(1) hue-rotate(180deg); }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-links a { background-color: #ff0 !important; color: #000 !important; padding: 1px 3px !important; text-decoration: underline !important; font-weight: bold !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'/%3E%3Cpath fill='%23fff' d='M4.5 5.5l5 12 1.8-5.2 5.2-1.8-12-5z'/%3E%3C/svg%3E") 0 0, auto !important; }
html.a11y-dyslexia * { font-family: 'Comic Sans MS', 'OpenDyslexic', cursive !important; letter-spacing: 0.05em !important; word-spacing: 0.15em !important; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing td, html.a11y-spacing span { line-height: 2 !important; letter-spacing: 0.05em !important; word-spacing: 0.1em !important; }
html.a11y-no-anim, html.a11y-no-anim * { animation: none !important; transition: none !important; }

/* ——— Filtre + căutare Știri ——— */
.news-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); margin-bottom: 28px; }
.nf-field { display: flex; flex-direction: column; gap: 6px; }
.nf-grow { flex: 1 1 260px; min-width: 200px; }
.nf-field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.news-filters input, .news-filters select { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; height: 42px; }
.news-filters input:focus, .news-filters select:focus { outline: none; border-color: var(--accent); }
.nf-search { position: relative; display: flex; align-items: center; }
.nf-search svg { position: absolute; left: 12px; color: var(--ink-muted); pointer-events: none; }
.nf-search input { width: 100%; padding-left: 38px; }
.nf-actions { display: flex; gap: 8px; align-items: flex-end; }
.nf-actions .btn { height: 42px; }
@media (max-width: 760px) { .nf-field, .nf-grow { flex: 1 1 100%; } .nf-actions { flex: 1 1 100%; } .nf-actions .btn { flex: 1; justify-content: center; } }

.news-results { font-size: 14px; color: var(--ink-muted); margin-bottom: 24px; }
.news-results strong { color: var(--ink); font-weight: 600; }
.news-empty { padding: 40px 0; }
.news-empty p { color: var(--ink-muted); margin-bottom: 8px; }
.news-empty a { color: var(--accent); text-decoration: underline; }

/* ——— Vizualizator documente inline (PDF/imagine) ——— */
.documents { margin-top: 44px; }
.documents-title { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 18px; }
.documents-title svg { color: var(--accent); }
.docview { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); margin: 0 0 20px; box-shadow: var(--shadow-sm); }
.docview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--bg-elev); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.docview-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); }
.docview-name svg { color: var(--accent); flex-shrink: 0; }
.docview-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.docview-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; font-family: var(--sans); border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); transition: all 0.18s; }
.docview-btn:hover { border-color: var(--ink); color: var(--ink); }
.docview-btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.docview-btn-accent:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.docview-frame { display: block; width: 100%; height: 760px; border: 0; background: #525659; }
.docview-image { }
.docview-img { display: block; }
.docview-img img { display: block; width: 100%; height: auto; cursor: zoom-in; }
@media (max-width: 640px) {
  .docview-frame { height: 70vh; min-height: 420px; }
  .docview-btn span, .docview-btn { font-size: 12px; }
}

/* ——— Text extras din PDF (colapsabil) ——— */
.doc-text { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.doc-text > summary { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--bg-elev); font-family: var(--sans); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); cursor: pointer; list-style: none; }
.doc-text > summary::-webkit-details-marker { display: none; }
.doc-text > summary svg { color: var(--accent); flex-shrink: 0; }
.doc-text-note { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-muted); }
.doc-text-chevron { margin-left: 4px; transition: transform 0.2s; color: var(--ink-muted) !important; }
.doc-text[open] .doc-text-chevron { transform: rotate(180deg); }
.doc-text[open] > summary { border-bottom: 1px solid var(--line); }
.doc-text-body { padding: 22px; max-width: none; font-size: 15px; color: var(--ink-soft); }
.doc-text-body p { margin-bottom: 14px; }

/* ——— Banner cookies ——— */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; }
.cookie-inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); flex-wrap: wrap; }
.cookie-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--bg-elev); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cookie-inner p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; flex: 1; min-width: 220px; margin: 0; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 16px; }
body.has-cookie .a11y-fab { bottom: 104px; }
@media (max-width: 640px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cookie-inner { padding: 14px 16px; gap: 14px; }
  .cookie-icon { display: none; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
  body.has-cookie .a11y-fab { bottom: 158px; }
}
