/* ==========================================================================
   Mioso — application stylesheet
   Hand-authored, pre-compiled. No build step required on the host.
   Palette: deep pine green + warm sand + clay accent. Type: Fraunces
   (display) + Inter (body/UI), loaded from Google Fonts in the layout.
   ========================================================================== */

:root {
  /* Brand — overridable per-install from Admin > Settings > Branding,
     which injects a <style> block after this file. */
  --brand: #14532d;
  --brand-600: #196236;
  --brand-500: #1f7a43;
  --brand-100: #dcece1;
  --brand-050: #eff6f1;

  --accent: #b5502a;
  --accent-600: #9c4423;
  --accent-050: #fbf0eb;

  /* Neutrals */
  --ink: #17201c;
  --ink-700: #3d4a43;
  --ink-500: #6b7a72;
  --ink-400: #8d9b93;
  --line: #e2e6e3;
  --line-strong: #cfd6d1;
  --surface: #ffffff;
  --surface-2: #f7f8f7;
  --sand: #f4f1ea;

  /* Status */
  --ok: #1f7a43;
  --ok-bg: #e8f3ec;
  --warn: #9a6b12;
  --warn-bg: #fbf1dc;
  --danger: #a52c25;
  --danger-bg: #fbeae9;
  --info: #1d5b7a;
  --info-bg: #e6f1f6;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 32, 28, 0.06), 0 1px 3px rgba(23, 32, 28, 0.04);
  --shadow: 0 4px 12px rgba(23, 32, 28, 0.07), 0 2px 4px rgba(23, 32, 28, 0.04);
  --shadow-lg: 0 18px 40px rgba(23, 32, 28, 0.13);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 72px;
  --wrap: 1200px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--brand-100); color: var(--brand); }

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); transition: top .16s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.72); }

.lede { font-size: 1.075rem; color: var(--ink-700); max-width: 62ch; }
.muted { color: var(--ink-500); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.strong { font-weight: 600; }
.numeric { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap--wide { max-width: 1440px; }
.wrap--narrow { max-width: 760px; }

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(32px, 4vw, 52px); }
.section--sand { background: var(--sand); }
.section--surface2 { background: var(--surface-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }

.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--center { justify-content: center; }
.row--top { align-items: flex-start; }
.row--wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--auto-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
}
.section-head__text { max-width: 60ch; }
.section-head__text p { margin-top: 8px; color: var(--ink-500); }

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--brand-600); border-color: var(--brand-600); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

.btn--accent { --btn-bg: var(--accent); --btn-bd: var(--accent); }
.btn--accent:hover { background: var(--accent-600); border-color: var(--accent-600); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--outline:hover { background: var(--surface-2); border-color: var(--ink-400); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-700); --btn-bd: transparent; }
.btn--ghost:hover { background: var(--surface-2); border-color: transparent; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.88); }

.btn--danger { --btn-bg: var(--danger); --btn-bd: var(--danger); }
.btn--danger:hover { background: #8f251f; border-color: #8f251f; }

.btn--sm { padding: 7px 13px; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 9px; }

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.btn-group .btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); z-index: 1; }

.icon { width: 18px; height: 18px; flex: none; stroke-width: 1.75; }
.icon--sm { width: 15px; height: 15px; }
.icon--lg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field__label { font-size: 0.8125rem; font-weight: 600; color: var(--ink-700); }
.field__label .req { color: var(--danger); }
.field__hint { font-size: 0.78rem; color: var(--ink-500); }
.field__error { font-size: 0.78rem; color: var(--danger); font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-050);
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7a72' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.input-group { position: relative; display: flex; align-items: center; }
.input-group .icon {
  position: absolute; left: 13px; color: var(--ink-400); pointer-events: none;
}
.input-group .input { padding-left: 40px; }
.input-affix {
  position: absolute; right: 13px; font-size: 0.8125rem; color: var(--ink-500);
  pointer-events: none;
}

.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.check input[type="checkbox"], .check input[type="radio"] {
  width: 17px; height: 17px; margin-top: 2px; flex: none;
  accent-color: var(--brand);
}
.check__text { font-size: 0.9rem; }

.check-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 42px; height: 24px; border-radius: var(--radius-pill);
  background: var(--line-strong); position: relative; flex: none;
  transition: background .18s ease;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .18s ease;
}
.switch input:checked + .switch__track { background: var(--brand-500); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--brand-500); outline-offset: 2px; }

fieldset { border: 0; padding: 0; }
legend { font-size: 0.8125rem; font-weight: 600; color: var(--ink-700); margin-bottom: 8px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .form-grid, .form-grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* Honeypot — must stay visually hidden but not display:none (bots detect it) */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* --------------------------------------------------------------------------
   Cards, badges, alerts
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card--pad { padding: 22px; }
.card--shadow { box-shadow: var(--shadow-sm); border-color: transparent; }
.card__head {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.card__head h3 { font-size: 1.0625rem; }
.card__body { padding: 22px; }
.card__foot {
  padding: 16px 22px; border-top: 1px solid var(--line); background: var(--surface-2);
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 600; letter-spacing: .01em;
  background: var(--surface-2); color: var(--ink-700);
  white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--brand { background: var(--brand-100); color: var(--brand); }
.badge--accent { background: var(--accent-050); color: var(--accent-600); }
.badge--solid { background: var(--brand); color: #fff; }
.badge--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid transparent; font-size: 0.9rem; margin-bottom: 20px;
}
.alert .icon { margin-top: 2px; flex: none; }
.alert--ok { background: var(--ok-bg); border-color: #bfdfcb; color: #14532d; }
.alert--warn { background: var(--warn-bg); border-color: #ecd6a4; color: #6f4c0c; }
.alert--danger { background: var(--danger-bg); border-color: #eec4c1; color: #7e211c; }
.alert--info { background: var(--info-bg); border-color: #bcd8e5; color: #164a63; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.empty {
  padding: 56px 24px; text-align: center; color: var(--ink-500);
}
.empty .icon { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--ink-400); stroke-width: 1.25; }
.empty h3 { margin-bottom: 6px; }
.empty p { max-width: 44ch; margin-inline: auto; }

.divider { height: 1px; background: var(--line); border: 0; margin-block: 24px; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { font-size: 0.9rem; }
.table th {
  text-align: left; padding: 11px 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-500); border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--surface-2);
}
.table td {
  padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.table tbody tr:hover { background: var(--brand-050); }
.table tbody tr:last-child td { border-bottom: 0; }
.table__actions { display: flex; gap: 6px; justify-content: flex-end; }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding-inline: 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--ink-700); background: var(--surface);
}
.pagination a:hover { background: var(--surface-2); text-decoration: none; }
.pagination .is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination .is-disabled { opacity: .4; }

/* --------------------------------------------------------------------------
   Avatars & media
   -------------------------------------------------------------------------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; background: var(--brand-100); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.875rem; color: var(--brand);
  overflow: hidden;
}
.avatar--sm { width: 30px; height: 30px; font-size: 0.75rem; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar--xl { width: 96px; height: 96px; font-size: 1.75rem; }
.avatar--ring { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand-100); }

.ratio { position: relative; background: var(--surface-2); overflow: hidden; }
.ratio > img, .ratio > iframe, .ratio > .ratio__ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ratio--4x3 { aspect-ratio: 4 / 3; }
.ratio--3x2 { aspect-ratio: 3 / 2; }
.ratio--16x9 { aspect-ratio: 16 / 9; }
.ratio--1x1 { aspect-ratio: 1 / 1; }
.ratio__ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-050); color: var(--brand-100);
}
.ratio__ph .icon { width: 34%; height: 34%; stroke-width: 1; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; flex: none;
}
.brand__mark .icon { width: 19px; height: 19px; }
.brand__name {
  font-family: var(--font-display); font-size: 1.24rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.02em;
}
.brand__logo { max-height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-700);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a.is-active { color: var(--brand); background: var(--brand-050); font-weight: 600; }

.nav-toggle { display: none; }
.header-actions--mobile { display: none; }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-left: auto; flex: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); background: var(--surface);
  }
  .site-header__inner {
    gap: 12px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 59;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; font-size: 1rem; }
  .site-nav .btn { width: 100%; margin-top: 6px; text-align: center; }
  .header-actions--desktop { display: none !important; }
  .header-actions--mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}
@media (min-width: 981px) {
  .site-nav { display: flex !important; }
  .header-actions--mobile { display: none !important; }
}

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: none;
}
.dropdown__menu.is-open { display: block; }
.dropdown__menu a, .dropdown__menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border: 0; background: none; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--ink-700); text-align: left;
}
.dropdown__menu a:hover, .dropdown__menu button:hover {
  background: var(--surface-2); color: var(--ink); text-decoration: none;
}
.dropdown__menu .icon { color: var(--ink-400); }
.dropdown__head { padding: 10px 11px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dropdown__sep { height: 1px; background: var(--line); margin: 5px 0; }
.dropdown__menu .is-danger { color: var(--danger); }
.dropdown__menu .is-danger .icon { color: var(--danger); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: rgba(255, 255, 255, 0.72);
  padding-block: 64px 28px; margin-top: 0;
}
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px 32px;
}
.footer-col h4 {
  color: #fff; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col li { font-size: 0.9rem; }
.footer-about .brand__name { color: #fff; }
.footer-about p { margin-top: 14px; font-size: 0.9rem; max-width: 34ch; }
.footer-contact { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; }
.footer-contact .icon { color: rgba(255,255,255,.45); margin-top: 2px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: rgba(255,255,255,.8);
}
.socials a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter .input {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff;
}
.newsletter .input::placeholder { color: rgba(255, 255, 255, 0.42); }
.newsletter .input:focus { border-color: rgba(255,255,255,.4); box-shadow: none; }
.footer-bottom {
  margin-top: 52px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.84rem;
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* --------------------------------------------------------------------------
   Flash toast
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; max-width: 380px;
}
.toast {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-size: 0.9rem;
  animation: toast-in .22s ease both;
}
.toast--ok { border-left: 3px solid var(--ok); }
.toast--danger { border-left: 3px solid var(--danger); }
.toast--warn { border-left: 3px solid var(--warn); }
.toast--info { border-left: 3px solid var(--info); }
.toast__close { border: 0; background: none; color: var(--ink-400); padding: 0; margin-left: auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 520px) {
  .toast-stack { left: 16px; right: 16px; max-width: none; }
}

/* --------------------------------------------------------------------------
   Modal / lightbox
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(23, 32, 28, 0.6);
  backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; }
.modal__panel {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in .2s ease both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.99); } }
.modal__head {
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.modal__body { padding: 24px; }
.modal__foot {
  padding: 16px 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px;
}
.modal__close { border: 0; background: none; color: var(--ink-500); padding: 4px; border-radius: var(--radius-sm); }
.modal__close:hover { background: var(--surface-2); color: var(--ink); }
body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.hide { display: none !important; }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
@media (min-width: 761px) { .show-sm { display: none !important; } }
.full { width: 100%; }
.relative { position: relative; }
.print-only { display: none; }

/* --------------------------------------------------------------------------
   Print — used by the "print / save as PDF" action on listing pages
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .no-print, .chat-widget, .toast-stack,
  .gallery__nav, .pagination { display: none !important; }
  .print-only { display: block; }
  body { font-size: 11pt; background: #fff; }
  .section { padding-block: 12px; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  .card { break-inside: avoid; border-color: #ccc; }
  .listing-detail { display: block; }
}
