/**
 * GBV România — ordinary pages (PORT_MAPPING §13, chunk 6): Despre, FAQ,
 * Contact, the legal pages, Bibliotecă — and the 404. Loaded there only
 * (inc/enqueue.php); inc/pages.php forces Astra's full-width container, so
 * the bands span the viewport and everything else is placed here. Token
 * variables only; px where the mockups measure a value the tokens lack.
 *
 *   0. The prose width by default (amendment A1)
 *   1. The page head (contact / FAQ and legal looks, D17)
 *   2. Legal pages (patterns/legal.php)
 *   3. FAQ (patterns/faq.php, assets/js/faq.js)
 *   4. Links set in content (the button and the arrow link)
 *   5. Despre noi (patterns/despre.php)
 *   6. The 404 (inc/notfound.php, assets/js/notfound.js)
 *   7. Contact (patterns/contact.php, inc/contact.php, assets/js/contact.js)
 */

/* --------------------------------------------------------------------------
   0. The prose width by default (A1). Astra's full-width container lets the
   content run edge to edge; every direct child of the content takes the
   720 prose column with the gutter unless it is a band (`.gbv-band`) or an
   `alignfull` block. The content's own top / bottom spacing is the legal
   body's (44 / 64; 32 / 48 below 922), dropped where a band starts or ends
   the page. Astra's full-width template pads the article itself
   (`.ast-single-post.ast-page-builder-template .site-main > article`,
   0,3,1: 2em top, 20px sides) — reset here, so the bands touch the head and
   the prose edge is the gutter. Astra also pads every top-level group in
   the content (`.entry-content > .wp-block-group`, 0,1,1, its default
   block padding: 48 px) — the patterns' groups set their own spacing.
   -------------------------------------------------------------------------- */
.gbv-editorial.ast-page-builder-template .site-main > article {
  padding: 0;
}
.gbv-editorial .entry-content > .wp-block-group {
  padding: 0;
}
.gbv-editorial .entry-content {
  padding-top: calc(var(--space-10) + var(--space-1));      /* 44 */
  padding-bottom: var(--space-16);                          /* 64 */
}
.gbv-editorial .entry-content > :where(:not(.alignfull, .gbv-band)) {
  box-sizing: border-box;
  width: min(var(--container-prose), 100% - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}
.gbv-editorial .entry-content:has(> .gbv-band:first-child) {
  padding-top: 0;
}
.gbv-editorial .entry-content:has(> .gbv-band:last-child) {
  padding-bottom: 0;
}
.gbv-editorial .entry-content > :last-child {
  margin-bottom: 0;
}
@media (max-width: 921.99px) {
  .gbv-editorial .entry-content {
    padding-top: var(--space-8);                            /* 32 */
    padding-bottom: var(--space-12);                        /* 48 */
  }
}

/* --------------------------------------------------------------------------
   1. The page head (inc/pages.php; base.css §9's recipe, centred, no
   breadcrumb — D7). Contact / FAQ: h1 28–38 and the 300 lede, padding 32
   (24 below 922, base.css). Legal (`--legal`): h1 26–36 and the 12 px
   tracked date caption, padding 32 at every width (D17).
   -------------------------------------------------------------------------- */
.gbv-page-head--editorial .gbv-page-head__title {
  line-height: normal;                                      /* the mockups' h1 box: 34 at 28 px, 46 at 38 px */
}
.gbv-page-head--editorial .gbv-page-head__lede a {
  color: var(--color-brand);
  text-decoration: none;
}
.gbv-page-head--editorial .gbv-page-head__lede a:hover {
  color: var(--color-accent-strong);
}
.gbv-page-head--legal .gbv-page-head__title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);                 /* 26–36 px */
}
.gbv-page-head--editorial .gbv-page-head__date {
  display: block;                                           /* a block: the head's line box would add 2.4 px (Gantari 1.4 vs the mockup's Times strut) */
  margin: var(--space-3) 0 0;
  color: var(--text-strong);
}
@media (max-width: 921.99px) {
  .gbv-page-head--legal {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

/* --------------------------------------------------------------------------
   2. Legal pages (termeni / confidentialitate / cookies / livrare .dc.html):
   h2 Gantari 600 18, paragraphs 15 / 1.65, 30 between sections (the
   paragraph's 10 collapses into the heading's 30, as in the mockup). Lists
   follow the prose recipe (base.css §8). Astra's heading sizes and content
   margins are outranked at 0,3,x.
   -------------------------------------------------------------------------- */
.gbv-editorial .gbv-legal h2 {
  margin: 30px 0 10px;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-lg);
  line-height: normal;
  letter-spacing: var(--tracking-normal);
  color: var(--text-strong);
}
.gbv-editorial .gbv-legal > h2:first-child {
  margin-top: 0;
}
.gbv-editorial .gbv-legal :is(p, li) {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text-body);
}
.gbv-editorial .gbv-legal p {
  margin: 0 0 10px;
}
.gbv-editorial .entry-content > .gbv-legal {
  padding-bottom: 20px;                                      /* the last section keeps its 30 (10 + 20) above the body padding, as in the mockup */
}

/* --------------------------------------------------------------------------
   3. FAQ (faq.dc.html, audit H4). Core Details blocks: the card is the
   <details>, the question row its <summary> (marker hidden; the chevron
   disc is ::after, its glyph ::before, both in the row's right padding,
   which also keeps room for the copy-link button faq.js places beside the
   summary). Closed: subtle border; open: default border + shadow-xs, the
   disc orange, the glyph turned. The answer is the details' other
   children. Below 922 the row pads 16 / 18 and the copy button is always
   visible (no hover on touch).
   -------------------------------------------------------------------------- */
.gbv-faq {
  --faq-pad-y: var(--space-5);                               /* 20 */
  --faq-pad-x: var(--space-6);                               /* 24 */
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.gbv-editorial .entry-content > .gbv-faq:first-child {
  margin-top: calc(-1 * var(--space-1));                     /* the list pads 40 under the head, the content 44 */
}
.gbv-editorial .gbv-faq > * {
  margin-top: 0;                                             /* WordPress's flow layout adds 24 between children */
  margin-bottom: 0;
}
.gbv-editorial .gbv-faq > .gbv-faq__tools {
  display: flex;
  justify-content: flex-end;
  margin-top: calc(-1 * var(--space-2));
}
.gbv-editorial .gbv-faq .gbv-faq__all,
.gbv-editorial .gbv-faq .gbv-faq__all:focus {
  min-height: var(--hit-area);
  padding: 0 var(--space-1);
  background: none;
  border: 0;
  box-shadow: none;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  line-height: 1;
  color: var(--color-brand);
  cursor: pointer;
}
.gbv-editorial .gbv-faq .gbv-faq__all:hover,
.gbv-editorial .gbv-faq .gbv-faq__all:active {
  background: none;
  color: var(--color-accent-strong);
}
.gbv-faq__card {
  position: relative;
}
.gbv-faq details {
  margin: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  scroll-margin-top: calc(var(--header-stuck) + var(--space-6));
  transition: border-color var(--motion-base) ease;
}
.gbv-faq details[open] {
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}
.gbv-faq summary {
  position: relative;
  box-sizing: border-box;
  display: flex;                                             /* the text centred in a row as tall as the 32 px disc */
  align-items: center;
  min-height: calc(2 * var(--faq-pad-y) + var(--space-8));
  list-style: none;
  padding: var(--faq-pad-y) calc(var(--faq-pad-x) + var(--space-8) + 2px + var(--hit-area) + var(--space-2)) var(--faq-pad-y) var(--faq-pad-x);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: clamp(0.96875rem, 1.4vw, 1.0625rem);            /* 15.5–17 px */
  line-height: normal;
  color: var(--text-strong);
  cursor: pointer;
  transition: background-color var(--motion-base) ease;
}
.gbv-faq summary::-webkit-details-marker {
  display: none;
}
.gbv-faq summary:hover {
  background: var(--surface-sunken);
}
.gbv-faq summary:active {
  background: var(--gbv-blue-mist);
}
.gbv-faq summary::after,
.gbv-faq summary::before {
  content: "";
  position: absolute;
  top: 50%;
}
.gbv-faq summary::after {                                    /* the disc */
  right: var(--faq-pad-x);
  width: var(--space-8);
  height: var(--space-8);
  margin-top: calc(-1 * var(--space-4));
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
}
.gbv-faq summary::before {                                   /* the glyph, over the disc */
  z-index: 1;
  right: calc(var(--faq-pad-x) + var(--space-2));
  width: var(--icon-sm);
  height: var(--icon-sm);
  margin-top: calc(-1 * var(--space-2));
  background-color: var(--text-strong);
  -webkit-mask: url("../img/icons/chevron-down.svg") center / contain no-repeat;
  mask: url("../img/icons/chevron-down.svg") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.gbv-faq details[open] > summary::after {
  background: var(--color-accent);
}
.gbv-faq details[open] > summary::before {
  background-color: var(--text-on-accent);
  transform: rotate(180deg);
}
.gbv-faq details > :not(summary) {
  margin-left: var(--faq-pad-x);
  margin-right: var(--faq-pad-x);
  font-family: var(--font-body);
  font-size: clamp(0.90625rem, 1.3vw, 0.96875rem);           /* 14.5–15.5 px */
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.gbv-editorial .gbv-faq details p {
  margin-top: 0;
  margin-bottom: var(--space-3);
}
.gbv-editorial .gbv-faq details ol {
  margin-top: var(--space-1);
  margin-bottom: var(--space-3);
}
.gbv-editorial .gbv-faq details li {
  font-size: inherit;
  line-height: inherit;
}
.gbv-editorial .gbv-faq details > :last-child {
  margin-bottom: var(--faq-pad-x);
}
.gbv-editorial .gbv-faq .wp-block-quote {
  margin-top: var(--space-1);
  padding: 18px 22px;
  background: var(--gbv-cream);
  border: 0;
  border-radius: var(--radius-md);
  border-top-left-radius: var(--corner-sm);
  font-style: normal;
  font-weight: var(--fw-light);
  font-size: 0.96875rem;                                     /* 15.5 px */
  line-height: var(--leading-relaxed);
  color: var(--text-strong);
}
.gbv-editorial .gbv-faq .wp-block-quote p {
  margin: 0;
  font: inherit;
  color: inherit;
}
.gbv-faq__anchor {
  position: absolute;
  right: calc(var(--faq-pad-x) + var(--space-8) + 3px);      /* the mockup's 2 px from the disc + the border */
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hit-area);
  height: var(--hit-area);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--motion-base) ease;
}
.gbv-faq__anchor .gbv-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.gbv-faq__card:hover .gbv-faq__anchor,
.gbv-faq__anchor:focus-visible {
  opacity: 1;
}
.gbv-editorial .gbv-faq .gbv-faq__anchor:hover,
.gbv-editorial .gbv-faq .gbv-faq__anchor:focus {
  color: var(--text-muted);
}
@media (max-width: 921.99px) {
  .gbv-faq {
    --faq-pad-y: var(--space-4);                             /* 16 */
    --faq-pad-x: 18px;
  }
  .gbv-editorial .entry-content > .gbv-faq:first-child {
    margin-top: calc(-1 * var(--space-2));                   /* 24 under the head below 922 */
  }
  .gbv-editorial .entry-content > .gbv-faq:last-child {
    margin-bottom: calc(-1 * var(--space-2));                /* 40 above the verse */
  }
  .gbv-faq__anchor {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gbv-faq summary::before {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   4. Links set in content (Despre's CTA row; the 404 reuses the arrow link).
   Astra colours and underlines every link in page content
   (`.ast-single-post .entry-content a`, 0,2,1; :hover 0,3,1), so the
   theme's button and arrow link are restated at 0,3,1 / 0,4,1.
   -------------------------------------------------------------------------- */
.gbv-editorial .entry-content a.gbv-btn,
.gbv-editorial .entry-content a.gbv-btn:visited {
  color: var(--text-on-brand);
  text-decoration: none;
}
.gbv-editorial .entry-content a.gbv-btn:hover,
.gbv-editorial .entry-content a.gbv-btn:focus-visible {
  background: var(--color-brand-strong);
  border-color: var(--color-brand-strong);
  color: var(--text-on-brand);
  text-decoration: none;
}
.gbv-arrow-link,
.gbv-editorial .entry-content a.gbv-arrow-link,
.gbv-editorial .entry-content a.gbv-arrow-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 0.96875rem;                                     /* 15.5 px (despre-noi.dc.html) */
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--motion-base) ease;
}
.gbv-arrow-link::after {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask: url("../img/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../img/icons/arrow-right.svg") center / contain no-repeat;
}
@media (max-width: 767.98px) {
  .gbv-arrow-link,
  .gbv-editorial .entry-content a.gbv-arrow-link {
    min-height: var(--hit-area);                             /* B6: 44 px hit areas for text links on phones */
  }
}
.gbv-arrow-link:hover,
.gbv-arrow-link:focus-visible,
.gbv-editorial .entry-content a.gbv-arrow-link:hover,
.gbv-editorial .entry-content a.gbv-arrow-link:focus-visible {
  color: var(--color-accent-strong);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Despre noi (despre-noi.dc.html; C2 / H2: 3 stats and 2 cards hold to
   768, one column below). Bands: the cream hero with the world map centred
   on it (so anchored to the content, B2), the stats and the cards in the
   1080 container, the CTA row; the story takes the prose width (§0).
   WordPress's flow layout adds 24 px above every child of a group — the
   bands set their own rhythm at 0,2,0+.
   -------------------------------------------------------------------------- */
.gbv-editorial .entry-content > .gbv-despre-hero,
.gbv-editorial .entry-content > .gbv-despre-stats,
.gbv-editorial .entry-content > .gbv-despre-cards,
.gbv-editorial .entry-content > .gbv-despre-cta,
.gbv-editorial .entry-content > .gbv-despre-story {
  margin-top: 0;
  margin-bottom: 0;
}
.gbv-editorial .gbv-despre-hero > *,
.gbv-editorial .gbv-despre-stats > *,
.gbv-editorial .gbv-despre-cards > *,
.gbv-editorial .gbv-despre-cta > *,
.gbv-editorial .gbv-stat > *,
.gbv-editorial .gbv-despre-card > *,
.gbv-editorial .gbv-despre-card__text > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* Hero */
.gbv-editorial .entry-content > .gbv-despre-hero {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: var(--space-16) var(--gutter) 72px;               /* 64 / 72 */
  background: var(--surface-page);
  text-align: center;
}
.gbv-despre-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1100px;                                             /* despre-noi.dc.html */
  aspect-ratio: 1005.75 / 602.25;                            /* world-map.svg viewBox */
  transform: translate(-50%, -50%);
  background: url("../img/world-map.svg") center / contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.gbv-editorial .gbv-despre-hero > * {
  position: relative;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.gbv-editorial .gbv-despre-hero .gbv-despre-hero__caption {
  font-size: var(--text-xs);
  line-height: 1.5;                                          /* the mockup's inline caption sits in an 18 px line */
  color: var(--text-strong);
}
.gbv-editorial .gbv-despre-hero .gbv-despre-hero__title {
  margin-top: var(--space-4);
  font-family: var(--font-headline);
  font-weight: var(--fw-bold);
  font-size: clamp(1.875rem, 3.8vw, 3rem);                   /* 30–48 px */
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.gbv-editorial .gbv-despre-hero .gbv-despre-hero__lede {
  max-width: 54ch;
  margin-top: var(--space-5);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: clamp(1rem, 1.7vw, 1.1875rem);                  /* 16–19 px */
  line-height: 1.55;
  color: var(--text-body);
}

/* Stats */
.gbv-editorial .entry-content > .gbv-despre-stats {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding: 52px var(--gutter);
  text-align: center;
}
.gbv-editorial .gbv-stat .gbv-stat__num {
  font-family: var(--font-headline);
  font-weight: var(--fw-bold);
  font-size: clamp(2.375rem, 4vw, 3.25rem);                  /* 38–52 px */
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-brand);
}
.gbv-editorial .gbv-stat--accent .gbv-stat__num {
  color: var(--color-accent-strong);
}
.gbv-editorial .gbv-stat .gbv-stat__label {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Story (prose width from §0) */
.gbv-editorial .entry-content > .gbv-despre-story {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.gbv-editorial .entry-content > .gbv-despre-story h2 {
  margin: 0 0 14px;
  font-family: var(--font-headline);
  font-weight: var(--fw-bold);
  font-size: clamp(1.375rem, 2.3vw, 1.75rem);                /* 22–28 px */
  line-height: normal;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.gbv-editorial .entry-content > .gbv-despre-story p {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.gbv-editorial .entry-content > .gbv-despre-story p + h2 {
  margin-top: var(--space-8);                                /* 32 after a story block (the paragraph's 14 collapses into it) */
}
.gbv-editorial .entry-content > .gbv-despre-story > :last-child:is(p, h2) {
  margin-bottom: 0;
}

/* „Ce publicăm” cards */
.gbv-editorial .entry-content > .gbv-despre-cards {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-6) var(--gutter) 56px;
}
.gbv-editorial .gbv-despre-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-top-left-radius: var(--corner-md);
  box-shadow: var(--shadow-xs);
}
.gbv-despre-card__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: var(--gbv-blue-mist);
  color: var(--gbv-blue-deep);
}
.gbv-despre-card--blush .gbv-despre-card__icon {
  background: var(--gbv-orange-blush);
  color: var(--gbv-orange-clay);
}
.gbv-despre-card__icon .gbv-icon {
  width: 21px;
  height: 21px;
}
.gbv-editorial .gbv-despre-card .gbv-despre-card__title {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 1.03125rem;                                     /* 16.5 px */
  line-height: normal;
  color: var(--text-strong);
}
.gbv-editorial .gbv-despre-card .gbv-despre-card__desc {
  margin-top: var(--space-1);
  font-family: var(--font-body);
  font-size: 0.90625rem;                                     /* 14.5 px */
  line-height: 1.5;
  color: var(--text-body);
}

/* CTA row */
.gbv-editorial .entry-content > .gbv-despre-cta {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter) var(--space-16);
}

@media (max-width: 921.99px) {
  .gbv-editorial .entry-content > .gbv-despre-hero {
    padding: 44px var(--gutter) var(--space-12);
  }
  .gbv-editorial .entry-content > .gbv-despre-stats {
    gap: 28px;
    padding: 36px var(--gutter);
  }
  .gbv-editorial .entry-content > .gbv-despre-story {
    padding-top: var(--space-10);
  }
  .gbv-editorial .entry-content > .gbv-despre-cards {
    padding: var(--space-2) var(--gutter) var(--space-10);
  }
}
@media (max-width: 767.98px) {
  .gbv-editorial .entry-content > .gbv-despre-stats,
  .gbv-editorial .entry-content > .gbv-despre-cards {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   6. The 404 (inc/notfound.php, assets/js/notfound.js; 404.dc.html). The
   hero prints before #content; Astra's emptied #content is hidden and the
   page is a column so the band fills the space above the footer (the
   mockup's flex: 1). The map sits in its own clipping layer, so the chip
   panel may hang below the band. From 1280 the map is anchored to the
   content (left = centre − 360, the mockup's position at 1280; B2), below
   to the band's right edge as drawn.
   -------------------------------------------------------------------------- */
.error404 #content {
  display: none;
}
.error404 #page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.gbv-404 {
  position: relative;
  flex: 1 0 auto;
  background: var(--surface-page);
  text-align: center;
}
.gbv-404__map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.gbv-404__map::before {
  content: "";
  position: absolute;
  right: -100px;
  top: 50%;
  width: 1100px;
  aspect-ratio: 1005.75 / 602.25;                            /* world-map.svg viewBox */
  transform: translateY(-50%);
  background: url("../img/world-map.svg") center / contain no-repeat;
  opacity: 0.35;
}
.gbv-404__inner {
  position: relative;
  box-sizing: border-box;
  max-width: calc(var(--container-prose) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 88px var(--gutter) var(--space-24);               /* 88 / 96 */
}
.gbv-404 .gbv-404__caption {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--text-strong);
}
.gbv-404 .gbv-404__title {
  margin: 18px 0 0;
  font-family: var(--font-headline);
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 4vw, 3.25rem);                      /* 32–52 px */
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.gbv-404 .gbv-404__lede {
  max-width: 52ch;
  margin: 28px auto 0;
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.4vw, 1.03125rem);           /* 15–16.5 px */
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

/* The search box: the theme's product form as the 51 px field with the
   orange submit; the clear / close button (notfound.js) left of it. */
.gbv-404__search {
  position: relative;
  max-width: 480px;
  margin: 26px auto 0;
  text-align: left;
}
.gbv-404 .gbv-search {
  position: relative;
  display: block;
  margin: 0;
}
.gbv-404 .gbv-search .gbv-search__field {
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 15px 96px 15px 18px;
  background: var(--surface-card);
  border: var(--stroke-default) solid var(--border-default);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: normal;
  color: var(--text-strong);
  appearance: none;
  -webkit-appearance: none;
}
.gbv-404 .gbv-search .gbv-search__field::-webkit-search-cancel-button,
.gbv-404 .gbv-search .gbv-search__field::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}
.gbv-404 .gbv-search .gbv-search__field:hover:not(:focus) {
  border-color: var(--border-strong);
}
.gbv-404 .gbv-search .gbv-search__field:focus {
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-sm);
  outline: none;
}
.gbv-404 .gbv-search .gbv-search__submit,
.gbv-404 .gbv-search .gbv-search__submit:focus {
  position: absolute;
  right: var(--space-2);
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-10);
  height: var(--space-10);
  min-height: 0;
  padding: 0;
  transform: translateY(-50%);
  background: var(--color-accent);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
  color: var(--text-on-accent);
  cursor: pointer;
  transition: background-color var(--motion-base) ease, transform var(--motion-press) ease;
}
.gbv-404 .gbv-search .gbv-search__submit:hover {
  background: var(--color-accent-strong);
  color: var(--text-on-accent);
}
.gbv-404 .gbv-search .gbv-search__submit:active {
  background: var(--color-accent-strong);
  transform: translateY(-50%) scale(0.94);
}
.gbv-404 .gbv-search .gbv-search__submit .gbv-icon {
  width: 18px;
  height: 18px;
}
.gbv-404 .gbv-search .gbv-404__clear,
.gbv-404 .gbv-search .gbv-404__clear:focus {
  position: absolute;
  right: 54px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-10);
  height: var(--space-10);
  min-height: 0;
  padding: 0;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--motion-base) ease, color var(--motion-base) ease;
}
.gbv-404 .gbv-search .gbv-404__clear[hidden] {
  display: none;
}
.gbv-404 .gbv-search .gbv-404__clear:hover {
  background: var(--gbv-blue-mist);
  color: var(--text-strong);
}
.gbv-404 .gbv-search .gbv-404__clear:active {
  background: var(--color-brand);
  color: var(--text-on-brand);
}
.gbv-404 .gbv-search .gbv-404__clear .gbv-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

/* The chips: open under the field without JS; the panel with it. */
.gbv-404__panel {
  margin-top: var(--space-4);
  padding: 18px 20px var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-bottom-right-radius: var(--corner-sm);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--gbv-blue-deep) 10%, transparent);
  text-align: left;
}
.gbv-404__search.is-enhanced .gbv-404__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + var(--space-2));
  z-index: 901;
  display: none;
  margin: 0;
}
.gbv-404__search.is-enhanced.is-open .gbv-404__panel {
  display: block;
}
.gbv-404__search.is-enhanced.is-above .gbv-404__panel {
  top: auto;
  bottom: calc(100% + var(--space-2));
  border-bottom-right-radius: var(--radius-md);
  border-top-left-radius: var(--corner-sm);
}
.gbv-404__search.is-open {
  z-index: 901;                                              /* the field and its buttons over the dim */
}
.gbv-404__dim {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  backdrop-filter: blur(var(--backdrop-blur));
}
.gbv-404__dim[hidden] {
  display: none;
}
.gbv-404 .gbv-404__group {
  display: block;
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  line-height: normal;
  color: var(--text-strong);
}
.gbv-404 .gbv-404__chips + .gbv-404__group {
  margin-top: 14px;
}
.gbv-404 .gbv-404__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gbv-404 .gbv-404__chips li {
  margin: 0;
}
.gbv-404 .gbv-404__chip,
.gbv-404 .gbv-404__chip:visited {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.84375rem;                                     /* 13.5 px */
  line-height: normal;
  color: var(--text-strong);
  text-decoration: none;
  transition: background-color var(--motion-base) ease, color var(--motion-base) ease, border-color var(--motion-base) ease;
}
.gbv-404 .gbv-404__chip .gbv-icon {
  width: 13px;
  height: 13px;
}
.gbv-404 .gbv-404__chip:hover,
.gbv-404 .gbv-404__chip:focus-visible {
  background: var(--gbv-blue-mist);
  border-color: var(--gbv-blue-mist);
  color: var(--gbv-blue-deep);
}
.gbv-404 .gbv-404__chip:active {
  transform: scale(0.97);
}

.gbv-404__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: 28px;
}
.gbv-404 .gbv-btn,
.gbv-404 .gbv-btn:visited {
  color: var(--text-on-brand);
}
.gbv-404 .gbv-404__home {
  font-size: var(--text-md);                                 /* 15 px */
}

@media (min-width: 1280px) {
  .gbv-404__map::before {
    right: auto;
    left: calc(50% - 360px);                                 /* the mockup's map at 1280, kept with the content above it (B2) */
  }
}
@media (max-width: 921.99px) {
  .gbv-404__inner {
    padding: 56px var(--gutter) var(--space-16);
  }
  .gbv-404__map::before {
    width: 640px;
  }
  .gbv-404__actions {
    flex-direction: column;
    gap: var(--space-4);
  }
  .gbv-404__panel {
    padding: 13px 13px 11px;
  }
  .gbv-404 .gbv-404__group {
    margin-bottom: 9px;
    font-size: var(--text-2xs);
  }
  .gbv-404 .gbv-404__chips {
    gap: 6px;
  }
  .gbv-404 .gbv-404__chip,
  .gbv-404 .gbv-404__chip:visited {
    gap: 5px;
    padding: 5px 10px;
    font-size: var(--text-xs);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gbv-404 .gbv-404__chip:active,
  .gbv-404 .gbv-search .gbv-search__submit:active {
    transform: translateY(-50%);
  }
  .gbv-404 .gbv-404__chip:active {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   7. Contact (contact.dc.html; audit H1, A4, G2; TD-002). The band: the
   1080 container, the form column + the 340 px aside from 922 (gap 48,
   padding 48 / 64), one column below (gap 32, padding 28 / 36). The form is
   Contact Form 7's markup (the body written in the form, THEME.md) on the
   DS recipe of base.css §7 — 48 px controls, 14 px 600 labels, the 160 px
   textarea, the hover / focus borders —, Nume and Email side by side from
   600, the error as frozen (D13: the danger border and a 12 px message, no
   icon), CF7's answer as the design's banners (sent: contact.dc.html's
   green with a left rule and a check; anything else: comanda.dc.html's
   blush with a danger rule and an alert icon — A4), shown above „Trimite”
   and kept until closed (contact.js). The aside sticks under the header
   from 922 (calc(--header-stuck + 20px), G2). Astra prints its own CF7
   rules in its inline CSS on every page while CF7 is active (padding
   12 / 16, a #046BD2 focus border, a 14 px red tip — `.wpcf7
   input.wpcf7-form-control:not([type=submit])` and friends, 0,3,1); the
   controls, the tip and the answer are restated here above that.
   -------------------------------------------------------------------------- */
.gbv-editorial .entry-content > .gbv-contact {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: var(--space-12);
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--space-12) var(--gutter) var(--space-16);
}
.gbv-editorial .gbv-contact > *,
.gbv-editorial .gbv-contact__main > * {
  margin-top: 0;
  margin-bottom: 0;
}
.gbv-editorial .gbv-contact .gbv-contact__title {
  margin-bottom: 22px;
  font-family: var(--font-headline);
  font-weight: var(--fw-bold);
  font-size: var(--text-subhead);                            /* 24 px */
  line-height: normal;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

/* The form */
.gbv-contact-form {
  max-width: 640px;
}
.gbv-contact-form .wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
}
.gbv-contact-form .hidden-fields-container {
  display: none;
}
.gbv-contact-form .gbv-field {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-1) + 2px);                           /* 6 */
  margin: 0;
}
.gbv-contact-form .gbv-field > label {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.gbv-contact-form .gbv-req {
  color: var(--color-accent-strong);
}
.gbv-contact-form .gbv-cf__two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.gbv-contact-form .wpcf7-form-control-wrap {
  display: block;
}
.gbv-editorial .gbv-contact-form .wpcf7 :is(input.wpcf7-form-control:not([type="submit"]), select.wpcf7-form-control, textarea.wpcf7-form-control) {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--space-12);                               /* 48 (base.css §7) */
  padding: 0 var(--pad-control);
  border: var(--stroke-default) solid var(--border-default);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: var(--text-md);                                 /* 15 px (contact.dc.html) */
  color: var(--text-strong);
}
.gbv-editorial .gbv-contact-form .wpcf7 textarea.wpcf7-form-control {
  display: block;
  height: 10rem;                                             /* 160, resizable */
  min-height: 10rem;
  padding: var(--pad-control);
  line-height: 1.5;
}
.gbv-editorial .gbv-contact-form .wpcf7 :is(input.wpcf7-form-control:not([type="submit"]), select.wpcf7-form-control, textarea.wpcf7-form-control):hover:not(:focus) {
  border-color: var(--border-strong);
}
.gbv-editorial .gbv-contact-form .wpcf7 :is(input.wpcf7-form-control:not([type="submit"]), select.wpcf7-form-control, textarea.wpcf7-form-control):focus {
  border-style: solid;
  border-width: var(--stroke-default);
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-focus);
  outline: none;
  color: var(--text-strong);
}
/* The subject's first option is its placeholder (theme corrections step B,
   T21, D25: CF7's first_as_label „Alegeți subiectul”, value ""): grey like a
   field's placeholder while it is the chosen option — at rest, on hover,
   with focus (0,6,2 over the focus rule's colour) and in the error state —
   and strong once a subject is chosen; the open list keeps the strong
   colour. A select has no ::placeholder, and CF7 prints aria-required and
   novalidate instead of required, so :invalid never matches: :has() reads
   the chosen option (without :has() the text stays strong). */
.gbv-editorial .gbv-contact-form .wpcf7 select.wpcf7-form-control:has(> option[value=""]:checked) {
  color: var(--gbv-gray-500);                                /* = ::placeholder (base.css §1) */
}
.gbv-editorial .gbv-contact-form .wpcf7 select.wpcf7-form-control option {
  color: var(--text-strong);
}
.gbv-contact-form .gbv-field--consent {
  margin-top: calc(-1 * var(--space-1));
}
.gbv-contact-form .wpcf7-acceptance .wpcf7-list-item {
  display: block;
  margin: 0;
}
.gbv-contact-form .wpcf7-acceptance label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--text-body);
  cursor: pointer;
}
.gbv-contact-form .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 1px;
}
.gbv-contact-form .wpcf7-acceptance a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gbv-contact-form .wpcf7-acceptance a:hover {
  color: var(--color-accent-strong);
}

/* The error (D13, A4 as frozen): danger border, 12 px message under the field */
.gbv-editorial .gbv-contact-form .wpcf7 .wpcf7-form-control.wpcf7-not-valid:is(input, select, textarea) {
  border-color: var(--color-danger);
}
.gbv-contact-form .wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: calc(var(--space-1) + 2px);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  line-height: normal;
  color: var(--color-danger);
}
.gbv-contact-form .wpcf7-acceptance.wpcf7-not-valid input[type="checkbox"] {
  border-color: var(--color-danger);
}

/* The submit row */
.gbv-contact-form .gbv-cf__submit {
  order: 2;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
}
.gbv-editorial .gbv-contact-form .wpcf7-submit {
  min-height: var(--btn-lg);
  padding: 0 var(--space-6);
  font-size: var(--text-base);
}
/* „Trimite” from the keyboard (theme corrections B-6, §11 item 59; WCAG
   2.4.7): Contact Form 7's submit is an input[type="submit"], and Astra's
   main.min.css `input[type="submit"]:focus { outline: 0 }` (0,2,1) beat the
   base ring (base.css §1, 0,2,0) — only Astra's darker fill showed. The
   site's ring on :focus-visible only; a mouse press keeps Astra's look. */
.gbv-editorial .gbv-contact-form .wpcf7-submit:focus-visible {
  outline: var(--stroke-bold) solid var(--ring-color);
  outline-offset: 2px;
}
.gbv-contact-form .wpcf7-spinner {
  margin: 0;
}

/* The answer: the design's banners, above „Trimite”, until closed */
.gbv-contact-form .wpcf7 form.wpcf7-form .wpcf7-response-output {
  order: 1;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  padding: 14px 44px 14px 16px;
  background: var(--gbv-orange-blush);                       /* comanda.dc.html's form-level error (A4) */
  border: 1px solid var(--color-danger);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-strong);
}
.gbv-contact-form .wpcf7 form.wpcf7-form.sent .wpcf7-response-output {
  background: color-mix(in srgb, var(--color-success) 14%, var(--surface-card));
  border-color: var(--color-success);
  border-left-color: var(--color-success);
}
.gbv-contact-form .wpcf7 form.wpcf7-form .wpcf7-response-output::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-color: var(--color-danger);
  -webkit-mask: url("../img/icons/alert-circle.svg") center / contain no-repeat;
  mask: url("../img/icons/alert-circle.svg") center / contain no-repeat;
}
.gbv-contact-form .wpcf7 form.wpcf7-form.sent .wpcf7-response-output::before {
  background-color: var(--color-success);
  -webkit-mask-image: url("../img/icons/check-circle.svg");
  mask-image: url("../img/icons/check-circle.svg");
}
.gbv-contact-form .wpcf7-response-output strong {
  font-weight: var(--fw-semibold);
}
.gbv-contact-form .wpcf7 form.wpcf7-form:is(.init, .submitting, .resetting) .wpcf7-response-output,
.gbv-contact-form .wpcf7 form.wpcf7-form .wpcf7-response-output.is-dismissed {
  display: none;
}
.gbv-editorial .gbv-contact-form .gbv-cf__close,
.gbv-editorial .gbv-contact-form .gbv-cf__close:focus {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--text-muted);
  cursor: pointer;
}
.gbv-editorial .gbv-contact-form .gbv-cf__close:hover {
  background: none;
  color: var(--text-strong);
}
.gbv-contact-form .gbv-cf__close .gbv-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

/* The honeypot: off screen, out of the tab order (inc/contact.php) */
.gbv-contact-form .gbv-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The aside */
.gbv-contact-card {
  position: sticky;
  top: calc(var(--header-stuck) + var(--space-5));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 30px 26px;
  background: var(--surface-page);
  border-radius: var(--radius-md);
  border-top-left-radius: var(--corner-md);
}
.gbv-editorial .gbv-contact-card p {
  margin: 0;
}
.gbv-editorial .gbv-contact-card .gbv-contact-card__caption {
  font-size: var(--text-xs);
  line-height: normal;
  color: var(--text-strong);
}
.gbv-contact-card__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.gbv-contact-card__row > .gbv-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
  margin-top: 2px;
  color: var(--color-brand);
}
.gbv-editorial .gbv-contact-card__row p {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 0.90625rem;                                     /* 14.5 px */
  line-height: 1.5;
  color: var(--text-body);
}
.gbv-contact-card__row strong {
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.gbv-editorial .entry-content .gbv-contact-card a {
  color: var(--color-brand);
  text-decoration: none;
}
.gbv-editorial .entry-content .gbv-contact-card a:hover {
  color: var(--color-accent-strong);
}
.gbv-contact-card__note {
  color: var(--text-muted);
}

@media (max-width: 921.99px) {
  .gbv-editorial .entry-content > .gbv-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding: 28px var(--gutter) 36px;
  }
  .gbv-contact-card {
    position: static;
  }
}
@media (max-width: 599.98px) {
  .gbv-contact-form .gbv-cf__two {
    grid-template-columns: minmax(0, 1fr);
  }
}
