/* Global styles for the TDM Impact port (/k:port-identical).
   The original is the Claude Design export in _harvest/raw/design/. This file carries the
   original's global CSS VERBATIM (SPEC.md Part A1/A3), plus the template obligations
   (focus, sr-only, skip link) added so they do not change the measured look.
   Self-hosted fonts: public/fonts/*.otf, referenced with format('opentype') as in the source. */

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/fonts/CabinetGrotesk-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/fonts/CabinetGrotesk-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/fonts/CabinetGrotesk-Extrabold.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* Brand palette — the original repeats these hex literals hundreds of times (SPEC A5).
   Custom properties are used only for values the original itself repeats (command rule). */
:root {
  --tdm-olive: #595a4a;
  --tdm-sand: #d8c3a5;
  --tdm-ink: #343434;
  --tdm-stone: #deddd9;
  --tdm-white: #ffffff;
  --tdm-paper: #f2f1f0;
  --tdm-sand-hover: #e6d8c5;
  --tdm-cream: #f3ede4;
  --tdm-olive-hover: #525246;
  --tdm-olive-active: #4a4b41;

  /* Template design tokens kept (mapped to the TDM palette) so the shared template components
     that read them — CookieTable, CookieBanner, ContactForm, .button-secondary — render on-brand.
     These are custom properties + class rules, so they do NOT enter the global element-rule
     parity block (which compares bare html/body/h1-h6/p/a/button/input). */
  --color-bg: #ffffff;
  --color-fg: #343434;
  --color-muted: rgba(52, 52, 52, 0.68);
  --color-accent: #595a4a;
  --color-border: #deddd9;
  --color-input-border: #767f91;
  --color-error: #dc2626;
  --color-success: #15803d;
  --font-sans: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --radius: 8px;
  --shadow-elevated: 0 8px 30px rgba(52, 52, 52, 0.18);
  --z-overlay: 1000;
  --content-width: 75rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
}

/* --- Original global CSS, verbatim (SPEC A1) --- */
html,
body {
  margin: 0;
  padding: 0;
  /* The original sets both height:100% and min-height:100% on html+body (compare global parity). */
  height: 100%;
  min-height: 100%;
  width: 100%;
  background: #ffffff;
  font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  color: #343434;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
a {
  color: #595a4a;
  text-decoration: none;
}
a:hover {
  color: #343434;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  margin: 0;
}
p {
  margin: 0;
  text-wrap: pretty;
}
input,
textarea,
select,
button {
  font-family: inherit;
}

@keyframes tdm-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes tdm-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes tdm-breathe {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@keyframes tdm-spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes tdm-loop-dash {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@keyframes tdm-bob {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(2px);
  }
}
@keyframes tdm-beam {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: -90;
  }
}
@keyframes tdm-beam-v {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: -90;
  }
}
@keyframes tdm-draw-path {
  from {
    stroke-dashoffset: 520;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes tdm-ping {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
@keyframes tdm-live {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}
@keyframes tdm-sheen {
  0% {
    transform: translateX(0);
  }
  55%,
  100% {
    transform: translateX(420%);
  }
}
@keyframes tdm-halo {
  0%,
  100% {
    opacity: 0.35;
    stroke-width: 8;
  }
  50% {
    opacity: 0.9;
    stroke-width: 11;
  }
}
@keyframes tdm-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}
@keyframes tdm-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes tdm-scroll-down {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}
/* austria-map.js pin ping */
@keyframes am-ping {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .tdm-hero-puzzle {
    display: none !important;
  }
}

/* --- Template obligations, added so they do not change the measured look --- */

/* Screen-reader-only text: accessible names for icon-only / cursor:pointer controls that the
   original leaves nameless (command contract rule 6). Never affects layout. */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — hidden until focused; sits above everything when a keyboard user tabs to it. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10000;
  background: #595a4a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font:
    500 14px/1.2 'Satoshi',
    'Helvetica Neue',
    Arial,
    sans-serif;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
}

/* Visible keyboard focus (WCAG 2.4.7). The original has no focus style; we add one that does
   not change any element's box (outline + offset only follow the existing border-radius). */
:focus-visible {
  outline: 2px solid #595a4a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Neutral secondary button kept for the cookie-policy settings control (template obligation). */
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  color: #343434;
  background: #f2f1f0;
  border: 1px solid #595a4a;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.button-secondary[hidden] {
  display: none;
}
.cookie-table-wrap[data-astro-cid-tvfkjaz5] {
  overflow-x: auto;
}

.cookie-table[data-astro-cid-tvfkjaz5] {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  text-align: left;
}

th[data-astro-cid-tvfkjaz5], td[data-astro-cid-tvfkjaz5] {
  padding: .4rem .6rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  hyphens: auto;
  -webkit-hyphens: auto;
}

th[data-astro-cid-tvfkjaz5] {
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

td[data-astro-cid-tvfkjaz5]:first-child, td[data-astro-cid-tvfkjaz5]:last-child {
  white-space: nowrap;
}

code[data-astro-cid-tvfkjaz5] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85em;
  overflow-wrap: anywhere;
}

.empty[data-astro-cid-tvfkjaz5] {
  color: var(--color-muted);
  font-style: italic;
}
.cc[data-astro-cid-hq3mgpmn] {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: var(--z-overlay);
  max-width: min(24rem, 100vw - 2rem);
  margin: 0;
}

.cc[data-astro-cid-hq3mgpmn][hidden] {
  display: none;
}

.cc-card[data-astro-cid-hq3mgpmn] {
  background: var(--color-bg);
  color: var(--color-fg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  padding: 1.1rem 1.2rem;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .cc-card[data-astro-cid-hq3mgpmn] {
    animation: .25s ease-out cc-in;
  }

  @keyframes cc-in {
    from {
      opacity: 0;
      transform: translateY(.75rem);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

.cc-title[data-astro-cid-hq3mgpmn] {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}

.cc-desc[data-astro-cid-hq3mgpmn] {
  margin: 0 0 .9rem;
  font-size: .9rem;
  color: var(--color-muted);
  text-align: justify;
  hyphens: auto;
}

.cc-manage[data-astro-cid-hq3mgpmn] {
  margin: 0 0 .9rem;
}

.cc-manage[data-astro-cid-hq3mgpmn][hidden] {
  display: none;
}

.cc-cats[data-astro-cid-hq3mgpmn] {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}

.cc-cat[data-astro-cid-hq3mgpmn] {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .6rem .7rem;
}

.cc-cat-head[data-astro-cid-hq3mgpmn] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.cc-switch[data-astro-cid-hq3mgpmn] {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  gap: .5rem;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}

.cc-switch[data-astro-cid-hq3mgpmn] input[data-astro-cid-hq3mgpmn] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.cc-switch[data-astro-cid-hq3mgpmn] input[data-astro-cid-hq3mgpmn]:disabled {
  cursor: default;
}

.cc-always[data-astro-cid-hq3mgpmn] {
  font-weight: 400;
  font-style: normal;
  color: var(--color-muted);
}

.cc-expand[data-astro-cid-hq3mgpmn] {
  font: inherit;
  font-size: .8rem;
  background: none;
  border: 0;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
  padding: .25rem 0;
  white-space: nowrap;
}

.cc-cat-desc[data-astro-cid-hq3mgpmn] {
  margin: .4rem 0 0;
  font-size: .82rem;
  color: var(--color-muted);
}

.cc-tbl[data-astro-cid-hq3mgpmn] {
  margin-top: .5rem;
}

.cc-tbl[data-astro-cid-hq3mgpmn][hidden] {
  display: none;
}

.cc-links[data-astro-cid-hq3mgpmn] {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  margin: 0 0 .9rem;
  font-size: .8rem;
}

.cc-links[data-astro-cid-hq3mgpmn] a[data-astro-cid-hq3mgpmn] {
  color: var(--color-muted);
}

.cc-actions[data-astro-cid-hq3mgpmn] {
  display: flex;
  gap: .5rem;
}

.cc-btn[data-astro-cid-hq3mgpmn] {
  flex: 1 1 0;
  min-width: 0;
  font: inherit;
  font-weight: 500;
  font-size: .9rem;
  border-radius: var(--radius);
  padding: .5rem .7rem;
  cursor: pointer;
  border: 1px solid var(--color-input-border);
}

.cc-primary[data-astro-cid-hq3mgpmn] {
  color: var(--color-on-accent, #fff);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.cc-secondary[data-astro-cid-hq3mgpmn] {
  color: var(--color-fg);
  background: var(--color-bg);
}

.cc-btn[data-astro-cid-hq3mgpmn]:focus-visible, .cc-expand[data-astro-cid-hq3mgpmn]:focus-visible, .cc-switch[data-astro-cid-hq3mgpmn] input[data-astro-cid-hq3mgpmn]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.cc-short[data-astro-cid-hq3mgpmn] {
  display: none;
}

.cc-fab[data-astro-cid-hq3mgpmn] {
  position: fixed;
  inset: auto 1rem calc(1rem + env(safe-area-inset-bottom, 0px)) auto;
  z-index: var(--z-overlay);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-beige, var(--color-accent));
  border-radius: 999px;
  background: var(--color-navy, var(--color-fg));
  color: var(--color-beige, #fff);
  cursor: pointer;
}

.cc-fab[data-astro-cid-hq3mgpmn][hidden] {
  display: none;
}

.cc-fab[data-astro-cid-hq3mgpmn]:hover {
  background: color-mix(in srgb,
      var(--color-navy, var(--color-fg)) 88%,
      var(--color-beige, #fff));
}

.cc-fab[data-astro-cid-hq3mgpmn]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (width <= 30rem) {
  .cc[data-astro-cid-hq3mgpmn] {
    inset: auto 0 0;
    max-width: none;
  }

  .cc-card[data-astro-cid-hq3mgpmn] {
    border-radius: var(--radius) var(--radius) 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 4rem);
  }

  .cc-title[data-astro-cid-hq3mgpmn], .cc-desc[data-astro-cid-hq3mgpmn] {
    display: none;
  }

  .cc-short[data-astro-cid-hq3mgpmn] {
    display: block;
    margin: 0 0 .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-fg);
  }

  .cc-links[data-astro-cid-hq3mgpmn] a[data-astro-cid-hq3mgpmn]:not(.cc-link-essential) {
    display: none;
  }

  .cc-links[data-astro-cid-hq3mgpmn] {
    margin-bottom: .5rem;
    gap: 0 .75rem;
    font-size: .75rem;
  }

  .cc-btn[data-astro-cid-hq3mgpmn] {
    min-height: 44px;
    font-size: .7rem;
    padding-inline: .35rem;
  }

  .cc[data-astro-cid-hq3mgpmn][data-mode="manage"] .cc-title[data-astro-cid-hq3mgpmn], .cc[data-astro-cid-hq3mgpmn][data-mode="manage"] .cc-desc[data-astro-cid-hq3mgpmn] {
    display: block;
  }

  .cc[data-astro-cid-hq3mgpmn][data-mode="manage"] .cc-links[data-astro-cid-hq3mgpmn] a[data-astro-cid-hq3mgpmn] {
    display: inline;
  }

  .cc[data-astro-cid-hq3mgpmn][data-mode="manage"] .cc-short[data-astro-cid-hq3mgpmn] {
    display: none;
  }

  .cc[data-astro-cid-hq3mgpmn][data-mode="manage"] .cc-desc[data-astro-cid-hq3mgpmn] {
    text-align: left;
    font-size: .8rem;
    margin-bottom: .55rem;
  }
}
