:root {
  --accent: #1769aa;
  --ink: #17202a;
  --muted: #627084;
  --line: #d7dee8;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --danger: #b42318;
  --radius: 8px;
  --body-font: Arial, Helvetica, sans-serif;
  --body-size: 16px;
  --body-color: #17202a;
  --link-color: #1769aa;
  --h1-size: 4.2rem;
  --h1-weight: 700;
  --h1-color: #17202a;
  --h2-size: 1.7rem;
  --h2-weight: 700;
  --h2-color: #17202a;
  --h3-size: 1.35rem;
  --h3-weight: 700;
  --h3-color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--body-color);
  background: var(--surface);
  font-family: var(--body-font);
  font-size: var(--body-size);
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.24);
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 42px;
  object-fit: contain;
}

.site-switcher {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.site-switcher label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-switcher select {
  width: 100%;
}

.site-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.site-card {
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
}

.site-access-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-access-list legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-frame-wrap {
  min-height: calc(100vh - 170px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.module-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 170px);
  border: 0;
  background: var(--paper);
}

.site-shell {
  min-height: 100vh;
  background: var(--paper);
}

.public-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
}

.home-layout {
  background: #fffaf0;
}

.home-layout .public-header {
  position: relative;
  z-index: 10;
  min-height: 112px;
  padding: 0 max(28px, calc((100vw - 980px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  box-shadow: 0 5px 18px rgba(23, 32, 42, 0.12);
}

.home-layout .brand {
  align-self: end;
  justify-self: start;
  width: 148px;
  height: 148px;
  margin-bottom: -56px;
  justify-content: center;
  overflow: hidden;
  color: #111;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.18);
  text-align: center;
}

.home-layout .brand span:last-child {
  max-width: 98px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.05;
}

.home-layout .brand-mark {
  display: none;
}

.home-layout .brand-logo {
  max-width: 132px;
  max-height: 132px;
}

.home-layout #site-nav {
  align-self: center;
  justify-content: flex-end;
}

.home-layout #site-nav a {
  padding: 4px 0;
  color: var(--menu-color);
  border-radius: 0;
}

.home-layout #site-nav a.active {
  color: var(--menu-active-color);
  background: transparent;
  border-bottom: 2px solid var(--menu-active-color);
}

.home-layout .admin-link {
  display: inline-flex;
}

.home-main {
  background: #fffaf0;
}

.home-hero {
  min-height: 458px;
  display: grid;
  place-items: center;
  background-position: center 47%;
  background-size: cover;
}

.home-hero-copy {
  margin-top: 94px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
}

.home-hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  line-height: 1.08;
}

.home-hero-copy p {
  margin: 2px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
}

.home-card-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(520px, calc(100% - 40px));
  margin: -88px auto 28px;
  position: relative;
  z-index: 2;
}

.home-card {
  overflow: hidden;
  min-height: 150px;
  background: #ffffff;
  border: 8px solid #ffffff;
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.22);
}

.home-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  object-position: center 56%;
}

.home-card h2 {
  margin: 8px 0 0;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 500;
}

.home-card p {
  margin: 0 0 4px;
  color: #111;
  font-size: 0.72rem;
  line-height: 1.25;
}

.home-pride {
  display: grid;
  grid-template-columns: 220px minmax(0, 420px);
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 48px;
}

.home-pride-logo {
  display: grid;
  min-height: 170px;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  text-align: center;
}

.home-pride-logo img {
  max-width: 180px;
  max-height: 150px;
}

.home-pride-text {
  padding-left: 24px;
  border-left: 1px solid rgba(23, 32, 42, 0.55);
}

.home-pride-text h2 {
  margin: 0 0 8px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.home-pride-text p {
  margin: 0;
  color: #111;
  font-size: 0.95rem;
  line-height: 1.28;
}

.home-extra {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 56px;
}

.construction-layout {
  background: #111111;
}

.construction-page {
  min-height: 100vh;
  color: #ffffff;
  background: #111111;
}

.construction-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background-position: center;
  background-size: cover;
}

.construction-panel {
  display: grid;
  justify-items: center;
  width: min(620px, 100%);
  padding: 42px 34px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.construction-logo {
  width: min(220px, 58vw);
  height: min(220px, 58vw);
  padding: 18px;
  margin-bottom: 26px;
  background: #ffffff;
  border-radius: 999px;
  object-fit: contain;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.construction-kicker {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.construction-panel h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 1;
}

.construction-panel p {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.45;
}

.construction-panel p + p {
  margin-top: 8px;
}

.site-footer {
  background: #111827;
  color: #f8fafc;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) auto;
  gap: 26px;
  align-items: start;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-block strong {
  display: block;
  margin-bottom: 8px;
}

.footer-block p {
  margin: 0;
  color: #cbd5e1;
}

.footer-menu {
  display: grid;
  gap: 8px;
}

.footer-menu a {
  color: #f8fafc;
  text-decoration: none;
}

.footer-menu-heading {
  margin-top: 8px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #111827;
  background: #f8fafc;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

#site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--menu-gap);
  justify-content: center;
}

#site-nav.menu-align-left {
  justify-content: flex-start;
}

#site-nav.menu-align-center {
  justify-content: center;
}

#site-nav.menu-align-right {
  justify-content: flex-end;
}

#site-nav a,
.admin-link,
.menu-heading {
  color: var(--menu-color);
  font-size: var(--menu-font-size);
  font-weight: var(--menu-font-weight);
  text-transform: var(--menu-text-transform);
  padding: 8px 10px;
  border-radius: var(--radius);
  text-decoration: none;
}

.menu-heading {
  opacity: 0.72;
  cursor: default;
}

#site-nav a.active,
#site-nav a:hover,
.admin-link:hover {
  color: var(--ink);
  background: var(--menu-hover-bg);
}

#site-nav a.active {
  color: var(--menu-active-color);
}

.public-main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.page-hero {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.tagline,
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero h1,
.panel-header h1 {
  margin: 0;
  color: var(--h1-color);
  font-size: clamp(2rem, 6vw, var(--h1-size));
  font-weight: var(--h1-weight);
  line-height: 1.05;
}

h2 {
  color: var(--h2-color);
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
}

h3 {
  color: var(--h3-color);
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
}

a {
  color: var(--link-color);
}

.content-body {
  padding-top: 30px;
  font-size: 1.12rem;
}

.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
}

.content-body th,
.content-body td {
  padding: 8px;
  border: 1px solid var(--line);
}

.code-block {
  overflow: auto;
  padding: 14px;
  color: #f8fafc;
  background: #17202a;
  border-radius: var(--radius);
  white-space: pre-wrap;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100vh;
  padding: 22px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.sidebar .brand {
  margin-bottom: 24px;
}

.nav-button {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-align: left;
  text-decoration: none;
}

.nav-button.active,
.nav-button:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.link-button {
  margin-top: auto;
}

.admin-main {
  min-width: 0;
  padding: 32px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.panel-header h1 {
  font-size: 2.1rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.page-list {
  display: grid;
  gap: 8px;
}

.page-item {
  display: block;
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  text-decoration: none;
}

.page-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.page-item strong,
.page-item span {
  display: block;
}

.page-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.editor,
.settings-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-grid {
  display: grid;
  gap: 18px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-nav {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 8px;
}

.settings-nav-button {
  min-height: 40px;
  padding: 9px 12px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.settings-nav-button.active,
.settings-nav-button:hover {
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
}

.settings-section {
  display: none;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-section.active {
  display: grid;
}

.menu-builder,
.menu-items-list {
  display: grid;
  gap: 10px;
}

.menu-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-item-editor {
  display: grid;
  grid-template-columns: 58px 150px minmax(160px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-item-editor.dragging {
  opacity: 0.55;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: grab;
  font-size: 0.8rem;
}

.menu-item-editor button {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--danger);
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--danger) 28%, #ffffff);
  border-radius: 6px;
}

.social-builder,
.social-links-list {
  display: grid;
  gap: 10px;
}

.social-link-editor {
  display: grid;
  grid-template-columns: 160px minmax(140px, 1fr) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.social-link-editor button {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--danger);
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--danger) 28%, #ffffff);
  border-radius: 6px;
}

.settings-section h2 {
  margin: 0;
  font-size: 1.2rem;
}

.settings-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tag-settings {
  grid-template-columns: minmax(0, 1fr) 130px 110px;
}

.page-builder-form {
  padding: 0;
  overflow: hidden;
}

.builder-workspace {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.builder-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.builder-editor-tools {
  margin: 14px;
  padding: 12px;
  background: var(--surface);
}

.builder-canvas {
  width: min(900px, calc(100% - 40px));
  min-height: 560px;
  margin-top: 0;
  background: #ffffff;
}

input[type="file"] {
  padding: 8px;
}

.upload-current {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
  word-break: break-all;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-label input {
  width: auto;
}

.builder-checkbox {
  align-self: end;
  min-height: 42px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: var(--accent);
}

.content-editor {
  display: grid;
  gap: 8px;
}

.editor-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.editor-mode {
  display: inline-flex;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mode-button {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.mode-button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(23, 32, 42, 0.12);
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wysiwyg-toolbar button,
.wysiwyg-toolbar select,
.wysiwyg-toolbar input[type="color"] {
  width: auto;
  min-width: 38px;
  min-height: 34px;
  padding: 6px 8px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.wysiwyg-toolbar input[type="color"] {
  padding: 3px;
}

.visual-editor,
.source-editor {
  min-height: 340px;
}

.visual-editor {
  overflow: auto;
  color: var(--ink);
  font-weight: 400;
}

.visual-editor:focus {
  outline: 0;
}

.source-editor {
  font-family: Consolas, Monaco, monospace;
  font-size: 0.95rem;
  line-height: 1.55;
}

.inline-content {
  min-height: 180px;
  padding: 30px 10px 10px;
  border-radius: var(--radius);
}

.inline-content:hover,
.inline-content:focus,
[contenteditable="true"]:hover,
[contenteditable="true"]:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 4px;
}

[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.is-hidden {
  display: none;
}

.field-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.block-builder,
.blocks-list,
.block-editor {
  display: grid;
  gap: 12px;
}

.block-editor {
  position: relative;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.block-edit-controls,
.block-actions,
.block-button-fields {
  display: flex;
  gap: 8px;
}

.block-edit-controls {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.block-edit-controls button,
.block-edit-controls select,
.secondary-button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.block-button-fields {
  align-items: start;
}

.block-image-column {
  display: grid;
  gap: 8px;
}

.block-image-column img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.block-content-column {
  min-width: 0;
}

.inline-block-content {
  min-height: 90px;
}

.inline-button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.editable-button-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  min-width: 96px;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 700;
}

.inline-button-row input {
  max-width: 320px;
}

.add-block-button {
  min-height: 48px;
  color: var(--accent);
  background: #ffffff;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  font-weight: 700;
}

.page-blocks {
  display: grid;
  gap: 24px;
  padding-top: 36px;
}

.page-block {
  font-size: 1.05rem;
}

.page-block h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.15;
}

.block-callout {
  padding: 22px;
  background: color-mix(in srgb, var(--accent) 8%, #ffffff);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.block-image-text {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.block-image-text img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.block-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.primary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.primary-button {
  background: var(--accent);
}

.danger-button {
  background: #ffffff;
  border-color: color-mix(in srgb, var(--danger) 35%, #ffffff);
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(720px, calc(100vw - 40px));
  padding: 18px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(23, 32, 42, 0.22);
}

.cookie-consent[hidden],
.cookie-settings-button[hidden] {
  display: none;
}

.cookie-consent h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.1rem;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-consent-link {
  margin-top: 6px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-settings-button {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999;
  min-height: 36px;
  padding: 7px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(23, 32, 42, 0.16);
  font-size: 0.84rem;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--surface);
}

.login-card {
  display: grid;
  gap: 20px;
  width: min(420px, 100%);
}

.login-card h1 {
  margin: 0;
  font-size: 2rem;
}

.error-message {
  margin: 0;
  padding: 10px 12px;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--danger) 24%, #ffffff);
  border-radius: var(--radius);
}

@media (max-width: 820px) {
  .public-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 20px;
  }

  #site-nav {
    justify-content: flex-start;
  }

  .home-layout .public-header {
    min-height: auto;
    padding: 18px 20px;
  }

  .home-layout .brand {
    align-self: auto;
    width: 94px;
    height: 94px;
    margin: 0;
  }

  .home-layout .brand span:last-child {
    font-size: 0.82rem;
  }

  .home-layout #site-nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .home-hero {
    min-height: 380px;
  }

  .home-hero-copy {
    margin-top: 0;
    padding: 0 20px;
  }

  .home-card-strip {
    grid-template-columns: 1fr;
    margin-top: -48px;
  }

  .home-pride {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-pride-text {
    padding-left: 0;
    border-left: 0;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .sidebar .brand {
    width: 100%;
    margin-bottom: 8px;
  }

  .nav-button {
    width: auto;
  }

  .link-button {
    margin-top: 0;
  }

  .admin-main {
    padding: 22px 18px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .builder-topbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .builder-actions {
    justify-content: flex-start;
  }

  .block-button-fields,
  .block-image-text,
  .settings-layout,
  .menu-item-editor,
  .social-link-editor,
  .site-footer-inner,
  .settings-row,
  .tag-settings {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .cookie-consent {
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions button {
    flex: 1 1 150px;
  }
}
