:where([data-etch-element="container"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  max-inline-size: var(--content-width, 1366px);
  align-self: center; margin-inline: auto;
}
:where([data-etch-element="flex-div"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
}
:where([data-etch-element="iframe"]) {
  inline-size: 100%;
  height: auto;
 aspect-ratio: 16/9;
}
:where([data-etch-element="section"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mac-header-1 {
  /* aquatechinstal, 2026-10-30: the floating pill (Paper hi-fi): the band is clear, so the box sits on the page's
   ground, on --bg-ultra-light with --grid-gap inside its sides. The Pill part at the end does its line, corners and
   place, the logo and the links. */
--mac-header-1-background: transparent;
--mac-header-1-border: none;
--mac-header-1-box-background: var(--bg-ultra-light);
--mac-header-1-box-padding-inline: var(--grid-gap);
/* Knobs: --mac-header-1-background and --mac-header-1-border (the band), --mac-header-1-box-background,
     --mac-header-1-box-radius and --mac-header-1-box-padding-inline (the box), and --mac-header-1-subheader-inset,
     --mac-header-1-subheader-gap and --mac-header-1-subheader-padding-inline (the subheader). The defaults give the
     bar, a full-width band with a line under it (Mihai, 2026-10-10: "default vreau sa fie stilul bar la header si
     subheader, nu floating"); the Floating preset sets the white box's values. */
  --_ease-swift: cubic-bezier(0.78, 0.02, 0.22, 0.9);
  pointer-events: none;
  z-index: 50;
  padding: 0;

  /* ## Parts, moved here from their own classes on 2026-09-30, so all of the CSS is on the main class. */

  .mac-header-1__inner {
    padding-inline: var(--gutter);
    padding-block: var(--space-xs);
    inline-size: 100%;
    background: var(--mac-header-1-background, var(--white));
    border-block-end: var(--mac-header-1-border, var(--border));

    &:has(.mac-menu-1[data-mode='mobile']) {
      position: relative;
    }
  }

  .mac-header-1__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    padding-block: calc(var(--card-padding) / 3);
    padding-inline: var(--mac-header-1-box-padding-inline, 0);
    border: var(--border);
    border-color: transparent;
    border-radius: var(--mac-header-1-box-radius, 0);
    background-color: var(--mac-header-1-box-background, transparent);

    .mac-toggle-1 {
      display: none;
    }
  }

  .mac-header-1__logo {
    color: var(--text-dark);
    transition: color var(--transition-duration) var(--transition-timing);

    &:hover {
      color: var(--primary-hover);
    }

    :is(svg, img) {
      height: 1.6rem;
      width: auto;
    }

    @media (width <= 30rem) {
      height: auto;
      width: 100%;
      max-width: 70%;
    }
  }

  /* The subheader slot, above the bar (batch R, 2026-10-09), as wide as the bar (2026-10-10). Empty, it takes no
     room. It follows the preset (Mihai, 2026-10-10): with the defaults, Bar's, what it holds is a full-width band
     with the band's line under it; with Floating's values, a box of its own above the bar's, as wide, with the same
     corners, --space-xs from it, and its content lined up with the bar's (the box's padding plus its 1px border).
     Knobs: --mac-header-1-subheader-inset, the space on its sides (Floating: the bar box's), --mac-header-1-subheader-gap,
     the space between it and the bar (Floating: var(--space-xs)), and --mac-header-1-subheader-padding-inline, its
     content's inline padding (Floating: the box's plus 1px). Its corners follow --mac-header-1-box-radius, its line
     --mac-header-1-border. */
  .mac-header-1__subheader {
    inline-size: 100%;
    padding: var(--mac-header-1-subheader-gap, 0) var(--mac-header-1-subheader-inset, 0) 0;
  }

  .mac-header-1__subheader > * {
    padding-inline: var(--mac-header-1-subheader-padding-inline, var(--gutter));
    border-block-end: var(--mac-header-1-border, var(--border));
    border-radius: var(--mac-header-1-box-radius, 0);
  }

  .mac-header-1__subheader:not(:has(*)) {
    display: none;
  }

  > * {
    pointer-events: auto;
  }
  /* # HEADER */
  /* ## Overlay & Sticky Header */
  &[data-overlay-header='true'],
  &[data-sticky-header='true'] {
    inset-block-start: calc(var(--wp-admin--admin-bar--height, 0px) + var(--_float-offset, 0px) - var(--_subheader-offset, 0px));
  }

  &[data-overlay-header='true'] {
    position: absolute;
  }

  &[data-sticky-header='true'] {
    position: sticky;
  }

  &[data-sticky-header='true'][data-overlay-header='true'] {
    position: fixed;
  }

  /* ### Sticky Subheader off: a sticky header sticks with its subheader above the window, so the subheader scrolls
     away and the bar stays. The script measures the subheader into --_subheader-height. A fixed header (overlay and
     sticky) keeps the subheader with the bar. */
  &[data-sticky-header='true']:not([data-overlay-header='true'], [data-sticky-subheader='true']) {
    --_subheader-offset: var(--_subheader-height, 0px);
  }

  &[data-overlay-header='true'][data-overlay-header-offset='true'] + main > :first-child > :first-child {
    margin-block-start: var(--header-height);
  }

  /* ### hide on scroll */
  &[data-hide-on-scroll='true'] :is(.mac-header-1__inner, .mac-header-1__subheader) {
    transition: transform 0.4s var(--_ease-swift);
  }
  /* ### if hiding the header move the header up on scroll */
  &[data-hidden='true'] .mac-header-1__inner {
    transform: translateY(-100%);
  }
  /* ### with Sticky Subheader on, the subheader goes up too, and the bar by its own height and the subheader's */
  &[data-sticky-subheader='true'][data-hidden='true'] .mac-header-1__subheader {
    transform: translateY(-100%);
  }
  &[data-sticky-subheader='true'][data-hidden='true'] .mac-header-1__inner {
    transform: translateY(calc(-100% - var(--_subheader-height, 0px)));
  }
  &:has(.mac-menu-1[data-mode='mobile']) {
    .mac-toggle-1 {
      display: flex;
      z-index: 1000;
    }
  }
  /* ## The Off canvas menu in a header (Mihai, 2026-10-12)
     MAC Menu 1's defaults here, as Bar had them: the panel as wide as the screen and the call to action at its bottom.
     Both knobs act only in Off canvas, so a Reveal menu doesn't change; Menu 1 outside a header keeps its own (768px,
     the call to action after the links), and the configurator's values, written on the menu, win. */
  & .mac-menu-1 {
    --mac-menu-1-mobile-width: 100%;
    --mac-menu-1-mobile-cta-margin: auto var(--space-m);
  }

  /* The panel lines up with the bar: when the menu opens, the script measures the bar into --_bar-top and
     --_bar-height, so the panel starts at the bar's top (below a subheader or the admin bar) and its top row and a
     Stacked dropdown's back button row are as tall as the bar. The Close button then sits on the panel's logo row.
     The panel's class is there twice: MAC Menu 1's own panel rule has the same specificity and comes later in the
     page's styles.
     With Floating (Mihai, 2026-10-12), the panel takes the box's place, from Floating's own values: the subheader's
     inset (the box's sides) and gap (the box's distance from the bar's edges, also left at the screen's bottom), the
     subheader's padding (the box's, so the logo and the links stay where the box has them) and the box's corners.
     With Bar's values, which are unset, nothing changes. While MAC Toggle 1 locks the page, a floating panel takes
     the scrollbar's width into its margin instead of its padding, so its edge stays on the box's: min() gives that
     width only when there's an inset. Menu 1's padding knob is read on the menu and set again on the panel, so a
     value set for the menu stays with Bar. */
  & .mac-menu-1[data-mode='mobile'][data-mobile-mode='off-canvas'] {
    --_menu-padding-inline: var(--mac-menu-1-mobile-padding-inline);

    .mac-menu-1__inner.mac-menu-1__inner {
      --_panel-inset: var(--mac-header-1-subheader-inset, 0px);
      --_panel-gap: var(--mac-header-1-subheader-gap, 0px);
      --_panel-scrollbar: min(var(--mac-scrollbar-gap, 0px), var(--_panel-inset) * 1000);
      --mac-menu-1-mobile-padding-inline: var(--mac-header-1-subheader-padding-inline, var(--_menu-padding-inline));
      inset-block-start: var(--_bar-top, var(--wp-admin--admin-bar--height, 0px));
      block-size: auto;
      margin-block: var(--_panel-gap);
      margin-inline: var(--_panel-inset) calc(var(--_panel-inset) + var(--_panel-scrollbar));
      padding-inline-end: calc(var(--mac-scrollbar-gap, 0px) - var(--_panel-scrollbar));
      max-inline-size: min(var(--mac-menu-1-mobile-width, 500px), 100% - 2 * var(--_panel-inset) - var(--_panel-scrollbar));
      border-radius: var(--mac-header-1-box-radius, 0);
    }

    .mac-menu-1__mobile-header {
      min-block-size: calc(var(--_bar-height, var(--header-height)) - 2 * var(--_panel-gap, 0px));
    }

    .mac-menu-1__nav > .mac-menu-dropdown-1__content-wrapper[data-stacked='true'] {
      grid-template-rows: calc(var(--_bar-height, var(--header-height)) - 2 * var(--_panel-gap, 0px)) minmax(0, 1fr);
      inset-inline-end: calc(var(--mac-scrollbar-gap, 0px) - var(--_panel-scrollbar, 0px));
    }
  }
  /* ## Skip Link */
  .mac-header-1__skip-link {
    position: absolute;
    top: -1500px;
    left: 32px;
    overflow: hidden;
    z-index: 999;
    background: white;
    color: black;
    border: none;
    &:focus-visible {
      top: 32px;
    }
  }

  /* ## Centered logo (MAC-1643, Mihai, 2026-10-06: "opțiune în Header 1")
     The Layout prop sets data-layout. With "centered", on desktop the logo sits in the middle of the box and the menu's
     one list is split around it: its first half of links on the left (one more there when the count is odd), the rest on
     the right, the call to action last. It stays one list in reading order, so screen readers and keyboards meet a single
     menu. The script marks the first link of the second half, which the space for the logo goes before, and sets
     --_balance on the list, the second half's width minus the first's, so the shorter half is padded and the logo sits in
     the exact middle. The Links prop sets data-links: "centered" keeps the halves beside the logo, "sides" moves each to
     its edge of the box. On mobile the header looks as in the default layout, the logo at the start and the toggle at the
     end (Mihai, 2026-10-06). Knob: --mac-header-1-logo-gap, the space between the logo and the links on each side. */
  &[data-layout='centered']:has(.mac-menu-1[data-mode='desktop']) .mac-header-1__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  &[data-layout='centered']:has(.mac-menu-1[data-mode='desktop']) .mac-header-1__logo {
    grid-area: 1 / 2;
    position: relative;
    z-index: 1;
    width: auto;
    max-width: none;
  }

  &[data-layout='centered'] .mac-header-1__container > .mac-menu-1[data-mode='desktop'] {
    grid-area: 1 / 1 / auto / -1;
    inline-size: auto;

    .mac-menu-1__list {
      justify-content: center;
    }
  }

  &[data-layout='centered'] .mac-menu-1[data-mode='desktop'] .mac-menu-1__list {
    padding-inline-start: max(0px, var(--_balance, 0px));
    padding-inline-end: max(0px, -1 * var(--_balance, 0px));

    > [data-mac-header-1-split] {
      margin-inline-start: calc(var(--_logo-width, 10rem) + 2 * var(--mac-header-1-logo-gap, var(--space-s)));
    }
  }

  &[data-layout='centered'][data-links='sides'] .mac-menu-1[data-mode='desktop'] .mac-menu-1__list {
    justify-content: flex-start;
    padding-inline: 0;

    > [data-mac-header-1-split] {
      margin-inline-start: auto;
    }
  }

  /* ## Logo and links (Mihai, 2026-10-06: "o optiune ca linkurile in afara de buton sa fie langa logo pentru headerul
     normal")
     With data-layout="logo-links", on desktop the menu takes the box's free width: its links start right after the
     logo, --mac-header-1-logo-gap away, and the call to action, the last link shown as a button, stays at the end. With
     Desktop Last Item as Button off, every link sits beside the logo. On mobile the header looks as in the default
     layout. */
  &[data-layout='logo-links'] .mac-header-1__container > .mac-menu-1[data-mode='desktop'] {
    flex-grow: 1;
    inline-size: auto;
    margin-inline-start: var(--mac-header-1-logo-gap, var(--space-s));

    &:where(:not([data-desktop-last-item-button='false'])) .mac-menu-1__list > li:last-child {
      margin-inline-start: auto;
    }
  }

  /* ## Logo height on desktop (Mihai, 2026-10-06: "iese sub bară, doar pe desktop")
     Knob: --mac-header-1-logo-height, the logo's height while the menu shows its desktop links (1.6rem by default, as
     on mobile). The logo keeps its top where it is and grows down over the page: it takes only 1.6rem of the row, so
     the bar keeps its height. When the header hides on scroll, the bar moves up by its own height and the logo also by
     what it adds to the 1.6rem, so the part below the bar goes too. */
  &:has(.mac-menu-1[data-mode='desktop']) .mac-header-1__logo :is(svg, img) {
    height: var(--mac-header-1-logo-height, 1.6rem);
    margin-block-end: calc(1.6rem - var(--mac-header-1-logo-height, 1.6rem));
  }

  &[data-hide-on-scroll='true']:has(.mac-menu-1[data-mode='desktop']) .mac-header-1__logo :is(svg, img) {
    transition: transform 0.4s var(--_ease-swift);
  }

  &[data-hidden='true']:has(.mac-menu-1[data-mode='desktop']) .mac-header-1__logo :is(svg, img) {
    transform: translateY(calc(1.6rem - 100%));
  }

  /* ## Float on Scroll, from ibew350, where it's always on (Mihai, 2026-10-02); planned in batch A, built in batch R
     With data-float-on-scroll="true", the Float on Scroll prop, the bar has no block padding and sits at the top
     of the page. Once the page scrolls, a sticky header moves down by --space-xs instead of growing, so the page
     below doesn't jump; while it's hidden it goes back to the top, so no strip of it stays in view. The open Reveal
     menu keeps its gap below the bar. */
  &[data-float-on-scroll='true'] .mac-header-1__inner {
    padding-block: 0;
  }

  /* A floating subheader sits at the top too, with the gap below it, so the bar keeps its distance from it. */
  &[data-float-on-scroll='true'] .mac-header-1__subheader {
    padding: 0 var(--mac-header-1-subheader-inset, 0) var(--mac-header-1-subheader-gap, 0);
  }

  &[data-float-on-scroll='true'][data-sticky-header='true'] {
    transition: inset-block-start 0.4s var(--_ease-swift);
  }

  &[data-float-on-scroll='true'][data-sticky-header='true'][data-scrolling='true']:not([data-hidden='true']) {
    --_float-offset: var(--space-xs);
  }

  &[data-float-on-scroll='true'] .mac-menu-1[data-mode='mobile'][data-mobile-mode='reveal'] {
    inset-block-start: calc(100% + var(--space-xs));
  }

  /* ## Reduced motion: the header hides and floats without sliding */
  @media (prefers-reduced-motion: reduce) {
    &[data-hide-on-scroll='true'] :is(.mac-header-1__inner, .mac-header-1__subheader),
    &[data-hide-on-scroll='true']:has(.mac-menu-1[data-mode='desktop']) .mac-header-1__logo :is(svg, img),
    &[data-float-on-scroll='true'][data-sticky-header='true'] {
      transition: none;
    }
  }


  /* ## Call button (aquatechinstal, 2026-10-19): MAC Call Button Alpha stays in the bar at every width, after the links
     on desktop and before the toggle on mobile, where small phones show only its glyph (its Compact option). */
  .mac-header-1__call {
    flex-shrink: 0;
    margin-inline-start: auto;
  }

  &:has(.mac-menu-1[data-mode='desktop']) .mac-header-1__call {
    margin-inline-start: var(--mac-header-1-logo-gap, var(--space-s));
  }

  &:has(.mac-menu-1[data-mode='mobile']) .mac-header-1__call {
    margin-inline-end: var(--space-xs);
  }

  /* ## Pill (aquatechinstal, 2026-10-30): the box has a 1px white line and the buttons' pill corners, set here
     rather than with --mac-header-1-box-radius, which the Off canvas panel would take too. Above --mac-m it reaches
     past the content column by its padding and line, so the logo lines up with the page's text. The call button sits
     in its round end, as far from the edge as from the top and bottom. On desktop the logo is Paper's 36px tall, in
     the row (Logo Height would hang it below the bar). The links are --text-s at 500, --divider-gap apart (Menu 1's
     link padding on each side plus its list's 0.2rem); the Off canvas panel takes the box's ground. */
  .mac-header-1__inner {
    padding-inline: calc(var(--gutter) - var(--grid-gap) - var(--border-size));

    @media (width <= 48rem) {
      padding-inline: var(--gutter);
    }
  }

  .mac-header-1__container {
    padding-inline-end: calc(var(--card-padding) / 3);
    border-color: var(--white);
    border-radius: var(--btn-radius);
  }

  &:has(.mac-menu-1[data-mode='desktop']) .mac-header-1__logo :is(svg, img) {
    height: 2.25rem;
    margin-block-end: 0;
  }

  & .mac-menu-1 {
    --mac-menu-1-link-font-weight: 400;
    --mac-menu-1-link-padding-inline: calc((var(--divider-gap) - 0.2rem) / 2);
    --mac-menu-1-mobile-bg-color: var(--bg-ultra-light);
    /* The last item is a link here, not a call to action (the call button is in the bar), so it stays with the others. */
    --mac-menu-1-mobile-cta-margin: 0;
    font-size: var(--text-s);
  }

}
.mac-toggle-1 {
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.3, 1);
  display: flex;
  flex-direction: row;
  gap: var(--mac-toggle-1-icon-gap, 0.25em);
  align-items: center;
  inline-size: fit-content;

  /* ## Parts, moved here from their own classes on 2026-09-30, so all of the CSS is on the main class. */

  .mac-toggle-1__icon {
    --icon-color: var(--mac-toggle-1-icon-color, black);
    --icon-size: var(--mac-toggle-1-icon-size, 1.25em);
    --icon-width: 1em;
    --icon-height: 1em;

    path {
      stroke: currentColor;
      fill: currentColor;
    }
  }

  .mac-toggle-1__hamburger-1 {
    --_transition-duration-rotate: var(--mac-toggle-1-transition-duration, 0.2s);
    --_transition-duration-collapse: calc(var(--_transition-duration-rotate) / 1.5);
    inline-size: var(--mac-toggle-1-icon-size, 1.25em);
    block-size: var(--mac-toggle-1-icon-size, 1.25em);
    color: inherit;

    .mac-toggle-1__line {
      stroke: var(--mac-toggle-1-icon-color, currentColor);
      stroke-width: var(--mac-toggle-1-icon-line-width, 8px);
      stroke-linecap: round;
      transition:
        /* rotation starts slightly after collapse begins */
        rotate var(--_transition-duration-rotate) var(--ease-smooth),
        /* collapse moves start immediately */ transform var(--_transition-duration-collapse) var(--ease-smooth) var(--_transition-duration-rotate);
      transform-origin: center;
      transform: translateX(0) translateY(0);
      rotate: 0deg;
    }

    .mac-toggle-1[aria-expanded='true'] & .mac-toggle-1__line[data-line='top'] {
      transform: translateY(20px) translateX(0px);
      rotate: 45deg;
      transition:
        transform var(--_transition-duration-collapse) var(--ease-smooth),
        rotate var(--_transition-duration-rotate) var(--ease-smooth) var(--_transition-duration-collapse);
    }

    .mac-toggle-1[aria-expanded='true'] & .mac-toggle-1__line[data-line='bottom'] {
      transform: translateY(-20px) translateX(0px);
      rotate: -45deg;
      transition:
        transform var(--_transition-duration-collapse) var(--ease-smooth),
        rotate var(--_transition-duration-rotate) var(--ease-smooth) var(--_transition-duration-collapse);
    }
  }

  .mac-toggle-1__hamburger-2 {
    inline-size: var(--mac-toggle-1-icon-size, 1.25em);
    block-size: var(--mac-toggle-1-icon-size, 1.25em);
    color: inherit;

    .mac-toggle-1__line {
      stroke: var(--mac-toggle-1-icon-color, currentColor);
      stroke-width: var(--mac-toggle-1-icon-line-width, 8px);
      stroke-linecap: round;
      transition:
        transform var(--mac-toggle-1-transition-duration, 0.2s) var(--ease-smooth),
        opacity calc(var(--mac-toggle-1-transition-duration, 0.2s) * 0.75) var(--ease-smooth);
      transform-origin: center;
      transform: translateX(0) translateY(0) rotate(0);
    }

    .mac-toggle-1[aria-expanded='true'] & .mac-toggle-1__line[data-line='top'] {
      transform: translateY(16px) translateX(-16px) rotate(45deg);
    }
    .mac-toggle-1[aria-expanded='true'] & .mac-toggle-1__line[data-line='middle'] {
      opacity: 0;
      transform: scaleX(0);
    }
    .mac-toggle-1[aria-expanded='true'] & .mac-toggle-1__line[data-line='bottom'] {
      transform: translateY(-16px) translateX(-16px) rotate(-45deg);
    }
  }

  .mac-toggle-1__hamburger-3 {
    inline-size: var(--mac-toggle-1-icon-size, 1.25em);
    block-size: var(--mac-toggle-1-icon-size, 1.25em);
    color: inherit;

    .mac-toggle-1__line {
      stroke: var(--mac-toggle-1-icon-color, currentColor);
      stroke-width: var(--mac-toggle-1-icon-line-width, 8px);
      stroke-linecap: round;
      transition:
        transform var(--mac-toggle-1-transition-duration, 0.2s) var(--ease-smooth),
        opacity calc(var(--mac-toggle-1-transition-duration, 0.2s) * 0.75) ease,
        stroke-dasharray var(--mac-toggle-1-transition-duration, 0.2s) var(--ease-smooth),
        stroke-dashoffset var(--mac-toggle-1-transition-duration, 0.2s) var(--ease-smooth);
      transform-origin: center;
      transform: translateX(0) translateY(0) rotate(0);
    }

    .mac-toggle-1__line[data-line='middle'] {
      stroke-dasharray: 45 15;
      stroke-dashoffset: 45;
    }

    .mac-toggle-1__line[data-line='bottom'] {
      stroke-dasharray: 30 30;
      stroke-dashoffset: 30;
    }

    .mac-toggle-1[aria-expanded='true'] & .mac-toggle-1__line[data-line='top'] {
      transform: translateY(16px) translateX(-16px) rotate(45deg);
    }
    .mac-toggle-1[aria-expanded='true'] & .mac-toggle-1__line[data-line='middle'] {
      transform: scaleX(0);
      stroke-dasharray: 0 61;
      stroke-dashoffset: 1;
    }
    .mac-toggle-1[aria-expanded='true'] & .mac-toggle-1__line[data-line='bottom'] {
      transform: translateY(-16px) translateX(-16px) rotate(-45deg);
      stroke-dasharray: 60 0;
      stroke-dashoffset: 60;
    }
  }

  .mac-toggle-1__label {
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: inline-size var(--mac-toggle-1-transition-duration, 0.2s) var(--ease-smooth);
    inline-size: fit-content;

    .mac-toggle-1__label-text {
      display: block;
      white-space: nowrap;
      inline-size: fit-content;
    }

    /* For alternate mode: stack vertically */
    .mac-toggle-1__label-text[data-label='off'],
    .mac-toggle-1__label-text[data-label='on'] {
      transition:
        transform 0.2s var(--ease-smooth),
        opacity 0.2s var(--ease-smooth);
      line-height: 1.2;
    }

    .mac-toggle-1__label-text[data-label='off'] {
      transform: translateY(0%);
      opacity: 1;
    }

    .mac-toggle-1__label-text[data-label='on'] {
      transform: translateY(100%);
      opacity: 0;
      position: absolute;
    }
  }


  /*alternating labels */
  &[aria-expanded='true'] .mac-toggle-1__label-text[data-label='off'] {
    transform: translateY(-100%);
    opacity: 0;
  }

  &[aria-expanded='true'] .mac-toggle-1__label-text[data-label='on'] {
    transform: translateY(-100%);
    opacity: 1;
  }
}
.mac-menu-1 {
  /* Menu theme: tokens and link, dropdown and mobile styles (moved from MAC Header 1). */
  /* # VARIABLES */
  /* ## Link Vars */
  --link-color: var(--text-dark);
  --link-color-hover: var(--text-dark);
  --mac-menu-1-link-color-active: var(--link-color-hover);
  --mac-menu-1-link-bg-color: transparent;
  --mac-menu-1-link-bg-color-hover: var(--bg-light);
  --mac-menu-1-link-bg-color-active: var(--mac-menu-1-link-bg-color-hover);
  --mac-menu-1-link-font-weight: var(--btn-font-weight);
  --link-transition: all 0.2s ease-out;
  --mac-menu-1-link-padding-inline: calc(var(--btn-padding-inline) / 2);
  --mac-menu-1-link-padding-block: calc(var(--btn-padding-block) / 2);
  --mac-menu-1-link-border-radius: var(--btn-border-radius);
  /* ## Dropdown Vars */
  --mac-menu-dropdown-1-padding: 0.3em;
  --mac-menu-dropdown-1-border-radius: var(--radius);
  --mac-menu-dropdown-1-border-width: 0px;
  --mac-menu-dropdown-1-border-color: var(--border-color-dark);
  --mac-menu-dropdown-1-bg: white;
  --mac-menu-dropdown-1-box-shadow: 0px 1px 1px rgba(3, 7, 18, 0.01), 0px 2px 3px rgba(3, 7, 18, 0.01), 0px 5px 6px rgba(3, 7, 18, 0.01), 0px 8px 11px rgba(3, 7, 18, 0.02), 0px 13px 18px rgba(3, 7, 18, 0.03), 0px 18px 25px rgba(3, 7, 18, 0.03), 0px 25px 34px rgba(3, 7, 18, 0.04), 0px 32px 45px rgba(3, 7, 18, 0.04);
  --mac-menu-dropdown-1-link-min-border-radius: 8px;
  --mac-menu-dropdown-1-link-padding-block: 0.75em;
  --mac-menu-dropdown-1-link-padding-inline: 0.75em;
  --mac-menu-dropdown-1-link-font-weight: var(--mac-menu-1-link-font-weight);
  --mac-menu-dropdown-1-link-color: var(--link-color);
  --mac-menu-dropdown-1-link-color-hover: var(--link-color-hover);
  --mac-menu-dropdown-1-link-color-active: var(--mac-menu-1-link-color-active);
  --mac-menu-dropdown-1-link-bg-color: var(--mac-menu-1-link-bg-color);
  --mac-menu-dropdown-1-link-bg-color-hover: var(--mac-menu-1-link-bg-color-hover);
  --mac-menu-dropdown-1-link-bg-color-active: var(--mac-menu-1-link-bg-color-active);
  /* ### available dropdown vars
  --mac-menu-dropdown-1-transition-property
  --mac-menu-dropdown-1-transition-duration
  --mac-menu-dropdown-1-transition-delay
  --mac-menu-dropdown-1-transition-timing
  */
  /* ### starting position for dropdown when closed on desktop (closed)*/
  --mac-menu-dropdown-1-closed-top: calc(var(--space-m) + 20px);
  /* ### ending position for dropdown when open on desktop (open)*/
  --mac-menu-dropdown-1-open-top: calc(var(--space-m) + 20px);
  /* ## Mobile Vars */
  /* --mac-menu-1-mobile-padding-inline: calc(var(--gutter) + (calc(var(--card-padding)) / 2)); */
  --mac-menu-1-mobile-padding-inline: var(--gutter);
  --mac-menu-1-mobile-padding-block: var(--space-m);
  --mac-menu-1-mobile-bg-color: var(--white);
  --mac-menu-1-mobile-width: 768px;
  /* Mobile knobs without a default here: --mac-menu-1-mobile-divider (between top-level items) and
     --mac-menu-1-mobile-cta-margin (margin-block of the last item in Off Canvas; auto var(--space-m) puts it at the
     bottom). */
  /* The Stacked panels' slide starts at once and slows down. The ease-in-out it had covered most of the way in 50ms
     of its 250, which looked like a jump (2026-10-06). */
  --mac-menu-dropdown-1-mobile-stacked-timing: cubic-bezier(0.4, 0, 0.2, 1);

  gap: 0;
  inline-size: fit-content;

  /* ## Parts, moved here from their own classes on 2026-09-30, so all of the CSS is on the main class. */

  .mac-menu-1__inner {
    pointer-events: auto;
    min-block-size: 0px;
    transition-property: visibility, opacity, transform;
        transition-duration: var(--mac-menu-1-mobile-transition-duration, 0.2s);
        transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);

    .mac-menu-1[data-mobile-mode='off-canvas'][data-mode='mobile'] & {
      position: absolute;
      inset-block-end: 0;
      z-index: 999;
      opacity: 0;
      visibility: hidden;
      background: var(--mac-menu-1-mobile-bg-color);
      max-inline-size: var(--mac-menu-1-mobile-width, 500px);
      inline-size: 100%;
      overflow: hidden;
      block-size: 100%;
      inset-block-start: var(--wp-admin--admin-bar--height, 0px);
      /* The scrollbar's width while MAC Toggle 1 locks the page, so the panel lines up with the header (2026-10-02). */
      padding-inline-end: var(--mac-scrollbar-gap, 0px);
    }

    .mac-menu-1[data-mobile-mode='off-canvas'][data-mode='mobile'][data-open='true'] & {
      opacity: 1;
      visibility: visible;
      transform: translate(0, 0) !important;
    }

    .mac-menu-1[data-mobile-mode='off-canvas'][data-mode='mobile'][data-mobile-off-canvas-direction='from right' i] & {
      transform: translateX(100%);
      inset-inline-end: 0;

      html[dir='RTL'] & {
        inset-inline-start: 0;
        inset-inline-end: unset;
      }
    }

    .mac-menu-1[data-mobile-mode='off-canvas'][data-mode='mobile'][data-mobile-off-canvas-direction='from left' i] & {
      transform: translateX(-100%);
      will-change: inset-inline;
      inset-inline-start: 0;

      html[dir='RTL'] & {
        inset-inline-end: 0;
        inset-inline-start: unset;
      }
    }

    .mac-menu-1[data-mobile-mode='off-canvas'][data-mode='mobile'][data-mobile-off-canvas-direction='from top' i] & {
      transform: translateY(-100%);
      --mac-menu-1-mobile-width: 100%;
    }

    .mac-menu-1[data-mobile-mode='off-canvas'][data-mode='mobile'][data-mobile-off-canvas-direction='from bottom' i] & {
      transform: translateY(100%);
      --mac-menu-1-mobile-width: 100%;
    }

    .mac-menu-1:not([data-mobile-mode='off-canvas'])[data-mode='mobile'] & {
      max-block-size: 70vh;
    }
  }

  .mac-menu-1__backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background-color: var(--mac-menu-1-mobile-backdrop-color);
    opacity: 0%;
    visibility: hidden;
    transition-property: opacity, visibility;
    transition-duration: var(--mac-menu-1-mobile-transition-duration);
    transition-delay: calc(var(--mac-menu-1-mobile-transition-duration) / 1.5);
    transition-timing-function: ease-out;
    pointer-events: none;

    .mac-menu-1[data-open='true'] & {
      visibility: visible;
      opacity: var(--mac-menu-1-mobile-backdrop-opacity);
    }
  }

  .mac-menu-1__mobile-header {
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding-inline: var(--mac-menu-1-mobile-padding-inline);
    min-block-size: var(--header-height);
    display: none;

    /* display only off canvas */
    .mac-menu-1[data-mobile-mode='off-canvas'] & {
      display: flex;
    }

    svg {
      height: 1.6rem;
      width: auto;
    }

    @media (width <= 30rem) {
      height: auto;
      width: 100%;
      max-width: 70%;
    }
  }

  .mac-menu-1__list {
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
    align-items: center;

    li {
      max-inline-size: 100%;
    }
  }


  /* - on mobile off canvas mode */
  &[data-mode='mobile'][data-mobile-mode='off-canvas'] {
    position: fixed;
    inset: 0;
    visibility: hidden;
    inline-size: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 1;
    transition: visibility var(--mac-menu-1-mobile-transition-duration, 0.2s) ease-out;

    /* The call to action's knob acts only here: a Reveal panel is as tall as its links, so the last one is at its
       bottom anyway (2026-10-06). */
    .mac-menu-1__list > li:last-child {
      margin-block: var(--mac-menu-1-mobile-cta-margin, 0);
    }

    /* Stacked dropdowns as in the old Bricks menu on x-uc.circea.dev (Mihai, 2026-10-06: "nu imi prea place ca e
       efectiv pozitionarea/layoutul diferit in meniul asta offcanvas intrun dropdown"). An open panel covers the top
       row too: its back button takes the logo's place while the logo slides out, and its links take the places of
       the list's, with the list's gap and dividers. The nav isn't positioned here, so a panel is placed in the inner
       box, and the panel's list scrolls instead of the panel. */
    .mac-menu-1__nav {
      position: static;
    }

    .mac-menu-1__nav > .mac-menu-dropdown-1__content-wrapper[data-stacked='true'] {
      display: grid;
      grid-template-rows: var(--header-height) minmax(0, 1fr);
      inset-inline-end: var(--mac-scrollbar-gap, 0px);
      background: transparent;
      overflow: visible;
      /* The panel stays in place: its links slide in, and its back button makes its own short move. Earlier on
         2026-10-06 the whole panel slid and the button moved back against it with an animated left, which the browser
         runs apart from the panel's transform, so whenever the two drifted apart the button swung (Mihai: "pare ca se
         duce in dreapta dupaia iar in stanga in timp ce face fade out"). */
      transform: none;

      /* The back button is only as big as its chevron and label, centered in the top row, with the chevron at the
         logo's x (Mihai, 2026-10-06: "eu ma gandeam ca va functiona doar cand apas in zona aia la Main Menu"; until
         then it spanned the row). It moves 2.5em while it fades in, with the links' timing. */
      > .mac-menu-dropdown-1__back-button {
        position: relative;
        inset-block-start: 0;
        align-self: center;
        justify-self: start;
        inline-size: auto;
        padding: 0.5em;
        margin-inline-start: calc(var(--mac-menu-1-mobile-padding-inline) - 0.5em);
        border-block-end: 0;
        background: transparent;
        transform: translateX(2.5em);
        opacity: 0;
        transition-property: transform, opacity;
        transition-duration: var(--mac-menu-1-mobile-transition-duration);
        transition-timing-function: var(--mac-menu-dropdown-1-mobile-stacked-timing, ease-out);
        transition-delay: var(--mac-menu-dropdown-1-transition-delay, 0);
      }

      &[data-open='true'] > .mac-menu-dropdown-1__back-button {
        transform: none;
        opacity: 1;
      }

      > .mac-menu-dropdown-1__content {
        min-block-size: 0;
        overflow-y: auto;
        overflow-x: clip;
        /* The list's gap */
        gap: 0.2rem;
        padding-block: 0 var(--mac-menu-1-mobile-padding-block);
        background: var(--mac-menu-1-mobile-bg-color);
        /* The panel's slide */
        transform: translateX(100%);
        transition-property: transform;
        transition-duration: var(--mac-menu-1-mobile-transition-duration);
        transition-timing-function: var(--mac-menu-dropdown-1-mobile-stacked-timing, ease-out);
        transition-delay: var(--mac-menu-dropdown-1-transition-delay, 0);

        & > li:not(:last-child) {
          border-block-end: var(--mac-menu-1-mobile-divider, none);
        }
      }

      &[data-open='true'] > .mac-menu-dropdown-1__content {
        transform: none;
      }
    }

    .mac-menu-1__mobile-header > * {
      transition-property: transform, opacity;
      transition-duration: var(--mac-menu-1-mobile-transition-duration);
      transition-timing-function: var(--mac-menu-dropdown-1-mobile-stacked-timing, ease-out);
    }

    &:has(.mac-menu-dropdown-1__content-wrapper[data-stacked='true'][data-open='true']) .mac-menu-1__mobile-header > * {
      transform: translateX(-100%);
      opacity: 0;
    }
  }

  /* - on mobile reveal mode */
  &[data-mode='mobile'][data-mobile-mode='reveal'] {
    inline-size: 100%;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    padding-inline: var(--gutter);
    overflow: hidden;
    visibility: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    /* background-color: var(--mac-menu-1-mobile-bg-color); */
    background-color: transparent;
    transition: clip-path, visibility, transform, opacity;
    transition-duration: var(--mac-menu-1-mobile-transition-duration, 0.2s);
    transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);

    .mac-menu-1__inner {
      overflow-y: auto;
      overflow-x: clip;
      transform: translateY(20px);
    }

    /* Stacked dropdowns (2026-10-06): the list and the panels share one cell, so an open panel takes the list's place
       in the card and the card grows to it. The panel used to be a box the list's height, which cut its last links. */
    .mac-menu-1__nav {
      display: grid;
      padding-block-end: var(--mac-menu-1-mobile-padding-block);
      padding-inline: 0;

      > :is(.mac-menu-1__list, .mac-menu-dropdown-1__content-wrapper) {
        grid-area: 1 / 1;
      }

      > ul {
        background-color: var(--white);
        padding-block-start: var(--btn-padding-block);
        padding-block-end: calc(var(--btn-padding-block) * 2);
        padding-inline: var(--card-padding);
        border-radius: var(--radius);
        border: var(--border);
        border-color: var(--white);
      }

      > .mac-menu-dropdown-1__content-wrapper[data-stacked='true'] {
        border: var(--border);
        border-color: var(--white);
        border-radius: var(--radius);

        &[data-open='true'] {
          position: relative;
        }
      }
    }
  }

  /* - on mobile AND on open */
  &[data-mode='mobile'][data-open='true'] {
    visibility: visible;
    opacity: 1;
  }

  /* - on mobile AND open AND reveal mode */
  &[data-mode='mobile'][data-mobile-mode='reveal'][data-open='true'] {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);

    .mac-menu-1__inner {
      transform: translateY(0);
    }
  }

  /* HELPER ATTRIBUTES */

  /* - hide item on desktop */
  &[data-mode='desktop'] [data-menu-hide='desktop'] {
    display: none;
  }

  /* - hide item on mobile */
  &[data-mode='mobile'] [data-menu-hide='mobile'] {
    display: none;
  }

  /* hide menu until initialized */

  &:not([data-menu-initialized]) {
    opacity: 0;
  }

  /* MORPH MODE (desktop shared morphing container, JS-created) */
  .mac-menu-dropdown-1__morph-container {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0;
    z-index: 999;
    background: var(--mac-menu-dropdown-1-bg, white);
    box-shadow: var(--mac-menu-dropdown-1-box-shadow);
    border-radius: var(--mac-menu-dropdown-1-border-radius);
    border: var(--mac-menu-dropdown-1-border-width) solid var(--mac-menu-dropdown-1-border-color);
    visibility: hidden;
    opacity: 0;
    transform: translateY(var(--mac-menu-dropdown-1-closed-top, 40px));
    transition-property: opacity, transform, visibility, scale;
    transition-duration: var(--mac-menu-dropdown-1-transition-duration, 0.15s);
    transition-timing-function: var(--mac-menu-dropdown-1-transition-timing, cubic-bezier(0.4, 0, 0.2, 1));
    transition-delay: var(--mac-menu-dropdown-1-transition-delay, 0s);

    /* open / close */
    &[data-active='true'] {
      visibility: visible;
      opacity: 1;
      transform: translateY(var(--mac-menu-dropdown-1-open-top, 20px));
    }

    /* JS sets data-morphing while sliding between panels: the container box
       itself animates position and size, and clips the panel slide */
    &[data-morphing='true'] {
      overflow: clip;
      transition-property: opacity, transform, visibility, inset-inline-start, inline-size, block-size;
      transition-duration: var(--mac-menu-dropdown-1-transition-duration, 0.3s);
      transition-timing-function: var(--mac-menu-dropdown-1-transition-timing, cubic-bezier(0.4, 0, 0.2, 1));
    }

    /* panels: shown via data-active (the open dropdown's selector no longer
       applies once JS moves them into the shared container) */
    .mac-menu-dropdown-1__content-wrapper[data-morph-panel='true'] {
      transition-property: opacity, visibility;

      &[data-active='true'] {
        visibility: visible;
        opacity: 1;
      }

      /* the shared container carries the dropdown chrome instead */
      > .mac-menu-dropdown-1__content {
        background: transparent;
        box-shadow: none;
        border: none;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      transition: none;
    }
  }

  /* # DROPDOWN SETTINGS */
  /* ## Global Dropdown Animation (Closed) */
  .mac-menu-dropdown-1 .mac-menu-dropdown-1__content-wrapper {
    filter: blur(4px);
  }
  /* ## Global Dropdown Animation (Open) */
  .mac-menu-dropdown-1[data-open='true'] > .mac-menu-dropdown-1__content-wrapper {
    filter: blur(0);
  }
  /* ## Desktop Dropdown Animation (Closed) */
  &[data-mode='desktop'] .mac-menu-dropdown-1 .mac-menu-dropdown-1__content-wrapper,
  &[data-mode='desktop'] .mac-menu-dropdown-1__morph-container {
    scale: 0.95;
  }
  /* ## Desktop Dropdown Animation (Open) */
  &[data-mode='desktop'] .mac-menu-dropdown-1[data-open='true'] > .mac-menu-dropdown-1__content-wrapper,
  &[data-mode='desktop'] .mac-menu-dropdown-1__morph-container[data-active='true'] {
    scale: 1;
  }
  /* ## Dropdown Back Button */
  .mac-menu-dropdown-1__back-button {
    font-weight: var(--mac-menu-1-link-font-weight);
    padding-block: 1em;
    padding-inline: var(--mac-menu-1-mobile-padding-inline);
    color: var(--link-color);
    background-color: var(--mac-menu-1-mobile-bg-color);
    border-block-end: 1px solid #ececec;
  }
  /* # ON DESKTOP */
  &[data-mode='desktop'] {
    /* ## Top Level Links */
    .mac-menu-1__list > li > *:is(a, button) {
      color: var(--link-color);
      text-decoration: none;
      line-height: 100%;
      border-radius: var(--mac-menu-1-link-border-radius);
      transition: var(--link-transition);
      padding-inline: var(--mac-menu-1-link-padding-inline);
      padding-block: var(--mac-menu-1-link-padding-block);
      font-weight: var(--mac-menu-1-link-font-weight);
      &:hover,
      &[aria-expanded='true'] {
        background-color: var(--mac-menu-1-link-bg-color-hover);
        color: var(--link-color-hover);
      }
      &[aria-current='page'] {
        color: var(--mac-menu-1-link-color-active);
        background: var(--mac-menu-1-link-bg-color-active);
      }
    }
    /* ## Last Top Level Item as Button, unless the Desktop Last Item as Button prop is off
       (data-desktop-last-item-button="false"; Mihai, 2026-10-06) */
    &:where(:not([data-desktop-last-item-button='false'])) .mac-menu-1__list > li:last-child > *:is(a, button) {
      --btn-background: var(--primary);
      --btn-background-hover: var(--primary-hover);
      --btn-text-color: var(--primary-ultra-light);
      --btn-text-color-hover: var(--primary-ultra-light);
      --btn-border-color: var(--primary);
      --btn-border-color-hover: var(--primary-hover);
      --btn-outline-background-hover: var(--primary-hover);
      --btn-outline-border-hover: var(--primary-hover);
      --btn-outline-text-color: var(--primary);
      --btn-outline-text-color-hover: var(--primary-ultra-light);
      --focus-color: var(--primary-dark);
      padding-block: var(--btn-padding-block);
      padding-inline: var(--btn-padding-inline);
      min-inline-size: var(--btn-min-width);
      line-height: var(--btn-line-height);
      font-size: var(--btn-font-size, var(--text-m));
      font-weight: var(--btn-font-weight);
      font-style: var(--btn-font-style);
      text-decoration: var(--btn-text-decoration);
      text-transform: var(--btn-text-transform);
      letter-spacing: var(--btn-letter-spacing);
      border-width: var(--btn-border-width);
      border-style: var(--btn-border-style);
      border-radius: var(--btn-border-radius);
      display: var(--btn-display, inline-flex);
      text-align: center;
      justify-content: center;
      align-items: center;
      background: var(--btn-background);
      color: var(--btn-text-color);
      border-color: var(--btn-border-color);
      transition: var(--btn-transition, var(--transition));
      margin-inline-start: var(--mac-menu-1-link-padding-inline);

      &:hover,
      &:focus-visible {
        background: var(--btn-background-hover);
        border-color: var(--btn-border-color-hover);
        color: var(--btn-text-color-hover);
        text-decoration: var(--btn-text-decoration-hover);
      }
    }

    /* ## Direct List Items */
    .mac-menu-1__list > li {
      inline-size: fit-content;
    }
    /* ## Links Inside Standard Dropdown */
    .mac-menu-dropdown-1__content > li > *:is(a, button) {
      color: var(--link-color);
      text-decoration: none;
      line-height: 100%;
      padding-block: var(--mac-menu-dropdown-1-link-padding-block);
      padding-inline: var(--mac-menu-dropdown-1-link-padding-inline);
      color: var(--mac-menu-dropdown-1-link-color);
      background-color: var(--mac-menu-dropdown-1-link-bg-color);
      /* border-radius: max(calc(var(--mac-menu-dropdown-1-border-radius) - var(--mac-menu-dropdown-1-padding)), var(--mac-menu-dropdown-1-link-min-border-radius)); */
      border-radius: var(--mac-menu-dropdown-1-border-radius);
      transition: var(--link-transition);
      white-space: nowrap;
      font-weight: var(--mac-menu-dropdown-1-link-font-weight);
      &:hover,
      &[aria-expanded='true'] {
        background-color: var(--mac-menu-dropdown-1-link-bg-color-hover);
        color: var(--mac-menu-dropdown-1-link-color-hover);
      }
      &[aria-current='page'] {
        color: var(--mac-menu-dropdown-1-link-color-active);
        background: var(--mac-menu-dropdown-1-link-bg-color-active);
      }
    }
    /* .mac-menu-dropdown-1__content > li:first-child > *:is(a, button) {
      border-radius: var(--mac-menu-dropdown-1-border-radius) var(--mac-menu-dropdown-1-border-radius) 0 0;
    }
    .mac-menu-dropdown-1__content > li:last-child > *:is(a, button) {
      border-radius: 0 0 var(--mac-menu-dropdown-1-border-radius) var(--mac-menu-dropdown-1-border-radius);
    } */
  }
  /* # ON MOBILE */
  &[data-mode='mobile'] {
    /* ## Top Level & Dropdown Links */
    .mac-menu-1__list > li > *:is(a, button),
    .mac-menu-dropdown-1__content > li > *:is(a, button) {
      color: var(--link-color);
      text-decoration: none;
      line-height: 100%;
      font-weight: var(--btn-font-weight);
      padding-block: var(--btn-padding-block);
      background-color: var(--mac-menu-1-link-bg-color);
      transition: var(--link-transition);
      padding-inline: 0;
    }
    .mac-menu-1__inner {
      display: flex;
      flex-direction: column;
    }
    .mac-menu-1__nav {
      flex: 1;
      position: relative;
      padding-inline: var(--mac-menu-1-mobile-padding-inline);
      overflow-y: auto;
      overflow-x: clip;
    }
    .mac-menu-1__list {
      flex-direction: column;
      flex-grow: 1;
      block-size: 100%;
      > li {
        inline-size: 100%;
        max-inline-size: 100%;
        > a,
        .mac-menu-dropdown-1,
        .mac-menu-dropdown-1__trigger {
          inline-size: 100%;
        }
      }
      & > li:not(:last-child) {
        border-block-end: var(--mac-menu-1-mobile-divider, none);
      }
    }
    .mac-menu-dropdown-1__trigger {
      inline-size: 100%;
      justify-content: space-between;
    }
    /* ## Last Top Level Item as Button, unless the Mobile Last Item as Button prop is off
       (data-mobile-last-item-button="false"; Mihai, 2026-10-06) */
    &:where(:not([data-mobile-last-item-button='false'])) .mac-menu-1__list > li:last-child > *:is(a, button) {
      --btn-background: var(--primary);
      --btn-background-hover: var(--primary-hover);
      --btn-text-color: var(--primary-ultra-light);
      --btn-text-color-hover: var(--primary-ultra-light);
      --btn-border-color: var(--primary);
      --btn-border-color-hover: var(--primary-hover);
      --btn-outline-background-hover: var(--primary-hover);
      --btn-outline-border-hover: var(--primary-hover);
      --btn-outline-text-color: var(--primary);
      --btn-outline-text-color-hover: var(--primary-ultra-light);
      --focus-color: var(--primary-dark);
      padding-block: var(--btn-padding-block);
      padding-inline: var(--btn-padding-inline);
      min-inline-size: var(--btn-min-width);
      line-height: var(--btn-line-height);
      font-size: var(--btn-font-size, var(--text-m));
      font-weight: var(--btn-font-weight);
      font-style: var(--btn-font-style);
      text-decoration: var(--btn-text-decoration);
      text-transform: var(--btn-text-transform);
      letter-spacing: var(--btn-letter-spacing);
      border-width: var(--btn-border-width);
      border-style: var(--btn-border-style);
      border-radius: var(--btn-border-radius);
      display: var(--btn-display, inline-flex);
      text-align: center;
      justify-content: center;
      align-items: center;
      background: var(--btn-background);
      color: var(--btn-text-color);
      border-color: var(--btn-border-color);
      transition: var(--btn-transition, var(--transition));
      margin-block-start: var(--btn-padding-block);
      inline-size: 100%;

      &:hover,
      &:focus-visible {
        background: var(--btn-background-hover);
        border-color: var(--btn-border-color-hover);
        color: var(--btn-text-color-hover);
        text-decoration: var(--btn-text-decoration-hover);
      }
    }
    /* ## Spacing Refinements */
    :where(& .mac-menu-dropdown-1__content-wrapper[data-stacked='true'] .mac-menu-dropdown-1__content) {
      padding-block: var(--mac-menu-1-mobile-padding-block);
      padding-inline: var(--mac-menu-1-mobile-padding-inline);
    }
    :where(& .mac-menu-dropdown-1[data-dropdown-mode='accordion'] .mac-menu-dropdown-1__content) {
      padding-inline: var(--space-xs);
    }
    :where(& .mac-menu-dropdown-1[data-dropdown-mode='accordion'][data-mega-menu='true'] .mac-menu-dropdown-1__content) {
      padding-block: var(--space-xs);
    }
  }
}
.mac-menu-link-1 {
  display: flex;
  align-items: center;
}
.mac-footer-4 {
  /* MAC Footer 4, 2026-10-30: every page's footer on ACSS's darkest ground (bg--ultra-dark, Paper's --neutral-ultra-dark). The brand column: the logo, the tagline, the phone in the heading font at --text-xxl, the weekday hours and ANPC's SAL pictogram (250 x 50 px, linking to its SAL platform, as ANPC Order 449/2022 asks). Three MAC Link List Alpha columns: the services from data('services') in two columns, then Prețuri; Firma; Zone. Then, over a faint line, the company's details from data('site').company and the email from data('site').email (Legea 365/2002 art. 5 asks for both, 2026-11-01), and a row with the copyright (the build's year, data('today').year), the legal links with "Setări cookie-uri" (CookieConsent v3's data-cc="show-consentModal", which reopens its banner) and the credit, its side parts equal so the links sit in the middle. Knob: --mac-footer-4-logo-height. */
/* Paper's band, set here rather than by ACSS's body > footer rule, so it holds wherever the footer sits. */
padding-block: var(--section-space-s) var(--section-space-xs);
padding-inline: var(--gutter);

/* ACSS's link defaults leave footer links out: these take their line's color, and the ground's link color on hover. */
& a:where(:not([class*="btn--"])) {
  color: inherit;
  text-decoration: none;

  &:hover {
    color: var(--relative-link-color);
  }
}

.mac-footer-4__inner {
  gap: var(--container-gap);
}

.mac-footer-4__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--container-gap);
}

/* Paper's 320px brand column. */
.mac-footer-4__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--content-gap);
  max-inline-size: 20rem;
}

.mac-footer-4__logo {
  display: flex;
}

.mac-footer-4__logo :is(svg, img) {
  block-size: var(--mac-footer-4-logo-height, 2.25rem);
  inline-size: auto;
}

.mac-footer-4__tagline {
  font-size: var(--text-s);
  color: var(--text-light-muted);
}

.mac-footer-4__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75em;
  font-size: var(--text-s);
}

.mac-footer-4__phone {
  font-family: var(--heading-font-family);
  font-size: var(--text-xxl);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
}

.mac-footer-4__hours {
  --mac-hours-alpha-gap: 0.75em;
  --mac-hours-alpha-icon-color: var(--primary);
  color: var(--text-light-muted);
}

.mac-footer-4__sal {
  display: flex;
}

/* ANPC's pictogram in the 250 x 50 px box ANPC Order 449/2022 asks for, whole (contain) and with its own corners. */
.mac-footer-4__sal img {
  inline-size: 250px;
  max-inline-size: 100%;
  block-size: 50px;
  object-fit: contain;
  border-radius: 0;
}

.mac-footer-4__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--content-gap) var(--container-gap);
  font-size: var(--text-s);
  color: var(--text-light-muted);
}

.mac-footer-4__services {
  --mac-link-list-alpha-columns: 2;
}

.mac-footer-4__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  padding-block-start: var(--divider-gap);
  border-block-start: var(--divider-light);
  font-size: var(--text-xs);
}

.mac-footer-4__company {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.5em;
  color: var(--text-light-muted);
}

.mac-footer-4__company > * + *::before {
  content: "\00B7";
  content: "\00B7" / "";
  margin-inline-end: 0.5em;
}

.mac-footer-4__legal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--content-gap);
}

.mac-footer-4__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em var(--content-gap);
  color: var(--text-light-muted);
}

/* The cookie settings button, dressed as the legal links beside it; two classes, as ACSS styles every button outside a nav
   (its weight, line height, letter spacing) with a rule of (0,1,1). */
.mac-footer-4__legal .mac-footer-4__consent {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0;
  font: inherit;
  font-weight: var(--mac-link-item-alpha-font-weight, 400);
  letter-spacing: inherit;
  text-transform: inherit;

  &:hover {
    color: var(--relative-link-color);
  }
}

.mac-footer-4__consent-icon {
  /* ACSS icon (data-icon): --icon-size is its font-size, so width and height are 1em of that. */
  --icon-size: 0.875em;
  --icon-width: 1em;
  --icon-height: 1em;
  --icon-color: currentColor;
}

.mac-footer-4__credit {
  justify-self: end;
}

@media (width <= 62rem) {
  .mac-footer-4__legal-row {
    grid-template-columns: var(--grid-1);
    justify-items: start;
  }

  .mac-footer-4__credit {
    justify-self: start;
  }
}

@media (width <= 30rem) {
  .mac-footer-4__services {
    --mac-link-list-alpha-columns: auto;
  }
}

}
.mac-icon-alpha {
  /* MAC Icon Alpha, 2026-10-30: the hi-fi's line glyphs (24 grid, round strokes; star and stars filled) as inline SVG on ACSS's data-icon; size, color and box come from ACSS's icon variables. Since 2026-10-31 close, the chevrons (left, right, up) and image-gallery are the asset library's MAC Icons line glyphs (48 grid, filled outlines), as on the hub's lightbox and TOC. */
&[data-glyph="stars"] {
  /* Five stars in a row: the glyph is 73.4 by 12.7. 1em is the icon's font-size, --icon-size, so this holds for a size in em too. */
  --icon-width: calc(1em * 73.4 / 12.7);
}

}
.mac-call-button-alpha {
  /* MAC Call Button Alpha, 2026-10-30: the site's phone number, data('site').phone, as an ACSS primary button (the dashboard's pill). Size: Standard; Large at --text-m (the error page, the article's offer card); Display in the heading font at --text-xxl, on the heading line height with narrower sides (Paper's 18 by 32 at 36px), for a page whose one action is the call (Contact). Compact adds the phone glyph, shown alone on small phones with the number kept for screen readers (the header's pill). */
&[data-size="l"] {
  --btn-font-size: var(--text-m);
}

&[data-size="xl"] {
  --btn-font-family: var(--heading-font-family);
  --btn-font-size: var(--text-xxl);
  --btn-font-weight: var(--heading-font-weight);
  --btn-line-height: var(--heading-line-height);
  --btn-padding-inline: 0.875em;
}

.mac-call-button-alpha__icon {
  display: none;
  /* ACSS icon (data-icon): --icon-size is its font-size, so width and height are 1em of that. */
  --icon-size: 1.25em;
  --icon-width: 1em;
  --icon-height: 1em;
  --icon-color: currentColor;
  --icon-color-hover: currentColor;
}

@media (width <= 30rem) {
  /* The glyph alone, so the button fits it: no minimum width, and as much padding on the sides as above and below. */
  &[data-compact="true"] {
    --btn-min-width: 0;
    --btn-padding-inline: var(--btn-padding-block);
  }

  &[data-compact="true"] .mac-call-button-alpha__icon {
    display: flex;
  }

  &[data-compact="true"] .mac-call-button-alpha__label {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

}
.mac-intro-alpha {
  /* MAC Intro Alpha, 2026-10-30: a section's heading (h1 or h2, linked when it has a URL; its HTML may mark accent words with em) in an hgroup with an optional eyebrow (after the heading in the HTML, shown above it), lede and arrow link. Layout: Stack (heading, lede, link), Split (the heading on the left with the link under it, the lede on the right, its bottom edge on the heading's; stacked from --mac-l down) or Center. In the HTML the link always comes after the lede. Since 2026-10-31 Split's link sits under the heading, not the lede (Mihai), and a linked heading has no underline on hover. With Container on it's an Etch container, a section's first child, so ACSS's container gap sets it off from the content. Knobs: --mac-intro-alpha-lede-size, --mac-intro-alpha-lede-width (by default --width-40, --width-30 in Split, --width-50 in Center). */
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--content-gap);

.mac-intro-alpha__titles {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.mac-intro-alpha__eyebrow {
  order: -1;
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--base);
}

.mac-intro-alpha__heading em {
  font-style: normal;
  color: var(--base);
}

.mac-intro-alpha__heading-link {
  color: inherit;
  text-decoration: none;
}

.mac-intro-alpha__lede {
  max-inline-size: var(--mac-intro-alpha-lede-width, var(--width-40));
  font-size: var(--mac-intro-alpha-lede-size, var(--text-m));
  color: var(--text-dark-muted);
}

&[data-layout="center"] {
  align-items: center;
  text-align: center;
}

&[data-layout="center"] .mac-intro-alpha__lede {
  max-inline-size: var(--mac-intro-alpha-lede-width, var(--width-50));
}

&[data-layout="split"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--mac-intro-alpha-lede-width, var(--width-30)));
  align-items: end;
  gap: var(--content-gap) var(--container-gap);
}

&[data-layout="split"] .mac-intro-alpha__titles,
&[data-layout="split"] .mac-intro-alpha__link {
  grid-column: 1;
}

&[data-layout="split"] .mac-intro-alpha__lede {
  grid-area: 1 / 2;
}

&[data-layout="split"] .mac-intro-alpha__link {
  justify-self: start;
}

&[data-layout="split"] .mac-intro-alpha__heading {
  max-inline-size: var(--width-50);
}

&[data-layout="split"] .mac-intro-alpha__lede {
  max-inline-size: none;
}

@media (width <= 62rem) {
  /* Stacked, it starts on the left (MAC-2316): in a column, the grid's align-items: end would mean the right edge. */
  &[data-layout="split"] {
    display: flex;
    align-items: flex-start;
  }
}

}
.mac-fact-alpha {
  /* MAC Fact Alpha, 2026-10-30: a figure as one sentence (value, then label): the value in the heading font at --h1, the label under it, muted at --text-l. */
display: flex;
flex-direction: column;
gap: 0.5em;
font-size: var(--text-l);
color: var(--text-dark-muted);

.mac-fact-alpha__value {
  font-family: var(--heading-font-family);
  font-size: var(--h1);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
  color: var(--heading-color);
}

}
.mac-feature-alpha {
  /* MAC Feature Alpha, 2026-10-30: a benefit, such as De ce noi's: an icon in a disc (ACSS's boxed icon on the card ground, Paper's 56px with its 1px line), the H3 and a short text, and an optional arrow link (MAC Icon Link Alpha); the text grows, so the links in a row line up. */
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--card-gap);
position: relative;

/* The disc is on a wrapper around the plain glyph (MAC-2315), since Safari clips an svg's drawing to its own rounded
   box and cut the tag's corner: 0.625em of the 24px glyph, as ACSS's boxed padding was on the svg, so 56px across. */
.mac-feature-alpha__icon {
  --icon-color: var(--heading-color);
  display: flex;
  flex-shrink: 0;
  padding: calc(var(--icon-size-s) * 0.625);
  border: var(--card-border-width) solid var(--card-border-color);
  border-radius: var(--radius-circle);
  background: var(--card-background);
}

.mac-feature-alpha__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.5em;
}

.mac-feature-alpha__text {
  color: var(--text-dark-muted);
}

/* A feature with a link is clickable as a whole (MAC-2314): its arrow link's box covers the feature, as Project Card
   Alpha's title link covers its card, so hovering the feature plays the arrow's movement, and focus draws the ring
   around the feature. */
& .mac-icon-link-alpha::after {
  content: "";
  position: absolute;
  inset: 0;
}

& .mac-icon-link-alpha:focus-visible {
  outline: none;
}

& .mac-icon-link-alpha:focus-visible::after {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

}
.mac-link-item-alpha {
  /* MAC Link Item Alpha, 2026-10-30: a link list's item, an arrow link (MAC Icon Link Alpha) at the context's size and color, its arrow at 0.875em: Plain, the arrow right after the label, such as a footer column's links; Row, label and arrow at the row's ends, a faint line between rows; Pill, label and arrow at the ends of a rounded box on the card's ground and line (the ground opposite the section's), the label in the heading font at --h6 and the heading color, the arrow in the link's color, such as a region's places. Knob: --mac-link-item-alpha-font-weight (400; Pill 700). */
.mac-link-item-alpha__link {
  --mac-icon-link-alpha-text-size: 1em;
  --mac-icon-link-alpha-font-weight: var(--mac-link-item-alpha-font-weight, 400);
  --mac-icon-link-alpha-icon-size: 0.875em;
}

&[data-variant="row"] .mac-link-item-alpha__link,
&[data-variant="pill"] .mac-link-item-alpha__link {
  display: flex;
  justify-content: space-between;
}

&[data-variant="pill"] .mac-link-item-alpha__link {
  --mac-icon-link-alpha-text-size: var(--h6);
  --mac-icon-link-alpha-font-weight: var(--mac-link-item-alpha-font-weight, 700);
  --mac-icon-link-alpha-icon-size: 1em;
  --mac-icon-link-alpha-icon-color: var(--link-color);
  gap: 0.75em;
  min-block-size: 3rem;
  padding: 0.375em 0.875em;
  border: var(--card-border-width) var(--card-border-style) var(--card-border-color);
  border-radius: var(--radius-circle);
  background: var(--card-background);
  font-family: var(--heading-font-family);
  color: var(--heading-color);
}

&[data-variant="row"] + &[data-variant="row"] {
  padding-block-start: 0.75em;
  border-block-start: var(--divider-dark);
}

}
.mac-link-card-alpha {
  /* MAC Link Card Alpha, 2026-10-30: a titled list of links from data(listSource, listFilter) (areas or services, filtered by a region's or a group's slug) as pills (MAC Link Item Alpha, Pill), two a row or one (Columns), and a note under them (--text-s, muted). With a photo (16:10, the light line), the title and the text sit in a light box at its bottom corner, such as a region's name and how many places it lists, and since 2026-10-31 the title's link covers the photo, with no underline on hover; without one, the title heads the list at --h4, such as a group of services. Split puts the photo beside the list (a region's page), stacked from --mac-l down; the pills go one a row from --mac-s down. */
display: flex;
flex-direction: column;
gap: var(--grid-gap);

.mac-link-card-alpha__media {
  position: relative;
  display: grid;
}

.mac-link-card-alpha__image,
.mac-link-card-alpha__label {
  grid-area: 1 / 1;
}

.mac-link-card-alpha__image {
  inline-size: 100%;
  aspect-ratio: 16 / 10;
  border: var(--border-light);
}

.mac-link-card-alpha__label {
  display: flex;
  flex-direction: column;
  place-self: end start;
  margin: 1em;
  padding: 0.75em 1.25em;
  border: var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-ultra-light);
}

.mac-link-card-alpha__header .mac-link-card-alpha__title {
  font-size: var(--h4);
}

.mac-link-card-alpha__title-link {
  color: inherit;
  text-decoration: none;
}

/* On a photo, the title's link covers it (a clickable parent), so the whole photo opens the page. */
.mac-link-card-alpha__media .mac-link-card-alpha__title-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.mac-link-card-alpha__text {
  font-size: var(--text-s);
  color: var(--heading-color);
}

.mac-link-card-alpha__body {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.mac-link-card-alpha__list {
  display: grid;
  grid-template-columns: var(--grid-2);
  gap: 0.75em;
}

&[data-columns="1"] .mac-link-card-alpha__list {
  grid-template-columns: var(--grid-1);
}

.mac-link-card-alpha__note {
  font-size: var(--text-s);
  color: var(--text-dark-muted);
}

&[data-layout="split"] {
  display: grid;
  grid-template-columns: var(--grid-2);
  align-items: center;
}

@media (width <= 62rem) {
  &[data-layout="split"] {
    grid-template-columns: var(--grid-1);
  }
}

@media (width <= 30rem) {
  .mac-link-card-alpha__list {
    grid-template-columns: var(--grid-1);
  }
}

}
.mac-process-card-alpha {
  /* MAC Process Card Alpha, 2026-10-30: one step of the process, on ACSS's card: a 4:3 photo with its white line, then, inset a little, the number on a --primary disc (decorative: the list numbers the steps) beside the H3, and the text. */
--card-padding: var(--grid-gap) var(--grid-gap) var(--content-gap);
--card-text-size: var(--text-m);
--card-media-aspect-ratio: 4 / 3;

.mac-process-card-alpha__media {
  border: var(--card-border-width) var(--card-border-style) var(--card-border-color);
}

.mac-process-card-alpha__body {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding-inline: 0.75em;
}

.mac-process-card-alpha__head {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.mac-process-card-alpha__step {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  inline-size: 2rem;
  aspect-ratio: 1;
  border-radius: var(--radius-circle);
  background: var(--primary);
  color: var(--heading-color);
  font-family: var(--heading-font-family);
  font-size: var(--h6);
  font-weight: 700;
  line-height: 1;
}

.mac-process-card-alpha__text {
  color: var(--text-dark-muted);
}

}
.mac-review-card-alpha {
  /* MAC Review Card Alpha, 2026-10-31: a Google review on ACSS's card: five stars ("5 din 5 stele") over the optional title (--text-l in the heading font) and the text in the heading font at 500, --text-l; then the writer: the initials on a navy disc (--heading-color, as --bg-ultra-dark is the footer's ground) with the light line, the name and the date. Featured: the text at --text-xl, the writer under a faint line with the stars at the end of the row. Plain: no padding, ground or line, for a review inside another card (MAC Call Card Alpha). ACSS leaves a blockquote inside a "-card" class unstyled, so its --blockquote-* knobs don't reach this one: the text is styled here. */
justify-content: space-between;

.mac-review-card-alpha__quote {
  font-family: var(--heading-font-family);
  font-size: var(--text-l);
  font-weight: 500;
  color: var(--heading-color);
}

/* A word too long for the card, such as a review's words joined by commas, breaks inside it instead of
   pushing the page sideways at 320px (WCAG 1.4.10). Etch's reset gives paragraphs break-word, which doesn't. */
.mac-review-card-alpha__quote p {
  overflow-wrap: anywhere;
}

.mac-review-card-alpha__body {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.mac-review-card-alpha__stars {
  display: flex;
}

.mac-review-card-alpha__stars-icon {
  /* Paper's 22px stars; the glyph's width follows its height. */
  --icon-size: 1.375rem;
  --icon-height: 1em;
  --icon-color: var(--primary);
}

.mac-review-card-alpha__title {
  font-family: var(--heading-font-family);
  font-size: var(--text-l);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
  color: var(--heading-color);
}

.mac-review-card-alpha__author {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.mac-review-card-alpha__initials {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  inline-size: 2.75rem;
  aspect-ratio: 1;
  border: var(--border-light);
  border-radius: var(--radius-circle);
  background: var(--heading-color);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
}

.mac-review-card-alpha__who {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mac-review-card-alpha__name {
  font-weight: 600;
  color: var(--heading-color);
}

.mac-review-card-alpha__date {
  font-size: var(--text-xs);
  color: var(--text-dark-muted);
}

&[data-variant="featured"] {
  --card-padding: 2em;
}

&[data-variant="featured"] .mac-review-card-alpha__quote {
  font-size: var(--text-xl);
  letter-spacing: var(--text-xl-letter-spacing);
}

&[data-variant="featured"] .mac-review-card-alpha__author {
  flex-wrap: wrap;
  padding-block-start: var(--card-gap);
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

&[data-variant="featured"] .mac-review-card-alpha__initials {
  inline-size: 3.25rem;
  font-size: var(--text-s);
}

&[data-variant="featured"] .mac-review-card-alpha__name {
  font-size: var(--text-m);
}

/* With no padding, the card's corner, which ACSS's figure rule rounds over the card's --card-radius, cut the
   first star, and with no ground or line nothing shows the corner, so the card clips nothing (MAC-2333). */
&[data-variant="plain"] {
  --card-padding: 0;
  --card-background: transparent;
  --card-border-width: 0;
  --card-overflow: visible;
}

/* Paper's review beside a service's text: smaller stars, the text in the body font at --text-m in --text-dark, a larger disc. */
&[data-variant="plain"] .mac-review-card-alpha__body {
  gap: 0.75em;
}

&[data-variant="plain"] .mac-review-card-alpha__stars-icon {
  --icon-size: 1.125rem;
}

&[data-variant="plain"] .mac-review-card-alpha__quote {
  font-family: var(--text-font-family);
  font-size: var(--text-m);
  font-weight: 400;
  color: var(--text-dark);
}

&[data-variant="plain"] .mac-review-card-alpha__initials {
  inline-size: 3.25rem;
  font-size: var(--text-s);
}

}
.mac-article-card-alpha {
  /* MAC Article Card Alpha, 2026-10-30: an article on ACSS's card (its ground, line, corners, text size and muted text). Card: its 16:10 photo with its white line, then, inset a little, the title at --h4 (a link that covers the card), the date (after the title in the HTML, shown above it, at --text-xs) and its first lines. Row: a 16:10 thumbnail beside the date and the title, the arrow at the top corner in the link's color; the thumbnail larger and the title at --h3 when the row is wider than 30rem; since 2026-10-31 at half its padding, the thumbnail at half the site's corners, set on the image itself: ACSS's image rule (its utilities layer) outranks the card's --card-media-radius. */
--card-padding: 0.75em;
--card-heading-size: var(--h4);
--card-media-aspect-ratio: 16 / 10;

.mac-article-card-alpha__media {
  border: var(--card-border-width) var(--card-border-style) var(--card-border-color);
}

.mac-article-card-alpha__body {
  display: flex;
  flex-direction: column;
  gap: 0.625em;
  padding: 0 0.25em 0.5em;
}

.mac-article-card-alpha__link {
  color: inherit;
  text-decoration: none;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
  }
}

.mac-article-card-alpha__date {
  order: -1;
  font-size: var(--text-xs);
}

.mac-article-card-alpha__arrow {
  --icon-size: 1.375rem;
  --icon-color: var(--link-color);
  flex-shrink: 0;
  align-self: start;
}

/* The title's link covers the card, so hovering the card, or focusing its link, moves the arrow as Icon Link
   Alpha's does (MAC-2336), through ACSS's icon transition, which its reduced-motion rule makes instant. */
&:is(:hover, :has(:focus-visible)) .mac-article-card-alpha__arrow {
  scale: 1.2;
  transform: translateX(0.25ch) rotate(45deg);
}

&[data-layout="card"] {
  --card-gap: 1em;
}

&[data-layout="row"] {
  --card-flex-direction: row;
  --card-padding: 0.5em;
  --card-media-radius: calc(var(--radius) / 2);
  container-type: inline-size;
  align-items: center;
}

/* The thumbnail is as tall as the card's text, however many lines the title takes (MAC-2320), cropped by the card's
   object-fit: cover; at its width, 16:10 still sets its least height (4.375rem, 7.03rem from 30rem up). */
&[data-layout="row"] .mac-article-card-alpha__media {
  flex-shrink: 0;
  align-self: stretch;
  inline-size: 7rem;
  border-radius: var(--card-media-radius);
}

&[data-layout="row"] .mac-article-card-alpha__body {
  flex-grow: 1;
  padding: 0;
}

@container (min-width: 30rem) {
  &[data-layout="row"] .mac-article-card-alpha__media {
    inline-size: 11.25rem;
  }

  &[data-layout="row"] .mac-article-card-alpha__body {
    --card-heading-size: var(--h3);
  }
}

}
.bg--ultra-light {
  /* Automatic.css class; its ground comes from ACSS. Cards, chips, pills and icon discs on it take the opposite ground, --bg-light (--card-background is --bg-ultra-light elsewhere). */
--card-background: var(--bg-light);
}
.mac-hours-alpha {
  /* MAC Hours Alpha, 2026-10-30: the weekday opening hours from data('site').hours, after a clock (Icon: None leaves it out, as in a service's price card); text and glyph take the context's size and color. Knobs: --mac-hours-alpha-gap, --mac-hours-alpha-icon-size, --mac-hours-alpha-icon-color. */
display: flex;
align-items: center;
gap: var(--mac-hours-alpha-gap, 0.5em);

.mac-hours-alpha__icon {
  /* ACSS icon (data-icon): --icon-size is its font-size, so width and height are 1em of that. */
  --icon-size: var(--mac-hours-alpha-icon-size, 1.25em);
  --icon-width: 1em;
  --icon-height: 1em;
  --icon-color: var(--mac-hours-alpha-icon-color, currentColor);
}

}
.mac-hero-section-alpha {
  /* MAC Hero Section Alpha, 2026-10-30: a page's hero on the body's ground: the H1 and lede through Intro (the heading's HTML may mark accent words with em), the call button with an arrow link beside it, and the weekday hours, beside an image in a white frame, 4:3 or Square (Home). Without an image the copy is centered across the band, with more space above and below. The site header sits above it in the page's flow, on the same ground. Stacked at --mac-l and below. */
--section-padding-block: var(--section-space-xs);
--mac-intro-alpha-lede-size: var(--text-l);

&:not(:has(.mac-hero-section-alpha__media)) {
  --section-padding-block: var(--container-gap);
}

.mac-hero-section-alpha__inner {
  display: grid;
  grid-template-columns: var(--grid-2);
  align-items: center;
  gap: var(--container-gap);
}

.mac-hero-section-alpha__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--content-gap);
}

/* No image: the copy spans both columns, centered (Intro's Center layout). */
.mac-hero-section-alpha__content:only-child {
  grid-column: 1 / -1;
  align-items: center;
}

.mac-hero-section-alpha__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.mac-hero-section-alpha__hours {
  font-size: var(--text-s);
  color: var(--text-dark-muted);
}

.mac-hero-section-alpha__media {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  border: var(--border-light);
}

.mac-hero-section-alpha__media[data-square="true"] {
  aspect-ratio: 1;
}

@media (width <= 62rem) {
  .mac-hero-section-alpha__inner {
    grid-template-columns: var(--grid-1);
  }
}

}
.mac-grid-section-alpha {
  /* MAC Grid Section Alpha, 2026-10-30: a section's grid of items (the items slot) under an optional header (MAC Intro Alpha, Split: the heading and arrow link on the left, the lede on the right). Columns: Three or Two. Variant: Cards, the items --grid-gap apart in ACSS's auto grids; Ruled, features between faint lines, one across the top and one between the columns, centered in --container-gap, stacked from --mac-l down with the lines between the rows. Without a header the band is lower, such as Echipa's links to other pages. */
&:not(:has(.mac-grid-section-alpha__intro)) {
  --section-padding-block: var(--section-space-s);
}

.mac-grid-section-alpha__grid {
  display: grid;
  grid-template-columns: var(--grid-auto-3);
  gap: var(--grid-gap);
}

&[data-columns="2"] .mac-grid-section-alpha__grid {
  grid-template-columns: var(--grid-auto-2);
}

&[data-variant="ruled"] .mac-grid-section-alpha__grid {
  grid-template-columns: var(--grid-3);
  gap: var(--divider-gap);
  padding: var(--divider-gap) var(--grid-gap) var(--grid-gap);
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

&[data-variant="ruled"][data-columns="2"] .mac-grid-section-alpha__grid {
  grid-template-columns: var(--grid-2);
}

&[data-variant="ruled"] .mac-grid-section-alpha__grid > * + * {
  padding-inline-start: var(--divider-gap);
  border-inline-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

@media (width <= 62rem) {
  &[data-variant="ruled"] .mac-grid-section-alpha__grid {
    grid-template-columns: var(--grid-1);
  }

  &[data-variant="ruled"] .mac-grid-section-alpha__grid > * + * {
    padding-inline-start: 0;
    padding-block-start: var(--divider-gap);
    border-inline-start: 0;
    border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
  }
}

}
.mac-process-section-alpha {
  /* MAC Process Section Alpha, 2026-10-30: the process: the header (MAC Intro Alpha, Split; the lede optional), then the steps from data('process') as cards (MAC Process Card Alpha) in a row of three, all as tall as the tallest, stacked from --mac-m down. */
.mac-process-section-alpha__list {
  display: grid;
  grid-template-columns: var(--grid-3);
  gap: var(--grid-gap);
}

.mac-process-section-alpha__item {
  display: grid;
}

@media (width <= 48rem) {
  .mac-process-section-alpha__list {
    grid-template-columns: var(--grid-1);
  }
}

}
.mac-work-section-alpha {
  /* MAC Work Section Alpha, 2026-10-30: recent work: the header (MAC Intro Alpha, Split), then five projects from data('gallery', filter, 5) (filter: a service, area, region or group slug, or empty for all): the first as the featured card across the row, the next four as text cards (MAC Project Card Alpha, no cover), two a row from --mac-l down and one from --mac-s. Meta: the service and photo count (Home) or the area (a service page). MAC Lightbox 1 at the end shows the projects' photos. */
.mac-work-section-alpha__list {
  display: grid;
  grid-template-columns: var(--grid-4);
  gap: var(--grid-gap);
}

.mac-work-section-alpha__item:first-child {
  grid-column: 1 / -1;
}

@media (width <= 62rem) {
  .mac-work-section-alpha__list {
    grid-template-columns: var(--grid-2);
  }
}

@media (width <= 30rem) {
  .mac-work-section-alpha__list {
    grid-template-columns: var(--grid-1);
  }
}

}
.mac-reviews-section-alpha {
  /* MAC Reviews Section Alpha, 2026-10-30: the Google reviews: in the narrow column five stars over the header (MAC Intro Alpha, Stack; its H2 is the profile's count, data('site').google_reviews_label, "pe Google"), in the wide one the reviews from data('reviews', limit, exclude) as MAC Review Card Alpha: the first featured across the column, the rest two a row and a last one left alone across it. limit empty shows them all (Recenzii); exclude is the ID of the review a service page's aside already shows. The columns stack from --mac-l down, the cards from --mac-s. */
.mac-reviews-section-alpha__inner {
  display: grid;
  grid-template-columns: var(--grid-1-2);
  gap: var(--container-gap);
}

.mac-reviews-section-alpha__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--content-gap);
}

.mac-reviews-section-alpha__stars {
  /* Paper's 24px stars; the glyph's width follows its height. */
  --icon-size: 1.5rem;
  --icon-height: 1em;
  --icon-color: var(--primary);
}

.mac-reviews-section-alpha__list {
  display: grid;
  grid-template-columns: var(--grid-2);
  gap: var(--grid-gap);
}

.mac-reviews-section-alpha__item {
  display: grid;
}

.mac-reviews-section-alpha__item:first-child,
.mac-reviews-section-alpha__item:nth-child(even):last-child {
  grid-column: 1 / -1;
}

@media (width <= 62rem) {
  .mac-reviews-section-alpha__inner {
    grid-template-columns: var(--grid-1);
  }
}

@media (width <= 30rem) {
  .mac-reviews-section-alpha__list {
    grid-template-columns: var(--grid-1);
  }

  /* Stacked, the featured review's quote takes the others' size and letter spacing (MAC-2321). */
  & .mac-review-card-alpha[data-variant="featured"] .mac-review-card-alpha__quote {
    font-size: var(--text-l);
    letter-spacing: inherit;
  }
}

}
.mac-articles-section-alpha {
  /* MAC Articles Section Alpha, 2026-10-30: articles from data('blog', filter, limit, skip) (featured, a group's slug or a service's ID; limit empty shows them all; skip leaves out an article) as MAC Article Card Alpha, left out when the filter finds none. Rows: the header (MAC Intro Alpha, Stack) in the narrow column beside the rows, such as Home's and a service's articles, stacked from --mac-l down. Cards: the header over the cards, three a row (auto-fit), such as an article's suggestions. By Group: a heading and its cards per service group from data('service-categories') that has articles, each with the group's slug as its ID (Blog). */
.mac-articles-section-alpha__inner {
  display: grid;
  grid-template-columns: var(--grid-1-2);
  gap: var(--container-gap);
}

.mac-articles-section-alpha__group {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

.mac-articles-section-alpha__list {
  display: grid;
  grid-template-columns: var(--grid-auto-3);
  gap: var(--grid-gap);
}

.mac-articles-section-alpha__inner .mac-articles-section-alpha__list {
  grid-template-columns: var(--grid-1);
}

.mac-articles-section-alpha__item {
  display: grid;
}

@media (width <= 62rem) {
  .mac-articles-section-alpha__inner {
    grid-template-columns: var(--grid-1);
  }
}

}
.mac-call-section-alpha {
  /* MAC Call Section Alpha, 2026-10-30: the call band at the end of a page, on the brand's yellow (--primary), all its text in the heading color: the H2 at --text-xxl with the team's faces (data('team'), decorative), the phone from data('site') at Paper's display size, and over a faint line the weekday hours, the place (data('site').address) and the Google profile's 5-star reviews (data('site').google_reviews_label) with five stars. The facts are semibold: on this yellow no text reaches APCA's Lc 75 for body text (navy 73.6), and semibold text at 18px needs Lc 60 to 70. */
--section-padding-block: var(--section-space-m) var(--section-space-s);
--link-color: var(--heading-color);
--link-color-hover: var(--heading-color);
background-color: var(--primary);
color: var(--heading-color);

/* Paper's rows are 40px apart; the phone's size follows the band's width (cqi). */
.mac-call-section-alpha__inner {
  container-type: inline-size;
  gap: var(--divider-gap);
}

.mac-call-section-alpha__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--content-gap);
}

.mac-call-section-alpha__heading {
  font-size: var(--text-xxl);
}

.mac-call-section-alpha__faces {
  display: flex;
}

.mac-call-section-alpha__face {
  inline-size: 3.75rem;
  block-size: 3.75rem;
  object-fit: cover;
  border: 3px solid var(--primary);
  border-radius: var(--radius-circle);
}

/* As in Paper, the first member (the team's lead) comes last and on top; each face overlaps the one before by 18px. */
.mac-call-section-alpha__face:first-child {
  order: 1;
}

.mac-call-section-alpha__face:not(:first-child) {
  margin-inline-end: -1.125rem;
}

/* Paper's display style: the number fills the band's width on one line, at 16% of it (Paper's 198px in 1224px).
   Since 2026-10-31 the link is only as large as the number, so the hand shows on it alone: as wide as the text,
   its box trimmed to the digits (text-box, cap height to baseline), and the space around it the row gap plus a
   margin, 0.12em, which keeps the digits where line-height 0.9 had them. */
.mac-call-section-alpha__phone {
  align-self: flex-start;
  margin-block: 0.12em;
  font-family: var(--heading-font-family);
  font-size: min(13.5rem, 16cqi);
  font-weight: var(--heading-font-weight);
  line-height: 1;
  letter-spacing: -0.045em;
  text-box: trim-both cap alphabetic;
}

.mac-call-section-alpha__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--content-gap);
  padding-block-start: var(--divider-gap);
  /* Paper's line: the heading color at 16%. */
  border-block-start: var(--divider-size) var(--divider-style) color-mix(in oklch, var(--heading-color) 16%, transparent);
  font-size: var(--text-m);
  font-weight: 600;
}

.mac-call-section-alpha__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em var(--content-gap);
}

.mac-call-section-alpha__place {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.mac-call-section-alpha__place-icon {
  /* ACSS icon (data-icon): --icon-size is its font-size, so width and height are 1em of that. */
  --icon-size: 1.25em;
  --icon-width: 1em;
  --icon-height: 1em;
  --icon-color: currentColor;
}

.mac-call-section-alpha__reviews {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.mac-call-section-alpha__stars {
  /* Paper's 20px stars; the glyph's width follows its height. */
  --icon-size: 1.125em;
  --icon-height: 1em;
  --icon-color: currentColor;
}

/* Narrower than 51rem, where the facts and the reviews line stop fitting side by side (50.875rem, measured on
   2026-11-11 at today's texts), the row stacks on the left, and the stars come before their text (MAC-2323). */
@container (width < 51rem) {
  .mac-call-section-alpha__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .mac-call-section-alpha__stars {
    order: -1;
  }
}

}
.mac-icon-link-alpha {
  /* MAC Icon Link Alpha, 2026-10-30: the hi-fi's arrow link, its label at --text-m and 600 with the glyph after it in the link's color; Icon Position: Before puts the glyph first (contact lines); Icon Only hides the label visually and keeps it as the link's name. Knobs: --mac-icon-link-alpha-text-size, --mac-icon-link-alpha-font-weight, --mac-icon-link-alpha-icon-size, --mac-icon-link-alpha-icon-color (the link's color). */
display: inline-flex;
align-items: center;
gap: 0.25em;
font-size: var(--mac-icon-link-alpha-text-size, var(--text-m));
font-weight: var(--mac-icon-link-alpha-font-weight, 600);

.mac-icon-link-alpha__icon {
  /* ACSS icon (data-icon): --icon-size is its font-size, so width and height are 1em of that. */
  --icon-size: var(--mac-icon-link-alpha-icon-size, 1em);
  --icon-width: 1em;
  --icon-height: 1em;
  --icon-color: var(--mac-icon-link-alpha-icon-color, currentColor);
  --icon-color-hover: var(--mac-icon-link-alpha-icon-color, currentColor);
}

&[data-icon-position="before"] .mac-icon-link-alpha__icon {
  order: -1;
}

/* Hovered or focused, the link's glyph grows to 1.2 times, and the arrow also turns to point right and moves a
   quarter character forward (MAC-2313), through ACSS's icon transition (--transition), which its reduced-motion
   rule makes instant. */
&:is(:hover, :focus-visible) .mac-icon-link-alpha__icon {
  scale: 1.2;
}

&:is(:hover, :focus-visible) .mac-icon-link-alpha__icon[data-glyph="arrow"] {
  transform: translateX(0.25ch) rotate(45deg);
}

&[data-icon-only="true"] {
  --mac-icon-link-alpha-icon-size: 1.5em;
}

&[data-icon-only="true"] .mac-icon-link-alpha__label {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

}
.mac-link-list-alpha {
  /* MAC Link List Alpha, 2026-10-30: a heading over a list of links, such as a footer column: the heading at --h5 in the context's heading color, the links (MAC Link Item Alpha, Plain, in the links slot) under it, in one column or more. Multicol has no row gap, so each item but the last keeps the gap under it; a column break drops it. Knobs: --mac-link-list-alpha-columns (auto, one column), --mac-link-list-alpha-item-gap (0.75em). */
display: flex;
flex-direction: column;
gap: var(--grid-gap);

.mac-link-list-alpha__heading {
  font-size: var(--h5);
}

.mac-link-list-alpha__list {
  columns: var(--mac-link-list-alpha-columns, auto);
  column-gap: var(--divider-gap);
}

.mac-link-list-alpha__list > * {
  break-inside: avoid;
}

.mac-link-list-alpha__list > :not(:last-child) {
  margin-block-end: var(--mac-link-list-alpha-item-gap, 0.75em);
}

}
.mac-content-section-alpha {
  /* MAC Content Section Alpha, 2026-10-30: a record's long text (the content slot) in ACSS's smart spacing, its list markers in --base (numbers at 600). Reading: one column at --width-50, centered, its photo (21:9) above it and the after slot (an offer) under it, its H2s at --h3 and H3s at --h4, tables ruled, and the closing list with its heading (a post's sources) under a faint line at --text-s; an article, a legal page. Photo Beside: the text beside its photo (4:3) on --grid-2, centered on it (a region); when the text is in sections, the first beside the photo and the rest two a row under it, each under a faint line, its H2 at --h3 (an area). Portrait Beside: the text beside its photo (4:5) on --grid-3-2 (a group). Aside: the text at --width-50 beside the aside slot on --grid-2-1, its H2s at --h3 (a service). Lead: the first paragraph at --text-l (Lead) or at --text-xl in the heading color (Large). The columns stack from --mac-l down, the photo under the first part. */
.mac-content-section-alpha__inner {
  gap: var(--container-gap);
}

.mac-content-section-alpha__media {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  border: var(--border-light);
}

.mac-content-section-alpha__body li::marker {
  color: var(--base);
}

.mac-content-section-alpha__body ol > li::marker {
  font-weight: 600;
}

.mac-content-section-alpha__body table {
  inline-size: 100%;
  border: var(--divider-size) var(--divider-style) var(--divider-color-dark);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: clip;
  font-size: var(--text-s);
}

.mac-content-section-alpha__body :is(th, td) {
  padding: 0.75em 1em;
  text-align: start;
}

.mac-content-section-alpha__body th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--heading-color);
}

.mac-content-section-alpha__body td {
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

.mac-content-section-alpha__after {
  grid-column: 1 / -1;
}

&[data-lead="lead"] .mac-content-section-alpha__body > p:first-child {
  font-size: var(--text-l);
}

&[data-lead="large"] .mac-content-section-alpha__body > p:first-child {
  font-size: var(--text-xl);
  color: var(--heading-color);
}

&[data-layout="reading"] .mac-content-section-alpha__inner {
  align-items: center;
}

&[data-layout="reading"] .mac-content-section-alpha__body,
&[data-layout="reading"] .mac-content-section-alpha__after {
  inline-size: 100%;
  max-inline-size: var(--width-50);
}

&[data-layout="reading"] .mac-content-section-alpha__media {
  order: -1;
  aspect-ratio: 21 / 9;
}

&[data-layout="reading"] .mac-content-section-alpha__body h2,
&[data-layout="aside"] .mac-content-section-alpha__body h2 {
  font-size: var(--h3);
}

&[data-layout="reading"] .mac-content-section-alpha__body h3,
&[data-layout="aside"] .mac-content-section-alpha__body h3 {
  font-size: var(--h4);
}

&[data-layout="reading"] .mac-content-section-alpha__body > h2:has(+ ul:last-child) {
  padding-block-start: var(--content-gap);
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
  font-size: var(--h4);
}

&[data-layout="reading"] .mac-content-section-alpha__body > h2 + ul:last-child {
  font-size: var(--text-s);
}

&[data-layout="photo"] .mac-content-section-alpha__inner,
&[data-layout="portrait"] .mac-content-section-alpha__inner,
&[data-layout="aside"] .mac-content-section-alpha__inner {
  display: grid;
  align-items: start;
}

&[data-layout="photo"] .mac-content-section-alpha__inner {
  grid-template-columns: var(--grid-2);
  align-items: center;
}

&[data-layout="portrait"] .mac-content-section-alpha__inner {
  grid-template-columns: var(--grid-3-2);
}

&[data-layout="aside"] .mac-content-section-alpha__inner {
  grid-template-columns: var(--grid-2-1);
}

&[data-layout="aside"] .mac-content-section-alpha__body {
  max-inline-size: var(--width-50);
}

&[data-layout="photo"] .mac-content-section-alpha__media,
&[data-layout="portrait"] .mac-content-section-alpha__media {
  grid-area: 1 / 2;
}

&[data-layout="portrait"] .mac-content-section-alpha__media {
  aspect-ratio: 4 / 5;
}

/* An area's text in sections: the sections join the grid; smart spacing's margin between them is the grid's gap here. */
&[data-layout="photo"] .mac-content-section-alpha__body:has(> section) {
  display: contents;
}

&[data-layout="photo"] .mac-content-section-alpha__body > section {
  margin-block-start: 0;
}

&[data-layout="photo"] .mac-content-section-alpha__body > section + section {
  align-self: start;
  padding-block-start: var(--divider-gap);
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

&[data-layout="photo"] .mac-content-section-alpha__body > section + section h2 {
  font-size: var(--h3);
}

@media (width <= 62rem) {
  &[data-layout="photo"] .mac-content-section-alpha__inner,
  &[data-layout="portrait"] .mac-content-section-alpha__inner,
  &[data-layout="aside"] .mac-content-section-alpha__inner {
    grid-template-columns: var(--grid-1);
  }

  &[data-layout="photo"] .mac-content-section-alpha__media,
  &[data-layout="portrait"] .mac-content-section-alpha__media {
    grid-area: 2 / 1;
  }
}

/* On a phone a table wider than the text scrolls sideways in its own box, not the page; one that fits fills the column. */
@media (width <= 30rem) {
  .mac-content-section-alpha__body table {
    display: block;
    inline-size: max-content;
    max-inline-size: 100%;
    overflow-x: auto;
  }
}

}
.mac-price-section-alpha {
  /* MAC Price Section Alpha, 2026-10-30: one service's labour price from data('services', service): the header (MAC Intro Alpha, Split, with the arrow link to all prices), then two cards on ACSS's card (the ground opposite the section's, its line and corners), the price card beside the examples card on --grid-2-3, as tall as each other. Price card: the package, the price in the heading font at --text-xxl in the heading color, the note and the guarantee after a shield glyph, then, at the card's foot, the call button beside the hours (MAC Hours Alpha, no glyph). Examples card, when the service has examples (service_price_examples): its H3 at --h5 over the rows (area, price at 600 in the heading color), a faint line between rows. The cards stack from --mac-m down. */
.mac-price-section-alpha__inner {
  gap: var(--container-gap);
}

.mac-price-section-alpha__cards {
  display: grid;
  grid-template-columns: var(--grid-2-3);
  gap: var(--grid-gap);
}

.mac-price-section-alpha__card {
  justify-content: space-between;
}

.mac-price-section-alpha__summary {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.mac-price-section-alpha__price {
  font-family: var(--heading-font-family);
  font-size: var(--text-xxl);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
  color: var(--heading-color);
}

/* The guarantee is set as Price Table Section Alpha's note (MAC-2325): at the heading line height, with its glyph
   centered on its first line. */
.mac-price-section-alpha__guarantee {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  line-height: var(--heading-line-height);
}

.mac-price-section-alpha__guarantee-icon {
  /* ACSS icon (data-icon): --icon-size is its font-size, so 1em keeps the line's. */
  --icon-size: 1em;
  --icon-width: 1.2em;
  --icon-height: var(--heading-line-height);
  --icon-color: currentColor;
}

.mac-price-section-alpha__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em;
}

.mac-price-section-alpha__examples {
  --card-heading-size: var(--h5);
}

.mac-price-section-alpha__example {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding-block: 0.75em;
}

.mac-price-section-alpha__example + .mac-price-section-alpha__example {
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

.mac-price-section-alpha__example:first-child {
  padding-block-start: 0;
}

.mac-price-section-alpha__example:last-child {
  padding-block-end: 0;
}

.mac-price-section-alpha__value {
  font-weight: 600;
  color: var(--heading-color);
}

@media (width <= 48rem) {
  .mac-price-section-alpha__cards {
    grid-template-columns: var(--grid-1);
  }
}

}
.mac-faq-item-alpha {
  /* MAC FAQ Item Alpha, 2026-10-30: one question as a disclosure (details and summary): the question as an H3 at --h5, a plus in the link color at the end of its row (a minus when it's open), and the answer's HTML in ACSS's smart spacing, up to --width-60. Between questions a faint line; no padding above the first or under the last. */
padding-block: var(--content-gap);

& + & {
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

&:first-child {
  padding-block-start: 0;
}

&:last-child {
  padding-block-end: 0;
}

.mac-faq-item-alpha__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--content-gap);
  list-style: none;
  cursor: pointer;

  &::-webkit-details-marker {
    display: none;
  }
}

.mac-faq-item-alpha__question-text {
  font-size: var(--h5);
}

.mac-faq-item-alpha__plus,
.mac-faq-item-alpha__minus {
  /* ACSS icon (data-icon): --icon-size is its font-size, so width and height are 1em of that. */
  --icon-size: 1.5rem;
  --icon-width: 1em;
  --icon-height: 1em;
  --icon-color: var(--link-color);
  flex-shrink: 0;
}

&[open] .mac-faq-item-alpha__plus,
&:not([open]) .mac-faq-item-alpha__minus {
  display: none;
}

.mac-faq-item-alpha__answer {
  max-inline-size: var(--width-60);
  padding-block-start: 0.75em;
}

}
.mac-faq-section-alpha {
  /* MAC FAQ Section Alpha, 2026-10-30: questions from data('faqs', filter) (a group such as general, or a service's ID: its own first) across the container, under the header (MAC Intro Alpha, Split); the section is left out when the filter finds none. Since 2026-10-31 the questions are the hub's accordion, MAC FAQ Accordion 1 with MAC FAQ Item 1, one open at a time. */
.mac-faq-section-alpha__inner {
  gap: var(--container-gap);
}

}
.mac-project-card-alpha {
  /* MAC Project Card Alpha, 2026-10-30: a project from data('gallery'), on ACSS's card (data-card: its ground, line and corners). Card: the cover at 16:10 (optional: without it the card is a row of text, as on Home), the title (H3, or H2 where no section heading comes before), a meta line and the photos icon. Featured: the cover at 4:3 beside the story: the title with the photos icon, the work, area and photo count (lines between the rows only), and the next four photos; stacked from --mac-l down. The project's photos open in MAC Lightbox 1, a set per card (data-mac-lightbox-group): the title's link covers the card (its ::after) and opens the first, the featured card's thumbnails their own, and the others wait in __set. Since 2026-10-31 the photos icon (the library's image-gallery) replaces the arrow, which read as a link to a project page, and the photos have half the site's corners. */
--card-padding: 0.75em;
--card-gap: var(--grid-gap);
--card-heading-size: var(--h4);
--card-media-aspect-ratio: 16 / 10;
--card-media-radius: calc(var(--radius) / 2);

.mac-project-card-alpha__media,
.mac-project-card-alpha__thumb {
  border: var(--card-border-width) var(--card-border-style) var(--card-border-color);
}

.mac-project-card-alpha__caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5em;
}

.mac-project-card-alpha__text {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.mac-project-card-alpha__open {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-duration) var(--transition-timing);

  &::after {
    content: "";
    position: absolute;
    inset: 0;
  }
}

/* The project's other photos, as links Lightbox 1 counts in the card's set. It skips the links a page doesn't show,
   so they're clipped to nothing rather than hidden; inert keeps them out of the focus order and screen readers. */
.mac-project-card-alpha__set {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.mac-project-card-alpha__meta,
.mac-project-card-alpha__label {
  color: var(--text-dark-muted);
}

/* The library's glyph fills its box, so ACSS's s size (data-icon-size) shows it as large as the old arrow's box. */
.mac-project-card-alpha__icon {
  --icon-color: var(--link-color, var(--base));
  flex-shrink: 0;
}

/* Hovering the card, which hovers the title's link (its ::after covers the card), or focusing that link grows the
   icon to 1.2 times and turns the title to the links' hover color (MAC-2318), animated by --transition (ACSS's on
   the icon), which ACSS's reduced-motion rule makes instant. The featured card's thumbnails have links of their own
   above it, so hovering one doesn't. */
.mac-project-card-alpha__open:is(:hover, :focus-visible) {
  color: var(--link-color-hover);
}

&:has(.mac-project-card-alpha__open:is(:hover, :focus-visible)) .mac-project-card-alpha__icon {
  scale: 1.2;
}

&[data-variant="featured"] {
  --card-display: grid;
  --card-padding: var(--grid-gap);
  --card-gap: var(--divider-gap);
  --card-heading-size: var(--text-xxl);
  --card-media-aspect-ratio: 4 / 3;
  grid-template-columns: var(--grid-3-2);
  padding-inline-end: var(--divider-gap);
}

/* Paper's xxl style: the weight of the H1 and H2. */
&[data-variant="featured"] .mac-project-card-alpha__title {
  font-weight: var(--heading-font-weight);
}

.mac-project-card-alpha__story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--divider-gap);
  padding-block: var(--grid-gap);
}

.mac-project-card-alpha__summary {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

.mac-project-card-alpha__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--grid-gap);
}

.mac-project-card-alpha__details {
  display: flex;
  flex-direction: column;
  gap: 0.875em;
}

.mac-project-card-alpha__detail {
  display: flex;
  justify-content: space-between;
  gap: var(--grid-gap);
}

.mac-project-card-alpha__detail + .mac-project-card-alpha__detail {
  padding-block-start: 0.875em;
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

.mac-project-card-alpha__value {
  font-weight: 600;
  color: var(--heading-color);
  text-align: end;
}

.mac-project-card-alpha__thumbs {
  display: grid;
  grid-template-columns: var(--grid-4);
  gap: 0.625em;
}

/* Each thumbnail opens its own photo, above the title's link. */
.mac-project-card-alpha__thumb-link {
  position: relative;
  z-index: 1;
  border-radius: var(--card-media-radius);
}

.mac-project-card-alpha__thumb {
  display: block;
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--card-media-radius);
}

@media (width <= 62rem) {
  &[data-variant="featured"] {
    grid-template-columns: var(--grid-1);
    padding-inline-end: var(--card-padding);
  }

  .mac-project-card-alpha__story {
    padding-block: 0;
  }
}

}
.mac-gallery-section-alpha {
  /* MAC Gallery Section Alpha, 2026-10-30: projects from data('gallery', filter, limit) (filter: a service, area, region or group slug, or empty for all; limit empty shows them all) as MAC Project Card Alpha with their cover, three a row (auto-fit: two projects share the row, fewer columns on narrow screens). The header (MAC Intro Alpha, Stack) is optional: without it the cards' titles are H2s (Galerie). Filters adds MAC Filter Alpha's chips per service group (data-group). MAC Lightbox 1 at the end shows the projects' photos. The section is left out when the filter finds none. */
.mac-gallery-section-alpha__inner {
  gap: var(--container-gap);
}

.mac-gallery-section-alpha__list {
  display: grid;
  grid-template-columns: var(--grid-auto-3);
  gap: var(--grid-gap);
}

}
.mac-service-card-alpha {
  /* MAC Service Card Alpha, 2026-10-30: a service on ACSS's card: its 4:3 photo with its white line, then, inset a little, its name (a link that covers the card) with an arrow, its lede (muted) and its price; the name at --h3 when the card is wider than 30rem, --h4 below. Row (Home): a 16:10 thumbnail beside the name and the price in muted text, larger when the row is wider than 30rem; since 2026-10-31 at half the card's padding, its small thumbnail at half the site's corners, set on the image itself: ACSS's image rule (its utilities layer) outranks the card's --card-media-radius. */
--card-padding: 0.75em;
--card-heading-size: var(--h4);
--card-media-aspect-ratio: 4 / 3;
container-type: inline-size;

.mac-service-card-alpha__media {
  border: var(--card-border-width) var(--card-border-style) var(--card-border-color);
}

.mac-service-card-alpha__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75em;
  padding: 0 0.75em 0.75em;
}

.mac-service-card-alpha__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--grid-gap);
}

.mac-service-card-alpha__link {
  color: inherit;
  text-decoration: none;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
  }
}

/* Space after the arrow, Mihai's picks: Inter's half character at the arrow's 22px (MAC-2334), set in em since
   Chrome computes a ch before the web font has loaded and keeps it (MAC-2340). The title's link covers the card,
   so hovering the card, or focusing its link, moves the arrow as Icon Link Alpha's does (MAC-2335): 1.2 times its
   size, turned to point right and a quarter character forward, through ACSS's icon transition, which its
   reduced-motion rule makes instant. */
.mac-service-card-alpha__arrow {
  --icon-size: 1.375rem;
  --icon-color: var(--link-color, var(--base));
  flex-shrink: 0;
  margin-inline-end: 0.315em;
}

&:is(:hover, :has(:focus-visible)) .mac-service-card-alpha__arrow {
  scale: 1.2;
  transform: translateX(0.25ch) rotate(45deg);
}

.mac-service-card-alpha__text {
  flex-grow: 1;
  color: var(--text-dark-muted);
}

.mac-service-card-alpha__price {
  font-size: var(--text-m);
  font-weight: 600;
  color: var(--text-dark);
}

&[data-layout="row"] {
  --card-padding: 0.375em;
  --card-media-radius: calc(var(--radius) / 2);
  --card-flex-direction: row;
  --card-gap: 1.25em;
  --card-media-aspect-ratio: 16 / 10;
  align-items: center;
}

&[data-layout="row"] .mac-service-card-alpha__media {
  flex-shrink: 0;
  inline-size: 7rem;
  border-radius: var(--card-media-radius);
}

&[data-layout="row"] .mac-service-card-alpha__body {
  gap: 0.25em;
  padding: 0;
}

&[data-layout="row"] .mac-service-card-alpha__price {
  font-size: inherit;
  font-weight: 400;
  color: var(--text-dark-muted);
}

@container (min-width: 30rem) {
  .mac-service-card-alpha__body {
    --card-heading-size: var(--h3);
  }

  &[data-layout="row"] .mac-service-card-alpha__media {
    inline-size: 10.5rem;
  }

  &[data-layout="row"] .mac-service-card-alpha__body {
    gap: 0.5em;
  }
}

}
.mac-services-section-alpha {
  /* MAC Services Section Alpha, 2026-10-30: services: the header (MAC Intro Alpha, Split), then the services from data('services', filter) (filter: a group slug, termice or sanitare, or empty for all) as MAC Service Card Alpha: cards with the lede and the price (Servicii, a group page) or rows with the price from (Home). Three a row on six tracks; a count that leaves two over puts the first two side by side (5 as 2 + 3), one over the first four (4 as 2 + 2); two a row from --mac-l down, one from --mac-s. */
.mac-services-section-alpha__list {
  display: grid;
  grid-template-columns: var(--grid-6);
  gap: var(--grid-gap);
}

.mac-services-section-alpha__item {
  display: grid;
  grid-column: span var(--mac-services-section-alpha-span, 2);
}

.mac-services-section-alpha__list:has(> :last-child:nth-child(3n + 2)) > :nth-child(-n + 2),
.mac-services-section-alpha__list:has(> :last-child:nth-child(3n + 1)) > :nth-child(-n + 4) {
  --mac-services-section-alpha-span: 3;
}

@media (width <= 62rem) {
  .mac-services-section-alpha__list {
    grid-template-columns: var(--grid-2);
  }

  .mac-services-section-alpha__item {
    grid-column: auto;
  }
}

@media (width <= 30rem) {
  .mac-services-section-alpha__list {
    grid-template-columns: var(--grid-1);
  }
}

}
.mac-note-section-alpha {
  /* MAC Note Section Alpha, 2026-10-30: a short note band, such as Proces' "După montaj": the icon in a white disc (ACSS's boxed icon, 56px) beside the H2, and the text under them at --text-l, muted; a lower band (--section-space-s). */
--section-padding-block: var(--section-space-s);

.mac-note-section-alpha__head {
  display: flex;
  align-items: center;
  gap: var(--grid-gap);
}

/* The disc is on a wrapper around the plain glyph (MAC-2315), since Safari clips an svg's drawing to its own rounded
   box. It keeps the boxed svg's look, 1rem around the 24px glyph and ACSS's icon line, so 58px across. */
.mac-note-section-alpha__icon {
  --icon-color: var(--heading-color);
  display: flex;
  flex-shrink: 0;
  padding: 1rem;
  border: var(--icon-border-width) var(--icon-border-style) var(--icon-border-color);
  border-radius: var(--radius-circle);
  background: var(--white);
}

.mac-note-section-alpha__text {
  max-inline-size: var(--width-50);
  font-size: var(--text-l);
  color: var(--text-dark-muted);
}

}
.mac-price-table-section-alpha {
  /* MAC Price Table Section Alpha, 2026-10-30: every service's labour price, a table per service group from data('service-categories') that has services, each group's H2 over its table on ACSS's card (the ground opposite the section's, its line and corners). Columns: Serviciu (the service's name in the heading font at --h5 in the heading color, a link to its page with the arrow in the link color), Ce include (its package) and Preț (in the heading font at --h4, at the end); the head row at --text-xs and 600, a faint line above each service. The two groups' columns line up. Then the note after an info glyph. From --mac-s down each service is a card of its own (2026-11-11). */
.mac-price-table-section-alpha__inner {
  gap: var(--content-gap);
}

.mac-price-table-section-alpha__groups {
  display: flex;
  flex-direction: column;
  gap: var(--container-gap);
}

.mac-price-table-section-alpha__group {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

.mac-price-table-section-alpha__table {
  inline-size: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* rem, not em: the price cell's --h4 would make em padding 27px and the rows taller than Paper's 20px. */
.mac-price-table-section-alpha__table :is(th, td) {
  padding-block: 1.25rem;
  text-align: start;
}

.mac-price-table-section-alpha__table :is(th, td) + :is(th, td) {
  padding-inline-start: var(--content-gap);
}

.mac-price-table-section-alpha__table .mac-price-table-section-alpha__col {
  padding-block: 0 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
}

.mac-price-table-section-alpha__col:first-child {
  inline-size: 32%;
}

.mac-price-table-section-alpha__col:last-child {
  inline-size: 18%;
}

.mac-price-table-section-alpha__table :is(th, td):last-child {
  text-align: end;
}

.mac-price-table-section-alpha__row {
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

.mac-price-table-section-alpha__row:last-child > * {
  padding-block-end: 0;
}

.mac-price-table-section-alpha__link {
  --mac-icon-link-alpha-text-size: var(--h5);
  --mac-icon-link-alpha-font-weight: var(--heading-font-weight);
  --mac-icon-link-alpha-icon-color: var(--link-color);
  font-family: var(--heading-font-family);
  line-height: var(--heading-line-height);
  color: var(--heading-color);
}

.mac-price-table-section-alpha__price {
  font-family: var(--heading-font-family);
  font-size: var(--h4);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
  color: var(--heading-color);
}

/* The note is set compact, at the heading line height, with its glyph centered on its first line (MAC-2325): the
   glyph's box is 1.2em wide and as tall as that line, both calc(4px + 2ex) in the note's font. */
.mac-price-table-section-alpha__note {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  font-size: var(--text-s);
  line-height: var(--heading-line-height);
  color: var(--text-dark-muted);
}

.mac-price-table-section-alpha__note-icon {
  /* ACSS icon (data-icon): --icon-size is its font-size, so 1em keeps the note's. */
  --icon-size: 1em;
  --icon-width: 1.2em;
  --icon-height: var(--heading-line-height);
  --icon-color: currentColor;
}

/* Below 480px each service is a card of its own (MAC-2326): its link, then what's included, then the price. The
   table's parts stack as blocks, its column headers stay for screen readers only, and the group's card hands its
   ground, line, corners and padding to each row. The roles on the table's elements keep its meaning for screen
   readers, which Safari drops once a table's parts change display. */
@media (width <= 30rem) {
  .mac-price-table-section-alpha__card {
    --card-overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .mac-price-table-section-alpha__table,
  .mac-price-table-section-alpha__table :is(th, td) {
    display: block;
  }

  .mac-price-table-section-alpha__head {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mac-price-table-section-alpha__body {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
  }

  .mac-price-table-section-alpha__row {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: var(--card-padding);
    border: var(--card-border-width) var(--card-border-style) var(--card-border-color);
    border-radius: var(--card-radius);
    background: var(--card-background);
  }

  .mac-price-table-section-alpha__table :is(th, td),
  .mac-price-table-section-alpha__table :is(th, td) + :is(th, td),
  .mac-price-table-section-alpha__table :is(th, td):last-child {
    padding: 0;
    text-align: start;
  }
}

}
.mac-link-tile-alpha {
  /* MAC Link Tile Alpha, 2026-10-30: a page's link on ACSS's card (its ground, line and corners): the title at --h4, a link that covers the card, with the arrow at the top corner in the link's color, and an optional line of text (--text-s, muted), such as Echipa's links to other pages. */
--card-gap: 0.5em;
--card-heading-size: var(--h4);

.mac-link-tile-alpha__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--grid-gap);
}

.mac-link-tile-alpha__link {
  color: inherit;
  text-decoration: none;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
  }
}

/* The title's link covers the tile, so hovering the tile, or focusing its link, moves the arrow as Icon Link
   Alpha's does, like the service and article cards' arrows (MAC-2349): 1.2 times its size, turned to point
   right and a quarter character forward, through ACSS's icon transition, which its reduced-motion rule makes
   instant. */
.mac-link-tile-alpha__arrow {
  --icon-size: 1.25rem;
  --icon-color: var(--link-color);
  flex-shrink: 0;
}

&:is(:hover, :has(:focus-visible)) .mac-link-tile-alpha__arrow {
  scale: 1.2;
  transform: translateX(0.25ch) rotate(45deg);
}

.mac-link-tile-alpha__text {
  font-size: var(--text-s);
  color: var(--text-dark-muted);
}

}
.mac-areas-section-alpha {
  /* MAC Areas Section Alpha, 2026-10-30: the regions from data('regions', filter) (drafts left out) as MAC Link Card Alpha: each its photo with its name and a line, its places as pills and its note (Region Notes, off on Home), in ACSS's two-up auto grid. The line says how many places it lists ("6 sectoare") without notes (Home) and on a region's page, and where it works ("În toate cele șase sectoare") with them (Zone). When filter names one region (its page) the card is Split, the photo beside the places, with the count and no link to itself. An optional header (MAC Intro Alpha, Split) and a note under them (--text-l, muted), such as the counties it reaches on request. */
.mac-areas-section-alpha__list {
  display: grid;
  grid-template-columns: var(--grid-auto-2);
  align-items: start;
  gap: var(--grid-gap);
}

.mac-areas-section-alpha__note {
  font-size: var(--text-l);
  color: var(--text-dark-muted);
}

}
.mac-page-header-alpha {
  /* MAC Page Header Alpha, 2026-10-30: an article's or a policy's header, the reading hero: the H1 with the category or kind above it (the eyebrow, after the H1 in the HTML) and a row of details (the author, a date with an optional prefix, the reading time) split by middle dots, in a column as wide as the body's reading column. The site header sits above it in the page's flow, on the same ground, as on the hero. Knob: --mac-page-header-alpha-width. */
--section-padding-block: var(--container-gap);

.mac-page-header-alpha__inner {
  gap: var(--content-gap);
  max-inline-size: var(--mac-page-header-alpha-width, var(--width-50));
}

.mac-page-header-alpha__eyebrow {
  order: -1;
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--text-dark-muted);
}

.mac-page-header-alpha__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75em;
  font-size: var(--text-s);
  color: var(--text-dark-muted);
}

.mac-page-header-alpha__meta > * + *::before {
  content: "\00B7";
  content: "\00B7" / "";
  margin-inline-end: 0.75em;
}

.mac-page-header-alpha__author {
  font-weight: 600;
  color: var(--heading-color);
}

}
.mac-offer-card-alpha {
  /* MAC Offer Card Alpha, 2026-10-30: a service's offer under an article, on ACSS's card (the ground opposite the section's, its line, corners and H2 size) with its text at --text-m: the heading, the text, the labour price line at 600 in the heading color, then the large call button (MAC Call Button Alpha) and the arrow link to the service (MAC Icon Link Alpha). */
--card-text-size: var(--text-m);

.mac-offer-card-alpha__price {
  font-weight: 600;
  color: var(--heading-color);
}

.mac-offer-card-alpha__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--content-gap);
}

}
.mac-message-section-alpha {
  /* MAC Message Section Alpha, 2026-10-30: a short page's message, such as the error page's, centered like a hero without an image: the H1 and lede (Intro, Center), a row of arrow links (Icon Links in the links slot) and the call button at Large. */
--section-padding-block: var(--container-gap);
--mac-intro-alpha-lede-size: var(--text-l);

.mac-message-section-alpha__inner {
  align-items: center;
  gap: var(--content-gap);
}

.mac-message-section-alpha__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em var(--content-gap);
}

}
.mac-team-card-alpha {
  /* MAC Team Card Alpha, 2026-10-30: an installer on ACSS's card (data-card: its ground, line and corners), with the photo square inside a narrow frame (as MAC Project Card Alpha's cover), then the name at --h4 and the role, muted at --text-s. */
--card-padding: 0.875em;
--card-heading-size: var(--h4);
--card-text-size: var(--text-s);
--card-media-aspect-ratio: 1 / 1;

/* Square before it loads, so the lazy photo doesn't shift the page. */
.mac-team-card-alpha__photo {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 30%;
}

.mac-team-card-alpha__text {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding: 0 0.5em 0.5em;
}

.mac-team-card-alpha__role {
  color: var(--text-dark-muted);
}

}
.mac-team-section-alpha {
  /* MAC Team Section Alpha, 2026-10-30: the installers from data('team') as MAC Team Card Alpha, three a row (auto-fit: fewer columns on narrow screens), under the header (MAC Intro Alpha, Stack) when there's a heading. */
.mac-team-section-alpha__inner {
  gap: var(--container-gap);
}

.mac-team-section-alpha__list {
  display: grid;
  grid-template-columns: var(--grid-auto-3);
  gap: var(--grid-gap);
}

}
.mac-figures-section-alpha {
  /* MAC Figures Section Alpha, 2026-10-30: a compact band (--section-padding-block at --section-space-s) of figures (MAC Fact Alpha in the items slot), a column each, with a faint line between them as in MAC Grid Alpha's ruled variant; stacked from --mac-m down, the lines then between rows. The header (MAC Intro Alpha, Stack) shows when there's a heading. */
--section-padding-block: var(--section-space-s);

.mac-figures-section-alpha__inner {
  gap: var(--container-gap);
}

.mac-figures-section-alpha__list {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: var(--container-gap);
}

.mac-figures-section-alpha__list > * + * {
  padding-inline-start: var(--content-gap);
  border-inline-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

@media (width <= 48rem) {
  .mac-figures-section-alpha__list {
    grid-auto-flow: row;
    gap: var(--divider-gap);
  }

  .mac-figures-section-alpha__list > * + * {
    padding-inline-start: 0;
    padding-block-start: var(--divider-gap);
    border-inline-start: 0;
    border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
  }
}

}
.mac-faq-groups-section-alpha {
  /* MAC FAQ Groups Section Alpha, 2026-10-30: every service's own questions (data('faqs', slug)), a group per service in service_order: a row with its name as the H2 and the arrow link to its page on the H2's baseline, then its questions, since 2026-10-31 the hub's accordion (MAC FAQ Accordion 1 with MAC FAQ Item 1, one open at a time in each group). MAC Filter Alpha's chips above show one service's group (data-group) or all. */
.mac-faq-groups-section-alpha__inner,
.mac-faq-groups-section-alpha__groups {
  gap: var(--container-gap);
}

.mac-faq-groups-section-alpha__groups,
.mac-faq-groups-section-alpha__group {
  display: flex;
  flex-direction: column;
}

.mac-faq-groups-section-alpha__group {
  gap: var(--content-gap);
}

.mac-faq-groups-section-alpha__group[hidden] {
  display: none;
}

.mac-faq-groups-section-alpha__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--content-gap) var(--container-gap);
}

}
.mac-detail-item-alpha {
  /* MAC Detail Item Alpha, 2026-10-30: one detail on ACSS's card (data-card: its ground, line and corners): the glyph at the icon scale's s in the link color, the title at --h4 (H3, or H2 where no section heading comes before), then its lines (text slot), muted at --text-s, or the arrow link (MAC Icon Link Alpha) at --text-s. */
--card-gap: var(--grid-gap);
--card-heading-size: var(--h4);
--card-icon-size: var(--icon-size-s);
--card-icon-color: var(--link-color);
/* The glyph shares the title's row, centered on its first line, and the text or the link runs under both at the
   card's width (MAC-2327). */
--card-display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: start;
column-gap: 0.75em;

& > :not(.mac-detail-item-alpha__icon, .mac-detail-item-alpha__title) {
  grid-column: 1 / -1;
}

/* The glyph takes the title's font, so --heading-line-height (calc(4px + 2ex)) is the title's line here too, and its
   block margins center it on that first line, which is shorter than the 24px glyph at 320px and taller from 768px. */
.mac-detail-item-alpha__icon {
  font-family: var(--heading-font-family);
  font-size: var(--card-heading-size);
  font-weight: var(--heading-font-weight);
  margin-block: calc((var(--heading-line-height) - var(--icon-size)) / 2);
}

.mac-detail-item-alpha__text {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  font-size: var(--text-s);
  color: var(--text-dark-muted);
}

.mac-detail-item-alpha__link {
  --mac-icon-link-alpha-text-size: var(--text-s);
}

}
.mac-details-section-alpha {
  /* MAC Details Section Alpha, 2026-10-30: details as MAC Detail Item Alpha cards (items slot), four a row (auto-fit: fewer columns on narrow screens), three when there are five (2026-11-01), so the fifth isn't alone on its row, under the header (MAC Intro Alpha, Stack) when there's a heading. */
.mac-details-section-alpha__inner {
  gap: var(--container-gap);
}

.mac-details-section-alpha__list {
  display: grid;
  grid-template-columns: var(--grid-auto-4);
  gap: var(--grid-gap);
}

.mac-details-section-alpha__list:has(> :nth-child(5):last-child) {
  grid-template-columns: var(--grid-auto-3);
}

}
.mac-call-card-alpha {
  /* MAC Call Card Alpha, 2026-10-30: a card that asks for a call, on ACSS's card (the ground opposite the section's, its line and corners): an optional top slot, such as the review beside a service's text (MAC Review Card Alpha, Plain), then, under a faint line, the heading (--h6 in the heading font) over the site's phone number from data('site') at --text-xxl in the heading font, both in the heading color. */
--card-link-color: var(--heading-color);
--card-link-color-hover: var(--heading-color);

.mac-call-card-alpha__call {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.mac-call-card-alpha__top + .mac-call-card-alpha__call {
  padding-block-start: var(--card-gap);
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

.mac-call-card-alpha__heading,
.mac-call-card-alpha__phone {
  font-family: var(--heading-font-family);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
}

.mac-call-card-alpha__heading {
  font-size: var(--h6);
  color: var(--heading-color);
}

.mac-call-card-alpha__phone {
  font-size: var(--text-xxl);
}

}
.mac-filter-alpha {
  /* MAC Filter Alpha, 2026-10-30: chips that show one group of the section's items (data-group) or all, as pills with the cards' ground and line (the ground opposite the section's) and the label at --text-s and 600 in the heading color; the pressed chip in the heading color, its label white. The chips wrap. */
display: flex;
flex-wrap: wrap;
gap: 0.5em;

.mac-filter-alpha__chip {
  padding: 0.625em 1.125em;
  border: var(--card-border-width) var(--card-border-style) var(--card-border-color);
  border-radius: var(--btn-radius);
  background: var(--card-background);
  color: var(--heading-color);
  font-size: var(--text-s);
  font-weight: 600;
  line-height: 1.25;
}

.mac-filter-alpha__chip:hover {
  border-color: var(--heading-color);
}

.mac-filter-alpha__chip[aria-pressed="true"] {
  border-color: var(--heading-color);
  background: var(--heading-color);
  color: var(--white);
}

}
.mac-lightbox-1 {
  /* MAC Lightbox 1, aquatechinstal's copy of the hub's (mac-hub components/lightbox-1, MAC-1952), 2026-10-31: a full-screen photo viewer for the page's links with data-mac-lightbox (MAC Project Card Alpha's photos), one per page, in the sections with project cards. A native modal dialog: the browser keeps the focus inside, makes the page inert and closes it on Escape. It covers the screen and carries the backdrop itself, so one fade covers both; a grid of the bar, the figure between the arrows and the thumbnails, whose middle column shrinks. Three changes from the hub's: Close is a button like the arrows (the hub's is MAC Close 1), the spacing takes ACSS's contextual tokens instead of --space-s and --space-xs, and since 2026-10-31 the thumbnails, Close and the arrows have half the site's corners, as the cards' small photos, instead of the buttons' pill.
   Knobs: --mac-lightbox-1-backdrop (the darkest neutral at 94%), --mac-lightbox-1-backdrop-filter (none), --mac-lightbox-1-color (white), --mac-lightbox-1-control-background-hover (the color at 12%), --mac-lightbox-1-duration (--transition-duration), --mac-lightbox-1-focus-color (--focus-color), --mac-lightbox-1-thumbnail-current-color (--primary) and --mac-lightbox-1-thumbnail-size (3.5rem). */
--_color: var(--mac-lightbox-1-color, var(--white));
--_hover: var(--mac-lightbox-1-control-background-hover, color-mix(in oklch, var(--_color) 12%, transparent));
--_focus-color: var(--mac-lightbox-1-focus-color, var(--focus-color));
--_duration: var(--mac-lightbox-1-duration, var(--transition-duration));
--_thumbnail-size: var(--mac-lightbox-1-thumbnail-size, 3.5rem);
--_edge: calc(var(--gutter) / 2);
--_padding: calc(var(--icon-size-xs) / 2);
--_radius: calc(var(--radius) / 2);

position: fixed;
inset: 0;
inline-size: 100vw;
block-size: 100dvh;
max-inline-size: none;
max-block-size: none;
margin: 0;
padding: 0 var(--_edge) var(--content-gap);
border: 0;
grid-template-columns: auto minmax(0, 1fr) auto;
grid-template-rows: auto minmax(0, 1fr) auto auto;
column-gap: var(--content-gap);
background: var(--mac-lightbox-1-backdrop, color-mix(in oklch, var(--neutral-ultra-dark) 94%, transparent));
-webkit-backdrop-filter: var(--mac-lightbox-1-backdrop-filter, none);
backdrop-filter: var(--mac-lightbox-1-backdrop-filter, none);
color: var(--_color);
overflow: hidden;
overscroll-behavior: contain;
touch-action: pan-y pinch-zoom;
/* A quick double or triple click on an arrow selected the photo and the counter (MAC-2146, 2026-10-31) */
-webkit-user-select: none;
user-select: none;
opacity: 0;

&[open] {
  display: grid;
  opacity: 1;
  transition: opacity var(--_duration) var(--transition-timing);
}

@starting-style {
  &[open] {
    opacity: 0;
  }
}

/* A closing dialog fades only where it can stay in the top layer meanwhile; elsewhere it closes at once, since it
   would show at its place in the page while it fades. */
@supports (overlay: auto) {
  transition:
    opacity var(--_duration) var(--transition-timing),
    display var(--_duration) allow-discrete,
    overlay var(--_duration) allow-discrete;
}

@media (prefers-reduced-motion: reduce) {
  &,
  &[open] {
    transition: none;
  }
}

&::backdrop {
  background: transparent;
}

/* While the page is zoomed in, a finger moves around the photo instead of changing it. */
&[data-zoomed] {
  touch-action: auto;
}

html:has(&[open]) {
  overflow: hidden;
}

.mac-lightbox-1__bar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  padding-block: calc(var(--content-gap) / 2);
}

/* The buttons' padding at its sides, so its text lines up with their icons. */
.mac-lightbox-1__count {
  margin: 0;
  max-inline-size: none;
  padding-inline: var(--_padding);
  font-size: var(--text-s);
  line-height: 1;
}

/* Close and the arrows: an icon in a little padding, with the thumbnails' corners and a soft background on hover (the
   hub's MAC Close 1). */
.mac-lightbox-1__close,
.mac-lightbox-1__nav {
  display: inline-flex;
  margin: 0;
  padding: var(--_padding);
  border: 0;
  border-radius: var(--_radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color var(--transition-duration) var(--transition-timing);
}

.mac-lightbox-1__close:hover,
.mac-lightbox-1__nav:hover {
  background: var(--_hover);
}

.mac-lightbox-1__close:focus-visible,
.mac-lightbox-1__nav:focus-visible {
  outline: var(--focus-width) solid var(--_focus-color);
  outline-offset: var(--focus-offset);
}

.mac-lightbox-1__close svg,
.mac-lightbox-1__nav svg {
  --icon-color: currentColor;
  --icon-color-hover: currentColor;
}

.mac-lightbox-1__close {
  margin-inline-start: auto;
}

/* The figure takes two rows of the grid as its own, the photo's and the caption's. The photo keeps its own shape,
   never past its natural size, so a click beside it falls on the backdrop. */
.mac-lightbox-1__figure {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: grid;
  grid-template-rows: subgrid;
  min-inline-size: 0;
  min-block-size: 0;
  margin: 0;
}

.mac-lightbox-1__image {
  place-self: center;
  inline-size: auto;
  block-size: auto;
  max-inline-size: 100%;
  max-block-size: 100%;
}

.mac-lightbox-1__caption {
  justify-self: center;
  max-inline-size: 60ch;
  margin-block-start: var(--figcaption-spacing);
  font-size: var(--text-s);
  text-align: center;
  text-wrap: pretty;
}

/* The arrows span every row, so they keep the screen's middle: a caption or the thumbnails never move them. */
.mac-lightbox-1__nav {
  grid-row: 1 / -1;
  align-self: center;

  &[data-direction="previous"] {
    grid-column: 1;
  }

  &[data-direction="next"] {
    grid-column: 3;
  }
}

/* The row keeps room on every side for the focus ring, and scrolls sideways when it's wider than the screen. */
.mac-lightbox-1__thumbnails {
  grid-column: 2;
  grid-row: 4;
  justify-self: center;
  display: flex;
  gap: calc(var(--_thumbnail-size) / 8);
  position: relative;
  max-inline-size: 100%;
  margin-block-start: var(--content-gap);
  padding: calc(var(--focus-width) + var(--focus-offset));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklch, var(--_color) 40%, transparent) transparent;
}

/* The current one's ring is an outline inside its image's edge, so the row's scrolling doesn't clip it and the focus
   ring, on the button, doesn't replace it. */
.mac-lightbox-1__thumbnail {
  flex-shrink: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--_radius);
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-duration) var(--transition-timing);

  &:hover {
    opacity: 0.8;
  }

  &[aria-current="true"] {
    opacity: 1;
  }

  &:focus-visible {
    outline: var(--focus-width) solid var(--_focus-color);
    outline-offset: var(--focus-offset);
  }

  img {
    display: block;
    inline-size: var(--_thumbnail-size);
    block-size: var(--_thumbnail-size);
    max-inline-size: none;
    object-fit: cover;
    border-radius: var(--_radius);
  }

  &[aria-current="true"] img {
    outline: var(--btn-border-width) solid var(--mac-lightbox-1-thumbnail-current-color, var(--primary));
    outline-offset: calc(var(--btn-border-width) * -1);
  }
}

/* Phones: the photo nearly reaches the edges, and the arrows leave its sides for a row under the caption, around the
   thumbnails when they're on, since a transparent arrow over a bright photo would vanish. */
@media (width <= 48rem) {
  column-gap: calc(var(--_thumbnail-size) / 8);

  .mac-lightbox-1__figure {
    grid-column: 1 / -1;
  }

  .mac-lightbox-1__nav {
    grid-row: 4;
    margin-block-start: var(--content-gap);
  }
}

[hidden] {
  display: none !important;
}

}
.mac-faq-accordion-1 {
  /* MAC FAQ Accordion 1, aquatechinstal's copy of the hub's (mac-hub components/faq-accordion-1), 2026-10-31: MAC FAQ Item 1 in its Items slot, a dl, as an accordion; the hub's script opens one at a time, animates the answer's height and moves the focus with the arrows. Paper's look instead of the hub's cards: the questions touch, with a faint line between them (MAC FAQ Item 1), so the list has no gap. */
.mac-faq-accordion-1__list {
  display: flex;
  flex-direction: column;
  margin: 0;
}

}
.mac-faq-item-1 {
  /* MAC FAQ Item 1, aquatechinstal's copy of the hub's (mac-hub components/faq-item-1), 2026-10-31: one question in MAC FAQ Accordion 1, a dt with the button that opens its answer and a dd with the answer (the Answer slot, or answerHtml sanitized). Paper's look instead of the hub's cards: the question at --h5 in the headings' font, a plus in the link color at the end of its row (a minus when it's open), the answer in ACSS's smart spacing up to --width-60, and a faint line between questions, no space above the first or under the last. The button spans its row from line to line, so the whole header opens and closes it; open, the space under the question shrinks to 0.75em, the gap before the answer. Two changes from the hub's markup: no Icon prop (the plus and the minus are MAC Icon Alpha) and no data-card. */
& + & {
  border-block-start: var(--divider-size) var(--divider-style) var(--divider-color-dark);
}

.mac-faq-item-1__question,
.mac-faq-item-1__answer {
  margin: 0;
}

.mac-faq-item-1__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--content-gap);
  inline-size: 100%;
  margin: 0;
  padding: var(--content-gap) 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: padding-block-end var(--transition-duration) ease;
}

.mac-faq-item-1__trigger[aria-expanded="true"] {
  padding-block-end: 0.75em;
}

&:first-child .mac-faq-item-1__trigger {
  padding-block-start: 0;
}

&:last-child .mac-faq-item-1__trigger[aria-expanded="false"] {
  padding-block-end: 0;
}

.mac-faq-item-1__trigger:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

.mac-faq-item-1__question-text {
  font-family: var(--heading-font-family);
  font-size: var(--h5);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
  color: var(--heading-color);
}

.mac-faq-item-1__plus {
  /* ACSS icon (data-icon): --icon-size is its font-size, so width and height are 1em of that. */
  --icon-size: 1.5rem;
  --icon-width: 1em;
  --icon-height: 1em;
  --icon-color: var(--link-color);
  flex-shrink: 0;
}

/* Opening the question turns the plus's vertical stroke onto the horizontal one, which leaves a minus, and closing it
   turns it back (MAC-2324): MAC Icon Alpha's plus draws its two strokes as separate paths for this. */
.mac-faq-item-1__plus [data-stroke="vertical"] {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--transition-duration) var(--transition-timing);
}

.mac-faq-item-1__trigger[aria-expanded="true"] .mac-faq-item-1__plus [data-stroke="vertical"] {
  transform: rotate(90deg);
}

/* The script hides a closed answer; display here would show it. */
.mac-faq-item-1__answer[hidden] {
  display: none !important;
}

.mac-faq-item-1__answer-inner {
  max-inline-size: var(--width-60);
  padding-block-end: var(--content-gap);
}

&:last-child .mac-faq-item-1__answer-inner {
  padding-block-end: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mac-faq-item-1__trigger,
  .mac-faq-item-1__plus [data-stroke="vertical"] {
    transition: none;
  }
}

}
.mac-toc-1 {
  /* MAC TOC 1, aquatechinstal's copy of the hub's (mac-hub components/toc-1), 2026-10-31, on the blog's articles and
   the legal pages: a rail of lines at the window's right edge that opens the outline, a pill at the bottom below 768px.
   Changes from the hub's: the site's tokens (the inset is the content gap, the panel's padding half of it, the corners
   --radius, the lines and links in the muted text color, the current one in the heading color, the hover the warm
   ground, the border the divider color, the pill's text semibold) and Romanian labels. */
/* Public tokens: --mac-toc-1-*. Set them on .mac-toc-1 to override. Internal ones use --_*. */
  --mac-toc-1-inset: var(--content-gap);
  --mac-toc-1-z-index: 50;
  --mac-toc-1-duration: 160ms;
  --mac-toc-1-easing: cubic-bezier(0.2, 0, 0, 1);
  --mac-toc-1-reveal-duration: 400ms;

  /* Shared spacing so rail, marker, titles, rows and pill line up */
  --mac-toc-1-rail-padding: 0.5rem;
  --mac-toc-1-row-padding-inline: 0.5rem;
  --mac-toc-1-header-gap: 0.25rem;
  /* Pill sizing is unset on purpose. The pill, ring and chevron fall back to
     em values that scale with --mac-toc-1-pill-font-size. Optional overrides:
     --mac-toc-1-pill-font-size, --mac-toc-1-pill-padding-block, --mac-toc-1-pill-padding-inline,
     --mac-toc-1-pill-gap, --mac-toc-1-ring-size, --mac-toc-1-pill-icon-size */
  /* Unitless, in the ring's 20-unit viewBox, so it scales with the ring. Up to 4 before it clips. */
  --mac-toc-1-ring-stroke: 2.5;
  --mac-toc-1-ring-color: var(--mac-toc-1-marker-color);
  --mac-toc-1-ring-track-color: var(--mac-toc-1-panel-border);

  /* Rows and the active row */
  --mac-toc-1-link-padding-block: 0.3125rem;
  --mac-toc-1-nested-link-padding-block: var(--mac-toc-1-link-padding-block);
  --mac-toc-1-active-color: var(--mac-toc-1-link-active-color);
  --mac-toc-1-active-bg: transparent;
  --mac-toc-1-active-radius: var(--mac-toc-1-link-radius);

  --mac-toc-1-line-color: color-mix(in oklch, var(--text-dark-muted) 40%, transparent);
  --mac-toc-1-line-active-color: var(--heading-color);
  --mac-toc-1-line-width: 16px;
  --mac-toc-1-line-step: 5px;
  --mac-toc-1-line-thickness: 2px;
  --mac-toc-1-line-gap: 8px;
  --mac-toc-1-marker-color: var(--text-dark-muted);
  --mac-toc-1-marker-width: calc(var(--mac-toc-1-line-width) + 6px);

  --mac-toc-1-panel-width: 16rem;
  --mac-toc-1-panel-gap: 0.5rem;
  --mac-toc-1-panel-padding: calc(var(--content-gap) / 2);
  --mac-toc-1-panel-bg: var(--white, #fff);
  --mac-toc-1-panel-border: var(--divider-color-dark);
  --mac-toc-1-panel-radius: var(--radius);
  --mac-toc-1-panel-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
  --mac-toc-1-scrim: rgb(0 0 0 / 0.2);

  --mac-toc-1-font-size: var(--text-s, 0.8125rem);
  --mac-toc-1-indent: 0.75rem;
  --mac-toc-1-link-color: var(--text-dark-muted);
  --mac-toc-1-link-active-color: var(--heading-color);
  --mac-toc-1-link-hover-bg: var(--bg-ultra-light);
  /* Sliding highlight behind the current (or hovered) row. Matches the hover look by default. */
  --mac-toc-1-indicator-bg: var(--mac-toc-1-link-hover-bg);
  --mac-toc-1-indicator-radius: var(--mac-toc-1-link-radius);
  --mac-toc-1-indicator-duration: 240ms;
  /* Concentric with the panel corner, never tighter than a quarter of --radius */
  --mac-toc-1-link-radius: max(calc(var(--radius) / 4), calc(var(--mac-toc-1-panel-radius) - var(--mac-toc-1-panel-padding)));

  position: fixed;
  z-index: var(--mac-toc-1-z-index);
  top: 50%;
  right: var(--mac-toc-1-inset);
  translate: 0 -50%;
  font-size: var(--mac-toc-1-font-size);

  /* ## Parts, moved here from their own classes on 2026-10-01, so all of the CSS is on the main class. */

  .mac-toc-1__rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--mac-toc-1-line-gap);
    max-block-size: calc(100dvh - 2 * var(--mac-toc-1-inset));
    overflow: hidden;
    margin: 0;
    padding: var(--mac-toc-1-rail-padding);
    border: 0;
    border-radius: var(--mac-toc-1-link-radius);
    background: none;
    color: var(--mac-toc-1-line-active-color);
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* Hidden until the content is in view, then fades and unblurs in */
    transition-property: opacity, filter;
    transition-duration: var(--mac-toc-1-reveal-duration);
    transition-timing-function: var(--mac-toc-1-easing);

    &:where(:focus-visible) {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    }

    :where(.mac-toc-1:not([data-in-view])) & {
    opacity: 0;
    filter: blur(6px);
    }

    @media (prefers-reduced-motion: reduce) {
    :where(.mac-toc-1:not([data-in-view])) & {
      filter: none;
    }
    }

    :where(.mac-toc-1[data-mode='mobile']) & {
    display: none;
    }
  }

  .mac-toc-1__marker {
    position: absolute;
    top: 0;
    right: var(--mac-toc-1-rail-padding);
    inline-size: var(--mac-toc-1-marker-width);
    block-size: var(--mac-toc-1-line-thickness);
    border-radius: calc(var(--mac-toc-1-line-thickness) / 2);
    background: var(--mac-toc-1-marker-color);
    transform: translateY(calc(var(--y, 0px) - 50%));
    pointer-events: none;
    /* Smooths the jumps a mouse wheel makes between frames */
    transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1);

    @media (prefers-reduced-motion: reduce) {
      transition: none;
    }

    :where(.mac-toc-1[data-marker='false']) & {
      display: none;
    }
  }

  .mac-toc-1__pill {
    display: none;
    z-index: 500;
    /* Hidden until the content is in view, then fades and unblurs in */
    transition-property: opacity, filter;
    transition-duration: var(--mac-toc-1-reveal-duration);
    transition-timing-function: var(--mac-toc-1-easing);

    :where(.mac-toc-1:not([data-in-view])) & {
    opacity: 0;
    filter: blur(6px);
    }

    @media (prefers-reduced-motion: reduce) {
    :where(.mac-toc-1:not([data-in-view])) & {
      filter: none;
    }
    }

    /* Mobile: shares the panel's anchor so one can grow out of the other.
     Wears its surface on a layer of its own so it can hand off to the
     sheet while the ring, label and chevron animate. */
    :where(.mac-toc-1[data-mode='mobile']) & {
    position: fixed;
    top: auto;
    right: auto;
    bottom: calc(var(--mac-toc-1-inset) + env(safe-area-inset-bottom));
    left: 50%;
    translate: -50% 0;
    box-sizing: border-box;
    z-index: 500;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: var(--mac-toc-1-pill-gap, 0.5em);
    margin: 0;
    padding: var(--mac-toc-1-pill-padding-block, 0.75em) var(--mac-toc-1-pill-padding-inline, 0.875em);
    border: 1px solid transparent;
    border-radius: var(--btn-radius);
    background: none;
    color: var(--mac-toc-1-link-active-color);
    font: inherit;
    font-size: var(--mac-toc-1-pill-font-size, var(--text-s, 0.875rem));
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
      scale 160ms cubic-bezier(0.23, 1, 0.32, 1),
      opacity var(--mac-toc-1-reveal-duration) var(--mac-toc-1-easing),
      filter var(--mac-toc-1-reveal-duration) var(--mac-toc-1-easing);

    &::before {
      border: 1px solid var(--_surface-border);
      background: var(--_surface-bg);
      content: '';
      position: absolute;
      inset: -1px;
      z-index: -1;
      box-sizing: border-box;
      border-radius: inherit;
      box-shadow: var(--_surface-edge), var(--mac-toc-1-panel-shadow);
      /* Swaps back in the frame the sheet lands, so the two
         surfaces never show at once */
      transition: opacity 0s var(--_close-duration);
    }

    &:where(:active) {
      scale: 0.97;
    }

    &:where(:focus-visible) {
      outline: 2px solid currentColor;
      outline-offset: 2px;
    }
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
    pointer-events: none;

    /* The sheet, clipped to this exact shape, takes over the
       surface right away. Two stacked surfaces read as two objects. */
    &::before {
      opacity: 0;
      transition: opacity 80ms linear;
    }
    }

    @media (prefers-reduced-motion: reduce) {
    :where(.mac-toc-1[data-mode='mobile']) &:where(:active) {
      scale: none;
    }

    :where(.mac-toc-1[data-mode='mobile']) &::before {
      transition: opacity 160ms linear 200ms;
    }
    }
  }

  .mac-toc-1__ring {
    /* Ring, label and chevron. On open they lift toward the growing sheet,
     blur and fade one after another. On close they settle back in the
     same order as the sheet shrinks onto them. */
    :where(.mac-toc-1[data-mode='mobile']) & {
    --_order: 0;
    --_back: calc(var(--_close-duration) - 200ms + var(--_order) * 25ms);
    transition:
      opacity 200ms var(--_settle) var(--_back),
      translate 260ms var(--_settle) var(--_back),
      scale 260ms var(--_settle) var(--_back),
      rotate 260ms var(--_settle) var(--_back),
      filter 200ms var(--_settle) var(--_back);
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
    --_out: calc(var(--_order) * 45ms);
    opacity: 0;
    translate: 0 -0.75rem;
    scale: 0.85;
    filter: blur(4px);
    transition:
      opacity 260ms var(--_contents-ease) var(--_out),
      translate 320ms var(--_contents-ease) var(--_out),
      scale 320ms var(--_contents-ease) var(--_out),
      rotate 320ms var(--_contents-ease) var(--_out),
      filter 260ms var(--_contents-ease) var(--_out);
    scale: 0.5;
    }

    :where(.mac-toc-1[data-mode='mobile']) & {
    flex-shrink: 0;
    inline-size: var(--mac-toc-1-ring-size, 1.375em);
    block-size: var(--mac-toc-1-ring-size, 1.375em);
    rotate: -90deg;

    :where(&) circle {
      fill: none;
      stroke-width: var(--mac-toc-1-ring-stroke);
    }
    }

    :where(.mac-toc-1[data-mode='mobile'][data-marker='false']) & {
    display: none;
    }

    /* Fade only. No lift, blur, shrink or flip. */
    @media (prefers-reduced-motion: reduce) {
    :where(.mac-toc-1[data-mode='mobile']) &,
    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
      translate: none;
      scale: none;
      filter: none;
      transition: opacity 160ms linear;
    }
    }
  }

  .mac-toc-1__ring-track {
    :where(.mac-toc-1[data-mode='mobile']) & {
    stroke: var(--mac-toc-1-ring-track-color);
    }
  }

  .mac-toc-1__ring-fill {
    :where(.mac-toc-1[data-mode='mobile']) & {
    stroke: var(--mac-toc-1-ring-color);
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--progress, 0));
    }
  }

  .mac-toc-1__pill-label {
    /* Ring, label and chevron. On open they lift toward the growing sheet,
     blur and fade one after another. On close they settle back in the
     same order as the sheet shrinks onto them. */
    :where(.mac-toc-1[data-mode='mobile']) & {
    --_order: 1;
    --_back: calc(var(--_close-duration) - 200ms + var(--_order) * 25ms);
    transition:
      opacity 200ms var(--_settle) var(--_back),
      translate 260ms var(--_settle) var(--_back),
      scale 260ms var(--_settle) var(--_back),
      rotate 260ms var(--_settle) var(--_back),
      filter 200ms var(--_settle) var(--_back);
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
    --_out: calc(var(--_order) * 45ms);
    opacity: 0;
    translate: 0 -0.75rem;
    scale: 0.85;
    filter: blur(4px);
    transition:
      opacity 260ms var(--_contents-ease) var(--_out),
      translate 320ms var(--_contents-ease) var(--_out),
      scale 320ms var(--_contents-ease) var(--_out),
      rotate 320ms var(--_contents-ease) var(--_out),
      filter 260ms var(--_contents-ease) var(--_out);
    }

    /* Fade only. No lift, blur, shrink or flip. */
    @media (prefers-reduced-motion: reduce) {
    :where(.mac-toc-1[data-mode='mobile']) &,
    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
      translate: none;
      scale: none;
      filter: none;
      transition: opacity 160ms linear;
    }
    }
  }

  .mac-toc-1__pill-icon {
    /* Ring, label and chevron. On open they lift toward the growing sheet,
     blur and fade one after another. On close they settle back in the
     same order as the sheet shrinks onto them. */
    :where(.mac-toc-1[data-mode='mobile']) & {
    --_order: 2;
    --_back: calc(var(--_close-duration) - 200ms + var(--_order) * 25ms);
    transition:
      opacity 200ms var(--_settle) var(--_back),
      translate 260ms var(--_settle) var(--_back),
      scale 260ms var(--_settle) var(--_back),
      rotate 260ms var(--_settle) var(--_back),
      filter 200ms var(--_settle) var(--_back);
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
    --_out: calc(var(--_order) * 45ms);
    opacity: 0;
    translate: 0 -0.75rem;
    scale: 0.85;
    filter: blur(4px);
    transition:
      opacity 260ms var(--_contents-ease) var(--_out),
      translate 320ms var(--_contents-ease) var(--_out),
      scale 320ms var(--_contents-ease) var(--_out),
      rotate 320ms var(--_contents-ease) var(--_out),
      filter 260ms var(--_contents-ease) var(--_out);
    /* Flips to point down, the way the sheet will close */
    rotate: 180deg;
    }

    :where(.mac-toc-1[data-mode='mobile']) & {
    --icon-size: var(--mac-toc-1-pill-icon-size, 0.75em);
    --icon-width: 1em;
    --icon-height: 1em;
    --icon-color: var(--mac-toc-1-link-color);
    flex-shrink: 0;
    }

    /* Fade only. No lift, blur, shrink or flip. */
    @media (prefers-reduced-motion: reduce) {
    :where(.mac-toc-1[data-mode='mobile']) &,
    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
      translate: none;
      scale: none;
      filter: none;
      transition: opacity 160ms linear;
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
      rotate: none;
    }
    }
  }

  .mac-toc-1__panel {
    position: absolute;
    top: 50%;
    right: calc(100% + var(--mac-toc-1-panel-gap));
    translate: 0 -50%;
    inline-size: var(--mac-toc-1-panel-width);
    max-inline-size: calc(100vw - 2 * var(--mac-toc-1-inset) - 3rem);
    max-block-size: calc(100dvh - 2 * var(--mac-toc-1-inset));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    box-sizing: border-box;
    padding: var(--mac-toc-1-panel-padding);
    border: 1px solid var(--mac-toc-1-panel-border);
    border-radius: var(--mac-toc-1-panel-radius);
    background: var(--mac-toc-1-panel-bg);
    box-shadow: var(--mac-toc-1-panel-shadow);

    opacity: 0;
    visibility: hidden;
    transform: scale(0.97);
    transform-origin: right center;
    transition:
    opacity var(--mac-toc-1-duration) var(--mac-toc-1-easing),
    transform var(--mac-toc-1-duration) var(--mac-toc-1-easing),
    visibility 0s linear var(--mac-toc-1-duration);

    :where(.mac-toc-1[data-state='open']) & {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
    }

    @media (prefers-reduced-motion: reduce) {
    transform: none;
    }

    /* Mobile: shares the pill's anchor so one can grow out of the other.
     Full size always. Closed, the clip is an exact copy of the pill. */
    :where(.mac-toc-1[data-mode='mobile']) & {
    position: fixed;
    top: auto;
    right: auto;
    bottom: calc(var(--mac-toc-1-inset) + env(safe-area-inset-bottom));
    left: 50%;
    translate: -50% 0;
    box-sizing: border-box;
    border: 1px solid var(--_surface-border);
    background: var(--_surface-bg);
    display: flex;
    flex-direction: column;
    inline-size: var(--_sheet-width);
    max-inline-size: none;
    max-block-size: min(70dvh, 32rem);
    overflow: hidden;
    padding: var(--mac-toc-1-panel-padding);
    border-radius: var(--_sheet-radius);
    box-shadow: var(--_surface-edge);
    opacity: 1;
    transform: none;
    clip-path: inset(calc(100% - var(--_pill-h)) calc(50% - var(--_pill-w, 8rem) / 2) 0 round calc(var(--_pill-h) / 2));
    transition:
      clip-path var(--_close-duration) var(--_settle),
      visibility 0s linear var(--_close-duration);
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
    clip-path: inset(0 0 0 round var(--_sheet-radius));
    transition:
      clip-path var(--_open-duration) var(--_spring),
      visibility 0s;
    }

    /* No morph. The sheet fades in and out in place. */
    @media (prefers-reduced-motion: reduce) {
    :where(.mac-toc-1[data-mode='mobile']) & {
      opacity: 0;
      clip-path: none;
      transition:
        opacity 200ms linear,
        visibility 0s linear 200ms;
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
      opacity: 1;
      clip-path: none;
      transition:
        opacity 200ms linear,
        visibility 0s;
    }
    }
  }

  .mac-toc-1__sheet {
    /* Mobile: content settles up into place as the shell grows */
    :where(.mac-toc-1[data-mode='mobile']) & {
    display: flex;
    flex-direction: column;
    gap: var(--mac-toc-1-header-gap);
    min-block-size: 0;
    scale: 0.94;
    transform-origin: bottom center;
    transition: scale var(--_close-duration) var(--_settle);
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
    scale: 1;
    transition: scale var(--_open-duration) var(--_spring);
    }

    @media (prefers-reduced-motion: reduce) {
    :where(.mac-toc-1[data-mode='mobile']) &,
    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
      scale: 1;
    }
    }
  }

  .mac-toc-1__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem var(--mac-toc-1-row-padding-inline);

    :where(.mac-toc-1[data-mode='mobile']) & {
    flex-shrink: 0;
    /* Stagger. Rows rise in one after another on open and leave together. */
    opacity: 0;
    translate: 0 0.625rem;
    transition:
      opacity 120ms linear,
      translate 0s linear 120ms,
      color var(--mac-toc-1-duration) var(--mac-toc-1-easing),
      background-color var(--mac-toc-1-duration) var(--mac-toc-1-easing);
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
    --_delay: calc(var(--_stagger-start) + min(var(--i, 0), 8) * var(--_stagger));
    opacity: 1;
    translate: 0 0;
    transition:
      opacity 320ms var(--_settle) var(--_delay),
      translate var(--_open-duration) var(--_spring) var(--_delay),
      color var(--mac-toc-1-duration) var(--mac-toc-1-easing),
      background-color var(--mac-toc-1-duration) var(--mac-toc-1-easing);
    }

    @media (prefers-reduced-motion: reduce) {
    :where(.mac-toc-1[data-mode='mobile']) &,
    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
      opacity: 1;
      translate: none;
      transition:
        color var(--mac-toc-1-duration) var(--mac-toc-1-easing),
        background-color var(--mac-toc-1-duration) var(--mac-toc-1-easing);
    }
    }
  }

  .mac-toc-1__title {
    margin: 0;
    padding: 0;
    color: var(--mac-toc-1-link-active-color);
    font-size: var(--text-m, 1.0625rem);
    font-weight: 600;
  }

  .mac-toc-1__close {
    display: none;

    :where(.mac-toc-1[data-mode='mobile']) & {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    inline-size: 44px;
    block-size: 44px;
    /* Pulls the 44px target out so the visible circle sits on the row edge */
    /* Negative block margin keeps the 44px target from growing the header */
    margin: -0.5rem 0;
    margin-inline-end: calc((1.875rem - 44px) / 2 - var(--mac-toc-1-row-padding-inline));
    padding: 0;
    border: 0;
    border-radius: var(--btn-radius);
    background: none;
    color: var(--mac-toc-1-link-color);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    /* 30px gray circle inside a 44px touch target */
    &::before {
      content: '';
      grid-area: 1 / 1;
      inline-size: 1.875rem;
      block-size: 1.875rem;
      border-radius: inherit;
      background: color-mix(in srgb, var(--mac-toc-1-link-active-color) 7%, transparent);
      transition: background-color var(--mac-toc-1-duration) var(--mac-toc-1-easing);
    }

    :where(&) svg {
      --icon-size: 0.75rem;
      --icon-color: currentColor;
      grid-area: 1 / 1;
    }

    &:where(:active)::before {
      background: color-mix(in srgb, var(--mac-toc-1-link-active-color) 14%, transparent);
    }

    @media (hover: hover) {
      &:where(:hover) {
        color: var(--mac-toc-1-link-active-color);
      }
    }

    &:where(:focus-visible) {
      outline: 2px solid var(--mac-toc-1-link-active-color);
      outline-offset: -2px;
    }
    }
  }

  .mac-toc-1__list {
    margin: 0;
    padding: 0;
    list-style: none;
    /* Containing block and scope for the sliding indicator */
    position: relative;
    isolation: isolate;
    anchor-scope: --mac-toc-1-indicator;

    /* Sliding indicator. Anchored to whichever row is current, hovered or
     focused, and glides between them. Browsers without anchor positioning
     keep the plain row hover instead. */
    @supports (anchor-name: --a) {
    &::before {
      content: '';
      position: absolute;
      z-index: -1;
      position-anchor: --mac-toc-1-indicator;
      top: anchor(top);
      right: anchor(right);
      bottom: anchor(bottom);
      left: anchor(left);
      border-radius: var(--mac-toc-1-indicator-radius);
      background: var(--mac-toc-1-indicator-bg);
      pointer-events: none;
      transition:
        top var(--mac-toc-1-indicator-duration) var(--mac-toc-1-easing),
        right var(--mac-toc-1-indicator-duration) var(--mac-toc-1-easing),
        bottom var(--mac-toc-1-indicator-duration) var(--mac-toc-1-easing),
        left var(--mac-toc-1-indicator-duration) var(--mac-toc-1-easing),
        opacity var(--mac-toc-1-duration) var(--mac-toc-1-easing) var(--_indicator-delay, 0s);
    }

    /* Mobile: fades in with the first rows of the stagger */
    :where(.mac-toc-1[data-mode='mobile']) &::before {
      opacity: 0;
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) & {
      --_indicator-delay: var(--_stagger-start);
    }

    :where(.mac-toc-1[data-mode='mobile'][data-state='open']) &::before {
      opacity: 1;
    }

    /* Nothing to point at yet */
    &:where(:not(:has(.mac-toc-1__link[aria-current], .mac-toc-1__link:hover, .mac-toc-1__link:focus-visible)))::before {
      opacity: 0;
    }

    @media (prefers-reduced-motion: reduce) {
      &::before {
        transition: opacity var(--mac-toc-1-duration) var(--mac-toc-1-easing);
      }
    }
    }

    :where(.mac-toc-1[data-numbered]:not([data-numbered='false'])) & {
    counter-reset: mac-toc-1;
    }

    /* Rows fade out at whichever edge has more to scroll, instead of
     cutting off hard. Driven by the list's own scroll position, so a
     list that doesn't scroll gets no fade at all. */
    :where(.mac-toc-1[data-mode='mobile'] .mac-toc-1__sheet) > & {
    min-block-size: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* The edge fades show there's more, so the bar is just noise */
    scrollbar-width: none;

    &::-webkit-scrollbar {
      display: none;
    }

    @supports (animation-timeline: scroll()) {
      mask-image: linear-gradient(to bottom, transparent, #000 var(--mac-toc-1-fade-top), #000 calc(100% - var(--mac-toc-1-fade-bottom)), transparent);
      animation: mac-toc-1-edge-fade linear both;
      animation-timeline: scroll(self);
    }
    }
  }


  &:where([hidden]) {
    display: none;
  }

  @media print {
    display: none;
  }

  &:where(:not([data-in-view])) {
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear var(--mac-toc-1-reveal-duration);
  }

  /* Rendered by JS, so these have no Etch class of their own and stay nested */
  :where(&) .mac-toc-1__line {
    display: block;
    flex-shrink: 0;
    /* Deeper headings get shorter lines, right aligned, so they read as indented */
    inline-size: max(var(--mac-toc-1-line-thickness) * 2, var(--mac-toc-1-line-width) - var(--depth, 0) * var(--mac-toc-1-line-step));
    block-size: var(--mac-toc-1-line-thickness);
    border-radius: calc(var(--mac-toc-1-line-thickness) / 2);
    background: var(--mac-toc-1-line-color);
    transition: background-color var(--mac-toc-1-duration) var(--mac-toc-1-easing);

    &:where([data-active]) {
      background: var(--mac-toc-1-line-active-color);
    }
  }

  :where(&) .mac-toc-1__link {
    display: flex;
    gap: 0.5em;
    padding: var(--mac-toc-1-link-padding-block) var(--mac-toc-1-row-padding-inline);
    border-radius: var(--mac-toc-1-link-radius);
    color: var(--mac-toc-1-link-color);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition:
      color var(--mac-toc-1-duration) var(--mac-toc-1-easing),
      background-color var(--mac-toc-1-duration) var(--mac-toc-1-easing);

    @media (hover: hover) {
      &:where(:hover) {
        background: var(--mac-toc-1-link-hover-bg);
        color: var(--mac-toc-1-link-active-color);
      }
    }

    /* With anchor positioning, the list's sliding indicator paints the
       hover and current backgrounds. Rows just name themselves as its target. */
    @supports (anchor-name: --a) {
      &:where([aria-current], :focus-visible) {
        anchor-name: --mac-toc-1-indicator;
      }

      @media (hover: hover) {
        &:where(:hover) {
          background: none;
          anchor-name: --mac-toc-1-indicator;
        }
      }
    }

    &:where([aria-current]) {
      border-radius: var(--mac-toc-1-active-radius);
      background: var(--mac-toc-1-active-bg);
      color: var(--mac-toc-1-active-color);
    }

    &:where(:focus-visible) {
      outline: 2px solid var(--mac-toc-1-link-active-color);
      outline-offset: -2px;
    }

    @media (pointer: coarse) {
      padding-block: 0.5rem;
    }
  }

  /* While another row is hovered or focused, the current row hands the indicator over */
  @supports (anchor-name: --a) {
    @media (hover: hover) {
      :where(&) :where(.mac-toc-1__list:has(.mac-toc-1__link:hover)) .mac-toc-1__link:where([aria-current]:not(:hover)) {
        anchor-name: none;
      }
    }

    :where(&) :where(.mac-toc-1__list:has(.mac-toc-1__link:focus-visible)) .mac-toc-1__link:where([aria-current]:not(:focus-visible)) {
      anchor-name: none;
    }
  }

  &:where([data-numbered]:not([data-numbered='false'])) {
    :where(&) .mac-toc-1__item {
      counter-increment: mac-toc-1;
    }

    :where(&) .mac-toc-1__link::before {
      content: counters(mac-toc-1, '.');
      flex-shrink: 0;
      font-variant-numeric: tabular-nums;
    }
  }

  &:where([data-mode='mobile']) {
    /* Measured from the pill by JS; fallback until then */
    --_pill-h: 2.75rem;
    --_sheet-width: min(calc(100vw - 2 * var(--mac-toc-1-inset)), 26rem);
    --_sheet-radius: var(--radius);
    /* Rows sit one padding plus the 1px border in from the sheet's edge,
   so their corners stay concentric with it */
    --mac-toc-1-link-radius: max(calc(var(--radius) / 4), calc(var(--_sheet-radius) - var(--mac-toc-1-panel-padding) - 1px));

    --_surface-bg: var(--mac-toc-1-panel-bg);
    --_surface-border: var(--mac-toc-1-panel-border);
    --_surface-edge: 0 0 #0000;
    --_open-duration: 500ms;
    /* The system response snaps back faster than the open */
    --_close-duration: 280ms;
    /* Critically damped feel with a touch of overshoot */
    --_spring: linear(0, 0.1, 0.309, 0.533, 0.724, 0.866, 0.958, 1.01, 1.033, 1.038, 1.034, 1.026, 1.017, 1.01, 1.005, 1.001, 1);
    /* Strong ease-out for the collapse, no overshoot */
    --_settle: cubic-bezier(0.32, 0.72, 0, 1);
    --_stagger: 32ms;
    --_stagger-start: 90ms;
    /* Gentler than --_settle so the pill contents visibly travel
   instead of vanishing in the first frames */
    --_contents-ease: cubic-bezier(0.4, 0, 0.2, 1);

    top: auto;
    right: auto;
    translate: none;

    /* Scrim. A tap on it targets the root, which the JS treats as outside. */
    &::before {
      content: '';
      position: fixed;
      inset: 0;
      background: var(--mac-toc-1-scrim);
      opacity: 0;
      visibility: hidden;
      transition:
        opacity var(--_close-duration) var(--_settle),
        visibility 0s linear var(--_close-duration);
    }

    &:where([data-state='open'])::before {
      opacity: 1;
      visibility: visible;
      transition:
        opacity var(--_open-duration) var(--_settle),
        visibility 0s;
    }

    /* Stagger. Rows rise in one after another on open and leave together. */
    :where(&) .mac-toc-1__link {
      opacity: 0;
      translate: 0 0.625rem;
      transition:
        opacity 120ms linear,
        translate 0s linear 120ms,
        color var(--mac-toc-1-duration) var(--mac-toc-1-easing),
        background-color var(--mac-toc-1-duration) var(--mac-toc-1-easing);
    }

    &:where([data-state='open']) {
      :where(&) .mac-toc-1__link {
        --_delay: calc(var(--_stagger-start) + min(var(--i, 0), 8) * var(--_stagger));
        opacity: 1;
        translate: 0 0;
        transition:
          opacity 320ms var(--_settle) var(--_delay),
          translate var(--_open-duration) var(--_spring) var(--_delay),
          color var(--mac-toc-1-duration) var(--mac-toc-1-easing),
          background-color var(--mac-toc-1-duration) var(--mac-toc-1-easing);
      }
    }

    /* No stagger in reduced motion */
    @media (prefers-reduced-motion: reduce) {
      :where(&) .mac-toc-1__link,
      :where(&[data-state='open']) .mac-toc-1__link {
        opacity: 1;
        translate: none;
        transition:
          color var(--mac-toc-1-duration) var(--mac-toc-1-easing),
          background-color var(--mac-toc-1-duration) var(--mac-toc-1-easing);
      }
    }
  }

}