/* ==========================================================================
   Art Forma — site styles (inspired by design/buttons.html & design/elements.html)
   Served as a Cloudflare Worker static asset from /public
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-text: #18181b;
  --color-text-strong: #111111;
  --color-muted: #52525b;
  --color-muted-soft: #666666;
  --color-muted-faint: #71717a;
  --color-title-gray: #c4c4c7;
  --color-border: #eeeeee;
  --color-border-soft: #ededed;
  --color-surface: #fafafa;
  --color-green: #22c55e;
  /*
   * Blue scale — matched to brand logo rgb(37, 84, 230) / #2554e6.
   * Accent: icons, headings. Washes: hero / soft surfaces.
   */
  --color-blue: #2554e6;
  --color-blue-rgb: 37, 84, 230;
  --color-blue-deep: #1a3fc4;
  --color-blue-soft: #5f7eec;
  --color-blue-pale: #f5f7fe;
  --color-blue-wash: #eef1fc;
  --color-blue-wash-mid: #e4e9fa;
  --color-blue-glow: rgba(var(--color-blue-rgb), 0.14);
  --color-blue-glow-strong: rgba(var(--color-blue-rgb), 0.22);
  --font-sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --radius-pill: 9999px;
  --radius-card: 24px;
  --radius-card-sm: 16px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.02);
  --container: 720px;
  --container-wide: 720px;
  --section-gap: clamp(4rem, 10vw, 6.5rem);
  --page-pad-x: clamp(1rem, 4vw, 1.5rem);
  /* Approx header height so the hero wash can sit under it */
  --header-band: 4.5rem;
  /* Logo taller than CTA so the wordmark reads clearly */
  --header-logo-h: 40px;
  --header-cta-h: 36px;
  --ease: cubic-bezier(0, 0, 0.2, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   Layout shell
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--page-pad-x) * 2), var(--container));
  margin-inline: auto;
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  /* Transparent so the hero wash (white at top) shows through */
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

/* Wordmark logo (viewBox 1000×175) — slightly taller than header CTA */
.brand-logo {
  display: block;
  height: var(--header-logo-h);
  width: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-nav > a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s var(--ease);
}

.site-nav > a:not(.btn):hover {
  color: var(--color-text-strong);
}

.site-nav-cta {
  flex-shrink: 0;
  height: var(--header-cta-h);
  font-size: 0.875rem;
  padding-left: 12px;
  padding-right: 14px;
  column-gap: 6px;
}

.site-nav-cta .btn-icon--lg {
  width: 14px;
  height: 14px;
}

main {
  flex: 1;
  width: 100%;
}

.container {
  width: min(100% - (var(--page-pad-x) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

.section + .section {
  padding-top: 0;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-title {
  /* Match services / FAQ section headings */
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text-strong);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-muted-soft);
  font-weight: 400;
  max-width: 36rem;
  margin-inline: auto;
}

/* ==========================================================================
   Buttons (from design/buttons.html)
   ========================================================================== */

.btn {
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  height: 40px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  transition-property: color, background-color, border-color, opacity, box-shadow, transform;
  transition-duration: 0.15s;
  transition-timing-function: var(--ease);
}

.btn > span {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.98);
}

.btn-black {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  border-radius: var(--radius-pill);
  /* Symmetric by default so text-only labels center correctly */
  padding-left: 18px;
  padding-right: 18px;
  box-shadow:
    rgba(0, 0, 0, 0.14) 0px 4px 6px 0px,
    rgb(43, 45, 67) 0px 0px 0px 1px,
    rgb(244, 246, 248) 0px 0px 0px 2px,
    rgba(255, 255, 255, 0.3) 0px 9px 14px -5px inset;
}

.btn-black:hover {
  background-color: rgb(20, 20, 20);
  box-shadow:
    rgba(0, 0, 0, 0.18) 0px 6px 10px 0px,
    rgb(43, 45, 67) 0px 0px 0px 1px,
    rgb(244, 246, 248) 0px 0px 0px 2px,
    rgba(255, 255, 255, 0.35) 0px 9px 14px -5px inset;
}

.btn-black .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  color: rgb(255, 255, 255);
  flex-shrink: 0;
}

.btn-black .btn-icon--lg {
  width: 16px;
  height: 16px;
}

.btn-white {
  background-color: rgb(255, 255, 255);
  color: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-pill);
  padding-left: 18px;
  padding-right: 18px;
  box-shadow:
    rgba(0, 0, 0, 0.05) 0px 0px 0px 2px,
    rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}

.btn-white:hover {
  background-color: rgb(250, 250, 250);
  color: rgba(0, 0, 0, 0.85);
  box-shadow:
    rgba(0, 0, 0, 0.08) 0px 0px 0px 2px,
    rgba(0, 0, 0, 0.12) 0px 2px 4px 0px;
}

.btn-white .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.btn-white .btn-icon--lg {
  width: 16px;
  height: 16px;
  color: var(--color-text-strong);
}

.btn-pad-lg {
  padding-left: 22px;
  padding-right: 22px;
}

/* Trailing small chevron — keep extra room on the right */
.btn-black:has(> .btn-icon:not(.btn-icon--lg)) {
  padding-left: 18px;
  padding-right: 12px;
}

/* Leading large icon */
.btn-black:has(.btn-icon--lg) {
  padding-left: 14px;
  padding-right: 18px;
}

.btn-white:has(.btn-icon:not(.btn-icon--lg)) {
  padding-left: 14px;
  padding-right: 18px;
}

.btn-white:has(.btn-icon--lg) {
  padding-left: 14px;
  padding-right: 16px;
}

/* ==========================================================================
   Hero — soft sky-blue wash, extends under header, white at top
   ========================================================================== */

.hero-band {
  width: 100%;
  /* Pull up under the site header so the wash reaches the viewport top */
  margin-top: calc(-1 * var(--header-band));
  padding-top: var(--header-band);
  background-color: #ffffff;
  background-image:
    /* Side/bottom glows — same hue as --color-blue */
    radial-gradient(
      ellipse 90% 55% at 85% 100%,
      var(--color-blue-glow-strong) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 80% 45% at 10% 95%,
      var(--color-blue-glow) 0%,
      transparent 48%
    ),
    /* Soft white bloom mid-hero so text stays clean */
    radial-gradient(
      ellipse 90% 50% at 50% 42%,
      rgba(255, 255, 255, 0.7) 0%,
      transparent 60%
    ),
    /* Main vertical wash: pure white through header, then soft blue */
    linear-gradient(
      180deg,
      #ffffff 0%,
      #ffffff calc(var(--header-band) * 0.7),
      var(--color-blue-pale) calc(var(--header-band) + 1.5rem),
      var(--color-blue-wash) calc(var(--header-band) + 8rem),
      var(--color-blue-wash-mid) 100%
    );
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 9vw, 5rem) var(--section-gap);
}

.hero-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.65rem, 7.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--color-text-strong);
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-muted);
  font-weight: 400;
  max-width: 32rem;
}

.hero-lede p + p {
  margin-top: 0.25rem;
}

.hero-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-green);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-icon {
  width: 14px;
  height: 14px;
  color: var(--color-blue);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Email on its own row above the primary CTAs */
.hero-actions--stack {
  flex-direction: column;
  gap: 0.75rem;
}

.hero-actions-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions--start {
  justify-content: flex-start;
  margin-top: 1.75rem;
}

/* ==========================================================================
   Services — animated ticker (design/services-block.html section 2)
   ========================================================================== */

.services-ticker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.services-ticker-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 28rem;
}

.services-ticker-title {
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text-strong);
  margin: 0 0 0.85rem;
}

.services-ticker-lede {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 24rem;
}

.services-ticker-copy .page-eyebrow {
  margin-bottom: 0.65rem;
}

/* Dual-column continuous scroll with fade masks */
.ticker-viewport {
  height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1rem;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 16%,
    black 84%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 16%,
    black 84%,
    transparent 100%
  );
}

.ticker-column {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  will-change: transform;
}

.ticker-track--up {
  animation: tickerScrollUp 22s linear infinite;
}

.ticker-track--down {
  animation: tickerScrollDown 26s linear infinite;
}

.ticker-viewport:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes tickerScrollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #555555;
  white-space: nowrap;
  padding: 0.1rem 0;
}

.ticker-item svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Cards — blog & generic
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-card-sm);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.15s var(--ease),
    border-color 0.15s var(--ease),
    transform 0.15s var(--ease);
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card:hover,
.card--blog:hover {
  border-color: #e0e0e0;
  box-shadow:
    rgba(0, 0, 0, 0.04) 0px 4px 12px 0px,
    0 0 0 1px rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
}

/* Blog cards — text-led, brand blue titles (no cover images) */
.card--blog {
  padding: 1.2rem 1.3rem 1.35rem;
}

.card-cover {
  width: 100%;
  aspect-ratio: 3 / 1;
  background-color: #e8e8ea;
  position: relative;
  overflow: hidden;
}

/* Abstract gray placeholders — distinct geometric patterns per post */
.card-cover--1 {
  background:
    linear-gradient(135deg, #d4d4d8 0%, transparent 50%),
    linear-gradient(225deg, #c4c4c8 0%, transparent 45%),
    radial-gradient(circle at 78% 28%, #b8b8be 0%, transparent 38%),
    #e4e4e7;
}

.card-cover--1::after {
  content: "";
  position: absolute;
  inset: 18% 12% auto auto;
  width: 42%;
  height: 42%;
  border: 2px solid rgba(24, 24, 27, 0.12);
  border-radius: 50%;
}

.card-cover--2 {
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(24, 24, 27, 0.06) 11px,
      rgba(24, 24, 27, 0.06) 12px
    ),
    linear-gradient(160deg, #dedee2 0%, #ececee 48%, #d0d0d5 100%);
}

.card-cover--2::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 18%;
  width: 55%;
  height: 38%;
  background: rgba(24, 24, 27, 0.06);
  border-radius: 12px 12px 4px 4px;
  transform: skewX(-8deg);
}

.card-cover--3 {
  background:
    radial-gradient(circle at 22% 70%, #c8c8ce 0%, transparent 32%),
    radial-gradient(circle at 70% 30%, #bcbcc2 0%, transparent 36%),
    linear-gradient(20deg, #e6e6e9 0%, #d2d2d6 100%);
}

.card-cover--3::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 48%,
      rgba(24, 24, 27, 0.05) 48%,
      rgba(24, 24, 27, 0.05) 52%,
      transparent 52%
    ),
    linear-gradient(
      0deg,
      transparent 0%,
      transparent 48%,
      rgba(24, 24, 27, 0.05) 48%,
      rgba(24, 24, 27, 0.05) 52%,
      transparent 52%
    );
}

.page-cover {
  border-radius: var(--radius-card-sm);
  margin-bottom: 1.5rem;
  aspect-ratio: 3 / 1;
}

/* Real header photo (overrides abstract pattern variants) */
.card-cover--photo {
  background-color: #e8e8ea;
}

.card-cover--photo::after {
  display: none;
}

.card-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--color-text-strong);
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-strong);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.card-body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-muted-soft);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted-faint);
}

.card-meta time {
  font-variant-numeric: tabular-nums;
}

.tag-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  transition:
    color 0.15s var(--ease),
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}

a.card-tag:hover {
  color: var(--color-text-strong);
  border-color: #d4d4d8;
  background: #f4f4f5;
}

.card-tag--active {
  color: #fff;
  background: var(--color-text-strong);
  border-color: var(--color-text-strong);
}

a.card-tag--active:hover {
  color: #fff;
  background: #27272a;
  border-color: #27272a;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0 1.75rem;
}

.tag-filter .card-tag {
  height: 28px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.blog-grid--page {
  margin-top: 0.25rem;
}

.blog-card-title {
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--color-blue);
  margin: 0.45rem 0 0.5rem;
  line-height: 1.25;
}

.blog-card-title-link {
  color: inherit;
  text-decoration: none;
}

.blog-card-title-link:hover {
  color: var(--color-blue-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Blog post page: black title + dotted band (same pattern as homepage) */
.page h1.post-title {
  color: var(--color-text-strong);
  letter-spacing: -0.025em;
  margin-bottom: 0;
}

.page .dot-band {
  margin: 1rem 0 1.35rem;
  /* Same 6px grid as homepage; logo blue instead of black */
  background-image: radial-gradient(
    var(--color-blue) 0.85px,
    transparent 0.85px
  );
  opacity: 0.45;
}

.blog-empty {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 1rem;
}

.blog-empty a {
  color: var(--color-text-strong);
  text-underline-offset: 3px;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-faint);
}

.post-meta time {
  font-variant-numeric: tabular-nums;
}

.post-reading-time {
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
}

.post-license {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-muted-faint);
}

.post-license-label {
  font-weight: 600;
  color: var(--color-muted);
  margin-right: 0.35rem;
}

.admin-reading-time {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.admin-reading-time strong {
  color: var(--color-text-strong);
  font-weight: 600;
}

.card-author {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.card-author a {
  color: var(--color-text-strong);
  font-weight: 500;
  text-decoration: none;
}

.card-author a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Author byline on post pages (clear authorship for readers + Google) */
.author-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
}

.author-byline-photo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.author-byline-photo--placeholder {
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-muted);
}

.author-byline-text {
  min-width: 0;
}

.author-byline-line {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-strong);
  line-height: 1.35;
}

.author-byline-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted-faint);
  margin-right: 0.35rem;
}

.author-byline-name {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

a.author-byline-name:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.author-byline-role {
  color: var(--color-muted);
  font-weight: 400;
}

.author-byline-date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--color-muted-faint);
  font-variant-numeric: tabular-nums;
}

.author-card {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  background: var(--color-surface);
}

.author-card-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.author-card-photo {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  background: #fff;
}

.author-card-photo--placeholder {
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-muted);
}

.author-card-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted-faint);
}

.author-card-name {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.author-card-name a {
  color: inherit;
  text-decoration: none;
}

.author-card-name a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.author-card-role {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.author-card-bio {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--color-text);
}

.author-card-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.85rem 0 0;
  padding: 0;
  font-size: 0.85rem;
}

.author-card-links a {
  color: var(--color-blue-deep);
  font-weight: 500;
  text-decoration: none;
}

.author-card-links a:hover {
  text-decoration: underline;
}

.author-card-more {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.author-card-more a {
  color: var(--color-blue-deep);
  font-weight: 500;
}

.author-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 0.5rem 0 2rem;
}

.author-profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.author-profile-photo--placeholder {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-muted);
}

.author-profile-role {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.author-profile-bio {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  line-height: 1.55;
  color: var(--color-text);
}

.author-posts-title {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0 0 1rem;
}

.admin-author-thumb-cell {
  width: 2.5rem;
}

.admin-author-thumb {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.admin-author-thumb--empty {
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
}

.admin-author-headshot-preview {
  margin-top: 0.5rem;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.admin-author-headshot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-author-headshot-preview .admin-cover-preview-empty {
  min-height: 100%;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.5rem;
}

.admin-media-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.admin-media-upload input[type='file'] {
  min-width: 0;
  max-width: 100%;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.admin-media-upload .btn {
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
}

.admin-media-status {
  flex-basis: 100%;
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.admin-media-status--error {
  color: #991b1b;
}

@media (max-width: 520px) {
  .author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-profile-bio {
    margin-inline: auto;
  }
}

.page--blog h1 {
  margin-bottom: 1.25rem;
}

.page-lede {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 36rem;
}

.section-footer-link {
  margin-top: 1.5rem;
  text-align: center;
}

/* ==========================================================================
   Editorial / divider band (from elements.html)
   ========================================================================== */

.dot-band {
  width: 100%;
  height: 42px;
  background-image: radial-gradient(#000000 0.85px, transparent 0.85px);
  background-size: 6px 6px;
  opacity: 0.35;
}

.editorial {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.editorial-inner {
  padding: 3rem var(--page-pad-x);
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.editorial-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--color-text-strong);
  font-weight: 400;
}

.editorial-text a {
  color: var(--color-text-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s;
}

.editorial-text a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   FAQ (from elements.html)
   ========================================================================== */

.faq {
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-title {
  text-align: center;
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.faq-title .gray {
  color: var(--color-title-gray);
}

.faq-title .black {
  color: var(--color-text-strong);
}

.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.15s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: #000000;
}

.faq-icon {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-muted-faint);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted-soft);
  max-width: 36rem;
}

.faq-footer {
  margin-top: 2.25rem;
  font-size: 0.9375rem;
  color: var(--color-muted-faint);
  text-align: center;
}

.faq-footer a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Newsletter CTA — same editorial band language as partner invite
   ========================================================================== */

.newsletter .editorial-inner {
  gap: 1.25rem;
}

.newsletter-heading {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
  color: var(--color-blue);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 26rem;
}

.newsletter-input {
  flex: 1 1 12rem;
  min-width: 0;
  height: 40px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.9875rem;
  font-weight: 500;
  color: var(--color-text);
  background: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow:
    rgba(0, 0, 0, 0.05) 0px 0px 0px 2px,
    rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
  outline: none;
  transition: box-shadow 0.15s var(--ease);
}

.newsletter-input::placeholder {
  color: var(--color-muted-faint);
  font-weight: 400;
}

.newsletter-input:hover {
  box-shadow:
    rgba(0, 0, 0, 0.08) 0px 0px 0px 2px,
    rgba(0, 0, 0, 0.12) 0px 2px 4px 0px;
}

.newsletter-input:focus {
  box-shadow:
    rgba(0, 0, 0, 0.12) 0px 0px 0px 2px,
    rgba(0, 0, 0, 0.08) 0px 2px 6px 0px;
}

.newsletter-form .btn {
  flex: 0 0 auto;
}

.newsletter-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted-faint);
  max-width: 24rem;
}

.newsletter-status {
  margin: 0;
  font-size: 0.9875rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 24rem;
}

.newsletter-status--ok {
  color: #15803d;
}

.newsletter-status--error {
  color: #b91c1c;
}

.newsletter-input[aria-invalid='true'] {
  box-shadow:
    rgba(185, 28, 28, 0.3) 0px 0px 0px 2px,
    rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

/* Screen-reader only labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Contact page — CTAs + booking calendar + classical form
   ========================================================================== */

.container--wide {
  width: min(100% - (var(--page-pad-x) * 2), 980px);
}

.contact-page {
  padding-block: clamp(2rem, 6vw, 3rem) var(--section-gap);
}

.contact-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text-strong);
  margin: 0 0 0.75rem;
}

.contact-lede {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.contact-ctas {
  justify-content: center;
}

.contact-flash {
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.contact-flash--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Booking card (design/callendar.html) */
.booking-card {
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: 20px;
  box-shadow:
    0 10px 30px -5px rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.booking-card.is-success {
  grid-template-rows: 1fr;
}

.booking-sidebar {
  grid-row: 1;
  grid-column: 1;
  padding: 1.5rem 1.25rem;
  border-right: 1px solid #f4f4f5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface);
  min-width: 0;
}

.booking-main {
  grid-row: 1;
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.booking-footer-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid #f4f4f5;
  background: #fafafa;
}

.booking-footer-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.booking-footer-summary svg {
  flex-shrink: 0;
  color: var(--color-muted-faint);
}

/* Blue text only once a full slot is chosen */
.booking-footer-summary.is-selected,
.booking-footer-summary [data-footer-text].is-selected {
  color: var(--color-blue);
}

.booking-footer-summary.is-selected svg {
  color: var(--color-blue);
}

.booking-footer-bar .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* .btn { display: inline-flex } would otherwise override the HTML hidden attr */
.booking-footer-bar .btn[hidden] {
  display: none !important;
}

/* On form step, footer only shows the summary (Potrdi termin lives in the form) */
.booking-card.is-step-2 .booking-footer-bar .btn {
  display: none !important;
}

.booking-avatar-mark {
  margin-bottom: 0.85rem;
}

.booking-host {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted-faint);
  margin-bottom: 0.15rem;
}

.booking-event-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-strong);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.booking-description {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.booking-description p {
  margin: 0 0 0.25rem;
}

.booking-highlight {
  font-weight: 600;
  color: var(--color-text);
  margin-top: 0.5rem !important;
}

.booking-description ul {
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0;
}

.booking-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #3f3f46;
  margin-top: 1rem;
  padding-top: 1rem;
}

.booking-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.booking-meta-item svg {
  flex-shrink: 0;
  color: var(--color-muted-faint);
}

.booking-step {
  display: flex;
  flex: 1;
  min-width: 0;
}

.booking-step[hidden],
.booking-form-section[hidden] {
  display: none !important;
}

.booking-calendar-section {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.booking-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}

.booking-month-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: capitalize;
}

.booking-calendar-nav {
  display: flex;
  gap: 0.35rem;
}

.booking-nav-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-muted-faint);
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.booking-nav-btn:hover {
  background: #f4f4f5;
  color: var(--color-text);
}

.booking-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 0.6rem;
}

.booking-weekday {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.booking-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.booking-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--color-text);
  cursor: default;
  position: relative;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
  user-select: none;
  padding: 0;
}

.booking-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.booking-day.is-disabled {
  color: #d4d4d8;
  cursor: default;
}

.booking-day.is-available {
  background: #f4f4f5;
  font-weight: 600;
  cursor: pointer;
}

.booking-day.is-available:hover {
  background: #e4e4e7;
}

.booking-day.is-selected {
  background: #000 !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.booking-timeslots {
  width: 200px;
  padding: 1.5rem 1.15rem;
  border-left: 1px solid #f4f4f5;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.booking-timeslots-header {
  margin-bottom: 1rem;
}

.booking-slot-header {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.booking-slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 380px;
  padding-right: 0.25rem;
}

.booking-slots-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted-faint);
  line-height: 1.45;
}

.booking-slot-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.booking-slot-btn {
  width: 100%;
  height: 38px;
  border: 1px solid #e4e4e7;
  background: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition:
    border-color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.booking-slot-btn:hover {
  border-color: #000;
  background: #fafafa;
}

.booking-slot-btn.is-selected {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* Step 2 form (inside calendar widget) */
.booking-form-section {
  flex: 1;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.booking-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.booking-field--full {
  grid-column: 1 / -1;
}

.booking-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.booking-label .required {
  color: var(--color-text);
}

.booking-input,
.booking-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--color-text);
  outline: none;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.booking-input {
  height: 36px;
}

.booking-textarea {
  resize: none;
  line-height: 1.35;
  min-height: 3.25rem;
}

.booking-input:focus,
.booking-textarea:focus {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
}

/* Styled topic checkboxes */
.booking-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.booking-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem 0.45rem 0.55rem;
  border: 1px solid #e4e4e7;
  border-radius: 9999px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  transition:
    border-color 0.15s var(--ease),
    background-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    color 0.15s var(--ease);
  user-select: none;
}

.booking-check:hover {
  border-color: #d4d4d8;
  background: #fafafa;
}

.booking-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.booking-check-ui {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid #d4d4d8;
  background: #fff;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition:
    border-color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.booking-check-ui::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-0.5px) scale(0);
  transition: transform 0.12s var(--ease);
}

.booking-check:has(input:checked) {
  border-color: #000;
  background: #f4f4f5;
  box-shadow: 0 0 0 1px #000;
}

.booking-check:has(input:checked) .booking-check-ui {
  border-color: #000;
  background: #000;
}

.booking-check:has(input:checked) .booking-check-ui::after {
  transform: rotate(-45deg) translateY(-0.5px) scale(1);
}

.booking-check:has(input:focus-visible) {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.booking-check-error {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #b91c1c;
}

.booking-check-error[hidden] {
  display: none !important;
}

.booking-terms {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  color: var(--color-muted-faint);
  line-height: 1.45;
}

.booking-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f4f4f5;
}

/* Success state */
.booking-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem;
  flex: 1;
}

.booking-success-icon {
  width: 52px;
  height: 52px;
  background: #18181b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.booking-success-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-strong);
  margin: 0 0 0.4rem;
}

.booking-success-text {
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 22rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

@media (max-width: 860px) {
  .booking-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .booking-sidebar {
    grid-row: 1;
    grid-column: 1;
    border-right: none;
    border-bottom: 1px solid #f4f4f5;
  }

  .booking-main {
    grid-row: 2;
    grid-column: 1;
  }

  .booking-footer-bar {
    grid-row: 3;
    grid-column: 1;
  }

  .booking-step {
    flex-direction: column;
  }

  .booking-timeslots {
    width: 100%;
    border-left: none;
    border-top: 1px solid #f4f4f5;
  }

  .booking-slots-list {
    max-height: 240px;
  }

  .booking-form-grid {
    grid-template-columns: 1fr;
  }

  .booking-field--full {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .contact-ctas {
    flex-direction: column;
    width: 100%;
  }

  .contact-ctas .btn {
    width: 100%;
  }

  .booking-footer-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-footer-bar .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Inner pages (blog, contact, 404)
   ========================================================================== */

.page {
  max-width: 40rem;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 8vw, 4rem) var(--section-gap);
}

.page-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-muted-faint);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text-strong);
  margin-bottom: 1rem;
}

.page > p {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page > p a {
  color: var(--color-text-strong);
  text-underline-offset: 3px;
}

/* ==========================================================================
   Footer / impressum
   ========================================================================== */

.site-footer {
  width: min(100% - (var(--page-pad-x) * 2), var(--container));
  margin-inline: auto;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted-faint);
  font-size: 0.8125rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.brand-logo--footer {
  height: 32px;
  max-width: min(200px, 70vw);
}

.impressum {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.impressum-name {
  font-weight: 600;
  color: var(--color-muted);
}

.impressum-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.impressum a:not(.btn) {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.impressum a:not(.btn):hover {
  color: var(--color-text-strong);
}

/* Email + phone pill buttons (homepage, blog, footer) */
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact-pills--below-header {
  padding-block: 0.25rem 1.25rem;
  justify-content: center;
}

.contact-pills--footer {
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
  gap: 0.65rem;
  justify-content: center;
}

.contact-pills--footer .btn {
  font-size: 0.875rem;
  height: 36px;
  text-decoration: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .services-ticker-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem 3rem;
    align-items: center;
  }

  .ticker-viewport {
    height: 380px;
    min-width: 0;
  }
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .ticker-viewport {
    height: 420px;
    gap: 1.25rem;
  }

  .ticker-item {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-logo-h: 36px;
    --header-cta-h: 32px;
    --header-band: 4.25rem;
  }

  .site-header {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-block: 1rem;
  }

  .site-nav-cta {
    font-size: 0.8125rem;
    height: var(--header-cta-h);
    padding-left: 10px;
    padding-right: 12px;
    column-gap: 5px;
  }

  .site-nav-cta .btn-icon--lg {
    width: 12px;
    height: 12px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions-row {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 20rem;
  }

  .btn-black {
    padding-right: 18px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .impressum-meta {
    flex-direction: column;
    gap: 0.2rem;
  }

  .ticker-viewport {
    height: 280px;
  }

  .ticker-item {
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  a.card,
  .faq-icon,
  .site-nav a {
    transition: none;
  }

  .ticker-track--up,
  .ticker-track--down {
    animation: none;
  }

  /* Show a static, non-looping slice of the list */
  .ticker-viewport {
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
    flex-direction: column;
    gap: 0.75rem;
  }

  .ticker-column {
    overflow: visible;
  }

  .ticker-track {
    /* Only the first half is “real” items before the duplicate loop */
    max-height: none;
  }

  .ticker-track .ticker-item:nth-child(n + 11) {
    display: none;
  }

  .btn:active,
  a.card:hover {
    transform: none;
  }
}

/* ==========================================================================
   Admin (Basic Auth CMS)
   ========================================================================== */

body:has(.admin) .site-header,
body:has(.admin) .site-footer {
  display: none;
}

body:has(.admin) {
  background: var(--color-surface);
}

.admin {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-bar {
  background: var(--color-text-strong);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-bar-inner {
  width: min(100% - (var(--page-pad-x) * 2), 1200px);
  margin-inline: auto;
  padding-block: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
}

.admin-brand-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.admin-brand-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.admin-nav-link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.admin-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav-link--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.admin-exit {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  text-decoration: none;
}

.admin-exit:hover {
  color: #fff;
  text-decoration: underline;
}

.admin-body {
  width: min(100% - (var(--page-pad-x) * 2), 1200px);
  margin-inline: auto;
  padding-block: 1.75rem 3rem;
}

.admin-header {
  margin-bottom: 1.25rem;
}

.admin-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
}

.admin-flash {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.admin-flash--ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.admin-flash--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.admin-panel--collapsible {
  padding-top: 0.85rem;
}

.admin-panel-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.admin-panel-summary::-webkit-details-marker {
  display: none;
}

.admin-panel-summary .admin-panel-title {
  margin: 0;
}

/* ==========================================================================
   Calendar admin — explicit date openings
   ========================================================================== */

.cal-admin-mount {
  margin-bottom: 1.25rem;
}

.cal-admin-lede {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
  max-width: 40rem;
  line-height: 1.45;
}

.cal-admin-status {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
}

.cal-admin-status--ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.cal-admin-status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cal-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .cal-admin-layout {
    grid-template-columns: 1fr;
  }
}

.cal-admin-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: var(--shadow-card);
}

.cal-admin-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cal-admin-month-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0;
  text-transform: capitalize;
}

.cal-admin-month-nav {
  display: flex;
  gap: 0.35rem;
}

.cal-admin-nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-strong);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.cal-admin-nav-btn:hover {
  border-color: var(--color-blue-soft);
  background: var(--color-blue-wash);
}

.cal-admin-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.cal-admin-weekday {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted-faint);
  padding: 0.2rem 0;
}

.cal-admin-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.cal-admin-day {
  position: relative;
  aspect-ratio: 1;
  min-height: 2.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.12s var(--ease),
    border-color 0.12s var(--ease),
    color 0.12s var(--ease);
}

.cal-admin-day--empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.cal-admin-day--past {
  opacity: 0.35;
  cursor: not-allowed;
}

.cal-admin-day--open {
  background: var(--color-blue-wash);
  border-color: var(--color-blue-soft);
  color: var(--color-blue-deep);
  font-weight: 600;
}

.cal-admin-day--closed {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.cal-admin-day--selected {
  border-color: var(--color-text-strong);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.12);
  background: #fff;
}

.cal-admin-day--open.cal-admin-day--selected {
  background: var(--color-blue-wash-mid);
}

.cal-admin-day:not(:disabled):hover {
  border-color: var(--color-blue-soft);
}

.cal-admin-day-dot {
  position: absolute;
  bottom: 0.28rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--color-blue);
}

.cal-admin-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0.9rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.cal-admin-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cal-admin-legend-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.cal-admin-legend-swatch--open {
  background: var(--color-blue-wash);
  border-color: var(--color-blue-soft);
}

.cal-admin-legend-swatch--closed {
  background: #fef2f2;
  border-color: #fecaca;
}

.cal-admin-legend-swatch--selected {
  background: #fff;
  border-color: var(--color-text-strong);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.1);
}

.cal-admin-detail-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 0.85rem;
}

.cal-admin-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text-strong);
}

.cal-admin-closed-banner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #991b1b;
  font-size: 0.9rem;
}

.cal-admin-opening-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cal-admin-opening-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.9rem;
}

.cal-admin-form-hint {
  font-size: 0.8rem;
  color: var(--color-muted-faint);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.cal-admin-slots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.cal-admin-slots-head .cal-admin-subtitle {
  margin: 0;
}

.cal-admin-slots-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: flex-end;
}

.cal-admin-slot-checks {
  margin-top: 0.15rem;
  margin-bottom: 0.25rem;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.15rem 0.1rem 0.35rem;
}

.cal-admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.cal-admin-upcoming-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.cal-admin-upcoming-times {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.45;
  word-break: break-word;
}

.cal-admin-panel--list {
  margin-top: 0;
}

.cal-admin-upcoming {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cal-admin-upcoming-day {
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

.cal-admin-upcoming-day:first-child {
  border-top: none;
  padding-top: 0;
}

.cal-admin-upcoming-date {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--color-blue-deep);
  cursor: pointer;
  text-align: left;
}

.cal-admin-upcoming-date:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FAQ inline editor (admin)
   ========================================================================== */

.faq-editor-mount {
  min-height: 8rem;
}

.faq-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.faq-editor-hint {
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 36rem;
  line-height: 1.4;
}

.faq-editor-status {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
}

.faq-editor-status--ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.faq-editor-status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.faq-editor-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.faq-editor-row {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    opacity 0.15s var(--ease);
}

.faq-editor-row--editing {
  border-color: var(--color-blue-soft);
  box-shadow: 0 0 0 3px var(--color-blue-glow);
}

.faq-editor-row--dragging {
  opacity: 0.45;
}

.faq-editor-row--over {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 2px var(--color-blue-glow-strong);
}

.faq-editor-row--busy {
  opacity: 0.7;
  pointer-events: none;
}

.faq-editor-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem 0.75rem;
  padding: 0.85rem 0.95rem;
}

.faq-editor-handle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0.1rem;
  border-radius: 8px;
  color: var(--color-muted-faint);
  cursor: grab;
  user-select: none;
  touch-action: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.faq-editor-handle:hover {
  color: var(--color-text-strong);
  border-color: var(--color-border-soft);
}

.faq-editor-handle:active {
  cursor: grabbing;
}

.faq-editor-handle[aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
}

.faq-editor-index {
  flex: 0 0 auto;
  min-width: 1.5rem;
  margin-top: 0.35rem;
  color: var(--color-muted-faint);
  font-size: 0.8rem;
}

.faq-editor-summary {
  flex: 1 1 12rem;
  min-width: 0;
}

.faq-editor-question {
  font-weight: 600;
  color: var(--color-text-strong);
  line-height: 1.35;
  margin: 0;
}

.faq-editor-answer-preview {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.faq-editor-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
}

.faq-editor-action {
  font-size: 0.85rem;
}

.faq-editor-action--danger:hover {
  color: #b91c1c;
}

.faq-editor-edit-head {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 2rem;
}

.faq-editor-edit-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.faq-editor-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1rem 1.1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.faq-editor-form .admin-field input[type='text'],
.faq-editor-form .admin-field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--color-text-strong);
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  width: 100%;
}

.faq-editor-form .admin-field input:focus,
.faq-editor-form .admin-field textarea:focus {
  outline: none;
  border-color: var(--color-blue-soft);
  box-shadow: 0 0 0 3px var(--color-blue-glow);
}

.faq-editor-form .admin-field textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.45;
}

.faq-editor-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .faq-editor-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .faq-editor-toolbar .btn {
    width: 100%;
  }

  .faq-editor-row-main {
    flex-direction: row;
  }

  .faq-editor-row-actions {
    width: 100%;
    margin-left: 2.75rem;
  }
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.admin-card:hover {
  border-color: var(--color-blue-soft);
  box-shadow: 0 4px 16px var(--color-blue-glow);
}

.admin-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted-faint);
}

.admin-card-value {
  margin-top: 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-strong);
  line-height: 1.1;
}

.admin-card-muted {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted-faint);
}

.admin-card-hint {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  padding: 1.25rem 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.admin-panel-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.admin-panel-lede {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  max-width: 40rem;
}

.admin-panel-lede code {
  font-size: 0.8em;
  background: var(--color-surface);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.admin-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
}

.admin-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-link-list a {
  color: var(--color-blue);
  font-weight: 500;
  text-decoration: none;
}

.admin-link-list a:hover {
  text-decoration: underline;
}

.admin-empty {
  color: var(--color-muted);
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 0.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted-faint);
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table a {
  color: var(--color-blue-deep);
  font-weight: 500;
  text-decoration: none;
}

.admin-table a:hover {
  text-decoration: underline;
}

.admin-mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
}

.admin-muted {
  color: var(--color-muted-faint);
  font-size: 0.8rem;
}

.admin-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.admin-badge--ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  white-space: nowrap;
}

.admin-actions form {
  display: inline;
  margin: 0;
}

.admin-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-link-btn:hover {
  color: #b91c1c;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: none;
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  padding: 1.35rem 1.5rem 1.65rem;
  box-shadow: var(--shadow-card);
}

/* Compact forms (FAQ) stay readable; blog editor uses full width */
.admin-form--narrow {
  max-width: 40rem;
}

.admin-form--inline {
  max-width: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.admin-form--inline .admin-field {
  min-width: 8rem;
  flex: 1 1 8rem;
}

.admin-form--inline .admin-check {
  margin-bottom: 0.35rem;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.admin-field > span:first-child {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.admin-field-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-muted-faint);
}

.admin-field input[type='text'],
.admin-field input[type='number'],
.admin-field input[type='date'],
.admin-field input[type='time'],
.admin-field input[type='email'],
.admin-field select,
.admin-field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--color-text-strong);
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  width: 100%;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--color-blue-soft);
  box-shadow: 0 0 0 3px var(--color-blue-glow);
}

.admin-field textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.45;
}

.admin-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.admin-form-row .admin-field {
  flex: 1 1 10rem;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.admin-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-blue);
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .admin-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-brand {
    margin-right: 0;
  }

  .admin-form--inline {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form--inline .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Slate editor (admin blog) + public post body
   ========================================================================== */

.slate-mount {
  min-height: 20rem;
}

.slate-editor {
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.admin-cover-preview {
  margin-top: 0.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  aspect-ratio: 3 / 1;
  max-height: 14rem;
}

.admin-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-cover-preview-empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 6rem;
  font-size: 0.8rem;
  color: var(--color-muted-faint);
}

.slate-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.slate-toolbar-btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.slate-toolbar-btn:hover {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-text-strong);
}

.slate-toolbar-btn--active {
  background: var(--color-blue-wash);
  border-color: var(--color-blue-soft);
  color: var(--color-blue-deep);
}

.slate-toolbar-sep {
  width: 1px;
  align-self: stretch;
  background: var(--color-border);
  margin-inline: 0.2rem;
}

.slate-editable {
  min-height: 18rem;
  max-height: 36rem;
  overflow-y: auto;
  padding: 1rem 1.15rem 1.35rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-strong);
  outline: none;
}

.slate-editable p {
  margin: 0 0 0.65em;
}

.slate-editable h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.9em 0 0.4em;
  letter-spacing: -0.02em;
}

.slate-editable h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0.8em 0 0.35em;
}

.slate-editable blockquote {
  margin: 0.75em 0;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 3px solid var(--color-blue-soft);
  color: var(--color-muted);
}

.slate-editable ul,
.slate-editable ol {
  margin: 0.5em 0 0.75em 1.25rem;
}

.slate-editable li {
  margin: 0.2em 0;
}

.slate-table-wrap,
.post-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1em 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  background: var(--color-bg);
}

.slate-editable .slate-table-wrap {
  margin: 0.85em 0;
}

.post-table,
.slate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-text);
}

.post-table th,
.post-table td,
.slate-table th,
.slate-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border-soft);
  min-width: 4.5rem;
}

.post-table th:last-child,
.post-table td:last-child,
.slate-table th:last-child,
.slate-table td:last-child {
  border-right: none;
}

.post-table tr:last-child th,
.post-table tr:last-child td,
.slate-table tr:last-child th,
.slate-table tr:last-child td {
  border-bottom: none;
}

.post-table th,
.slate-table th {
  font-weight: 600;
  color: var(--color-text-strong);
  background: var(--color-surface);
  letter-spacing: -0.01em;
}

.slate-table th,
.slate-table td {
  /* Editable cell affordance in the admin editor */
  outline: none;
}

.slate-table th:focus-within,
.slate-table td:focus-within {
  background: var(--color-blue-pale);
  box-shadow: inset 0 0 0 1px rgba(var(--color-blue-rgb), 0.28);
}

.slate-link {
  color: var(--color-blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.slate-editable [data-slate-placeholder] {
  color: var(--color-muted-faint) !important;
  opacity: 1 !important;
}

/* Custom link modal (replaces window.prompt) */
.slate-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(2px);
}

.slate-modal {
  width: min(100%, 26rem);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1.25rem 1.35rem 1.35rem;
}

.slate-modal--wide {
  width: min(100%, 32rem);
}

.slate-modal-field-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.65rem;
}

@media (max-width: 480px) {
  .slate-modal-field-row {
    grid-template-columns: 1fr;
  }
}

.slate-cite,
.post-cite {
  font-family: var(--font-sans);
  font-size: 0.75em;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
  white-space: nowrap;
}

.slate-cite-mark,
.post-cite-link {
  color: var(--color-blue-deep);
  text-decoration: none;
  border-radius: 3px;
  padding: 0 0.1em;
}

.slate-cite-mark:hover,
a.post-cite-link:hover {
  background: var(--color-blue-wash);
  text-decoration: underline;
  text-underline-offset: 1px;
}

.slate-cite {
  cursor: default;
  user-select: none;
}

.slate-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  margin: 0 0 0.35rem;
}

.slate-modal-lede {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.slate-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slate-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
}

.slate-modal-field input {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-strong);
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  width: 100%;
}

.slate-modal-field input:focus {
  outline: none;
  border-color: var(--color-blue-soft);
  box-shadow: 0 0 0 3px var(--color-blue-glow);
}

.slate-modal-error {
  margin: 0;
  font-size: 0.8rem;
  color: #b91c1c;
}

.slate-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.slate-modal-actions-spacer {
  flex: 1;
}

.slate-modal-actions-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.slate-modal-btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.slate-modal-btn--primary {
  background: var(--color-text-strong);
  color: #fff;
  border-color: var(--color-text-strong);
}

.slate-modal-btn--primary:hover {
  background: #000;
}

.slate-modal-btn--ghost {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.slate-modal-btn--ghost:hover {
  border-color: var(--color-muted-faint);
  color: var(--color-text-strong);
}

.slate-modal-btn--danger {
  background: transparent;
  color: #b91c1c;
  border-color: transparent;
  padding-inline: 0.5rem;
}

.slate-modal-btn--danger:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Public post body (HTML from Slate document) */
.post-excerpt {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}

.post-body > * + * {
  margin-top: 0.9em;
}

.post-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  margin-top: 1.5em;
}

.post-body h3 {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--color-text-strong);
  margin-top: 1.25em;
}

.post-body a {
  color: var(--color-blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--color-blue-soft);
  color: var(--color-muted);
}

.post-body ul,
.post-body ol {
  padding-left: 1.35rem;
}

.post-body li + li {
  margin-top: 0.25em;
}

.post-body .post-table-wrap {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.post-body .post-table {
  font-size: 0.95rem;
}

/* References / citations at end of post */
.post-references {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.post-references-title {
  font-size: 1.15rem !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  margin: 0 0 0.85rem !important;
}

.post-ref-list {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.post-ref-item {
  margin: 0.45em 0;
  padding-left: 0.15rem;
}

.post-ref-item:target {
  background: var(--color-blue-pale);
  border-radius: 6px;
  outline: 1px solid rgba(var(--color-blue-rgb), 0.2);
}

.post-ref-author {
  font-weight: 600;
  color: var(--color-text);
}

.post-ref-title {
  color: var(--color-text-strong);
}

.post-ref-year {
  color: var(--color-muted-soft);
}

.post-ref-note {
  color: var(--color-muted-faint);
  font-style: italic;
}

.post-ref-url {
  display: inline;
  word-break: break-all;
  color: var(--color-blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.9em;
}

.post-ref-back {
  margin-left: 0.35rem;
  color: var(--color-muted-faint);
  text-decoration: none;
  font-size: 0.85em;
}

.post-ref-back:hover {
  color: var(--color-blue-deep);
}

a.post-cite-link:target {
  background: var(--color-blue-wash);
  outline: 1px solid rgba(var(--color-blue-rgb), 0.25);
}
