/* ══════════════════════════════════════════════════════════════════════════════
   Bavaria Swiss AG — main stylesheet
   Themes: data-theme="dark" | data-theme="light"
   Admin shell always uses data-theme="dark".
   Public site defaults to "light"; user can toggle to "dark".
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Self-hosted fonts ───────────────────────────────────────────────────────── */
/* Run `make download-fonts` to populate /_/assets/fonts/ with the woff2 files. */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/_/assets/fonts/Bebas_Neue-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/_/assets/fonts/Barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/_/assets/fonts/Barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/_/assets/fonts/Barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/_/assets/fonts/Barlow_Condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/_/assets/fonts/Barlow_Condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/_/assets/fonts/Barlow_Condensed-700.woff2") format("woff2");
}

/* ── Theme-invariant tokens ──────────────────────────────────────────────────── */
:root {
  /* Fonts */
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-cond:    "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:    "Barlow", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-pill: 9999px;

  /* Easing */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:           0.3s;
  --t-fast:      0.15s;

  /* Layout */
  --max-w: 1400px;
  --nav-h: 66px;
}

/* ── Dark theme ──────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --accent:       #c0392b;
  --accent-hover: #e74c3c;
  --accent-dark:  #96281b;
  --accent-dim:   rgba(192,57,43,.16);

  --bg:           #0a0a0a;
  --bg-alt:       #111111;
  --bg-hover:     #1a1a1a;
  --surface:      #181818;
  --surface-alt:  #222222;
  --surface-hover:#2a2a2a;

  --text:          #f0f0f0;
  --text-muted:    #c0c0c0;   /* brighter than old #aaa — legible on dark bg */
  --text-faint:    #888888;
  --text-disabled: #4a4a4a;

  --border:        rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.18);
  --border-focus:  #c0392b;

  --nav-bg:        rgba(10,10,10,.94);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,.6);

  --success:      #27ae60;
  --success-dim:  rgba(39,174,96,.15);
  --warning:      #f39c12;
  --warning-dim:  rgba(243,156,18,.15);
  --danger:       #c0392b;
  --danger-dim:   rgba(192,57,43,.15);
  --info:         #2980b9;
  --info-dim:     rgba(41,128,185,.15);
}

/* ── Light theme ─────────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --accent:       #c0392b;
  --accent-hover: #e74c3c;
  --accent-dark:  #96281b;
  --accent-dim:   rgba(192,57,43,.10);

  --bg:           #f5f4f2;
  --bg-alt:       #eeede9;
  --bg-hover:     #e5e4df;
  --surface:      #ffffff;
  --surface-alt:  #f8f7f5;
  --surface-hover:#ededea;

  --text:          #111111;
  --text-muted:    #555555;
  --text-faint:    #999999;
  --text-disabled: #bbbbbb;

  --border:        rgba(0,0,0,.09);
  --border-strong: rgba(0,0,0,.18);
  --border-focus:  #c0392b;

  --nav-bg:        rgba(245,244,242,.97);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,.14);

  --success:      #27ae60;
  --success-dim:  rgba(39,174,96,.12);
  --warning:      #f39c12;
  --warning-dim:  rgba(243,156,18,.12);
  --danger:       #c0392b;
  --danger-dim:   rgba(192,57,43,.12);
  --info:         #2980b9;
  --info-dim:     rgba(41,128,185,.12);
}

/* ── Reset ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }

/* ── Typography helpers ──────────────────────────────────────────────────────── */
.text-muted    { color: var(--text-muted); }
.text-accent   { color: var(--accent); }
.text-success  { color: var(--success); }
.text-warning  { color: var(--warning); }
.text-danger   { color: var(--danger); }
.text-sm       { font-size: .875rem; }
.text-xs       { font-size: .75rem; }
.text-lg       { font-size: 1.125rem; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-cond     { font-family: var(--font-cond); }
.font-display  { font-family: var(--font-display); }
.truncate      { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase     { text-transform: uppercase; letter-spacing: .05em; }

/* ── Layout helpers ──────────────────────────────────────────────────────────── */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: .25rem; }
.gap-2  { gap: .5rem; }
.gap-3  { gap: .75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.flex-1 { flex: 1; }
.hidden { display: none; }
.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;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ADMIN SHELL  (always data-theme="dark")
   ══════════════════════════════════════════════════════════════════════════════ */

.admin-wrap {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  min-height: 64px;
}
.sidebar-logo img { height: 32px; width: auto; object-fit: contain; }
.sidebar-logo-text { font-size: .875rem; font-weight: 600; line-height: 1.2; color: var(--text); }
.sidebar-logo-sub  { font-size: .7rem; color: var(--text-muted); }

.sidebar-nav { flex: 1; padding: .75rem 0; overflow-y: auto; }

.nav-group { margin-bottom: 1.25rem; }
.nav-group-label {
  padding: .25rem 1rem;
  font-family: var(--font-cond);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-disabled);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  color: var(--text-muted);
  transition: color var(--t-fast), background var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.nav-item:hover  { color: var(--text); background: var(--bg-hover); }
.nav-item.active {
  color: var(--text);
  background: var(--accent-dim);
  border-right: 2px solid var(--accent);
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 1.75; }

.sidebar-footer { border-top: 1px solid var(--border); padding: .75rem 1rem; }
.sidebar-user   { display: flex; align-items: center; gap: .625rem; }
.sidebar-avatar {
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-cond);
  font-size: .8125rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-info  { flex: 1; min-width: 0; }
.sidebar-user-name  { font-size: .8125rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-email { font-size: .7rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-body    { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.admin-header {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  flex-shrink: 0;
  background: var(--bg);
}
.admin-header-title { font-size: 1rem; font-weight: 600; flex: 1; }

.admin-content { flex: 1; overflow-y: auto; padding: 2rem 1.5rem; }

/* ── Flash messages ──────────────────────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1rem;
  border-radius: var(--r-md);
  font-size: .875rem;
  margin-bottom: 1.5rem;
}
.flash-success { background: var(--success-dim); color: var(--success); border: 1px solid var(--success); }
.flash-error   { background: var(--danger-dim);  color: var(--danger);  border: 1px solid var(--danger); }
.flash-warning { background: var(--warning-dim); color: var(--warning); border: 1px solid var(--warning); }
.flash-info    { background: var(--info-dim);    color: var(--info);    border: 1px solid var(--info); }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-md); }
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: .9375rem; font-weight: 600; }
.card-body  { padding: 1.25rem; }

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
}
.stat-label {
  font-family: var(--font-cond);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text); }
.stat-sub   { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  font-family: var(--font-cond);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
  line-height: 1.25;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:not(:disabled):active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--border-strong); }

.btn-danger  { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-ghost   { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--bg-hover); }

.btn-sm  { padding: .3125rem .875rem; font-size: .8125rem; }
.btn-lg  { padding: .75rem 1.75rem; font-size: 1.0625rem; }
.btn-full { width: 100%; }

.btn-icon {
  padding: .375rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color var(--t-fast), background var(--t-fast);
}
.btn-icon:hover { color: var(--text); background: var(--bg-hover); }
.btn-icon svg  { width: 16px; height: 16px; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: .375rem;
  color: var(--text);
}
.form-label .required::after { content: " *"; color: var(--accent); }
.form-hint  { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }
.form-error { font-size: .75rem; color: var(--danger); margin-top: .25rem; }

.form-control {
  width: 100%;
  padding: .5625rem .875rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: .9375rem;
  line-height: 1.5;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-control:disabled { opacity: .5; cursor: not-allowed; }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-dim); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Badges ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .125rem .625rem;
  font-family: var(--font-cond);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-danger  { background: var(--danger-dim);  color: var(--danger);  }
.badge-info    { background: var(--info-dim);     color: var(--info);    }
.badge-neutral { background: var(--bg-hover);     color: var(--text-muted); }

/* ── Tables ──────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  padding: .625rem 1rem;
  text-align: left;
  font-family: var(--font-cond);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-hover); }

/* ── Settings page ───────────────────────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0 1.5rem;
}

/* ── Login page ──────────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.login-logo { margin-bottom: 1.75rem; display: flex; align-items: center; gap: .625rem; }
.login-logo-bar { width: 4px; height: 32px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.login-title    { font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.login-subtitle { font-size: .8125rem; color: var(--text-muted); }

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-0  { padding: 0; }

/* htmx loading indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator  { display: inline-flex; }
.htmx-request.htmx-indicator   { display: inline-flex; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}

/* Theme toggle icons — controlled by CSS, no JS needed for display */
.theme-icon-sun  { display: none; }
.theme-icon-moon { display: none; }
[data-theme="dark"]  .theme-icon-sun  { display: block; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* ══════════════════════════════════════════════════════════════════════════════
   PUBLIC SITE
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Container ───────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Public body ─────────────────────────────────────────────────────────────── */
.pub-body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.pub-body main { flex: 1; }

/* ── Header / Navbar ─────────────────────────────────────────────────────────── */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.pub-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}
.pub-nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
  text-decoration: none;
}
.pub-logo-bar {
  width: 4px;
  height: 30px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.pub-logo-name {
  font-family: var(--font-cond);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
}
.pub-logo-tagline {
  font-family: var(--font-cond);
  font-size: .65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.pub-nav-links { display: flex; align-items: center; gap: 0; flex: 1; }
.pub-nav-link {
  padding: .5rem .875rem;
  font-family: var(--font-cond);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
  border-radius: var(--r-sm);
}
.pub-nav-link:hover { color: var(--text); background: var(--bg-hover); }
.pub-nav-link.active { color: var(--accent); }

.pub-nav-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.pub-nav-phone {
  font-family: var(--font-cond);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .02em;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.pub-nav-phone:hover { color: var(--accent); }

/* Language toggle */
.pub-lang-toggle {
  display: flex; align-items: center; gap: .25rem;
  font-family: var(--font-cond);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: .25rem .625rem;
  transition: border-color var(--t-fast), color var(--t-fast);
  cursor: default;
}
.pub-lang-toggle:hover { border-color: var(--accent); }
.pub-lang-option { transition: color var(--t-fast); }
.pub-lang-option.active { color: var(--accent); }
.pub-lang-sep { color: var(--border-strong); }

/* Theme toggle button */
.pub-theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
.pub-theme-btn:hover { color: var(--text); border-color: var(--accent); background: var(--bg-hover); }
.pub-theme-btn svg { width: 16px; height: 16px; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.pub-hero {
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.pub-hero-content { max-width: 740px; }

.pub-hero-eyebrow {
  font-family: var(--font-cond);
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .625rem;
}
.pub-hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.pub-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400; /* Bebas Neue is naturally bold */
  line-height: .95;
  letter-spacing: .01em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.pub-hero-accent { color: var(--accent); }

.pub-hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 580px;
  font-weight: 400;
}
.pub-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Stats strip (20+, 2, 50+) ───────────────────────────────────────────────── */
.pub-stats-strip {
  padding: 2rem 0;
  background: var(--accent);
}
.pub-stats-grid {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.pub-stat {
  text-align: center;
  padding: .5rem 3rem;
  border-right: 1px solid rgba(255,255,255,.25);
}
.pub-stat:last-child { border-right: none; }
.pub-stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}
.pub-stat-label {
  font-family: var(--font-cond);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-top: .25rem;
}

/* ── USP strip ───────────────────────────────────────────────────────────────── */
.pub-usp-strip {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
[data-theme="dark"] .pub-usp-strip { background: var(--surface); }
.pub-usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}
.pub-usp-icon { font-size: 2rem; margin-bottom: 1rem; }
.pub-usp-title {
  font-family: var(--font-cond);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.pub-usp-text { font-size: .9375rem; color: var(--text-muted); line-height: 1.6; }

/* ── Generic section ─────────────────────────────────────────────────────────── */
.pub-section { padding: 5rem 0; }
.pub-section + .pub-section { border-top: 1px solid var(--border); }
.pub-section-label {
  font-family: var(--font-cond);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.pub-section-label::before {
  content: "";
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--accent);
}
.pub-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: .95;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.pub-section-sub { font-size: 1.0625rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; }

/* ── Category cards (homepage grid) ─────────────────────────────────────────── */
.pub-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pub-cat-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  transition: background var(--t-fast);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.pub-cat-card:hover { background: var(--bg-hover); }
.pub-cat-card:hover .pub-cat-name { color: var(--accent); }
.pub-cat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.pub-cat-name {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: color var(--t-fast);
  margin-bottom: .25rem;
}
.pub-cat-count { font-size: .8125rem; color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.pub-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: auto;
}
[data-theme="dark"] .pub-footer { background: var(--bg-alt); }

.pub-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.pub-footer-logo { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.pub-footer-logo-name {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pub-footer-tagline { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.5; }
.pub-footer-address {
  font-style: normal;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.pub-footer-address a { transition: color var(--t-fast); }
.pub-footer-address a:hover { color: var(--accent); }

.pub-footer-heading {
  font-family: var(--font-cond);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.pub-footer-links { display: flex; flex-direction: column; gap: .5rem; }
.pub-footer-links a { font-size: .9375rem; color: var(--text-muted); transition: color var(--t-fast); }
.pub-footer-links a:hover { color: var(--accent); }

.pub-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  font-size: .8125rem;
  color: var(--text-faint);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pub-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .pub-nav-links { display: none; }
  .pub-nav-phone { display: none; }
  .pub-hero { padding: 4rem 0 3.5rem; }
  .pub-stats-grid { gap: 0; }
  .pub-stat { padding: .5rem 1.5rem; }
  .pub-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pub-footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
@media (max-width: 480px) {
  .pub-cat-grid { grid-template-columns: 1fr 1fr; }
  .pub-stats-grid { flex-direction: column; }
  .pub-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.25); }
  .pub-stat:last-child { border-bottom: none; }
}

/* ── Public page content (static pages) ──────────────────────────────────────── */
.pub-page { padding: 4rem 0 6rem; }
.pub-page-header { padding: 4rem 0 3rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.pub-page-header .pub-section-title { margin-bottom: .5rem; }
.pub-page-content {
  max-width: 780px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.pub-page-content h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}
.pub-page-content h3 {
  font-family: var(--font-cond);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text);
  margin: 2rem 0 .75rem;
}
.pub-page-content p    { margin-bottom: 1.25rem; }
.pub-page-content ul   { margin-bottom: 1.25rem; padding-left: 1.5rem; list-style: disc; }
.pub-page-content ol   { margin-bottom: 1.25rem; padding-left: 1.5rem; list-style: decimal; }
.pub-page-content li   { margin-bottom: .5rem; }
.pub-page-content a    { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pub-page-content a:hover { color: var(--accent-hover); }
.pub-page-content strong { font-weight: 600; color: var(--text); }

/* Page header elements */
.pub-page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: .95;
  color: var(--text);
  margin: 1rem 0 1.5rem;
}
.pub-page-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
}

/* Prose wrapper (used inside .pub-page-content) */
.prose { max-width: 780px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}
.prose h3 {
  font-family: var(--font-cond);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text);
  margin: 2rem 0 .6rem;
}
.prose p  { color: var(--text-muted); line-height: 1.75; margin-bottom: 1.25rem; }
.prose ul { color: var(--text-muted); padding-left: 1.5rem; list-style: disc; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* CTA block inside page content */
.pub-cta-block {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: var(--radius-card);
}
.pub-cta-block h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: .5rem;
}
.pub-cta-block p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* ── Service page cards ──────────────────────────────────────────────────────── */
.pub-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.pub-service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color .2s;
}
.pub-service-card:hover { border-color: var(--accent); }
.pub-service-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.pub-service-icon svg { width: 100%; height: 100%; }
.pub-service-card h3 {
  font-family: var(--font-cond);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text);
  margin-bottom: .75rem;
}
.pub-service-card p { color: var(--text-muted); line-height: 1.65; font-size: .9375rem; }

/* ── Location page ──────────────────────────────────────────────────────────── */
.pub-location-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 1rem;
}
.pub-location-info h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text);
  margin: 1rem 0 1.5rem;
}
.pub-location-address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.pub-location-details { display: flex; flex-direction: column; gap: .75rem; }
.pub-location-detail {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-muted);
}
.pub-location-detail svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.pub-location-detail a { color: var(--text-muted); text-decoration: none; }
.pub-location-detail a:hover { color: var(--accent); }
.pub-location-map-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  text-align: center;
}
.pub-location-map-placeholder svg { width: 48px; height: 48px; opacity: .4; }
.pub-location-map-placeholder p { font-size: .875rem; line-height: 1.5; }

/* ── Contact page ───────────────────────────────────────────────────────────── */
.pub-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 1rem;
}
.pub-contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2rem;
}
.pub-contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.pub-contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pub-contact-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  flex-shrink: 0;
}
.pub-contact-icon svg { width: 100%; height: 100%; }
.pub-contact-label {
  font-family: var(--font-cond);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.pub-contact-detail address { font-style: normal; color: var(--text); line-height: 1.6; }
.pub-contact-detail a { color: var(--text); text-decoration: none; }
.pub-contact-detail a:hover { color: var(--accent); }
.pub-contact-form-stub h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
}
.text-muted { color: var(--text-muted); }

/* ── Responsive: location + contact pages ───────────────────────────────────── */
@media (max-width: 768px) {
  .pub-location-card,
  .pub-contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .pub-service-grid { grid-template-columns: 1fr; }
}

/* ── Categories (admin list + public cards) ─────────────────────────────────── */

/* Public: category grid on the home page */
.pub-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pub-category-card {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.pub-category-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.pub-category-card-body { padding: 1.5rem; }
.pub-category-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 .5rem;
}
.pub-category-card-desc {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-category-card-cta {
  font-family: var(--font-cond);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}

/* Public: breadcrumb on category detail page */
.pub-breadcrumb {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pub-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.pub-breadcrumb a:hover { color: var(--accent); }
.pub-breadcrumb-sep { margin: 0 .5rem; opacity: .5; }
.pub-breadcrumb-current { color: var(--text); font-weight: 500; }

/* Public: "coming soon" block on detail pages */
.pub-placeholder-block {
  padding: 3rem 2rem;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
}
.pub-placeholder-block p { margin: 0 0 .75rem; }
.pub-placeholder-block p:last-child { margin-bottom: 0; }

/* Admin: smaller button variant for compact tables */
.btn-xs {
  padding: .25rem .5rem;
  font-size: .75rem;
  line-height: 1.4;
}

/* Admin form: tighter help-text and checkbox layout */
.form-help {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .25rem;
  line-height: 1.5;
}
.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-size: .875rem;
}
.form-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.required { color: var(--danger); }

/* Admin link colour (used in inline help text) */
.link { color: var(--accent); text-decoration: underline; }
.link:hover { color: var(--accent-hover); }

/* ── Public machine listing (step 13) ──────────────────────────────────────── */
.pub-page-title { font-size: 2rem; font-weight: 700; margin: .75rem 0 .5rem; }
.pub-page-lead { color: var(--text-muted); max-width: 60ch; }

.pub-filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 1.25rem;
  background: var(--surface-2, #f7f7f5);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 2rem;
}
.pub-filter-field { display: flex; flex-direction: column; min-width: 150px; flex: 1; }
.pub-filter-field .form-label { font-size: .8rem; margin-bottom: .25rem; }
.pub-filter-actions { display: flex; gap: .5rem; align-items: flex-end; }

.pub-listing-meta { margin-bottom: 1rem; }

.pub-machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pub-machine-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #fff);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.pub-machine-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.pub-machine-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-2,#eee), var(--border,#ddd));
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-machine-card-noimage span {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pub-machine-card-status {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(0,0,0,.72);
  color: #fff;
}
.pub-machine-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.pub-machine-card-title { font-size: 1.05rem; font-weight: 600; margin: 0; line-height: 1.3; }
.pub-machine-card-sub { color: var(--text-muted); font-size: .85rem; }
.pub-machine-card-price { margin-top: .25rem; font-weight: 700; color: var(--accent, #b8860b); }

.pub-pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

.pub-placeholder-block {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text);
}

@media (max-width: 560px) {
  .pub-filter-field { min-width: 100%; }
  .pub-machine-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* ── Public machine detail (step 14) ───────────────────────────────────────── */
.pub-machine-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-machine-card-media { overflow: hidden; }

.pub-machine-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.pub-gallery-main {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2, #f0f0ee);
  aspect-ratio: 4 / 3;
}
.pub-gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-gallery-noimage {
  display: flex; align-items: center; justify-content: center;
}
.pub-gallery-noimage span {
  font-size: 4rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.pub-gallery-thumbs {
  display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap;
}
.pub-gallery-thumb {
  width: 84px; height: 64px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); flex: 0 0 auto;
}
.pub-gallery-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pub-machine-detail-title { font-size: 1.8rem; font-weight: 700; margin: 0 0 .35rem; line-height: 1.2; }
.pub-machine-detail-sub { font-size: 1rem; margin-bottom: 1rem; }
.pub-machine-detail-statusrow { margin-bottom: 1rem; }
.pub-status-pill {
  display: inline-block; padding: .25rem .75rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; background: var(--surface-2,#eee); color: var(--text);
}
.pub-status-available { background: #e3f4e7; color: #1b6b34; }
.pub-status-reserved { background: #fcf2da; color: #8a6300; }
.pub-status-sold { background: #eceef1; color: #50565f; }
.pub-machine-detail-price {
  font-size: 1.6rem; font-weight: 700; color: var(--accent, #b8860b); margin-bottom: 1.25rem;
}
.pub-machine-cta { width: 100%; text-align: center; margin-bottom: 1.5rem; }
.pub-machine-detail-desc { color: var(--text); line-height: 1.6; }
.pub-machine-detail-desc p { margin: 0 0 .75rem; white-space: pre-line; }

.pub-machine-specs { margin-top: 3rem; }
.pub-section-subtitle { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
.pub-spec-table { width: 100%; border-collapse: collapse; max-width: 640px; }
.pub-spec-table th, .pub-spec-table td {
  text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.pub-spec-table th {
  font-weight: 500; color: var(--text-muted); width: 45%; font-size: .92rem;
}
.pub-spec-table td { font-weight: 500; }

@media (max-width: 800px) {
  .pub-machine-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Public inquiry form (step 15) ─────────────────────────────────────────── */
[x-cloak] { display: none !important; }
.pub-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.pub-inquiry { margin: 1rem 0 1.5rem; }
.pub-inquiry-form { display: flex; flex-direction: column; gap: .75rem; }
.pub-inquiry-field { display: flex; flex-direction: column; }
.pub-inquiry-field .form-label { font-size: .85rem; margin-bottom: .25rem; }
.pub-inquiry-error {
  color: var(--danger, #b00020);
  background: #fdecee;
  border-radius: 6px;
  padding: .6rem .8rem;
  font-size: .9rem;
}
.pub-inquiry-success {
  background: #e3f4e7;
  border: 1px solid #b6e0c2;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  color: #1b6b34;
}
.pub-inquiry-success strong { display: block; font-size: 1.1rem; margin-bottom: .35rem; }
.pub-inquiry-success p { margin: 0; }

/* ── Admin lead detail ─────────────────────────────────────────────────────── */
.lead-message {
  white-space: pre-wrap;
  background: var(--surface-2, #f7f7f5);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  line-height: 1.55;
}

/* ── Translate buttons (step 16) ───────────────────────────────────────────── */
.bilingual-side { position: relative; }
.btn-translate {
  margin-top: .35rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .6rem;
  font-size: .8rem;
  line-height: 1;
  color: var(--text-muted, #555);
  background: var(--surface-2, #f3f3f1);
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.btn-translate:hover { background: #e9e9e6; border-color: #c9c9c4; }
.btn-translate:disabled { opacity: .5; cursor: default; }
.btn-translate-icon { font-size: .9rem; }
.btn-translate-label { font-weight: 600; letter-spacing: .02em; }

/* ── Per-machine field overrides (step 17) ─────────────────────────────────── */
.override-hide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .4rem .9rem;
}
.override-hide-item { font-size: .9rem; }
.override-extra-row {
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  padding: .75rem;
  margin-bottom: .6rem;
  background: var(--surface-2, #f7f7f5);
}
.override-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .5rem;
  margin-bottom: .5rem;
}

/* ── Coming-soon placeholder (demo-readiness) ──────────────────────────────── */
.pub-coming-soon {
  text-align: center;
  max-width: 540px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
}
.pub-coming-soon-badge {
  display: inline-block;
  background: var(--accent, #b8860b);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.pub-coming-soon .pub-section-title { margin: .5rem 0; }
.pub-coming-soon .pub-section-sub { margin-bottom: 1.5rem; color: var(--text-muted, #666); }
