:root {
  color-scheme: light;
  --ink: #24312b;
  --muted: #4c5b53;
  --paper: #e6d9c6;
  --paper-2: #d8c8b0;
  --line: #c9b79c;
  --forest: #1c3f33;
  --cream: #f0e4d2;
  --danger: #6e2434;
  --danger-surface: #6e2434;
  --danger-hover: #541a27;
  --danger-button-text: #ffffff;
  --page-background: linear-gradient(180deg, #e3d3bc 0%, #dccab0 46%, #d3c0a4 100%);
  --top-background: rgba(227, 211, 188, 0.94);
  --menu-ink: #4d5c55;
  --button-hover: #143128;
  --example-background: #f3e2c4;
  --example-ink: #5a3b16;
  --flash-background: #e5f0e8;
  --flash-error-background: #f8e6ea;
  --accent: #1c3f33;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --content: 1120px;
  --radius: 20px;
  --shadow: 0 14px 34px rgba(36, 49, 43, 0.1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2ed;
  --muted: #b4c0b8;
  --paper: #17211c;
  --paper-2: #26352d;
  --line: #3a4a40;
  --forest: #8db7a0;
  --cream: #202d26;
  --danger: #f0a4b2;
  --danger-surface: #733845;
  --danger-hover: #5d2c37;
  --danger-button-text: #ffffff;
  --page-background: radial-gradient(1200px 420px at 10% -10%, #293a30 0%, transparent 55%), linear-gradient(180deg, #17211c 0%, #111914 100%);
  --top-background: rgba(23, 33, 28, 0.92);
  --menu-ink: #c0ccc4;
  --button-hover: #739d86;
  --example-background: #433722;
  --example-ink: #f0d39d;
  --flash-background: #263a2d;
  --flash-error-background: #452932;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .kicker,
:root[data-theme="dark"] .num,
:root[data-theme="dark"] .team .role {
  color: color-mix(in srgb, var(--accent) 35%, var(--ink));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  z-index: 0;
  background: var(--page-background);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, [role="button"] { cursor: pointer; font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 640; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.55rem; font-weight: 560; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--content), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(720px, calc(100% - 2rem)); }
.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--cream);
  padding: 0.6rem 0.9rem; z-index: 5;
}
.skip:focus { top: 1rem; }

.top {
  position: sticky; top: 0; z-index: 4;
  background: var(--top-background);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
}
.top-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  min-height: 4.25rem; padding: 0.55rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand .mark { width: 2rem; height: 2rem; }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 0.35rem; }
.menu a {
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--menu-ink); padding: 0 0.7rem; border-radius: 999px;
}
.menu a[aria-current="page"] { background: var(--cream); color: var(--ink); box-shadow: 0 1px 0 rgba(36, 49, 43, 0.06); }
.herald {
  width: 1.7rem; height: 0.72rem; border-radius: 3px; flex: none;
  background: linear-gradient(90deg, var(--accent) 0 55%, var(--accent-2, var(--accent)) 55% 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 44px; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--cream); color: var(--ink); font-weight: 600; white-space: nowrap;
}
.theme-icon { font-size: 1.15rem; line-height: 1; }

.kicker {
  color: var(--accent); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.7rem;
}
.lede, .lede p { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.lede p + p { margin-top: 0.8rem; }

.hero { padding: 1.5rem 0 0.5rem; }
.hero-grid { display: grid; gap: 1.5rem; }
.hero-copy h1 { margin: 0.2rem 0 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.hero-figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.15rem; border-radius: 999px;
  background: var(--forest); color: var(--cream); text-decoration: none;
  border: 1px solid var(--forest); font-weight: 600;
}
.btn:hover { background: var(--button-hover); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-small { min-height: 44px; padding: 0.4rem 0.9rem; }
.btn-danger { background: var(--danger-surface); border-color: var(--danger-surface); color: var(--danger-button-text); }
.btn-danger:hover { background: var(--danger-hover); }
.text-link { color: var(--ink); font-weight: 600; }

.points { padding: 2.2rem 0 0.5rem; }
.points-grid { display: grid; gap: 1rem; }
.points article {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem; box-shadow: var(--shadow);
}
.num { font-family: var(--serif); color: var(--accent); font-size: 1.4rem; margin-bottom: 0.4rem; }
.points h2 { font-size: 1.45rem; margin-bottom: 0.45rem; }

.band { padding: 2.6rem 0; }
.band-last { padding-bottom: 4rem; }
.band-title { margin-bottom: 0.8rem; }
.band-lead { color: var(--muted); max-width: 40rem; margin-bottom: 1.2rem; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; align-items: end; margin-bottom: 1rem; }

.film-frame { max-width: 920px; }
.yt {
  width: 100%; text-align: left; background: var(--cream); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden;
  box-shadow: var(--shadow);
}
.yt-media { position: relative; display: block; }
.yt-media img, .yt-frame { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 0; }
.yt-play {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--cream);
}
.yt-play::after {
  content: ""; position: absolute; left: 1.55rem; top: 1.25rem;
  border-style: solid; border-width: 0.75rem 0 0.75rem 1.15rem;
  border-color: transparent transparent transparent var(--ink);
}
.yt-title { display: block; padding: 0.85rem 1rem 1rem; font-weight: 500; }
.yt-embed { border-radius: var(--radius); overflow: hidden; background: #000; }

.city-grid { display: grid; gap: 1rem; }
.city-card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); border-top: 0;
  box-shadow: var(--shadow);
}
.city-card::before, .city-hero::before {
  content: ""; display: block; height: 18px;
  background: linear-gradient(to bottom, var(--accent) 0 62%, var(--accent-2, var(--accent)) 62% 100%);
}
.city-card-link { display: block; color: inherit; text-decoration: none; }
.city-card-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.city-photo { position: relative; display: block; }
.city-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.city-body { padding: 1rem 1.1rem 1.25rem; display: grid; gap: 0.55rem; }
.city-body h3 { margin: 0; color: var(--accent); }
.city-stage {
  position: relative;
  padding: 0.4rem 0 2.2rem;
  background-color: color-mix(in srgb, var(--c1) 7%, var(--paper, #f6f1e8));
  border-top: 8px solid var(--c1);
  box-shadow: inset 0 -7px 0 var(--c2);
}
.city-stage-roundel {
  background-image: radial-gradient(circle, transparent 16px, color-mix(in srgb, var(--c1) 22%, transparent) 17px 18px, transparent 19px);
  background-size: 92px 92px;
}
.city-stage-hex {
  background-image: repeating-linear-gradient(60deg, color-mix(in srgb, var(--c2) 18%, transparent) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-60deg, color-mix(in srgb, var(--c1) 14%, transparent) 0 1px, transparent 1px 28px);
}
.city-stage-dots {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--c1) 28%, transparent) 3px, transparent 4px);
  background-size: 42px 42px;
}
.city-stage-inner { padding-top: 1.4rem; }
.city-brand-kicker { display: flex; align-items: center; gap: 0.45rem; color: var(--c1); }
.city-stage h1 {
  margin: 0.1rem 0 0.25rem;
  font-size: clamp(3.1rem, 12vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.city-slogan {
  margin: 0 0 0.75rem;
  color: var(--c1);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-style: italic;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.city-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.1rem 0 1.15rem; }
.city-actions .btn { border-radius: 999px; background: var(--c1); border-color: var(--c1); min-height: 52px; padding-inline: 1.2rem; }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.city-actions .btn-line { background: transparent; color: var(--ink); }
.city-frame {
  margin: 0;
  border: 4px solid var(--c1);
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--cream);
}
.city-frame img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.city-mark { display: block; flex: none; }

.contact-dock {
  position: fixed; right: 0.85rem; bottom: 5.6rem; z-index: 35;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1rem; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: var(--shadow);
}

.kennel {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.kennel .dog-mascot-svg {
  position: absolute;
  width: 240px;
  height: 240px;
  opacity: 0.2;
}
.kennel .corgi-svg { top: 12%; right: -1.5rem; transform: rotate(8deg); }
.kennel .terrier-svg { top: 46%; left: -2.2rem; width: 210px; height: 210px; transform: rotate(-10deg); opacity: 0.16; }
.kennel .mastiff-svg { bottom: 4%; right: 12%; width: 190px; height: 190px; transform: rotate(4deg); opacity: 0.15; }
.kennel[data-kennel="corgi"] .corgi-svg,
.kennel[data-kennel="terrier"] .terrier-svg,
.kennel[data-kennel="mastiff"] .mastiff-svg { opacity: 0.32; width: 320px; height: 320px; }
[data-theme="dark"] .kennel .dog-mascot-svg { opacity: 0.28; }
@media (max-width: 720px) {
  .kennel .dog-mascot-svg { width: 132px; height: 132px; opacity: 0.14; }
  .kennel .corgi-svg { top: 5.5rem; right: -1.4rem; }
  .kennel .terrier-svg { top: auto; bottom: 7rem; left: -1.6rem; }
  .kennel .mastiff-svg { bottom: 0.4rem; right: -1rem; width: 120px; height: 120px; }
  .kennel[data-kennel="corgi"] .corgi-svg,
  .kennel[data-kennel="terrier"] .terrier-svg,
  .kennel[data-kennel="mastiff"] .mastiff-svg { width: 168px; height: 168px; opacity: 0.22; }
}

.dog-bg[hidden] { display: none; }
.dog-bg {
  position: fixed;
  top: 4.5rem;
  right: 0;
  width: min(46vw, 520px);
  height: min(72vh, 680px);
  background-size: cover;
  background-position: center 30%;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36%);
  mask-image: linear-gradient(90deg, transparent, #000 36%);
}
main { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .dog-bg {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 34vh;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
    mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  }
}
.city-hero { padding: 0 0 0.4rem; border-top: 0; }
.city-hero .wrap { padding-top: 1.5rem; }
.split { display: grid; gap: 1.4rem; }
.prose p + p, .prose h2 { margin-top: 1rem; }
.prose h2 { font-size: 1.6rem; }
.contact {
  background: var(--cream); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.3rem;
}
.contact h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.contact li + li { margin-top: 0.35rem; }
.contact a { font-weight: 600; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1.2rem; }
.contact-links li + li { margin-top: 0; }

.gallery { display: grid; gap: 0.7rem; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 14px; }
.team { display: grid; gap: 1rem; }
.team li { background: var(--cream); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.team img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.team h3, .team p { padding-inline: 1rem; }
.team h3 { padding-top: 0.9rem; }
.team .role { color: var(--accent); font-weight: 600; padding-top: 0.25rem; }
.team li p:last-child { padding-bottom: 1rem; }
.video-grid { display: grid; gap: 0.8rem; }

.news-list { display: grid; gap: 1.1rem; }
.news-list li { padding-top: 1rem; border-top: 1px solid var(--line); }
.news-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.3rem; }
.news-list h2, .news-list h3 { font-size: 1.55rem; margin-bottom: 0.35rem; }
.news-list a { text-decoration: none; }
.news-list a:hover { text-decoration: underline; }

.page-hero, .article { padding: 2rem 0 3rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.filters a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0.3rem 0.8rem;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--cream);
}
.filters a[aria-current="page"] { background: var(--cream); color: var(--ink); border-color: var(--ink); }

.example-flag {
  background: var(--example-background); color: var(--example-ink); border-radius: 12px; padding: 0.75rem 0.9rem; margin: 1rem auto;
  width: min(var(--content), calc(100% - 2rem));
}
.article .example-flag { width: auto; margin: 1rem 0; }
.empty { color: var(--muted); }
.soon { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }

.foot { background: var(--paper); color: var(--ink); padding: 2.2rem 0 1.4rem; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.foot a { color: var(--ink); }
.foot-grid { display: grid; gap: 1.4rem; }
.brand-foot .mark { color: var(--forest); }
.foot-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.45rem; color: var(--muted); }
.foot li + li { margin-top: 0.25rem; }
.foot-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.92rem; }

.cookie[hidden] { display: none; }
.cookie {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 40;
  background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow);
}
.cookie p { max-width: 46rem; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cookie .btn, .cookie .btn-ghost { position: relative; z-index: 1; touch-action: manipulation; }
.cookie .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.foot :focus-visible { outline-color: var(--ink); }

.admin { background: var(--paper); }
.admin-main { padding: 1.4rem 0 3rem; }
.admin h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.6rem; }
.stack { display: grid; gap: 0.45rem; max-width: 46rem; }
.stack label, .member label { font-weight: 600; }
input, textarea, select {
  width: 100%; padding: 0.75rem 0.8rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--cream); color: var(--ink); font: inherit;
}
textarea { resize: vertical; }
.hint, .muted { color: var(--muted); font-size: 0.92rem; font-weight: 400; }
.field-error, .flash-err { color: var(--danger); }
.flash { padding: 0.75rem 0.9rem; border-radius: 12px; margin-bottom: 1rem; background: var(--flash-background); }
.flash-err { background: var(--flash-error-background); }
.check { display: flex; gap: 0.6rem; align-items: center; font-weight: 500; }
.check input { width: auto; }
.form-grid { display: grid; gap: 0.8rem; }
.admin-list { display: grid; gap: 0.45rem; margin: 1rem 0; }
.admin-list li { display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem; align-items: center; min-height: 44px; }
.swatch { width: 0.9rem; height: 0.9rem; border-radius: 50%; display: inline-block; }
.pill { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.45rem; font-weight: 500; }
.pill-ok { background: rgba(34, 139, 34, 0.12); color: #1e6b2e; border-color: rgba(34, 139, 34, 0.35); font-weight: 600; }
.pill-warn { background: rgba(217, 119, 6, 0.12); color: #b45309; border-color: rgba(217, 119, 6, 0.35); font-weight: 600; }
.pill-danger { background: rgba(220, 38, 38, 0.12); color: #b91c1c; border-color: rgba(220, 38, 38, 0.35); font-weight: 600; }
.pill-info { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; border-color: rgba(37, 99, 235, 0.35); font-weight: 600; }

[data-theme="dark"] .pill-ok { background: rgba(34, 197, 94, 0.2); color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
[data-theme="dark"] .pill-warn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); }
[data-theme="dark"] .pill-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; border-color: rgba(248, 113, 113, 0.4); }
[data-theme="dark"] .pill-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.2rem 0 1.8rem; }
.stat-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.stat-val { font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--accent); }
.stat-lbl { font-size: 0.88rem; color: var(--muted); font-weight: 500; }

.admin-cards { display: grid; gap: 0.75rem; margin: 1.2rem 0; }
.admin-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem; }
.admin-card:hover { border-color: var(--accent); }
.admin-card-main { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; flex: 1 1 20rem; }
.admin-card-title { font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.admin-card-title:hover { text-decoration: underline; }
.admin-card-actions { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; }

.admin-jump-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.65rem 0.85rem; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1.5rem; }
.admin-jump-nav a { font-size: 0.86rem; text-decoration: none; padding: 0.25rem 0.55rem; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.admin-jump-nav a:hover { border-color: var(--accent); }

.pay-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; margin: 0.6rem 0 1.4rem; }
.pay-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem;
  border-top: 4px solid var(--accent); color: inherit; text-decoration: none;
}
a.pay-card:hover { border-color: var(--accent); }
.pay-card h2 { font-size: 1.35rem; margin: 0; }
.city-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.8rem; margin: 0.6rem 0 1.4rem; }
.city-tile { flex-direction: column; align-items: stretch; border-left: 6px solid var(--city, var(--accent)); }
.city-tile .admin-card-main { flex: none; }
.news-filter { display: grid; gap: 0.35rem; max-width: 18rem; margin-bottom: 0.8rem; font-weight: 600; }
.writer { display: grid; gap: 1rem; max-width: 76rem; }
.writer-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.72fr); gap: 1rem; align-items: start; }
.writer-edit { display: grid; gap: 0.8rem; }
.writer .stack { max-width: none; }
.writer-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.writer-tabs a {
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
  padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--cream); color: var(--ink); font-weight: 600;
}
.writer-tabs a[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.writer-toolbar { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.writer-body { min-height: 22rem; line-height: 1.6; }
.writer-preview {
  background: var(--cream); border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem 1.1rem; position: sticky; top: 5rem;
}
.writer-preview h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.2rem 0 0.6rem; }
.writer-excerpt { font-style: italic; }
.writer-preview p { max-width: 40rem; }
.js [data-writer-pane]:not(.is-open) { display: none; }
@media (max-width: 860px) {
  .writer-layout { grid-template-columns: 1fr; }
  .writer-preview { position: static; }
}

.preview-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 1rem; margin-bottom: 1.5rem; }
.preview-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.languages { display: inline-flex; gap: 0.15rem; }
.languages a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0.35rem 0.5rem;
  text-decoration: none; font-weight: 700;
}
.linkish {
  background: none; border: 0; padding: 0.35rem 0; min-height: 44px;
  color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}
.lang-tag { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); }
.menu a.active { font-weight: 700; border-bottom: 2px solid var(--accent); }

.admin-block { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.7rem; margin-bottom: 1rem; }
.admin-photos img, .avatar { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.avatar { max-width: 140px; }
.member { margin: 1rem 0; padding: 1rem; background: var(--cream); border-radius: var(--radius); }
.danger-zone { margin-top: 1.5rem; }
.auth {
  max-width: 28rem;
  margin: 2.5rem auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
}
.auth h1 { margin-bottom: 0.6rem; }

@media (min-width: 720px) {
  .top-inner { flex-wrap: nowrap; }
  .theme-toggle { margin-left: auto; }
  .points-grid, .city-grid, .team { grid-template-columns: repeat(3, 1fr); }
  .gallery, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}
@media (max-width: 719px) {
  .top-inner { gap: 0.5rem; }
  .brand { margin-right: auto; }
  .menu { order: 3; width: 100%; }
  .theme-toggle { margin-left: auto; }
  .cookie { padding: 0.75rem 0.85rem; font-size: 0.9rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 9rem; }
}
/* Psie akcenty i znaki rozpoznawcze miast (Hallmarks & Mascots) */
.hero-dog-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  background: color-mix(in srgb, var(--accent) 14%, var(--cream));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  vertical-align: middle;
}

.city-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}
.city-hero-titles { flex: 1; }

.city-hero-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  flex-shrink: 0;
}
.hero-mascot-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--cream));
  border: 2px solid var(--accent);
  padding: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}
.hero-mascot-circle:hover {
  transform: rotate(-4deg) scale(1.06);
}
.hero-mascot-caption {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 120px;
  line-height: 1.2;
}

.band-dog-hallmark {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}
.dog-hallmark-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.3rem;
  position: relative;
  overflow: hidden;
}
.dog-hallmark-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 25%, transparent 70%);
  pointer-events: none;
}
.dog-hallmark-top {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.dog-hallmark-avatar {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, var(--cream));
  border: 2px solid var(--accent);
  padding: 5px;
}
.dog-mascot-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dog-hallmark-headline {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.5rem;
  color: var(--ink);
  font-family: var(--serif);
}
.dog-hallmark-vibe {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
  line-height: 1.45;
}

.dog-hallmark-quote {
  margin: 0;
  padding: 0.85rem 1.15rem;
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-style: italic;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.quote-paw { font-size: 1.2rem; flex-shrink: 0; }

.dog-hallmark-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.dog-feature-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.dog-feature-col .feature-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.dog-feature-col h3 {
  font-size: 0.9rem;
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
}
.dog-feature-col p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Home page city cards - mascot tag */
.city-photo {
  position: relative;
  display: block;
}
.city-photo-badge {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: rgba(28, 32, 36, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.mascot-icon-mini {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}
.mascot-icon-mini svg { width: 100%; height: 100%; }

.city-training-tag {
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
  font-weight: 600;
  margin: 0.15rem 0;
  line-height: 1.35;
}

.foot-canine-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 719px) {
  .city-hero-header { flex-direction: column-reverse; align-items: flex-start; }
  .city-hero-mascot { flex-direction: row; align-items: center; gap: 0.75rem; }
  .hero-mascot-circle { width: 56px; height: 56px; padding: 4px; }
  .hero-mascot-caption { max-width: none; text-align: left; }
  .dog-hallmark-features { grid-template-columns: 1fr; }
  .dog-hallmark-top { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

@media (min-width: 980px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Lista dla kierowcy (panel admina i widok tylko do odczytu) */
.roster { list-style: none; margin: 1rem 0; padding: 0; }
.roster-item { border: 1px solid var(--line, #d9d4c8); border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 0.8rem; background: var(--surface, transparent); }
.roster-item.dragging { opacity: 0.5; }
.roster-item[draggable="true"] { cursor: grab; }
.roster-line { font-size: 1.15rem; margin: 0 0 0.25rem; }
.roster-no { font-weight: 700; margin-right: 0.25rem; }
.roster-address { font-size: 1.1rem; margin: 0.2rem 0; }
.roster-notes { margin: 0.2rem 0; font-style: italic; }
.roster-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.inline-form { display: inline-flex; gap: 0.4rem; align-items: center; }
.driver-link { width: 100%; }
@media print {
  .no-print, header.top, footer, .skip, .theme-toggle, #dog-bg, .kennel, nav { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .roster-item { break-inside: avoid; border-color: #000; }
  .roster-line, .roster-address { font-size: 14pt; }
}

/* Kalendarz przejazdów i rezerwacje klienta */
.ride-list { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.ride { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line, rgba(127, 127, 127, 0.3)); }
.ride-info { display: flex; flex-direction: column; gap: 0.15rem; }
.ride-time { font-size: 1.3rem; }
.ride-title { opacity: 0.85; }
.ride-action { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ride-spaces { font-weight: 600; }
.ride-list + h2, .ride-list ~ h2 { margin-top: 1.5rem; }
.booking-card { border: 1px solid var(--line, rgba(127, 127, 127, 0.3)); border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 0.8rem; list-style: none; }
.booking-card .btn { margin-top: 0.5rem; }
.dog-choice { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0; font-size: 1.15rem; }
.dog-choice input { width: 1.4rem; height: 1.4rem; }
.roster-controls label { display: inline-flex; align-items: center; gap: 0.4rem; }
.inline-form { flex-wrap: wrap; }
