/* -- THEME TWEAKS -- */

.site-header {
  padding-inline: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
}

/* Text Balance / Pretty */

:is(h1, h2, h3, h4, h5, h6),
.balance {
  text-wrap: balance;
}

p,
blockquote,
li {
  text-wrap: pretty;
}

p:last-child:last-of-type {
  margin-bottom: 0px;
}

/* -- GENERATEPRESS / GENERATEBLOCKS COMPATIBILITY -- */

.main-navigation a[class*="gb-text-"] {
  display: inline-flex;
  text-decoration: none;
}

.main-navigation a.gb-text-f6fbb362,
.main-navigation a.gb-text-66ffcd2d {
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
}

.main-navigation a.gb-text-f6fbb362:hover,
.main-navigation a.gb-text-f6fbb362:focus,
.main-navigation a.gb-text-66ffcd2d:hover,
.main-navigation a.gb-text-66ffcd2d:focus {
  background-color: var(--contrast-2);
  color: var(--base-2);
}

/* -- BREADCRUMBS (core/breadcrumbs in every page hero) -- */
/* Same look as the GB breadcrumb on Noutăți (2145) and single posts (1545):
   small Inter, muted links that turn green on hover, light "/" separator, current page dark and semi-bold. */
.wp-block-breadcrumbs,
.wp-block-breadcrumbs.has-medium-font-size {
  font-size: 0.875rem !important;
  line-height: 1.5;
  color: var(--contrast-3);
}
.wp-block-breadcrumbs a {
  color: var(--contrast-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.wp-block-breadcrumbs a:is(:hover, :focus) {
  color: var(--accent-2);
}
.wp-block-breadcrumbs li:not(:last-child)::after {
  margin: 0 0.5rem;
  color: var(--border-1);
  opacity: 1;
}
.wp-block-breadcrumbs [aria-current="page"] {
  color: var(--contrast);
  font-weight: 600;
}
/* Phones: one compact line; the current page truncates with an ellipsis
   instead of wrapping the trail onto a second line. */
@media (max-width: 767px) {
  .wp-block-breadcrumbs,
  .wp-block-breadcrumbs.has-medium-font-size {
    font-size: 0.8125rem !important;
    line-height: 1.4;
  }
  .wp-block-breadcrumbs ol {
    flex-wrap: nowrap;
    min-width: 0;
  }
  .wp-block-breadcrumbs li {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .wp-block-breadcrumbs li:last-child {
    display: block; /* core makes items flex boxes, which ignore text-overflow */
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* -- SITE HEADER (GP Element 2201: GB Pro navigation + mega menus) -- */
/* Full-width mega menus are 100vw wide, which includes the vertical scrollbar:
   clip the few pixels of horizontal overflow instead of showing a scrollbar. */
html {
  overflow-x: clip;
}

/* Top bar (GP Element 752): same side padding and width as the header row (hdin) and the page
   sections, so the e-mail, the logo and the content share one left/right edge (1270px content). */
div.gb-element-8375f5ac {
  max-width: calc(var(--gb-container-width) + 2 * clamp(1rem, 0.848rem + 0.758vw, 1.5rem));
  padding-inline: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
}

/* -- UTILITIES -- */

/* Line Limits */
.line-limit-3,
.line-limit-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-limit-3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.line-limit-2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Visually Hidden */
.visually-hidden:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* -- DOCUMENT DOWNLOADS -- */

.documents-downloads {
  display: grid;
  gap: 1rem;
}

.document-download-card {
  align-items: center;
  background: var(--base-2, #fff);
  border-radius: 0.75rem;
  color: var(--contrast, #1f2928);
  border: 1px solid var(--base-3, #e5e5e5);
  display: flex;
  justify-content: space-between;
  padding: clamp(1.25rem, 1.023rem + 1.136vw, 2rem);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.document-download-card:hover,
.document-download-card:focus-visible {
  color: var(--contrast, #1f2928);
  border-color: var(--accent-2, #5b7f1d);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 41, 40, 0.08);
}

.document-download-card__content {
  display: grid;
  gap: 0.25rem;
}

.document-download-card__meta {
  color: var(--accent-2, #5b7f1d);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.document-download-card__title {
  font-size: clamp(1rem, 0.962rem + 0.189vw, 1.125rem);
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.document-download-card__icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  margin-left: 1.5rem;
}

.document-download-card__icon svg {
  display: block;
  height: 1.5rem;
  width: 1.5rem;
}

.documents-downloads__archive-link {
  color: var(--contrast, #1f2928);
  display: inline-flex;
  font-weight: 800;
  margin-top: 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.documents-downloads__archive-link:hover,
.documents-downloads__archive-link:focus-visible {
  color: var(--accent-2, #5b7f1d);
}

/* -- REGISTRUL DOCUMENTELOR [documents_registry] (Transparență) -- */
.mc-registry__filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: var(--base-6, #f4f4f4);
  border-radius: 0.75rem;
}

.mc-registry__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.mc-registry__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--contrast-2);
}

.mc-registry__filters input,
.mc-registry__filters select {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  font-size: 0.9375rem;
  color: var(--contrast);
  background-color: var(--base-2);
  border: 1px solid var(--border-1);
  border-radius: 8px;
}

.mc-registry__filters input:focus-visible,
.mc-registry__filters select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.mc-registry__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mc-registry__actions .BtnPrimary,
.mc-registry__actions .btn-secondary {
  margin-top: 0;
  border: 0;
  cursor: pointer;
  font-size: 0.875rem;
}

.mc-registry__actions .btn-secondary {
  border: 1px solid var(--accent-2);
}

.mc-registry__count {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--contrast-3);
}

.mc-registry__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--base-2);
  border: 1px solid var(--border-1);
  border-radius: 0.75rem;
  overflow: hidden;
}

.mc-registry__table th,
.mc-registry__table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-1);
}

.mc-registry__table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--contrast-3);
  background: var(--base-6, #f4f4f4);
}

.mc-registry__table tbody th {
  font-weight: 700;
  color: var(--contrast);
}

.mc-registry__table tbody tr:last-child > * {
  border-bottom: 0;
}

.mc-registry__table tbody tr:hover {
  background: var(--base-6, #f4f4f4);
}

.mc-registry__format {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  background: var(--base-3);
  border-radius: 999px;
}

.mc-registry__dl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-2);
  white-space: nowrap;
  text-decoration: none;
}

.mc-registry__dl span {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--contrast-3);
}

.mc-registry__dl:hover,
.mc-registry__dl:focus-visible {
  text-decoration: underline;
}

.mc-registry__pages {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
}

.mc-registry__pages a {
  min-width: 2.25rem;
  padding: 0.4rem 0.6rem;
  text-align: center;
  font-weight: 700;
  color: var(--contrast);
  text-decoration: none;
  border: 1px solid var(--border-1);
  border-radius: 8px;
}

.mc-registry__pages a[aria-current="page"] {
  color: var(--base-2);
  background: var(--accent-2);
  border-color: var(--accent-2);
}

@media (max-width: 1024px) {
  .mc-registry__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mc-registry__field--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .mc-registry__filters {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Table rows become labelled cards */
  .mc-registry__table thead {
    display: none;
  }

  .mc-registry__table,
  .mc-registry__table tbody,
  .mc-registry__table tr,
  .mc-registry__table th,
  .mc-registry__table td {
    display: block;
    width: 100%;
  }

  .mc-registry__table tr {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-1);
  }

  .mc-registry__table th,
  .mc-registry__table td {
    padding: 0.2rem 0;
    border: 0;
  }

  .mc-registry__table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--contrast-3);
  }

  .mc-registry__dl-cell {
    padding-top: 0.5rem !important;
  }
}

/* Empty state for [documents_downloads empty_text="…"] */
.documents-downloads__empty {
  background: var(--base-6, #f4f4f4);
  border: 1px dashed var(--border-1, #b5c6bd);
  border-radius: 0.75rem;
  color: var(--contrast-3, #666);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  padding: 1.1rem 1.25rem;
}

/* -- POST LOOP CARDS -- */

.gb-loop-item-3028c691 {
  align-items: center;
}

.gb-loop-item-3028c691 .gb-element-fb238674 {
  flex: 0 0 140px;
}

.gb-loop-item-3028c691 .gb-element-935777e4 {
  flex: 1 1 auto;
  min-width: 0;
}

.gb-loop-item-3028c691 .gb-media-d3f4431b {
  display: block;
}

@media (max-width: 480px) {
  .gb-loop-item-3028c691 .gb-element-fb238674 {
    flex-basis: 110px;
  }

  .gb-loop-item-3028c691 .gb-media-d3f4431b {
    width: 110px;
  }
}

.store_modal_title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(1.5rem, 1.25rem + 0.758vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.wordpress-store-locator-address-title,
.wordpress-store-locator-radius-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(1rem, 0.962rem + 0.189vw, 1.125rem);
  font-weight: 800;
  line-height: 1.25;
}

.store_locator_name {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(1rem, 0.962rem + 0.189vw, 1.125rem);
  font-weight: 800;
  line-height: 1.25;
}

.store_locator_actions .btn {
  border-radius: 12px;
}

.store_locator_infowindow {
  margin-bottom: 1rem;
}

.store_locator_infowindow .store_locator_actions .btn {
  margin: 0 10px;
}

/* -- DESPRE NOI — REȚEAUA NAȚIONALĂ DE COLECTARE -- */

.gb-element-reteaua003 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .gb-element-reteaua003 {
    grid-template-columns: 1fr;
  }
}

.gb-element-reteaua009 .store-locator-container-fluid {
  border-radius: 12px;
  overflow: hidden;
}

/* -- DESPRE NOI — ȘCOALA AZALEEA -- */

.gb-element-scoala003 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .gb-element-scoala003 {
    grid-template-columns: 1fr;
  }
}

/* -- DESPRE NOI — CTA BANNER -- */

.gb-element-cta001 {
  background-color: var(--contrast);
}

.gb-element-cta001 .wp-block-group {
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* -- CONTACT — FORMULAR (CF7) -- */

.mc-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  margin-bottom: 1rem;
}

/* Inside the grid, spacing comes from the gap, not per-field margins, so the
   last cell isn't stretched by the theme's p:last-child rule. */
.mc-form__grid .mc-form__field {
  margin-bottom: 0;
}

.mc-form__field,
.mc-form__consent,
.mc-form__actions {
  margin-bottom: 1rem;
}

.mc-form__actions {
  margin-top: 0.5rem;
}

.mc-form__field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--contrast-2);
}

/* CF7 injects a <br> after each label; with block labels it renders as an
   empty line between label and input. */
.mc-form__field br {
  display: none;
}

/* The control wrapper is inline by default, which leaves a text-node gap. */
.mc-form .wpcf7-form-control-wrap {
  display: block;
}

/* CF7 leaves whitespace text nodes around the control; zeroing the paragraph's
   font-size stops them rendering as stray lines, and children opt back in. */
.mc-form__field {
  font-size: 0;
}

.mc-form__field > label,
.mc-form__field .wpcf7-form-control-wrap,
.mc-form__field .wpcf7-not-valid-tip {
  font-size: 1rem;
}

.mc-form__field > label {
  font-size: 0.9375rem;
}

.mc-form__req {
  color: var(--accent-3);
}

.mc-form input[type="text"],
.mc-form input[type="email"],
.mc-form input[type="tel"],
.mc-form select,
.mc-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--gp-font--body);
  font-size: 1rem;
  color: var(--contrast);
  background-color: var(--base-2);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mc-form textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Number + file fields (Colectare / Educație forms) share the text-input look. */
.mc-form input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--gp-font--body);
  font-size: 1rem;
  color: var(--contrast);
  background-color: var(--base-2);
  border: 1px solid var(--border-1);
  border-radius: 8px;
}

.mc-form input[type="file"] {
  width: 100%;
  font-size: 0.9375rem;
  color: var(--contrast);
}

/* Helper text under a field: .mc-form__field zeroes font-size, so opt back in. */
.mc-form__field > small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--contrast-3);
}

/* Checkbox groups: <fieldset class="mc-form__field mc-form__choices"><legend>…</legend>[checkbox …]</fieldset> */
.mc-form__choices {
  min-width: 0;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.mc-form__choices legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--contrast-2);
}

.mc-form__choices .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mc-form__choices .wpcf7-list-item {
  margin: 0;
}

.mc-form__choices .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--contrast);
  background-color: var(--base-2);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mc-form__choices .wpcf7-list-item label:has(input:checked) {
  border-color: var(--accent-2);
  background-color: var(--base-3);
}

.mc-form__choices input[type="checkbox"] {
  accent-color: var(--accent-2);
}

.mc-form ::placeholder {
  color: var(--contrast-3);
  opacity: 1;
}

.mc-form input:focus-visible,
.mc-form select:focus-visible,
.mc-form textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-color: var(--accent-2);
}

.mc-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--contrast-3);
}

.mc-form__consent a {
  color: var(--accent-2);
  text-underline-offset: 0.2em;
}

.mc-form__consent a:hover,
.mc-form__consent a:focus {
  color: var(--accent-3);
}

.mc-form .wpcf7-list-item {
  margin: 0;
}

.mc-form .wpcf7-submit {
  width: auto;
  cursor: pointer;
  border: 0;
}

/* Validation + response states */

.mc-form .wpcf7-not-valid {
  border-color: var(--accent-3);
}

.mc-form .wpcf7-not-valid-tip {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-3);
}

.mc-form .wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.875rem 1.125rem;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  font-size: 0.9375rem;
}

.mc-form form.sent .wpcf7-response-output {
  border-color: var(--accent-2);
  background-color: var(--base-3);
  color: var(--contrast-2);
}

.mc-form form.invalid .wpcf7-response-output,
.mc-form form.unaccepted .wpcf7-response-output,
.mc-form form.payment-required .wpcf7-response-output,
.mc-form form.failed .wpcf7-response-output,
.mc-form form.aborted .wpcf7-response-output,
.mc-form form.spam .wpcf7-response-output {
  border-color: var(--accent-3);
  background-color: var(--base-2);
  color: var(--accent-3);
}

@media (max-width: 767px) {
  .mc-form__grid {
    grid-template-columns: 1fr;
  }
}

/* -- CONTACT — HARTA -- */

.mc-map {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-1);
}

@media (max-width: 767px) {
  .mc-map {
    aspect-ratio: 4 / 3;
  }
}

.mc-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* -- DESPRE NOI — ACCORDION ROWS -- */

/* GeneratePress styles every <button>; the accordion toggle is not a button in
   the visual sense, so neutralise the theme's fill, border and hover accent. */
.gb-accordion__toggle,
.gb-accordion__toggle:hover,
.gb-accordion__toggle:focus,
.gb-accordion__toggle:active {
  background-color: transparent;
  border: 0;
  color: inherit;
}

/* Soft neutral wash instead of the orange accent. */
.gb-accordion__toggle:hover,
.gb-accordion__toggle:focus-visible,
.gb-accordion__toggle[aria-expanded="true"] {
  background-color: var(--base-5);
}

.gb-accordion__toggle:focus {
  outline: none;
}

.gb-accordion__toggle:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
}

/* A closed panel must take no space. GB collapses it with max-height:0, but
   vertical padding sits outside max-height and still paints as an empty strip.
   The per-block inline CSS sets that padding, so override it by id-strength
   specificity rather than relying on source order. */
.gb-accordion .gb-accordion__content {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

/* Restore breathing room only while the row is open. */
.gb-accordion
  .gb-accordion__item:has( .gb-accordion__toggle[aria-expanded="true"] )
  .gb-accordion__content {
  padding-top: 0.5rem;
  padding-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

/* -- OVERLAY PANELS — MODAL (standard overlays only; mega menus are anchored overlays) -- */

.gb-overlay--standard .gb-overlay__content {
  position: relative;
  max-width: min(46rem, calc(100vw - 2rem));
  max-height: min(80vh, 46rem);
  overflow-y: auto;
  background-color: var(--base-2);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(23, 32, 33, 0.22);
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  padding-top: clamp(2.75rem, 2.25rem + 2vw, 3.5rem);
}

.mc-overlay-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border-1);
  border-radius: 50%;
  background-color: var(--base-2);
  color: var(--contrast-2);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mc-overlay-close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.mc-overlay-close:hover,
.mc-overlay-close:focus-visible {
  background-color: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--base-2);
}

.mc-overlay-close:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* The panel content carries its own section wrapper (background + padding),
   which would render as a second panel inside the modal. */
.gb-overlay--standard .gb-overlay__content > [class*="section-"] {
  background-color: transparent;
  padding: 0;
  max-width: none;
}

.gb-overlay--standard .gb-overlay__content > *:last-child,
.gb-overlay--standard .gb-overlay__content > [class*="section-"] > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .gb-overlay--standard .gb-overlay__content {
    max-height: 85vh;
  }
}

/* -- CINE SUNTEM — CARD CTA ALIGNMENT -- */

/* Card bodies differ in length, so a fixed margin leaves the CTAs at
   different heights. The cards are already flex columns: pushing the CTA
   with auto margin pins it to the bottom of every card. */
.gb-element-csgrid > * {
  justify-content: flex-start;
}

.gb-element-csgrid [class*="gb-text-csc"] {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* ── News article body (single post content template, element 1545) ── */
.single-post .dynamic-entry-content { font-size: 1.0625rem; line-height: 1.75; color: var(--contrast); overflow-wrap: break-word; }
.single-post .dynamic-entry-content > * { margin-top: 0; margin-bottom: 1.25rem; }
.single-post .dynamic-entry-content > *:last-child { margin-bottom: 0; }
.single-post .dynamic-entry-content h2,
.single-post .dynamic-entry-content h3,
.single-post .dynamic-entry-content h4 { text-transform: none; font-weight: 800; line-height: 1.3; color: var(--contrast); margin-top: 2.25rem; margin-bottom: 0.85rem; }
.single-post .dynamic-entry-content h2 { font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem); }
.single-post .dynamic-entry-content h3 { font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.4rem); }
.single-post .dynamic-entry-content h4 { font-size: 1.125rem; }
.single-post .dynamic-entry-content > :is(h2, h3, h4):first-child { margin-top: 0; }
.single-post .dynamic-entry-content a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 0.18em; }
.single-post .dynamic-entry-content a:is(:hover, :focus) { color: var(--contrast); }
.single-post .dynamic-entry-content strong { font-weight: 700; }
.single-post .dynamic-entry-content ul,
.single-post .dynamic-entry-content ol { padding-left: 1.35rem; margin-left: 0; }
.single-post .dynamic-entry-content li { margin-bottom: 0.45rem; }
.single-post .dynamic-entry-content li::marker { color: var(--accent-2); }
.single-post .dynamic-entry-content .wp-block-image { margin-top: 2rem; margin-bottom: 2rem; }
.single-post .dynamic-entry-content .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.single-post .dynamic-entry-content .wp-block-quote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--accent-2); background: var(--base-4); border-radius: 0 12px 12px 0; font-size: 1.125rem; font-style: italic; }
.single-post .dynamic-entry-content .wp-block-quote p:last-child { margin-bottom: 0; }
.single-post .dynamic-entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--border-1); margin: 2.5rem 0; }
.single-post .dynamic-entry-content .wp-block-embed { margin-top: 2rem; margin-bottom: 2rem; }
.single-post .dynamic-entry-content .wp-block-embed iframe { border-radius: 12px; }

/* ── Contact data shortcodes ([mc_manageri], [mc_program], [mc_contact_map]) ── */
.mc-managers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mc-managers__item { display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: 1.35rem 1.4rem; background: var(--base-2); border: 1px solid var(--border-1); border-radius: 14px; box-shadow: 0 10px 40px rgba(23, 32, 33, 0.04); transition: border-color 0.2s ease, transform 0.2s ease; }
.mc-managers__item:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.mc-managers__code { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--accent-2); color: var(--base-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.mc-managers__product { margin: 0.75rem 0 0.6rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--contrast); }
.mc-managers__phones { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: auto; }
.mc-managers__phones a { font-weight: 700; color: var(--accent-2); text-decoration: none; white-space: nowrap; }
.mc-managers__phones a:is(:hover, :focus-visible) { text-decoration: underline; }
@media (max-width: 1024px) { .mc-managers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mc-managers { grid-template-columns: minmax(0, 1fr); } }

.mc-program { margin: 0; }
.mc-program__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border-1); }
.mc-program__row:last-child { border-bottom: 0; }
.mc-program dt { font-weight: 600; color: var(--contrast); }
.mc-program dd { margin: 0; font-weight: 700; color: var(--accent-2); text-align: right; }

.mc-contact-map { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 320px; border: 0; border-radius: 16px; background: var(--base-3); }

/* ── Results pages (Transparență → Rezultate și performanță) ── */
.mc-data-table { margin: 0; overflow-x: auto; border: 1px solid var(--border-1); border-radius: 12px; background: var(--base-2); }
.mc-data-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; margin: 0; }
.mc-data-table :is(th, td) { padding: 0.65rem 0.85rem; border: 0; border-bottom: 1px solid var(--border-1); text-align: left; vertical-align: top; }
.mc-data-table :is(th, td):not(:first-child) { text-align: right; }
.mc-data-table td:not(:first-child) { white-space: nowrap; }
.mc-data-table th { background: var(--base-4); font-weight: 700; color: var(--contrast); }
.mc-data-table tbody tr:last-child td { border-bottom: 0; }
.mc-data-table tbody tr:nth-child(even) td { background: var(--base-6); }
@media (max-width: 767px) { .mc-data-table.is-wide table { min-width: 640px; } }
.mc-data-table .mc-total td { font-weight: 700; }
/* Values awaiting the client's confirmation: search "mc-verify" to find and remove them. */
.mc-verify { display: inline-flex; align-items: center; margin-left: 0.4em; padding: 0.05em 0.5em; border: 1px dashed var(--accent-3); border-radius: 999px; color: var(--accent-3); background: var(--base-2); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; line-height: 1.6; }
.mc-pending { font-style: italic; color: var(--contrast-3); }

/* -- MEMBRII MOLDCONTROL ([mc_membri] + TablePress table .mc-membri-table, see inc/membri.php) -- */
.mc-membri__bar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
.mc-membri__search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1rem;
  border: 1px solid var(--border-1);
  border-radius: 999px;
  background: var(--base-2);
  color: var(--contrast-3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mc-membri__search:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--base-3);
}
.mc-membri__search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.85rem 0;
  font-size: 1rem;
  color: var(--contrast);
  outline: none;
  box-shadow: none;
}
.mc-membri__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.mc-membri__filter-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--contrast);
  margin-right: 0.25rem;
}
.mc-membri__chip,
.mc-membri__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-1);
  border-radius: 999px;
  background: var(--base-2);
  color: var(--contrast);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.mc-membri__chip:hover,
.mc-membri__chip:focus-visible {
  border-color: var(--accent-2);
  background: var(--base-2);
  color: var(--accent-2);
}
.mc-membri__chip[aria-pressed="true"] {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--base-2);
}
.mc-membri__chip-n {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.7;
}
.mc-membri__reset {
  border-color: transparent;
  background: transparent;
  color: var(--accent-2);
  text-decoration: underline;
}
.mc-membri__reset:hover,
.mc-membri__reset:focus-visible {
  background: transparent;
  color: var(--contrast);
}
.mc-membri__reset[hidden] {
  display: none;
}
.mc-membri__status {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--contrast-3);
}
.mc-membri__status [data-mc-count] {
  font-weight: 700;
  color: var(--accent-2);
}

/* table */
.mc-membri .dt-container {
  font-size: 0.9375rem;
}
.mc-membri table.mc-membri-table {
  width: 100% !important;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.mc-membri table.mc-membri-table thead th {
  background: var(--base-3);
  color: var(--contrast);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  border: 0;
}
.mc-membri table.mc-membri-table thead th:first-child { border-radius: 10px 0 0 10px; }
.mc-membri table.mc-membri-table thead th:last-child { border-radius: 0 10px 10px 0; }
.mc-membri table.mc-membri-table tbody td {
  padding: 0.8rem 1rem;
  border-top: 0;
  border-bottom: 1px solid var(--base-6);
  background: transparent;
  color: var(--contrast);
  vertical-align: middle;
}
.mc-membri table.mc-membri-table tbody td.column-1 { font-weight: 600; }
.mc-membri table.mc-membri-table tbody td.column-2 {
  font-variant-numeric: tabular-nums;
  color: var(--contrast-3);
  white-space: nowrap;
}
.mc-membri table.mc-membri-table tbody tr:hover > td { background: var(--base-4); }
.mc-membri .mc-fx {
  display: inline-block;
  margin: 0.15rem 0.3rem 0.15rem 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--base-3);
  color: var(--accent-2);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.mc-membri .mc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-2);
  white-space: nowrap;
}
.mc-membri .mc-status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-2);
}
.mc-membri .dt-empty {
  padding: 2rem 1rem !important;
  text-align: center;
  color: var(--contrast-3);
}
/* info + paging */
.mc-membri .dt-layout-row:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}
.mc-membri .dt-info {
  font-size: 0.875rem;
  color: var(--contrast-3);
}
.mc-membri .dt-paging .dt-paging-button {
  min-width: 2.25rem;
  margin: 0 0.15rem;
  padding: 0.35rem 0.65rem !important;
  border: 1px solid var(--border-1) !important;
  border-radius: 8px !important;
  background: var(--base-2) !important;
  color: var(--contrast) !important;
  font-size: 0.875rem;
  font-weight: 600;
}
.mc-membri .dt-paging .dt-paging-button:hover:not(.disabled) {
  border-color: var(--accent-2) !important;
  color: var(--accent-2) !important;
}
.mc-membri .dt-paging .dt-paging-button.current {
  background: var(--accent-2) !important;
  border-color: var(--accent-2) !important;
  color: var(--base-2) !important;
}
.mc-membri .dt-paging .dt-paging-button.disabled { opacity: 0.4; }

/* phones: one card per member (spec: "carduri într-o singură coloană pe mobil") */
@media (max-width: 767px) {
  .mc-membri table.mc-membri-table thead { display: none; }
  .mc-membri table.mc-membri-table,
  .mc-membri table.mc-membri-table tbody { display: block; }
  .mc-membri table.mc-membri-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-1);
    border-radius: 12px;
  }
  .mc-membri table.mc-membri-table tbody td {
    display: block;
    padding: 0;
    border: 0;
  }
  .mc-membri table.mc-membri-table tbody td.column-1 { grid-column: 1 / -1; font-size: 1rem; }
  .mc-membri table.mc-membri-table tbody td.column-2::before { content: "IDNO "; font-weight: 600; }
  .mc-membri table.mc-membri-table tbody td.column-3 { grid-column: 1 / -1; order: 4; }
  .mc-membri table.mc-membri-table tbody td.column-4 { text-align: right; }
  .mc-membri table.mc-membri-table tbody tr:hover > td { background: transparent; }
  .mc-membri table.mc-membri-table tbody td.dt-empty { grid-column: 1 / -1; }
  .mc-membri .dt-layout-row:last-child { justify-content: center; }
  .mc-membri .dt-info { width: 100%; text-align: center; }
}

/* -- HOMEPAGE HERO VIDEO (page 1199, section .gb-element-hphero; js/hero-video.js) -- */
.gb-element-hphero > :not(.mc-hero-media):not(.mc-hero-video-toggle) {
  position: relative;
  z-index: 1;
}
.mc-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, var(--contrast) 32%);
  mask-image: linear-gradient(to right, transparent 0%, var(--contrast) 32%);
}
.mc-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* the drone footage is hazy: lift contrast and colour so it doesn't look washed out (client feedback 2026-10-13) */
  filter: contrast(1.12) saturate(1.3) brightness(0.98);
}
.mc-hero-video-toggle {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--contrast);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mc-hero-video-toggle:hover,
.mc-hero-video-toggle:focus-visible {
  background: var(--base-2);
  color: var(--accent-2);
}
.mc-hero-video-toggle[hidden] { display: none; }
.mc-hero-video-toggle .mc-ico-play { display: none; }
.mc-hero-video-toggle.is-paused .mc-ico-play { display: block; }
.mc-hero-video-toggle.is-paused .mc-ico-pause { display: none; }
/* Tablets and phones: poster only (the script does not load the video), faint behind the text. */
@media (max-width: 1024px) {
  .mc-hero-media {
    width: 100%;
    opacity: 0.16;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .mc-hero-video-toggle { display: none; }
}

/* -- DESPRE NOI "CE SPUN PARTENERII" (section .mc-pt, js/parteneri.js) -- */
.mc-pt-play iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.mc-pt-play.is-playing { cursor: default; }

/* -- TARIFE GREEN MARK (Fluxuri REP #tarife; [mc_tarife] + TablePress tables .mc-tarif-table, see inc/tarife.php) -- */
.mc-tarif__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.mc-tarif__facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--base-3);
  font-size: 0.875rem;
  color: var(--contrast);
}
.mc-tarif__facts span { color: var(--contrast-3); }
.mc-tarif__facts strong { font-weight: 700; color: var(--accent-2); }
.mc-tarif__bar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.mc-tarif__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mc-tarif__cat-desc {
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 8px 8px 0;
  background: var(--base-6);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--contrast);
}
.mc-tarif__cat-desc[hidden] { display: none; }
.mc-tarif__valid,
.mc-tarif__state {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--contrast-3);
}

/* table */
.mc-tarif .dt-container { font-size: 0.9375rem; }
.mc-tarif table.mc-tarif-table {
  width: 100% !important;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}
.mc-tarif table.mc-tarif-table thead th {
  background: var(--base-3);
  color: var(--contrast);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  border: 0;
  vertical-align: middle;
}
.mc-tarif table.mc-tarif-table thead th:first-child { border-radius: 10px 0 0 10px; }
.mc-tarif table.mc-tarif-table thead th:last-child { border-radius: 0 10px 10px 0; }
.mc-tarif table.mc-tarif-table tbody td {
  padding: 0.75rem 1rem;
  border-top: 0;
  border-bottom: 1px solid var(--base-6);
  background: transparent;
  color: var(--contrast);
  line-height: 1.5;
  vertical-align: top;
}
.mc-tarif table.mc-tarif-table tbody tr:hover > td { background: var(--base-4); }
/* code columns: first column (not on Ambalaje, whose first column is the material) + "Cod SIA MD" */
.mc-tarif table.mc-tarif-table:not(.mc-tarif-table--am) td.column-1,
.mc-tarif table.mc-tarif-table--ba td.column-2 {
  width: 1%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--contrast-2);
}
.mc-tarif table.mc-tarif-table--am td.column-1,
.mc-tarif table.mc-tarif-table--vsu td.column-1 { font-weight: 700; color: var(--contrast); }
/* tariff = last column */
.mc-tarif table.mc-tarif-table th:last-child,
.mc-tarif table.mc-tarif-table td:last-child {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}
.mc-tarif__val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-2);
}
.mc-tarif__unit {
  font-size: 0.8125rem;
  color: var(--contrast-3);
}
/* nomenclature rows ending in ":" (headings for the rows below) and indented sub-positions */
.mc-tarif table.mc-tarif-table tr.mc-tarif__group > td { background: var(--base-6); font-weight: 600; border-bottom-color: var(--base-2); }
.mc-tarif table.mc-tarif-table :is(th, td) { border-left: 0 !important; border-right: 0 !important; }
.mc-tarif table.mc-tarif-table:not(.mc-tarif-table--am) th.column-1,
.mc-tarif table.mc-tarif-table--ba th.column-2 { white-space: nowrap; }
.mc-tarif__lvl {
  position: relative;
  display: block;
  padding-left: calc(var(--lvl, 1) * 1.1rem);
}
.mc-tarif__lvl::before {
  content: "";
  position: absolute;
  left: calc(var(--lvl, 1) * 1.1rem - 0.75rem);
  top: 0.75em;
  width: 0.45rem;
  height: 1px;
  background: var(--contrast-3);
}
.mc-tarif__lvl--2 { --lvl: 2; }
.mc-tarif__lvl--3 { --lvl: 3; }
.mc-tarif__lvl--4 { --lvl: 4; }
.mc-tarif .dt-empty {
  padding: 2rem 1rem !important;
  text-align: center !important;
  white-space: normal !important;
  color: var(--contrast-3) !important;
}
/* info + paging (same look as the members list) */
.mc-tarif .dt-layout-row:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}
.mc-tarif .dt-info {
  font-size: 0.875rem;
  color: var(--contrast-3);
}
.mc-tarif .dt-paging .dt-paging-button {
  min-width: 2.25rem;
  margin: 0 0.15rem;
  padding: 0.35rem 0.65rem !important;
  border: 1px solid var(--border-1) !important;
  border-radius: 8px !important;
  background: var(--base-2) !important;
  color: var(--contrast) !important;
  font-size: 0.875rem;
  font-weight: 600;
}
.mc-tarif .dt-paging .dt-paging-button:hover:not(.disabled) {
  border-color: var(--accent-2) !important;
  color: var(--accent-2) !important;
}
.mc-tarif .dt-paging .dt-paging-button.current {
  background: var(--accent-2) !important;
  border-color: var(--accent-2) !important;
  color: var(--base-2) !important;
}
.mc-tarif .dt-paging .dt-paging-button.disabled { opacity: 0.4; }

/* phones: one card per position — code + tariff on top, name below */
@media (max-width: 767px) {
  .mc-tarif table.mc-tarif-table thead { display: none; }
  .mc-tarif table.mc-tarif-table,
  .mc-tarif table.mc-tarif-table tbody { display: block; }
  .mc-tarif table.mc-tarif-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.75rem;
    margin-bottom: 0.6rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border-1);
    border-radius: 12px;
  }
  .mc-tarif table.mc-tarif-table tbody td {
    display: block;
    grid-column: 1 / -1;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .mc-tarif table.mc-tarif-table tbody td.column-1 { grid-column: 1; grid-row: 1; white-space: normal; }
  .mc-tarif table.mc-tarif-table:not(.mc-tarif-table--am) tbody td.column-1,
  .mc-tarif table.mc-tarif-table--ba tbody td.column-2 { width: auto; white-space: normal; }
  .mc-tarif table.mc-tarif-table tbody td:last-child { grid-column: 2; grid-row: 1; text-align: right; }
  .mc-tarif table.mc-tarif-table--ba tbody td.column-2:not(:empty)::before { content: "SIA MD "; font-weight: 400; color: var(--contrast-3); }
  .mc-tarif table.mc-tarif-table tbody tr:hover > td,
  .mc-tarif table.mc-tarif-table tr.mc-tarif__group > td { background: transparent; }
  .mc-tarif table.mc-tarif-table tbody tr.mc-tarif__group { background: var(--base-6); }
  .mc-tarif table.mc-tarif-table tbody td.dt-empty { grid-column: 1 / -1; }
  .mc-tarif__lvl { padding-left: calc(var(--lvl, 1) * 0.7rem); }
  .mc-tarif__lvl::before { left: calc(var(--lvl, 1) * 0.7rem - 0.55rem); width: 0.35rem; }
  .mc-tarif .dt-layout-row:last-child { justify-content: center; }
  .mc-tarif .dt-info { width: 100%; text-align: center; }
}

/* -- INSTAGRAM FEED ([mc_instagram], homepage section .mc-ig-section; inc/instagram.php) -- */
.mc-ig {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mc-ig__item { margin: 0; }
.mc-ig__link {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--base-6);
}
.mc-ig__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.mc-ig__type {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  display: flex;
  color: var(--base-2);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.mc-ig__over {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
  background: color-mix(in srgb, var(--accent-2) 88%, transparent);
  color: var(--base-2);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mc-ig__cap {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.mc-ig__link:is(:hover, :focus-visible) .mc-ig__over { opacity: 1; }
.mc-ig__link:is(:hover, :focus-visible) img { transform: scale(1.05); }
.mc-ig__link:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
@media (max-width: 1024px) {
  .mc-ig { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .mc-ig { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mc-ig__over { display: none; }
}

/* -- COLECTARE: map consent notice (js/consent-map.js, shown while Complianz blocks Google Maps) -- */
.mc-map-consent { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: var(--base-2); }
.mc-map-consent__inner { max-width: 26rem; text-align: center; }
.mc-map-consent__title { margin: 0 0 0.5rem; font-family: var(--gp-font--headings); font-size: 1.375rem; line-height: 1.3; color: var(--contrast); }
.mc-map-consent__text { margin: 0 0 1.25rem; font-size: 0.9375rem; color: var(--contrast-2); }
.mc-map-consent__btn { display: inline-flex; align-items: center; padding: 0.75rem 1.5rem; border: 0; border-radius: 999px; background: var(--accent-2); color: #fff; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; }
.mc-map-consent__btn:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--accent-2) 78%, black); color: #fff; }
.mc-map-consent__link { display: block; margin-top: 0.85rem; font-size: 0.875rem; color: var(--accent-2); }

/* -- FOOTER: legal links next to the copyright (element 167, block .mc-legal-links; "Setări cookie" opens the Complianz banner) -- */
.mc-legal-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0; font-size: 0.875rem; }
.mc-legal-links a { color: var(--base-3); text-decoration: none; }
.mc-legal-links a:is(:hover, :focus-visible) { color: var(--base); text-decoration: underline; }

/* -- HEADER: language switcher hidden while the site is Romanian-only (2026-11-18). --
   The RO pill (GB link .gb-text-hdlang in header element 2201) stays in the markup for the future RO/EN/RU version.
   To show it again, delete this rule. */
.gb-site-header .gb-text-hdlang { display: none; }

/* -- HEADER (mobile, 2026-11-18) --
   1. The navigation (burger on mobile) sits at the right edge. The hidden RO pill used to push it there with margin-left: auto.
   2. Scroll lock while the mobile menu is open. GenerateBlocks sets overflow: hidden on <body>, but our html { overflow-x: clip }
      stops that from reaching the viewport, so the page scrolled under the menu and a strip of it showed between header and menu. */
.gb-site-header .gb-navigation-hdnav { margin-left: auto; }
html:has(.gb-navigation--mobile.gb-navigation--open) { overflow: hidden; }
.gb-menu-container--mobile { overscroll-behavior: contain; }
/* 3. Burger button after closing the menu: it keeps focus, and GeneratePress's button:focus background (green) met our
      green icon colour, which left a plain green square. Without the menu open the button stays transparent, and the
      focus ring is green instead of the browser's blue. */
.gb-menu-toggle-hdtog:not(.gb-menu-toggle--toggled):is(:hover, :focus, :focus-visible) { background-color: transparent; }
.gb-menu-toggle-hdtog.gb-menu-toggle--toggled:is(:hover, :focus, :focus-visible) { color: #fff; }
.gb-menu-toggle-hdtog:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ==========================================================================
   Social icons — [mc_social] (Date de contact → Rețele sociale)
   ========================================================================== */
.mc-social { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.mc-social li { margin: 0; }
.mc-social__link { display: flex; align-items: center; justify-content: center; color: var(--accent); transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.mc-social__link svg { display: block; width: 14px; height: 14px; }
.mc-social__link:hover,
.mc-social__link:focus-visible { color: var(--contrast); }
.mc-social__link:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 2px; }

.mc-social--footer { gap: .625rem; margin-top: .5rem; }
.mc-social--footer .mc-social__link { width: 40px; height: 40px; border: 1px solid rgb(232 237 225 / .25); border-radius: 50%; color: var(--base-3); }
.mc-social--footer .mc-social__link svg { width: 16px; height: 16px; }
.mc-social--footer .mc-social__link:hover,
.mc-social--footer .mc-social__link:focus-visible { color: #fff; background-color: var(--accent); border-color: var(--accent); }
