/* ==========================================================================
   Terav Eestlane — custom theme layer
   Loaded AFTER the captured graphene/Elementor CSS, so it overrides.
   Keeps the original red / black / green-on-antique-map palette, but gives the
   shell (header, nav, footer) a cleaner, modern, full-width treatment.
   ========================================================================== */

:root {
  --red: #d40c30; /* brand red ("Terav") */
  --red-dark: #b00a28;
  --green: #175d00; /* "NATURAALNE" accent */
  --ink: #1b1b1b;
  --ink-soft: #4a4a4a;
  --nav-bg: #232327; /* dark navbar */
  --nav-fg: #f3f3f1;
  --paper: #f3f2ee; /* light header tone, blends with the map paper */
  --paper-line: #e2e0d8;
  --footer-bg: #1d1d21;
  --footer-fg: #c9c8c4;
  --footer-hd: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.18);
  --wrap-pad: clamp(16px, 3vw, 56px);
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* --- Full-width reset: undo graphene's boxed layout ---------------------- */
html,
body {
  max-width: none;
  width: auto;
  margin: 0;
}
body.custom-background {
  background-attachment: scroll;
} /* kill the parallax/"hover" */
#page {
  width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* --- Animated map background --------------------------------------------- */
body.custom-background {
  background-image: none;
  background-color: #f1efe8;
}
.map-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #f1efe8;
}
/* Inner pages can be much taller than the viewport; pinning the map to the
   viewport keeps it at its natural (front-page) size instead of being zoomed to
   cover the whole page height. The home keeps its original scroll-with-page map. */
body:not(.home) .map-bg {
  position: fixed;
  height: 100vh;
  height: 100dvh;
}
/* the real map: full-strength final look, or a faint undertone during the draw.
   The visibility filter lives here (on the photo only) so it never darkens the ink lines. */
.map-bg__base,
.map-bg__tile {
  filter: brightness(1.08) contrast(0.9);
}
.map-bg__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.te-anim .map-bg__base {
  opacity: 0.1;
}
.map-bg__lines-holder,
.map-bg__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-bg__lines {
  display: block;
  filter: drop-shadow(0 0.6px 0.6px rgba(35, 28, 18, 0.35));
}
.map-bg__lines path {
  fill: none;
  stroke: #2e2e2e;
  stroke-width: 1.1px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* per-region reveal tiles (JS builds them): each shows its slice of the real map */
.map-bg__tiles {
  position: absolute;
  inset: 0;
}
.map-bg__tile {
  position: absolute;
  background-repeat: no-repeat;
  opacity: 0;
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce) {
  .map-bg__base {
    opacity: 1 !important;
  }
}

/* neutralise bootstrap's negative row margins that caused side-scroll at full width */
#content.row {
  margin-left: 0;
  margin-right: 0;
}
#content {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  flex: 1 0 auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  box-shadow: var(--shadow);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px var(--wrap-pad);
}
.brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__mark {
  height: clamp(88px, 10vw, 140px);
  width: auto;
  display: block;
}
.site-header__right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Müügikohad dropdown (native <details>) */
.locations {
  position: relative;
}
.locations > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 600 clamp(16px, 1.5vw, 19px)/1 var(--font);
  color: var(--ink);
  padding: 15px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition:
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.locations > summary::-webkit-details-marker {
  display: none;
}
.locations > summary:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: var(--shadow);
}
.locations .dd-arrow {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}
.locations[open] > summary {
  border-color: var(--red);
  color: var(--red);
}
.locations[open] .dd-arrow {
  transform: rotate(180deg);
}
.locations__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  min-width: 230px;
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.locations__menu li {
  list-style: none;
}
.locations__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font: 500 14px/1.2 var(--font);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.locations__menu a:hover {
  background: var(--paper);
  color: var(--red);
}
.locations__menu .is-all {
  grid-column: 1 / -1;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  margin-bottom: 4px;
}

/* ==========================================================================
   Main navigation
   ========================================================================== */
.mainnav {
  background: var(--nav-bg);
}
.mainnav__inner {
  padding: 0 var(--wrap-pad);
}
.mainnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(6px, 2vw, 40px);
  flex-wrap: wrap;
}
.mainnav__list > li {
  display: flex;
}
.mainnav__link,
.mainnav__sub > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  margin: 0;
  font: 600 16px/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nav-fg);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.mainnav__link:hover,
.mainnav__sub > summary:hover,
.mainnav__sub[open] > summary {
  color: #fff;
  border-bottom-color: var(--red);
}
.mainnav__link.is-active {
  color: #fff;
  border-bottom-color: var(--red);
}
.mainnav__sub > summary.is-active {
  color: #fff;
  border-bottom-color: var(--red);
}

/* Tooted dropdown */
.mainnav__sub {
  position: relative;
}
.mainnav__sub > summary {
  list-style: none;
}
.mainnav__sub > summary::-webkit-details-marker {
  display: none;
}
.mainnav__sub .dd-arrow {
  width: 11px;
  height: 11px;
  transition: transform 0.2s;
}
.mainnav__sub[open] .dd-arrow {
  transform: rotate(180deg);
}
.mainnav__submenu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  z-index: 60;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  margin: 0;
  list-style: none;
}
.mainnav__submenu li {
  list-style: none;
}
.mainnav__submenu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font: 600 14px/1.2 var(--font);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.mainnav__submenu a:hover {
  background: var(--paper);
  color: var(--red);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
}
.site-footer a {
  color: var(--footer-fg);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px var(--wrap-pad) 40px;
  display: grid;
  gap: 40px 48px;
  grid-template-columns: 1.4fr 1fr 1.2fr;
}
.footer-brand__name {
  font: 800 24px/1 var(--font);
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 14px;
}
.footer-brand__name b {
  color: var(--red);
  font-weight: 800;
}
.footer-brand__name span {
  color: var(--footer-fg);
  font-weight: 600;
  font-size: 0.7em;
  letter-spacing: 0.04em;
}
.footer-brand p {
  margin: 0 0 16px;
  max-width: 42ch;
  line-height: 1.6;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.footer-socials a:hover {
  background: var(--red);
  border-color: var(--red);
}
.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer h2 {
  font: 700 13px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-hd);
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin: 0 0 11px;
  line-height: 1.4;
}
.footer-contact p {
  margin: 0 0 11px;
  line-height: 1.5;
}
.footer-contact .muted {
  color: #8b8a86;
  font-size: 13px;
}
.footer-contact .fc-ident {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.footer-contact .fc-ident .fc-sep {
  color: #8b8a86;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px var(--wrap-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  font-size: 13px;
  color: #8b8a86;
}
.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ==========================================================================
   Simple page intro (used by the legal pages)
   ========================================================================== */
.home-intro {
  padding: clamp(40px, 6vw, 80px) var(--wrap-pad);
  max-width: 1100px;
  margin: 0 auto;
}
.home-intro__title {
  font: 800 clamp(26px, 3.4vw, 40px)/1.1 var(--font);
  color: var(--ink);
  margin: 0 0 clamp(24px, 3vw, 40px);
  letter-spacing: -0.01em;
}
.home-intro__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 16px;
}

/* ==========================================================================
   Homepage — hero lead + feature cards + tagline (over the map)
   ========================================================================== */
.te-home {
  padding: clamp(40px, 6vw, 76px) var(--wrap-pad);
  max-width: 1180px;
  margin: 0 auto;
}
.te-home__hero {
  max-width: 720px;
  margin: 0 auto clamp(26px, 3.5vw, 42px);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: clamp(26px, 3.2vw, 44px) clamp(28px, 3.4vw, 50px);
  box-shadow: 0 12px 34px rgba(30, 25, 15, 0.14);
}
.te-home__title {
  font: 800 clamp(30px, 4vw, 48px)/1.05 var(--font);
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.te-home__title .hl { color: var(--red); }
.te-home__title .suf {
  font-size: 0.46em;
  font-weight: 700;
  color: var(--ink-soft);
  vertical-align: 0.42em;
  margin-left: 0.12em;
  letter-spacing: 0.02em;
}
.te-home__lead {
  font: 500 clamp(17px, 1.5vw, 20px)/1.65 var(--font);
  color: var(--ink);
  margin: 0 auto;
  max-width: 62ch;
}

.te-home__features {
  list-style: none;
  margin: 0 0 clamp(26px, 3.5vw, 38px);
  padding: 0;
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(3, 1fr);
}
.feature {
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 10px 30px rgba(30, 25, 15, 0.12);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.feature__icon svg {
  width: 26px;
  height: 26px;
}
.feature__icon--green {
  background: rgba(23, 93, 0, 0.12);
  color: var(--green);
}
.feature__icon--red {
  background: rgba(212, 12, 48, 0.12);
  color: var(--red);
}
.feature__title {
  font: 700 clamp(17px, 1.5vw, 20px)/1.25 var(--font);
  color: var(--ink);
  margin: 0 0 10px;
}
.feature__text {
  font: 400 15.5px/1.6 var(--font);
  color: var(--ink-soft);
  margin: 0;
}

.te-home__tagline {
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: clamp(18px, 2vw, 24px) clamp(22px, 2.4vw, 30px);
  box-shadow: 0 10px 30px rgba(30, 25, 15, 0.12);
  text-align: center;
}

/* cursor-following 3D tilt on the content boxes (driven by tilt.js) */
.feature, .te-home__hero, .te-home__tagline {
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out;
}
.te-home__tagline p {
  margin: 0;
  font: 600 clamp(18px, 1.9vw, 23px)/1.4 var(--font);
  color: var(--ink);
}
.te-home__tagline strong {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.01em;
}

@media (max-width: 860px) {
  .te-home__features {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Responsive — desktop header tightening (above the mobile breakpoint)
   ========================================================================== */
@media (min-width: 821px) and (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
    row-gap: 12px;
  }
}
@media (max-width: 680px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Mobile header + hamburger menu (native <details>, works without JS)
   Below the breakpoint the desktop shop-link, the Müügikohad pill and the dark
   main-nav bar are hidden and replaced by one consolidated menu. The desktop
   header/nav markup above is left untouched.
   ========================================================================== */
.mnav { display: none; }

@media (max-width: 820px) {
  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--wrap-pad);
  }
  .brand { justify-self: auto; }
  .brand__mark { height: clamp(54px, 13vw, 78px); }
  /* .site-header scope beats the later, equal-specificity base .shop-link rule */
  .site-header .shop-link,
  .site-header__right,
  .mainnav { display: none; }

  .mnav { display: block; }
  .nav-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: 700 12.5px/1 var(--font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, color 0.15s;
  }
  .nav-toggle::-webkit-details-marker { display: none; }
  .mnav[open] .nav-toggle { border-color: var(--red); color: var(--red); }
  .nav-toggle__bars { position: relative; width: 20px; height: 14px; flex: none; }
  .nav-toggle__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle__bars span:nth-child(1) { top: 0; }
  .nav-toggle__bars span:nth-child(2) { top: 6px; }
  .nav-toggle__bars span:nth-child(3) { top: 12px; }
  .mnav[open] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mnav[open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .mnav[open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mnav__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px var(--wrap-pad) 14px;
  }
  .mnav__list,
  .mnav__sublist { list-style: none; margin: 0; padding: 0; }
  .mnav__list > li { border-bottom: 1px solid var(--paper-line); }
  .mnav__list > li:last-child { border-bottom: 0; }

  .mnav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 15px 4px;
    font: 700 16px/1.2 var(--font);
    letter-spacing: 0.01em;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  summary.mnav__link { list-style: none; }
  summary.mnav__link::-webkit-details-marker { display: none; }
  .mnav__link.is-active,
  .mnav__link:hover { color: var(--red); }
  .mnav__acc .dd-arrow { width: 13px; height: 13px; flex: none; transition: transform 0.2s; }
  .mnav__acc[open] > summary { color: var(--red); }
  .mnav__acc[open] > summary .dd-arrow { transform: rotate(180deg); }

  .mnav__sublist { padding: 0 0 10px 6px; }
  .mnav__sublist li { border-bottom: 1px solid rgba(27, 27, 27, 0.06); }
  .mnav__sublist li:last-child { border-bottom: 0; }
  .mnav__sublist a {
    display: block;
    padding: 12px 10px;
    font: 500 15px/1.3 var(--font);
    color: var(--ink-soft);
    text-decoration: none;
  }
  .mnav__sublist a:hover { color: var(--red); }
  .mnav__link--shop { color: var(--red); }
  .mnav__link--shop svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle,
  .nav-toggle__bars span,
  .mnav__acc .dd-arrow { transition: none; }
}

/* ==========================================================================
   Entrance reveal (loading animation)
   html.te-reveal is set in <head> before first paint; reveal.js adds .is-in.
   Elements start hidden and animate in on load (staggered) or when scrolled
   into view (once only — see reveal.js). Transition is applied inline by
   reveal.js and cleared afterwards, so it never fights the hover tilt.
   ========================================================================== */
html.te-reveal :is(.site-header, .mainnav, .te-home__hero,
  .te-home__features .feature, .te-home__tagline, #content-main,
  .home-intro, .site-footer, .te-back, .te-page__head, .te-surface,
  .te-jump, .te-actions):not(.is-in) {
  opacity: 0;
}
html.te-reveal :is(.site-header, .mainnav):not(.is-in) {
  transform: translateY(-16px);
}
html.te-reveal :is(.te-home__hero, .te-home__features .feature,
  .te-home__tagline, #content-main, .home-intro, .site-footer,
  .te-back, .te-page__head, .te-surface, .te-jump, .te-actions):not(.is-in) {
  transform: translateY(24px);
}

/* ==========================================================================
   Content pages — editorial layer (v2)
   Read/Operate surfaces for the inner pages. Keeps the brand world (antique
   map behind, frosted paper surfaces, red/green/ink, Roboto) but drops the
   card-grid + eyebrow + dot defaults in favour of typographic structure:
   hairline-divided indexes, a grouped store directory, and a credentials
   ledger. The red "✕" kasulik mark stays because it carries real meaning.
   ========================================================================== */

/* --- browser surfaces: theme the parts we didn't draw ---------------------- */
::selection { background: var(--red); color: #fff; }
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}
html { scrollbar-color: #b9b5a7 transparent; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-thumb {
  background: #bdb9ab;
  border: 3px solid var(--paper);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: #a39f90; }

/* --- page shell ----------------------------------------------------------- */
.te-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) var(--wrap-pad) clamp(56px, 7vw, 96px);
}

/* glass reading surface: one declared elevation (lit top edge + drop), no
   1px ghost outline under the shadow */
.te-surface {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 44px);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(11px) saturate(1.06);
  backdrop-filter: blur(11px) saturate(1.06);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 16px 40px rgba(30, 25, 15, 0.14);
}
@media (prefers-reduced-transparency: reduce) {
  .te-surface { background: rgba(255, 255, 255, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* --- masthead ------------------------------------------------------------- */
.te-page__head {
  max-width: 62ch;
  margin: 0 0 clamp(30px, 4vw, 52px);
}
.te-page__title {
  font: 800 clamp(34px, 5.4vw, 66px)/1 var(--font);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.te-page__title .hl { color: var(--red); }
/* the lead reads as a compact frosted "standfirst" card — the brand's own
   glass material, so it stays legible over the map without a scrim */
.te-page__lead {
  display: inline-block;
  font: 500 clamp(16px, 1.55vw, 19px)/1.55 var(--font);
  color: var(--ink);
  margin: clamp(18px, 2.1vw, 26px) 0 0;
  max-width: 52ch;
  padding: 14px 20px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(9px) saturate(1.05);
  backdrop-filter: blur(9px) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 26px rgba(30, 25, 15, 0.1);
  text-wrap: pretty;
}
@media (prefers-reduced-transparency: reduce) {
  .te-page__lead { background: rgba(255, 255, 255, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ==========================================================================
   Spice index (Maitseained / Maitsesegud)
   ========================================================================== */
.te-index-section { margin: 0 0 clamp(30px, 4vw, 48px); }
.te-index-section:last-of-type { margin-bottom: 0; }
.te-index-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 clamp(14px, 1.8vw, 22px);
}
.te-index-head__icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--green);
  background: rgba(23, 93, 0, 0.1);
}
.te-index-head__icon--red { color: var(--red); background: rgba(212, 12, 48, 0.1); }
.te-index-head__icon svg { width: 17px; height: 17px; }
.te-index-head__title {
  font: 700 clamp(18px, 2vw, 25px)/1.15 var(--font);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.te-index-head__line { flex: 1; height: 1px; background: var(--paper-line); min-width: 18px; }
.te-index-head__meta {
  flex: none;
  font: 600 12.5px/1 var(--font);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* the names: a dense column index, hairline rows, emphasis by weight only */
.te-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 190px;
  column-gap: clamp(26px, 3vw, 48px);
}
.te-index-list li {
  break-inside: avoid;
  padding: 8px 2px;
  font: 400 15.5px/1.3 var(--font);
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(27, 27, 27, 0.08);
}
.te-index-list li.is-key { color: var(--ink); font-weight: 700; }

/* the kasulik legend — the ✕ mark explained once, where it earns its place */
.te-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 30px);
  font: 400 clamp(15px, 1.5vw, 17px)/1.55 var(--font);
  color: var(--ink);
}
.te-legend a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* the red "✕" kasulik mark (shared, meaningful) */
.te-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  flex: none;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font: 900 0.72em/1 var(--font);
}
.te-mark::before { content: "\00D7"; }
.te-mark--lg { width: 2.4em; height: 2.4em; border-width: 2.5px; }

/* the kasulik mark as the real brand symbol (Bowl of Hygieia over a red cross) */
.te-mark-img {
  display: inline-block;
  vertical-align: -0.32em;
  width: 1.4em;
  height: 1.4em;
  object-fit: contain;
}
.te-mark-img--lg { width: 2.7em; height: 2.7em; vertical-align: middle; }

/* ==========================================================================
   Store directory (county pages + Müügikohad) — grouped, hairline rows
   ========================================================================== */
.te-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 13.5px/1 var(--font);
  color: var(--ink);
  text-decoration: none;
  margin: 0 0 clamp(22px, 3vw, 34px);
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.te-back svg { transition: transform 0.16s ease-out; }
.te-back:hover { color: var(--red); }
.te-back:hover svg { transform: translateX(-3px); }

.te-directory__group { margin: 0 0 clamp(26px, 3.4vw, 42px); }
.te-directory__group:last-child { margin-bottom: 0; }
.te-directory__label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 6px;
}
.te-directory__label h2 {
  font: 700 clamp(15px, 1.7vw, 19px)/1 var(--font);
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
}
.te-directory__label .ln { flex: 1; height: 1px; background: var(--paper-line); }
.te-directory__label .ct {
  font: 500 13px/1 var(--font);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.te-shops { list-style: none; margin: 0; padding: 0; }
.te-shop {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: clamp(15px, 1.8vw, 20px) 10px clamp(15px, 1.8vw, 20px) 6px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(27, 27, 27, 0.1);
  border-radius: 10px;
  transition: background 0.15s ease-out;
}
.te-shops li:last-child .te-shop { border-bottom: 0; }
.te-shop:hover { background: rgba(255, 255, 255, 0.62); }
.te-shop__pin { grid-row: span 2; width: 30px; height: 30px; color: var(--red); align-self: center; }
.te-shop__pin svg { width: 100%; height: 100%; display: block; }
.te-shop__name {
  grid-column: 2;
  font: 700 clamp(16px, 1.6vw, 18px)/1.25 var(--font);
  color: var(--ink);
}
.te-shop__addr {
  grid-column: 2;
  font: 400 14px/1.4 var(--font);
  color: var(--ink-soft);
}
.te-shop__go {
  grid-column: 3;
  grid-row: span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 12.5px/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
}
.te-shop:hover .te-shop__go,
.te-shop:focus-visible .te-shop__go { opacity: 1; transform: none; }

/* master directory: each county section is an anchor target for the jump nav */
.te-county { scroll-margin-top: 96px; }

/* county index chips (Müügikohad jump nav) — only where a jump nav helps */
.te-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(30px, 4vw, 46px); }
.te-jump a {
  text-decoration: none;
  font: 600 13.5px/1 var(--font);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--paper-line);
  transition: color 0.15s, box-shadow 0.15s, background 0.15s;
}
.te-jump a:hover { color: #fff; background: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

/* ==========================================================================
   Credentials ledger (Sertifikaadid)
   ========================================================================== */
.te-ledger { display: grid; gap: 0; }
.te-ledger__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(18px, 2.4vw, 30px);
  align-items: start;
  padding: clamp(22px, 3vw, 36px) 0;
  border-top: 1px solid var(--paper-line);
}
.te-ledger__row:first-child { border-top: 0; }
.te-ledger__icon { width: 44px; height: 44px; color: var(--green); margin-top: 2px; }
.te-ledger__icon svg { width: 100%; height: 100%; display: block; }
.te-ledger__title {
  font: 700 clamp(18px, 2vw, 23px)/1.2 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.te-ledger__text {
  font: 400 clamp(15px, 1.5vw, 17px)/1.6 var(--font);
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}
/* title line + inline status badge (a pill, not an eyebrow) */
.te-ledger__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 10px;
}
.te-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  font: 700 12px/1 var(--font);
  letter-spacing: 0.01em;
  color: var(--green);
  background: rgba(23, 93, 0, 0.11);
}
.te-badge svg { width: 13px; height: 13px; flex: none; }
/* --red-dark (not --red) so the small 12px text clears WCAG AA 4.5:1 on the tint */
.te-badge--red { color: var(--red-dark); background: rgba(212, 12, 48, 0.1); }
/* the licence number, set as a registry entry (bordered chip, tabular) */
.te-licence {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  margin: 6px 0 0;
  padding: 10px 16px;
  border: 1.5px solid var(--paper-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.55);
  font: 800 clamp(21px, 2.2vw, 27px)/1 var(--font);
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.te-licence .lbl {
  font: 700 10.5px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* the kasulik row carries the mark large; it is the signature concept */
.te-ledger__row--mark .te-ledger__icon { color: var(--red); display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   County summary strip (store count / regions)
   ========================================================================== */
.te-summary.te-surface { padding: clamp(15px, 1.9vw, 20px) clamp(20px, 2.6vw, 30px); }
.te-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(20px, 3vw, 36px);
  margin: 0 0 clamp(20px, 2.8vw, 32px);
}
.te-summary__item { display: inline-flex; align-items: center; gap: 12px; }
.te-summary__icon { width: 24px; height: 24px; color: var(--red); flex: none; }
.te-summary__icon svg { width: 100%; height: 100%; display: block; }
.te-summary__num {
  font: 800 clamp(19px, 2.1vw, 24px)/1 var(--font);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.te-summary__label { font: 500 13.5px/1.25 var(--font); color: var(--ink-soft); }
.te-summary__sep { width: 1px; align-self: stretch; min-height: 26px; background: var(--paper-line); }

/* ==========================================================================
   Compass rose watermark — a thin ray-burst from the map/label world.
   One per surface, deliberately faint.
   ========================================================================== */
.te-rose {
  position: absolute;
  pointer-events: none;
  width: clamp(240px, 30vw, 380px);
  aspect-ratio: 1;
  top: -12%;
  right: -6%;
  opacity: 0.04;
  color: var(--ink);
  background: repeating-conic-gradient(from 0deg, currentColor 0deg 1.1deg, transparent 1.1deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 24%, rgba(0,0,0,0.45) 44%, transparent 70%);
  mask: radial-gradient(closest-side, #000 24%, rgba(0,0,0,0.45) 44%, transparent 70%);
}

/* opt-in cursor tilt (shares tilt.js with the home boxes) */
.te-tilt { transition: transform 0.14s ease-out, box-shadow 0.14s ease-out; }

/* ==========================================================================
   Content-page responsive
   ========================================================================== */
@media (max-width: 720px) {
  .te-index-list { columns: 2 150px; }
  .te-index-head__title { white-space: normal; }
}
@media (max-width: 460px) {
  .te-index-list { columns: 1; }
  .te-shop__go { display: none; }
  .te-shop { grid-template-columns: 28px 1fr; }
}

/* ==========================================================================
   MAHE — organic product catalogue
   ========================================================================== */
.te-note { margin: 0 0 clamp(22px, 3vw, 34px); }
.te-note p {
  margin: 0;
  font: 500 clamp(15px, 1.5vw, 17.5px)/1.62 var(--font);
  color: var(--ink);
  max-width: 72ch;
}
.te-oko {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 8px 15px 8px 11px;
  border-radius: 999px;
  background: rgba(23, 93, 0, 0.11);
  color: var(--green);
  font: 700 13px/1 var(--font);
  letter-spacing: 0.01em;
}
.te-oko svg { width: 17px; height: 17px; flex: none; }
.te-catalog {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
}
.te-cat { padding: clamp(22px, 2.6vw, 30px); }
.te-cat__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 800 13px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--paper-line);
}
.te-cat__title svg { width: 16px; height: 16px; flex: none; }
.te-cat__list { list-style: none; margin: 0; padding: 0; }
.te-cat__list li {
  padding: 7px 0;
  font: 400 14.5px/1.4 var(--font);
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(27, 27, 27, 0.07);
}
.te-cat__list li:last-child { border-bottom: 0; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.te-contact__card { padding: clamp(24px, 2.8vw, 34px); }
.te-contact__company {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}
.te-contact__name {
  font: 800 clamp(24px, 3vw, 36px)/1 var(--font);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.te-contact__name .hl { color: var(--red); }
.te-contact__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(22px, 3vw, 40px);
}
.te-fact { display: flex; flex-direction: column; gap: 4px; }
.te-fact__label {
  font: 700 10.5px/1 var(--font);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.te-fact__value {
  font: 600 15px/1.35 var(--font);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* Company name / reg. nr / KMKR link through to the business register */
.te-reglink {
  color: inherit;
  text-decoration: none;
}
.te-reglink:hover,
.te-reglink:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.te-contact-grid {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  margin: 0 0 clamp(20px, 2.8vw, 32px);
}
.te-dept__icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: rgba(212, 12, 48, 0.1);
  margin-bottom: 16px;
}
.te-dept__icon svg { width: 23px; height: 23px; }
.te-dept__title {
  font: 700 clamp(17px, 1.9vw, 20px)/1.2 var(--font);
  color: var(--ink);
  margin: 0 0 14px;
}
.te-dept__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0;
  border-top: 1px solid rgba(27, 27, 27, 0.08);
}
.te-dept__row:first-of-type { border-top: 0; padding-top: 0; }
.te-dept__key {
  font: 700 11px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.te-dept__val { font: 500 15px/1.4 var(--font); color: var(--ink); }
.te-dept a { color: var(--red); text-decoration: none; word-break: break-word; }
.te-dept a:hover { text-decoration: underline; text-underline-offset: 3px; }
.te-contact__map { padding: 0; }
.te-contact__map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 440px);
  border: 0;
  filter: saturate(0.9);
}
@media (max-width: 560px) {
  .te-contact__company { gap: 14px; }
}

/* ==========================================================================
   Legal (Privaatsus / Tingimused) + E-pood redirect
   ========================================================================== */
.te-prose { padding: clamp(26px, 3.2vw, 44px); max-width: 760px; }
.te-prose p {
  margin: 0 0 16px;
  font: 400 clamp(15px, 1.5vw, 17px)/1.72 var(--font);
  color: var(--ink);
}
.te-prose p:last-child { margin-bottom: 0; }
.te-prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.te-prose__note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--paper-line);
  color: var(--ink-soft);
}
.te-cta { padding: clamp(32px, 4.4vw, 56px); text-align: center; }
.te-cta p {
  margin: 0 0 24px;
  font: 500 clamp(17px, 1.9vw, 22px)/1.5 var(--font);
  color: var(--ink);
}
.te-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 700 16px/1 var(--font);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(212, 12, 48, 0.25);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
/* keep the label white in every link state (overrides the UA visited colour) */
.te-btn:link,
.te-btn:visited,
.te-btn:hover,
.te-btn:active { color: #fff; }
.te-btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(212, 12, 48, 0.32); }
.te-btn:active { transform: translateY(0); }
.te-btn:focus { outline: none; }
.te-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.te-btn svg { width: 17px; height: 17px; }

/* ==========================================================================
   Shop promo — header label (left) + bottom-right popup → esitaomamaitse.ee
   ========================================================================== */
.shop-link {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 13px;
  transition: background 0.15s, transform 0.15s;
}
.shop-link:hover { background: rgba(0, 0, 0, 0.045); transform: translateY(-1px); }
.shop-link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.shop-link__logo { height: clamp(15px, 1.7vw, 19px); width: auto; display: block; }
.shop-link__cap {
  font: 700 10.5px/1 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.shop-link__cap b { color: var(--red); font-weight: 800; }

.shop-pop {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 60;
  width: min(328px, calc(100vw - 28px));
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 54px rgba(30, 25, 15, 0.28);
  animation: shop-pop-in 0.5s cubic-bezier(.2, .75, .25, 1) both;
}
.shop-pop[hidden] { display: none; }
@keyframes shop-pop-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.shop-pop__close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.shop-pop__close:hover { background: rgba(0, 0, 0, 0.07); color: var(--ink); }
.shop-pop__close svg { width: 16px; height: 16px; }
.shop-pop__logo { height: 19px; width: auto; max-width: calc(100% - 36px); display: block; margin: 0 0 13px; }
.shop-pop__text {
  margin: 0 0 17px;
  font: 500 14.5px/1.5 var(--font);
  color: var(--ink);
}
.shop-pop__btn { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) { .shop-pop { animation: none; } }
/* phones: a compact full-width bottom sheet rather than a near-full-width card
   that lands on top of the page content */
@media (max-width: 560px) {
  .shop-pop {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 15px 16px 17px;
    border-radius: 16px;
  }
  .shop-pop__logo { height: 17px; margin-bottom: 10px; }
  .shop-pop__text { margin-bottom: 14px; font-size: 14px; }
  .shop-pop__close { top: 7px; right: 7px; }
}

/* ==========================================================================
   Legal pages — richer prose (headings, lists)
   ========================================================================== */
.te-prose { max-width: 820px; }
.te-prose h2 {
  font: 700 clamp(18px, 2vw, 22px)/1.25 var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: clamp(26px, 3vw, 36px) 0 12px;
}
.te-prose h2:first-child { margin-top: 0; }
.te-prose ul { margin: 0 0 16px; padding-left: 20px; }
.te-prose li {
  margin: 7px 0;
  font: 400 clamp(15px, 1.5vw, 16.5px)/1.65 var(--font);
  color: var(--ink);
}
.te-prose strong { color: var(--ink); font-weight: 700; }
.te-prose__updated {
  margin: clamp(26px, 3vw, 34px) 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--paper-line);
  font: 500 13.5px/1.5 var(--font);
  color: var(--ink-soft);
}

/* ==========================================================================
   Contact — quick-action buttons
   ========================================================================== */
.te-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 clamp(20px, 2.8vw, 32px);
}
.te-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font: 700 14.5px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.te-action svg { width: 17px; height: 17px; flex: none; }
.te-action--primary { background: var(--red); border: 0; box-shadow: 0 10px 26px rgba(212, 12, 48, 0.24); }
.te-action--primary:link, .te-action--primary:visited, .te-action--primary:hover, .te-action--primary:active { color: #fff; }
.te-action--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.te-action--ghost {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  box-shadow: inset 0 0 0 1px var(--paper-line);
}
.te-action--ghost:link, .te-action--ghost:visited, .te-action--ghost:active { color: var(--ink); }
.te-action--ghost:hover { color: var(--red); box-shadow: inset 0 0 0 1px var(--red); transform: translateY(-2px); }
.te-action:focus { outline: none; }
.te-action:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ==========================================================================
   Contact — click-to-load map (no Google cookies until the visitor loads it)
   ========================================================================== */
.te-mapbox { padding: 0; overflow: hidden; min-height: clamp(260px, 38vw, 400px); display: grid; }
.te-mapbox__ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: clamp(30px, 5vw, 52px);
}
.te-mapbox__pin { width: 40px; height: 40px; color: var(--red); }
.te-mapbox__pin svg { width: 100%; height: 100%; display: block; }
.te-mapbox__note { margin: 0; max-width: 44ch; font: 500 14px/1.55 var(--font); color: var(--ink-soft); }
.te-mapbox__ext {
  font: 700 13.5px/1 var(--font);
  color: var(--red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.te-mapbox__ext:hover { text-decoration: underline; text-underline-offset: 3px; }
.te-mapbox iframe { width: 100%; height: clamp(280px, 42vw, 440px); border: 0; display: block; filter: saturate(0.92); }

/* ==========================================================================
   Footer contact — icons + directions
   ========================================================================== */
.footer-contact .fc-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
}
.footer-contact .fc-row svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--red); opacity: 0.9; }
.footer-contact .fc-row a { word-break: break-word; }
.footer-contact .fc-dir {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 13px;
}

/* ==========================================================================
   404 page
   ========================================================================== */
.te-page--error { display: grid; place-items: center; min-height: 56vh; }
.te-error { text-align: center; padding: clamp(36px, 6vw, 72px); max-width: 560px; }
.te-error__code {
  font: 800 clamp(58px, 13vw, 118px)/1 var(--font);
  letter-spacing: -0.04em;
  color: var(--red);
  margin: 0;
}
.te-error__title {
  font: 800 clamp(24px, 3vw, 34px)/1.1 var(--font);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 6px 0 14px;
}
.te-error__text {
  font: 500 clamp(15px, 1.6vw, 18px)/1.6 var(--font);
  color: var(--ink-soft);
  margin: 0 0 26px;
}
.te-error__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ==========================================================================
   Skip-to-content link (keyboard a11y) — hidden until focused
   ========================================================================== */
.te-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: 700 14px/1 var(--font);
  text-decoration: none;
  /* no shadow while parked off-screen — its blur used to bleed a red glow over
     the top edge of the page. The shadow returns only when the link is focused. */
  box-shadow: none;
  transform: translateY(-150%);
  transition: transform 0.18s ease-out;
}
.te-skip:focus {
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(212, 12, 48, 0.3);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
#content { scroll-margin-top: 0; }

/* ==========================================================================
   Print — strip chrome and decoration, keep the content legible on paper
   ========================================================================== */
@media print {
  .map-bg, .mainnav, .site-footer, .shop-pop, .shop-link,
  .te-skip, .site-header__right, .te-back, .te-rose { display: none !important; }
  html, body, #page, body.custom-background { background: #fff !important; }
  .site-header { border-bottom: 1px solid #ccc; box-shadow: none; }
  .te-page { max-width: 100%; padding: 16px 0; }
  .te-surface, .te-page__lead, .te-stop, .te-shop, .te-jump a {
    background: #fff !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border: 1px solid #ddd;
  }
  .te-surface { break-inside: avoid; }
  a { color: #000; }
  .te-mapbox__ph { padding: 16px; }
}
