:root {
  --paper: #faf7f2;
  --paper-warm: #f3ece4;
  --cream: #fffaf4;
  --ink: #292522;
  --ink-soft: #5f5751;
  --berry: #7b4053;
  --berry-dark: #5e2f40;
  --berry-light: #a96878;
  --blush: #d7aaa8;
  --sage: #a7b2a0;
  --sage-dark: #687564;
  --line: rgba(41, 37, 34, 0.16);
  --line-light: rgba(255, 250, 244, 0.24);
  --shadow: 0 24px 65px rgba(65, 45, 42, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: 1180px;
  --radius: 22px;
}

/* Multi-tenant platform administration */
.platform-theme-catalogue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.platform-theme-card { display: grid; gap: .35rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.platform-theme-card strong { font-size: 1.1rem; }
.platform-theme-card p { margin: 0; }
.platform-theme-card > span:last-child { font-size: .8rem; font-weight: 700; }
.platform-theme-card-mark { font-size: 1.7rem; color: #7b4053; }
.platform-theme-card--studio { background: #e9f5fb; color: #17364f; }
.platform-theme-card--studio .platform-theme-card-mark { color: #075e91; }
.theme-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.theme-picker legend { padding: 0; font-size: 1.25rem; font-weight: 750; }
.theme-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; }
.theme-choice { position: relative; min-width: 0; cursor: pointer; }
.theme-choice > input { position: absolute; top: 1rem; left: 1rem; width: 1.2rem; height: 1.2rem; z-index: 1; accent-color: var(--berry); }
.theme-choice-content { display: grid; gap: .75rem; height: 100%; padding: .65rem; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.theme-choice > input:checked + .theme-choice-content { border-color: var(--berry); box-shadow: 0 0 0 1px var(--berry); }
.theme-choice > input:focus-visible + .theme-choice-content { outline: 3px solid var(--berry); outline-offset: 4px; }
.theme-choice-name { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; font-weight: 750; }
.theme-choice-selected { visibility: hidden; font-size: .75rem; font-weight: 700; color: var(--berry); }
.theme-choice > input:checked + .theme-choice-content .theme-choice-selected { visibility: visible; }
.theme-choice-description { font-size: .9rem; line-height: 1.5; color: #48515c; }
.theme-preview { overflow: hidden; padding: 1rem; border: 1px solid #eadfd8; border-radius: 10px; background: #faf7f2; color: #49323b; font-family: Georgia, serif; }
.theme-preview-header { display: flex; align-items: center; gap: .5rem; padding: 0 0 .7rem 1.6rem; border-bottom: 1px solid #e0d5d1; }
.theme-preview-header i { width: 32%; height: .45rem; margin-right: auto; background: #81485c; border-radius: 5px; }
.theme-preview-header span { width: 10%; height: .22rem; background: #b4a6a4; border-radius: 4px; }
.theme-preview-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .7rem; align-items: center; padding-block: 1.1rem; }
.theme-preview-hero b { display: block; font-size: clamp(.8rem, 1.5vw, 1.1rem); font-weight: 600; line-height: 1.2; }
.theme-preview-hero > div > span { display: block; width: 75%; height: .22rem; margin-top: .7rem; background: #c9b9ba; border-radius: 4px; }
.theme-preview-hero > div > i { display: block; width: 45%; height: .7rem; margin-top: .6rem; background: #81485c; border-radius: 1rem; }
.theme-preview-art { display: grid; min-height: 5rem; place-content: center; border-radius: 48% 48% 8px 8px; background: #ead3c9; transform: rotate(4deg); }
.theme-preview .theme-preview-art > i { width: auto; height: auto; margin: 0; background: none; font-size: 2rem; font-style: normal; }
.theme-preview-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.theme-preview-cards span { height: 1.4rem; border: 1px solid #e0d5d1; border-radius: .25rem; background: #fff; }
.theme-preview--studio { background: #e9f2f7; border-color: #c9dce8; color: #172338; font-family: "Segoe UI", sans-serif; }
.theme-preview--studio .theme-preview-header i, .theme-preview--studio .theme-preview-hero > div > i { background: #075e91; border-radius: 3px; }
.theme-preview--studio .theme-preview-art { background: #075e91; color: #fff; border-radius: 12px; transform: rotate(-4deg); }
.theme-preview--studio .theme-preview-art > i { background: none; }
.theme-preview--studio .theme-preview-cards span { border-color: #c9dce8; border-radius: 6px; }
@media (max-width: 620px) { .theme-picker-grid { grid-template-columns: minmax(0, 1fr); } .theme-preview-hero b { font-size: 1rem; } }

.platform-detail-grid {
  align-items: start;
  margin-bottom: 1.5rem;
}

.platform-tenant-details .admin-header,
.platform-tenant-details .admin-header-actions,
.platform-tenant-details .admin-panel-heading {
  flex-wrap: wrap;
}

.platform-tenant-details .admin-header > div,
.platform-tenant-details .admin-dashboard-panel,
.platform-tenant-details .admin-panel-heading > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.platform-tenant-details .admin-header-actions p {
  flex-basis: 100%;
}

.platform-tenant-details .platform-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.platform-tenant-details :is(input, select, textarea, button, .button) {
  min-width: 0;
  max-width: 100%;
}

.platform-section {
  margin-top: 1.5rem;
}

.platform-inline-form {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.platform-inline-form select,
.platform-inline-form input {
  min-width: min(100%, 18rem);
  padding: .8rem .9rem;
  border: 1px solid rgba(47, 37, 33, .2);
  border-radius: .7rem;
  background: #fff;
}

.platform-feature-list,
.platform-domain-list {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.platform-feature-list form,
.platform-domain-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(47, 37, 33, .12);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .65);
}

.platform-feature-list span,
.platform-domain-list span {
  display: grid;
  gap: .2rem;
}

.platform-feature-list small,
.platform-domain-list small {
  color: var(--muted, #6f625d);
}

.platform-feature-list select {
  padding: .55rem .7rem;
  border-radius: .55rem;
  border: 1px solid rgba(47, 37, 33, .2);
  background: #fff;
}

.platform-color-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.platform-color-row label {
  display: grid;
  gap: .35rem;
  font-weight: 700;
}

.platform-color-row input[type="color"] {
  width: 5rem;
  height: 2.5rem;
  padding: .2rem;
}

.owner-invitation-panel {
  overflow-wrap: anywhere;
}

.owner-invitation-reveal {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--berry-light);
  border-radius: .8rem;
  background: rgba(215, 170, 168, .16);
}

.owner-invitation-reveal p {
  margin: .35rem 0 .8rem;
}

.owner-invitation-copy-row {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: .75rem;
}

.owner-invitation-copy-row input {
  min-width: 0;
  flex: 1 1 auto;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: #fff;
}

.owner-invitation-summary {
  display: grid;
  gap: .6rem;
  margin: 1rem 0;
}

.owner-invitation-summary > div {
  min-width: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(7rem, .3fr) minmax(0, 1fr);
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

.owner-invitation-summary dt {
  font-weight: 750;
}

.owner-invitation-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.owner-invitation-form label {
  width: 100%;
  font-weight: 750;
}

.owner-invitation-revoke {
  margin-top: .75rem;
}

@media (max-width: 720px) {
  .admin-header > div,
  .admin-dashboard-panel,
  .admin-dashboard-panel form,
  .admin-dashboard-panel .form-field {
    min-width: 0;
  }

  .admin-header h1 {
    overflow-wrap: anywhere;
  }

  .platform-detail-grid .form-field input,
  .platform-detail-grid .form-field textarea,
  .platform-detail-grid select,
  .platform-detail-grid button {
    min-width: 0;
    max-width: 100%;
  }

  .platform-detail-grid .form-field input,
  .platform-detail-grid .form-field textarea {
    width: 100%;
  }

  .platform-feature-list form,
  .platform-domain-list > div {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-invitation-copy-row,
  .owner-invitation-form {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-invitation-copy-row .button,
  .owner-invitation-form .button,
  .owner-invitation-form input,
  .owner-invitation-revoke .button {
    width: 100%;
  }

  .owner-invitation-summary > div {
    gap: .2rem;
    grid-template-columns: 1fr;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1 em,
h2 em {
  color: var(--berry);
  font-weight: 400;
}

::selection {
  background: var(--blush);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--berry-light);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.narrow-shell {
  width: min(calc(100% - 48px), 820px);
}

.article-shell {
  width: min(calc(100% - 48px), 780px);
}

.section {
  padding-block: 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--berry);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #f2d8dc;
}

.eyebrow-mark {
  width: 30px;
  height: 1px;
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--berry);
  color: white;
}

.button-primary:hover {
  background: var(--berry-dark);
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
}

.button-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.button-cream {
  background: var(--cream);
  color: var(--berry-dark);
}

.button-cream:hover {
  background: white;
}

.button-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.76rem;
}

.button-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.8;
  transition: color 160ms ease, gap 160ms ease;
}

.text-link:hover {
  gap: 12px;
  color: var(--berry-dark);
}

.text-link-large {
  margin-top: 18px;
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px rgba(41, 37, 34, 0.05);
}

/* A sticky enlarged header can cover every remaining content hit target in a
   short landscape viewport. Keep it in normal flow when vertical space is
   scarce so catalogue actions remain visible and operable while scrolling. */
@media (max-height: 500px) {
  .site-header {
    position: relative;
  }
}

.header-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.wordmark span:last-child {
  color: var(--berry);
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav > a:not(.button) {
  position: relative;
  padding-block: 12px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.site-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--berry);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:not(.button):hover::after,
.site-nav > a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* The catalogue adds one public destination. Keep the full desktop navigation
   comfortably inside its shell when visitors enlarge text to 200%. */
@media (max-width: 1320px) {
  .site-nav {
    gap: 18px;
  }
}

.menu-toggle-label {
  font-size: 0.75rem;
  font-weight: 700;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before {
  position: absolute;
  top: -6px;
}

.menu-toggle-lines::after {
  position: absolute;
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding-block: 94px 106px;
  background: var(--paper);
}

.hero-section::before {
  pointer-events: none;
  position: absolute;
  width: 440px;
  height: 440px;
  top: -160px;
  right: -130px;
  border: 1px solid rgba(123, 64, 83, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
}

.hero-copy h1 {
  max-width: 690px;
  margin-bottom: 30px;
  font-size: clamp(3.6rem, 6.25vw, 6.35rem);
}

.hero-copy h1 em {
  display: block;
}

.hero-intro {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.honest-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.honest-note span {
  color: var(--berry);
}

.hero-visual {
  position: relative;
  min-height: 530px;
  isolation: isolate;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(123, 64, 83, 0.2);
  border-radius: 50%;
}

.hero-orbit-one {
  width: 420px;
  height: 420px;
  top: 38px;
  right: 8px;
}

.hero-orbit-two {
  width: 330px;
  height: 330px;
  top: 84px;
  right: 54px;
  border-style: dashed;
}

.note-card {
  position: absolute;
  border: 1px solid rgba(41, 37, 34, 0.13);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.note-card-main {
  width: min(390px, calc(100% - 48px));
  top: 40px;
  right: 22px;
  padding: 34px;
  transform: rotate(2.2deg);
}

.note-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hand-circle {
  display: inline-flex;
  width: 54px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--berry);
  border-radius: 50%;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(-8deg);
}

.note-question {
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.note-question em {
  color: var(--berry);
}

.calculation-list {
  display: grid;
  gap: 0;
  font-size: 0.8rem;
}

.calculation-list > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.calculation-list > div span:first-child,
.note-question,
.note-card-header > span:first-child,
.scribble-badge span,
.scribble-badge strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.calculation-list > div span:last-child {
  flex: 0 0 auto;
}

.calculation-total {
  margin-top: 10px;
  border-top: 2px solid var(--ink);
  border-bottom: 0 !important;
  font-weight: 800;
}

.note-card-small {
  z-index: 2;
  width: 190px;
  bottom: 26px;
  left: -6px;
  padding: 24px;
  background: var(--blush);
  transform: rotate(-5deg);
}

.note-card-small strong {
  display: block;
  margin-block: 20px 4px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

.note-card-small p {
  margin: 0;
  font-size: 0.76rem;
}

.mini-label {
  color: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.drawn-arrow {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-family: var(--serif);
  font-size: 1.7rem;
}

.tape {
  position: absolute;
  z-index: 4;
  width: 98px;
  height: 28px;
  top: 28px;
  right: 160px;
  background: rgba(167, 178, 160, 0.72);
  transform: rotate(-7deg);
}

.scribble-badge {
  position: absolute;
  right: -30px;
  bottom: 4px;
  display: flex;
  width: 150px;
  height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed var(--berry);
  border-radius: 50%;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.1;
  text-align: center;
  transform: rotate(8deg);
}

.scribble-badge strong {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--paper-warm);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-items > div {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-right: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.trust-items > div:last-child {
  border-right: 0;
}

.trust-number {
  color: var(--berry);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.story-grid {
  display: grid;
  gap: clamp(60px, 10vw, 150px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.section-heading h2,
.section-intro-row h2,
.tools-heading h2 {
  margin: 0;
  font-size: clamp(2.75rem, 4.7vw, 5rem);
}

.story-copy {
  padding-top: 46px;
  color: var(--ink-soft);
}

.story-copy p,
.prose-copy p {
  max-width: 680px;
}

.story-copy .story-lead,
.prose-copy .story-lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.pillars-section {
  background: var(--paper-warm);
}

.section-intro-row,
.tools-heading {
  display: grid;
  align-items: end;
  gap: 80px;
  margin-bottom: 56px;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
}

.section-intro-row > p,
.tools-heading > p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.pillar-grid,
.content-grid,
.tool-preview-grid,
.values-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar-card {
  position: relative;
  display: flex;
  min-height: 405px;
  overflow: hidden;
  padding: 32px;
  flex-direction: column;
  border-radius: var(--radius);
}

.pillar-berry {
  background: var(--berry);
  color: white;
}

.pillar-sage {
  background: var(--sage);
}

.pillar-blush {
  background: var(--blush);
}

.pillar-index {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pillar-symbol {
  display: flex;
  width: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  margin: 45px 0 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 2rem;
  opacity: 0.88;
}

.pillar-card h3 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.pillar-card p {
  margin-bottom: 28px;
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.82;
}

.pillar-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 750;
}

.latest-section {
  background: var(--cream);
}

.section-intro-with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-intro-with-link .text-link {
  margin-bottom: 10px;
}

.content-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 345px;
  padding: 30px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.content-card:hover {
  border-color: rgba(123, 64, 83, 0.4);
  box-shadow: 0 16px 40px rgba(65, 45, 42, 0.08);
  transform: translateY(-4px);
}

.content-card-cover {
  width: calc(100% + 60px);
  max-width: none;
  height: 190px;
  margin: -30px -30px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: cover;
}

.content-card:has(.content-card-cover) .content-card-topline {
  margin-bottom: 30px;
}

.content-card-topline {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 54px;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.content-category {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(123, 64, 83, 0.1);
  color: var(--berry);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.content-date {
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}

.content-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.content-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.content-card p {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.content-card .text-link {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: auto;
}

.empty-state {
  padding: 54px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

.journey-section {
  padding-block: 0;
  background: var(--cream);
}

.journey-panel {
  position: relative;
  display: grid;
  min-height: 520px;
  overflow: hidden;
  align-items: center;
  gap: 70px;
  padding: 70px 74px;
  border-radius: 28px;
  background: var(--berry);
  color: white;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.64fr);
}

.journey-panel::after {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  bottom: -160px;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  content: "";
}

.journey-index {
  position: absolute;
  top: 25px;
  right: 48%;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--serif);
  font-size: 8rem;
  font-style: italic;
  line-height: 0.65;
  transform: rotate(-8deg);
}

.journey-copy {
  position: relative;
  z-index: 1;
}

.journey-copy h2 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 4.8vw, 5rem);
}

.journey-copy p {
  max-width: 610px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.76);
}

.journey-latest {
  position: relative;
  z-index: 1;
  padding: 32px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.journey-latest h3 {
  margin-block: 28px 16px;
  font-size: 1.8rem;
}

.journey-latest p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.journey-latest a {
  display: inline-flex;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 750;
}

.tools-preview-section {
  background: var(--cream);
}

.tools-heading {
  align-items: end;
}

.tool-preview-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tool-icon {
  display: flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  border: 1px solid var(--berry);
  border-radius: 50%;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.status-label {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 16px;
  color: var(--sage-dark);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.tool-preview-card h3 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.tool-preview-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.newsletter-section {
  padding-block: 105px;
  background: var(--cream);
}

.newsletter-panel {
  display: grid;
  overflow: hidden;
  align-items: center;
  gap: 70px;
  padding: 70px;
  border-radius: 28px;
  background: var(--berry-dark);
  color: white;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.newsletter-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 4.8vw, 4.8rem);
}

.newsletter-copy > p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.74);
}

.newsletter-promise {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  color: #f2d8dc;
  font-size: 0.73rem;
}

.newsletter-form-wrap {
  position: relative;
  z-index: 1;
}

.newsletter-form > label:first-of-type {
  display: block;
  margin-bottom: 10px;
  color: #f2d8dc;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.email-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.email-row input {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.email-row input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.email-row input:focus {
  border-color: #f2d8dc;
  box-shadow: 0 0 0 3px rgba(242, 216, 220, 0.14);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1.5;
}

.consent-row input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--blush);
}

.form-message {
  margin-bottom: 18px;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.form-message-success {
  border: 1px solid rgba(200, 238, 198, 0.35);
  background: rgba(200, 238, 198, 0.12);
  color: #e2f7df;
}

.form-message-error {
  border: 1px solid rgba(255, 190, 190, 0.35);
  background: rgba(255, 190, 190, 0.12);
  color: #ffe1e1;
}

.site-footer {
  padding-block: 78px 28px;
  background: var(--ink);
  color: white;
}

.footer-grid {
  display: grid;
  gap: 55px;
  padding-bottom: 60px;
  grid-template-columns: 1.65fr 0.7fr 0.7fr 0.95fr;
}

.wordmark-footer {
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.footer-brand p {
  max-width: 290px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.footer-title {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.footer-links a:hover {
  color: white;
}

.footer-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: #a8c59f;
  box-shadow: 0 0 0 5px rgba(168, 197, 159, 0.1);
}

.footer-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.67rem;
}

.page-hero {
  padding-block: 115px 100px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.page-hero h1 {
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6.7vw, 6.8rem);
  overflow-wrap: anywhere;
}

.page-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.page-hero-compact {
  padding-block: 80px;
}

.page-hero-compact h1 {
  font-size: clamp(3rem, 5vw, 5rem);
}

.article-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 18px;
  padding-top: 28px;
}

.article-search-field {
  min-width: 0;
}

.article-search-form label {
  font-size: .85rem;
}

.article-search-form input[type="search"] {
  min-height: 52px;
  background: var(--cream);
}

.article-search-form input[type="search"]:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
  box-shadow: none;
}

.article-search-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.article-search-actions .button {
  flex: 1 1 auto;
}

.article-search-form > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .article-search-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  overflow-x: visible;
  gap: 8px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-nav a {
  min-width: 0;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.category-nav a:hover,
.category-nav a[aria-current="page"] {
  border-color: var(--berry);
  color: var(--berry);
}

.category-nav a[aria-current="page"] {
  background: var(--paper-warm);
}

.listing-section {
  min-height: 460px;
  background: var(--cream);
}

.content-grid-listing {
  align-items: stretch;
}

.empty-state-large {
  padding-block: 100px;
}

.empty-state-large > span {
  color: var(--berry);
}

.empty-state-large h2 {
  margin: 15px 0 8px;
  font-size: 2.4rem;
}

.article-header {
  padding-block: 85px 90px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 60px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 700;
}

.back-link:hover {
  color: var(--berry);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.article-header h1 {
  min-width: 0;
  margin-bottom: 30px;
  font-size: clamp(3rem, 6vw, 5.9rem);
  overflow-wrap: anywhere;
}

.article-excerpt {
  min-width: 0;
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.article-cover {
  display: block;
  width: 100%;
  max-height: min(62vh, 680px);
  margin-top: 48px;
  border-radius: var(--radius);
  object-fit: cover;
}

.article-body-grid {
  display: grid;
  align-items: start;
  gap: 80px;
  padding-block: 90px 120px;
  grid-template-columns: minmax(0, 720px) minmax(210px, 1fr);
}

.article-body {
  min-width: 0;
  color: #403a36;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.5vw, 1.27rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-aside {
  position: sticky;
  top: 120px;
  padding: 24px;
  border-left: 2px solid var(--blush);
  background: var(--paper-warm);
}

.article-aside p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.about-hero-grid {
  display: grid;
  align-items: end;
  gap: 90px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
}

.about-sections--compact .page-hero,
.about-sections--compact .section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.about-sections--compact .about-hero-grid,
.about-sections--compact .prose-grid {
  max-width: 980px;
}

.about-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 6rem);
}

.about-intro-card {
  position: relative;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--blush);
  transform: rotate(2deg);
}

.about-intro-card > span {
  position: absolute;
  top: -24px;
  left: 20px;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
}

.about-intro-card p {
  position: relative;
  margin: 20px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.45;
}

.prose-grid {
  display: grid;
  align-items: start;
  gap: 100px;
  grid-template-columns: 0.75fr 1.25fr;
}

.prose-sticky {
  position: sticky;
  top: 130px;
}

.scribble-number {
  display: block;
  margin-bottom: 24px;
  color: var(--blush);
  font-family: var(--serif);
  font-size: 5rem;
  font-style: italic;
  line-height: 1;
}

.prose-sticky h2 {
  font-size: 3rem;
}

.prose-copy {
  color: var(--ink-soft);
}

.values-section {
  background: var(--paper-warm);
}

.values-grid {
  margin-top: 35px;
}

.values-grid article {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.values-grid article > span {
  color: var(--berry);
  font-size: 0.65rem;
  font-weight: 800;
}

.values-grid h3 {
  margin-block: 38px 15px;
  font-size: 1.8rem;
}

.values-grid p {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.tools-page-hero {
  text-align: center;
}

.tools-page-hero .narrow-shell {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.tools-page-hero .narrow-shell > *,
.tools-page-hero :is(h1, p) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.coming-pill {
  display: inline-flex;
  margin-top: 32px;
  padding: 9px 15px;
  border: 1px solid rgba(123, 64, 83, 0.24);
  border-radius: 999px;
  color: var(--berry);
  font-size: 0.68rem;
  font-weight: 750;
}

.tool-catalogue {
  display: grid;
  gap: 16px;
}

.catalogue-card {
  display: grid;
  align-items: center;
  gap: 40px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  grid-template-columns: 52px minmax(0, 1fr) 90px;
}

[data-tools-section="resources"] .catalogue-card {
  grid-template-columns: minmax(0, 1fr);
}

.resource-card-image {
  width: 100%;
  max-height: 360px;
  display: block;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.resource-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.resource-category-filters a {
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.resource-category-filters a:hover,
.resource-category-filters a.is-active {
  border-color: var(--berry);
  background: var(--berry);
  color: white;
}

.resource-filter-empty {
  margin: 0 0 22px;
  padding: 18px;
  border-radius: var(--radius-small);
  background: var(--cream);
  color: var(--ink-soft);
}

.catalogue-featured {
  background: var(--sage);
}

.catalogue-number {
  align-self: start;
  font-size: 0.7rem;
  font-weight: 800;
}

.catalogue-card h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.catalogue-card > div {
  min-width: 0;
}

.catalogue-card h2,
.catalogue-card h3 {
  overflow-wrap: anywhere;
}

.catalogue-card p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
}

.catalogue-symbol {
  display: flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--berry);
  border-radius: 50%;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 7px 11px;
  border: 1px solid rgba(41, 37, 34, 0.18);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.affiliate-note-section {
  padding-top: 0;
}

.affiliate-note {
  display: grid;
  align-items: center;
  gap: 80px;
  padding-block: 60px;
  border-block: 1px solid var(--line);
  grid-template-columns: 0.9fr 1.1fr;
}

.affiliate-note h2 {
  margin: 0;
  font-size: 3rem;
}

.affiliate-note > p {
  margin: 0;
  color: var(--ink-soft);
}

.legal-copy h2 {
  margin: 50px 0 16px;
  font-size: 2rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: var(--ink-soft);
}

.legal-callout {
  margin-top: 50px;
  padding: 22px;
  border-left: 3px solid var(--berry);
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.error-page small {
  display: block;
  margin-top: 30px;
  color: var(--ink-soft);
}

.account-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 86px);
  place-items: center;
  padding: 70px 24px;
  background: var(--paper-warm);
}

.account-card {
  width: min(100%, 520px);
  min-width: 0;
  max-width: 100%;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.account-card .back-link {
  margin-bottom: 42px;
}

.account-card h1 {
  margin-bottom: 15px;
  overflow-wrap: anywhere;
  font-size: 3.4rem;
}

.account-card > p {
  color: var(--ink-soft);
}

.account-card-centered {
  text-align: center;
}

.account-card-centered .button {
  margin-top: 18px;
}

.stacked-form {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label {
  font-size: 0.72rem;
  font-weight: 750;
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: white;
}

.field-group textarea {
  resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(123, 64, 83, 0.1);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 86px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--berry);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(123, 64, 83, 0.1);
  outline: none;
}

.consent-row-dark {
  color: var(--ink-soft);
}

.field-error,
.validation-summary {
  color: #a22836;
  font-size: 0.72rem;
}

.validation-summary:empty,
.field-error:empty {
  display: none;
}

.validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

.account-note {
  margin: 24px 0 0 !important;
  font-size: 0.7rem;
  text-align: center;
}

.owner-activation-card {
  width: min(100%, 620px);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.owner-activation-card .field-group small {
  color: var(--ink-soft);
  font-size: .68rem;
  line-height: 1.45;
}

.admin-section {
  min-height: calc(100vh - 86px);
  padding-block: 80px 110px;
  background: var(--paper-warm);
}

.admin-header,
.admin-editor-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

/* Admin pages share the same form language. Several older views use these
   classes but previously had no rules, leaving native narrow controls on
   phones and unseparated labels, headings and information panels. */
.admin-header .eyebrow,
.admin-editor-header .eyebrow {
  display: block;
  margin: 12px 0 0;
}

.admin-header .back-link,
.admin-header .text-link,
.admin-editor-header .back-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  overflow-wrap: anywhere;
}

.admin-editor-header {
  display: block;
  max-width: 780px;
}

.admin-editor-form,
.admin-editor,
.admin-form-main,
.admin-form-sidebar {
  min-width: 0;
}

.admin-editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: min(100%, 780px);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr);
  align-items: start;
  gap: 22px;
}

.admin-form-card {
  min-width: 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.admin-form-card h2 {
  margin: 0 0 22px;
}

.admin-publish-card p {
  color: var(--ink-soft);
}

.admin-editor > .editor-compare-link {
  margin-bottom: 20px;
}

.admin-editor-form .form-field,
.admin-form-card .form-field,
.admin-dashboard-panel .form-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-editor-form .form-field {
  margin-bottom: 0;
}

.admin-editor-form > label,
.admin-editor-form button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.admin-editor-form .form-field > label,
.admin-form-card .form-field > label,
.admin-dashboard-panel .form-field > label {
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-editor-form .form-field :is(input:not([type="hidden"]):not([type="color"]), select, textarea),
.admin-form-card .form-field :is(input:not([type="hidden"]):not([type="color"]), select, textarea),
.admin-dashboard-panel .form-field :is(input:not([type="hidden"]):not([type="color"]), select, textarea) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.5;
}

.admin-editor-form .form-field textarea,
.admin-form-card .form-field textarea,
.admin-dashboard-panel .form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.admin-editor-form .form-field :is(input, select, textarea):focus-visible,
.admin-form-card .form-field :is(input, select, textarea):focus-visible,
.admin-dashboard-panel .form-field :is(input, select, textarea):focus-visible {
  outline: 3px solid var(--berry-light);
  outline-offset: 2px;
}

.admin-editor-form .form-field small,
.admin-form-card .form-field small,
.admin-dashboard-panel .form-field small {
  color: var(--ink-soft);
  line-height: 1.5;
}

.form-success,
.form-errors {
  max-width: 780px;
  padding: 14px 18px;
  border: 1px solid var(--sage-dark);
  border-radius: 12px;
  background: #f0f5ec;
}

.form-errors {
  border-color: #a22836;
  color: #7b1724;
  background: #fff5f4;
}

.form-success:empty,
.form-errors:empty {
  display: none;
}

.image-upload-error {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.image-upload-error[hidden] {
  display: none;
}

.admin-header h1,
.admin-editor-header h1 {
  min-width: 0;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  font-size: clamp(3rem, 5vw, 5rem);
}

.admin-header p {
  margin: 0;
  color: var(--ink-soft);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header-actions form {
  margin: 0;
}

.admin-nav {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  margin: -18px 0 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-global-nav-shell {
  padding-top: 14px;
}

.admin-global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--line);
}

.admin-global-nav-label {
  flex: none;
  align-self: center;
  color: var(--ink-soft);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-global-nav a {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 750;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-global-nav a:hover,
.admin-global-nav a:focus-visible,
.admin-global-nav a.is-active {
  background: var(--ink);
  color: var(--cream);
}

/* Section-specific links have been replaced by navigation shared across beheer pages. */
.admin-section .admin-nav { display: none; }

.admin-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: var(--ink);
  color: var(--cream);
}

.admin-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.admin-stat {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--cream);
}

.admin-stat strong {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
}

.admin-stat span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-dashboard-grid {
  display: grid;
  min-width: 0;
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
}

.admin-dashboard-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.admin-dashboard-panel h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

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

.analytics-grid .admin-dashboard-panel:first-child {
  grid-column: 1 / -1;
}

.analytics-note,
.analytics-attribution {
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.6;
}

.analytics-note { margin: 0 0 24px; }
.analytics-attribution { margin: 20px 0 0; }
.analytics-ip-address { overflow-wrap: anywhere; }

/* Keep newly added legal headings readable at high mobile text zoom. */
.legal-copy h2 { overflow-wrap: anywhere; }

.analytics-bars,
.analytics-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) 45px;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.analytics-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.analytics-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.analytics-list { list-style-position: inside; }
.analytics-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-bar-row { grid-template-columns: 85px minmax(0, 1fr) 35px; }
}

.admin-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-recent-list {
  display: grid;
}

.admin-recent-list > a {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.admin-recent-list strong,
.admin-recent-list small {
  display: block;
  overflow-wrap: anywhere;
}

.admin-recent-list > a > span:first-child {
  min-width: 0;
  flex: 1 1 12rem;
}

.admin-recent-list strong {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.admin-recent-list small {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.newsletter-admin-shell,
.commerce-admin-shell,
.newsletter-admin-header,
.newsletter-admin-card,
.newsletter-admin-card header,
.newsletter-admin-card dl,
.newsletter-admin-card dl > div {
  min-width: 0;
}

.commerce-scope-note,
.commerce-limits,
.commerce-empty,
.commerce-admin-card,
.commerce-product-form,
.commerce-video-manager,
.commerce-no-checkout {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.commerce-limits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
  gap: 20px 28px;
}

.commerce-limits h2,
.commerce-admin-card h2,
.commerce-public-card h2,
.commerce-video-manager h2 { margin-top: 0; }

.commerce-limits dl { margin: 0; }
.commerce-limits dl div { margin-bottom: 10px; }
.commerce-limits dt { color: var(--ink-soft); font-size: .72rem; font-weight: 800; }
.commerce-limits dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.commerce-limits-form { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 14px; align-items: end; }
.commerce-limits-form label,
.commerce-video-edit label { display: grid; gap: 7px; min-width: 0; font-size: .72rem; font-weight: 800; }
.commerce-limits-form input,
.commerce-video-edit input,
.commerce-video-edit select { min-width: 0; width: 100%; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }

.commerce-admin-list,
.commerce-video-manager,
.commerce-course-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.commerce-video-manager > * { min-width: 0; }
.commerce-admin-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; margin-bottom: 0; }
.commerce-admin-actions,
.commerce-video-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.commerce-admin-actions form,
.commerce-video-actions form { margin: 0; }
.commerce-product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  max-width: 860px;
}
.commerce-product-form .field-group { min-width: 0; align-content: start; }
.commerce-product-form .field-group label { color: var(--ink); font-size: .78rem; }
.commerce-product-form .field-group :is(input, select, textarea) {
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border-color: rgba(41, 37, 34, .3);
  font-size: .9rem;
}
.commerce-product-form .field-group :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}
.commerce-product-form .field-group .field-help { font-size: .74rem; line-height: 1.5; }
.commerce-product-form .field-validation-error { color: #9a243c; font-size: .76rem; }
.commerce-product-form-wide { grid-column: 1 / -1; }
.commerce-product-form > .button { justify-self: start; }

.commerce-video-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.commerce-video-edit { display: grid; grid-template-columns: minmax(160px, .6fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.commerce-video-actions { margin-top: 12px; }
.commerce-video-add { padding: 20px; background: var(--paper-warm); border-radius: 12px; }

.commerce-public-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.commerce-public-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.commerce-public-card h2,
.commerce-public-card p { overflow-wrap: anywhere; }
.commerce-public-card h2 a { display: block; max-width: 100%; }
.commerce-detail > .page-hero > .shell > .back-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.commerce-detail h1,
.commerce-detail p,
.commerce-detail li { min-width: 0; overflow-wrap: anywhere; }
.commerce-public-card .text-link { margin-top: auto; padding-top: 18px; }
.commerce-price { display: block; margin-top: 18px; font-size: 1.4rem; }
.commerce-detail-body { padding-top: 42px; padding-bottom: 72px; }
.commerce-course-list { padding: 0; list-style-position: inside; }
.commerce-course-list li { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.commerce-course-list span { display: block; margin-top: 5px; color: var(--ink-soft); }

@media (max-width: 1040px) {
  .commerce-catalogue-hero h1 {
    font-size: clamp(2.4rem, 13vw, 4.5rem);
    overflow-wrap: anywhere;
  }
  .commerce-limits,
  .commerce-limits-form,
  .commerce-admin-card,
  .commerce-product-form,
  .commerce-video-edit,
  .commerce-public-grid { grid-template-columns: 1fr; }
  .commerce-product-form > .button { width: 100%; }
  .commerce-admin-actions,
  .commerce-video-actions { justify-content: flex-start; }
  .commerce-admin-actions form,
  .commerce-admin-actions .button,
  .commerce-video-actions form,
  .commerce-video-actions .button,
  .commerce-limits-form .button { width: 100%; }
}

.newsletter-admin-header h1,
.newsletter-admin-card h2,
.newsletter-admin-card dd {
  overflow-wrap: anywhere;
}

.newsletter-admin-header > .button,
.newsletter-export-form .button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.newsletter-consent-manager,
.newsletter-label-manager,
.newsletter-placement-manager,
.newsletter-filter-form,
.newsletter-assignment-toolbar,
.newsletter-assignment-hint {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.newsletter-placement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.newsletter-placement-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.newsletter-placement-card h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.newsletter-placement-card label,
.newsletter-placement-card span {
  display: block;
  min-width: 0;
}

.newsletter-placement-card span {
  margin-bottom: 7px;
  font-size: 0.72rem;
  font-weight: 800;
}

.newsletter-placement-card select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}

.newsletter-placement-card .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.newsletter-consent-heading,
.newsletter-label-heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.newsletter-consent-heading h2,
.newsletter-consent-heading p,
.newsletter-label-heading h2,
.newsletter-label-heading p {
  margin-top: 0;
}

.newsletter-consent-heading p,
.newsletter-label-heading p,
.newsletter-assignment-hint {
  color: var(--ink-soft);
}

.newsletter-consent-create label,
.newsletter-label-create label,
.newsletter-label-rename label,
.newsletter-filter-form label,
.newsletter-filter-form legend,
.newsletter-assignment-toolbar legend {
  display: block;
  margin-bottom: 7px;
  font-size: 0.72rem;
  font-weight: 800;
}

.newsletter-label-create > div,
.newsletter-label-rename > div,
.newsletter-assignment-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.newsletter-consent-create input,
.newsletter-consent-create textarea,
.newsletter-label-create input,
.newsletter-label-rename input,
.newsletter-filter-form select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.newsletter-consent-create {
  display: grid;
  gap: 8px;
}

.newsletter-consent-create textarea {
  min-height: 110px;
  resize: vertical;
}

.newsletter-consent-create .field-help {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.newsletter-consent-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.newsletter-consent-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.newsletter-consent-card.is-active {
  border-color: var(--green);
}

.newsletter-consent-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.newsletter-consent-card h3,
.newsletter-consent-card small {
  margin: 6px 0 0;
}

.newsletter-consent-text {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.newsletter-consent-activate {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.newsletter-consent-activate label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.newsletter-consent-activate input {
  margin-top: 3px;
}

.newsletter-label-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-label-card {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.newsletter-label-card.is-archived {
  opacity: 0.72;
}

.newsletter-filter-form {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr) auto;
  gap: 20px;
}

.newsletter-filter-form fieldset,
.newsletter-assignment-toolbar {
  min-width: 0;
  border: 0;
}

.newsletter-filter-form fieldset,
.newsletter-assignment-toolbar {
  padding: 0;
}

.newsletter-label-options,
.newsletter-label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.newsletter-label-options label,
.newsletter-label-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--paper-warm);
  font-size: 0.72rem;
  font-weight: 750;
}

.newsletter-label-options input,
.newsletter-subscriber-select input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.newsletter-assignment-toolbar {
  display: grid;
  gap: 14px;
}

.newsletter-assignment-actions {
  flex-wrap: wrap;
}

.newsletter-subscriber-select {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 800;
}

.newsletter-subscriber-select span {
  overflow-wrap: anywhere;
}

.newsletter-admin-card > h2 {
  margin-top: 18px;
}

.newsletter-label-chips {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.newsletter-label-chips li {
  min-height: 0;
  background: var(--sage);
}

.newsletter-label-chips li.is-archived {
  background: var(--paper-warm);
  color: var(--ink-soft);
}

.newsletter-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.newsletter-filters a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

.newsletter-filters a:hover,
.newsletter-filters a.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.newsletter-admin-list {
  display: grid;
  gap: 14px;
}

.newsletter-admin-card,
.newsletter-admin-empty {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.newsletter-admin-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.newsletter-admin-card h2,
.newsletter-admin-empty h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
}

.newsletter-status {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-warm);
  font-size: 0.68rem;
  font-weight: 800;
}

.newsletter-status-active {
  background: var(--sage);
}

.newsletter-admin-card dl {
  display: grid;
  gap: 16px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 0;
}

.newsletter-admin-card dt {
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 750;
}

.newsletter-admin-card dd {
  margin: 2px 0 0;
  font-size: 0.78rem;
}

.newsletter-admin-empty p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.newsletter-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.newsletter-pagination span {
  font-size: 0.78rem;
  font-weight: 750;
}

.resource-category-panel,
.resource-order-panel,
.resource-order-empty {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.resource-lifecycle-help {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.resource-preview-heading {
  padding-bottom: 36px;
}

.resource-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.resource-preview-card {
  max-width: 760px;
}

.resource-preview-card .catalogue-card {
  min-width: 0;
}

.resource-archive-confirm {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  overflow-wrap: anywhere;
}

.resource-archive-panel {
  background: var(--paper-warm);
}

.resource-edit-form {
  min-width: 0;
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.resource-edit-form > label,
.resource-category-choice,
.resource-new-category,
.resource-image-fields > label:not(.resource-image-remove),
.resource-explanation-fields > label {
  min-width: 0;
  display: grid;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 750;
}

.resource-link-mode,
.resource-explanation-fields {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.resource-link-mode legend,
.resource-explanation-fields legend {
  padding-inline: 6px;
  font-weight: 750;
}

.resource-link-mode label {
  display: grid;
  align-items: start;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: var(--paper-warm);
  cursor: pointer;
}

.resource-link-mode input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.resource-link-mode strong,
.resource-link-mode span {
  display: block;
}

.resource-link-mode span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.resource-link-mode strong {
  margin-bottom: 3px;
  color: var(--ink);
}

.resource-explanation-fields > p {
  margin: 0;
  color: var(--ink-soft);
}

.resource-explanation-fields[hidden] {
  display: none;
}

.resource-edit-form :is(input:not([type="checkbox"]), textarea, select) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.resource-category-panel {
  min-width: 0;
}

.resource-category-panel h2 {
  margin: 6px 0;
}

.resource-category-panel > div > p {
  margin: 0;
  color: var(--ink-soft);
}

.resource-category-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.resource-category-row {
  min-width: 0;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1.4fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper-warm);
}

.resource-category-row strong,
.resource-category-row span {
  display: block;
  overflow-wrap: anywhere;
}

.resource-category-row span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.resource-category-rename {
  min-width: 0;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
}

.resource-category-rename label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 750;
}

.resource-category-rename input {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.resource-category-rename button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 750;
}

.resource-check-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.resource-check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.resource-order-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.resource-order-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.resource-order-heading p,
.resource-order-empty {
  color: var(--ink-soft);
}

.resource-order-heading p {
  max-width: 650px;
  margin: 0;
}

.resource-order-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-order-card {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper-warm);
}

.resource-order-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.resource-order-image {
  width: 72px;
  height: 52px;
  float: left;
  margin-right: 12px;
  border-radius: 8px;
  object-fit: cover;
}

.resource-image-fields {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.resource-image-fields legend {
  padding-inline: 6px;
  font-weight: 750;
}

.resource-admin-image-preview {
  width: min(100%, 560px);
  max-height: 300px;
  display: block;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.resource-image-remove {
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.resource-image-remove input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.resource-order-copy strong,
.resource-order-copy small {
  display: block;
}

.resource-order-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
}

.resource-order-actions,
.resource-order-move {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-order-actions form {
  margin: 0;
}

.resource-order-actions :is(a, button) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.resource-order-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.resource-order-save-bottom {
  display: none;
  margin-top: 20px;
}

.resource-archive-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.resource-archive-panel summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 750;
}

.resource-archive-panel > p {
  color: var(--ink-soft);
}

.resource-archive-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.resource-archive-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.resource-archive-panel li strong,
.resource-archive-panel li span {
  display: block;
  overflow-wrap: anywhere;
}

.resource-archive-panel li span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.resource-archive-panel button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
}

.resource-preview-page {
  min-width: 0;
}

.resource-preview-frame {
  padding: clamp(22px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.resource-preview-frame .tool-catalogue {
  max-width: 820px;
  margin-inline: auto;
}

.resource-detail {
  padding-block: clamp(58px, 9vw, 110px);
}

.resource-detail-back {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 750;
}

.resource-detail h1 {
  max-width: 780px;
  margin: 10px 0 30px;
  overflow-wrap: anywhere;
}

.resource-detail-image {
  width: 100%;
  max-height: 560px;
  display: block;
  margin-bottom: 32px;
  border-radius: var(--radius);
  object-fit: cover;
}

.resource-detail-body {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.resource-detail-disclosure {
  max-width: 760px;
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 4px solid var(--berry);
  border-radius: var(--radius-small);
  background: var(--cream);
}

.resource-detail-disclosure strong,
.resource-detail-disclosure p {
  display: block;
}

.resource-detail-disclosure p {
  margin: 5px 0 0;
  color: var(--ink-soft);
}

.resource-detail-cta {
  margin-top: 24px;
}

.resource-preview-frame .resource-detail {
  padding-block: 0;
}
.admin-quick-actions {
  display: grid;
  gap: 14px;
}

.admin-quick-actions h2 {
  margin-bottom: 8px;
}

.admin-quick-actions > a {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper-warm);
}

.admin-quick-actions > a:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.admin-quick-actions strong {
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.admin-quick-actions span {
  color: var(--ink-soft);
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.admin-empty {
  color: var(--ink-soft);
  white-space: normal;
}

.form-message-admin {
  border-color: rgba(67, 111, 61, 0.2);
  background: rgba(102, 146, 93, 0.12);
  color: #31532d;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: var(--ink-soft);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table td {
  font-size: 0.78rem;
}

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

@media (max-width: 980px) {
  .admin-table-wrap {
    max-width: 100%;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-table,
  .admin-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .admin-table tbody tr {
    display: block;
    min-width: 0;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--cream);
  }

  .admin-table td {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding: 12px 16px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--ink-soft);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .admin-table td:not([data-label])::before {
    display: none;
  }
}

.admin-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(41, 37, 34, 0.08);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 750;
}

.admin-status.is-published {
  background: rgba(79, 121, 70, 0.13);
  color: #3e6837;
}

.admin-editor-shell {
  width: min(calc(100% - 48px), 1080px);
}

.admin-editor-header .back-link {
  margin-bottom: 30px;
}

.editor-form {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.editor-form > *,
.editor-panel .field-group {
  min-width: 0;
}

.editor-form :is(input, select, textarea, button) {
  min-width: 0;
  max-width: 100%;
}

.editor-form > .validation-summary {
  grid-column: 1 / -1;
}

.editor-main,
.editor-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.editor-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.editor-panel {
  padding: 24px;
}

.editor-panel h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-help {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.editor-cover-preview {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.editor-cover-remove {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.seo-editor {
  min-width: 0;
}

.public-route-preview {
  display: block;
  color: #137333;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.public-url-confirmation {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d28b32;
  border-radius: var(--radius-small);
  background: #fff8e9;
}

.public-url-confirmation[hidden] {
  display: none;
}

.public-url-confirmation p {
  margin: 0;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.public-url-confirmation label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.seo-live-preview {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.seo-live-preview h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
}

.seo-search-card,
.seo-social-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #fff;
}

.seo-search-card {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.seo-search-card strong {
  color: #1a0dab;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.seo-search-card span {
  color: #137333;
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.seo-search-card p,
.seo-social-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.seo-social-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
}

.seo-social-card > div {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.seo-social-card span,
.seo-social-card small {
  color: var(--ink-soft);
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.editor-cover-remove input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.content-block-builder,
.content-block-list {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.content-block-builder-heading {
  min-width: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.content-block-builder-heading h2 {
  margin: 5px 0 8px;
  font-size: 1.65rem;
}

.content-block-builder-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .75rem;
}

.content-block-add {
  min-width: min(100%, 220px);
  display: grid;
  gap: 8px;
}

.content-block-add label {
  font-size: .68rem;
  font-weight: 750;
}

.content-block-editor {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper-warm);
}

.content-block-editor > header,
.content-block-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.content-block-editor > header strong {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.content-block-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.content-block-actions button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: .65rem;
  font-weight: 750;
}

.content-block-actions button:disabled {
  opacity: .45;
}

.content-block-decorative {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: .72rem;
}

.content-block-image-preview,
.article-content-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-small);
  object-fit: contain;
}

.content-block-image-preview {
  max-height: 300px;
  margin-top: 12px;
}

.article-body h2 {
  margin: 2.2em 0 .75em;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.article-content-image {
  min-width: 0;
  margin: 2.2em 0;
}

.article-content-image img {
  max-height: min(70vh, 760px);
}

.article-content-image figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .72rem;
}

.article-content-action {
    margin-block: 2rem;
    padding: clamp(1.15rem, 4vw, 1.75rem);
    border: 1px solid rgba(123, 64, 83, .2);
    border-radius: var(--radius);
    background: var(--cream, #fffaf5);
}

.article-content-action p {
    margin: 0 0 1rem;
}

.article-content-action .button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

[data-action-destination] > [hidden] {
    display: none;
}

@media (max-width: 1040px) {
  .site-nav {
    gap: 18px;
  }

  .hero-grid {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
  }

  .scribble-badge {
    right: 0;
  }

  .journey-panel,
  .newsletter-panel {
    gap: 45px;
    padding: 55px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }

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

@media (max-width: 880px) {
  .shell,
  .narrow-shell,
  .article-shell,
  .admin-editor-shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .section {
    padding-block: 82px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 86px;
    right: 0;
    left: 0;
    display: flex;
    height: calc(100dvh - 86px);
    align-items: stretch;
    padding: 32px 24px 48px;
    flex-direction: column;
    gap: 2px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav > a:not(.button) {
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.55rem;
  }

  .site-nav > a:not(.button)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 24px;
  }

  .hero-section {
    padding-block: 70px 80px;
  }

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

  .hero-copy h1 {
    max-width: 720px;
  }

  .hero-visual {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .trust-items > div {
    padding-inline: 12px;
    text-align: center;
  }

  .story-grid,
  .prose-grid,
  .about-hero-grid,
  .affiliate-note {
    gap: 50px;
    grid-template-columns: 1fr;
  }

  .story-copy {
    padding-top: 0;
  }

  .prose-sticky {
    position: static;
  }

  .section-intro-row,
  .tools-heading {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .pillar-grid,
  .content-grid,
  .tool-preview-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card:last-child,
  .tool-preview-card:last-child,
  .values-grid article:last-child {
    grid-column: 1 / -1;
  }

  .journey-panel,
  .newsletter-panel {
    grid-template-columns: 1fr;
  }

  .journey-index {
    right: 20px;
  }

  .article-body-grid {
    gap: 50px;
    grid-template-columns: minmax(0, 1fr);
  }

  .article-aside {
    position: static;
  }

  .catalogue-card {
    grid-template-columns: 45px minmax(0, 1fr) 70px;
  }

  .catalogue-symbol {
    width: 65px;
    height: 65px;
  }

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

  .editor-form,
  .admin-editor-header > div,
  .editor-main,
  .editor-sidebar,
  .editor-panel,
  .editor-panel .field-group {
    min-width: 0;
  }

  .editor-main,
  .editor-sidebar,
  .editor-panel {
    width: 100%;
    max-width: 100%;
  }

  .admin-editor-header :is(h1, p, a) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .editor-form :is(input, select, textarea, button) {
    min-width: 0;
    max-width: 100%;
  }

  .editor-form :is(label, .field-help, .field-error, .validation-summary) {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .shell,
  .narrow-shell,
  .article-shell,
  .admin-editor-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 76px;
  }

  .site-nav {
    top: 76px;
    height: calc(100dvh - 76px);
  }

  .section {
    padding-block: 68px;
  }

  .hero-section {
    padding-block: 55px 60px;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 16.5vw, 4.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 470px;
  }

  .note-card-main {
    right: 5px;
    padding: 28px;
  }

  .note-card-small {
    left: 0;
  }

  .scribble-badge {
    display: none;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }

  .trust-items > div {
    min-height: 65px;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-items > div:last-child {
    border-bottom: 0;
  }

  .section-heading h2,
  .section-intro-row h2,
  .tools-heading h2 {
    font-size: clamp(2.55rem, 12vw, 3.7rem);
  }

  .pillar-grid,
  .content-grid,
  .tool-preview-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card:last-child,
  .tool-preview-card:last-child,
  .values-grid article:last-child {
    grid-column: auto;
  }

  .section-intro-with-link {
    display: grid;
    align-items: start;
  }

  .journey-panel,
  .newsletter-panel {
    width: 100%;
    padding: 55px 24px;
    border-radius: 0;
  }

  .journey-panel {
    min-height: auto;
  }

  .newsletter-section {
    padding-block: 0;
  }

  .email-row {
    grid-template-columns: 1fr;
  }

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

  .footer-brand,
  .footer-note {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .page-hero {
    padding-block: 72px 65px;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .article-header {
    padding-block: 58px 65px;
  }

  .content-card-cover {
    height: clamp(150px, 48vw, 210px);
  }

  .article-cover {
    margin-top: 34px;
  }

  .back-link {
    margin-bottom: 40px;
  }

  .article-body-grid {
    padding-block: 62px 80px;
  }

  .about-intro-card {
    transform: none;
  }

  .catalogue-card {
    align-items: start;
    gap: 20px;
    padding: 28px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .catalogue-symbol {
    display: none;
  }

  .feature-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-section {
    padding: 35px 14px;
  }

  .account-card {
    padding: 32px 24px;
  }

  .admin-section {
    padding-block: 55px 80px;
  }

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

  .admin-header h1,
  .admin-editor-header h1 {
    hyphens: auto;
    text-wrap: balance;
    font-size: clamp(2.3rem, 9vw, 3.5rem);
  }

  .admin-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-editor-form,
  .admin-form-card,
  .admin-dashboard-panel {
    max-width: 100%;
    padding: 20px;
  }

  .admin-header > *,
  .admin-header h1 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .admin-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header-actions .button {
    width: 100%;
  }

  .admin-nav {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    margin-top: -10px;
    white-space: normal;
  }

  .admin-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard-panel {
    padding: 22px;
  }

  .newsletter-admin-card,
  .newsletter-admin-empty {
    padding: 20px;
  }

  .newsletter-admin-card > header {
    flex-direction: column;
  }

  .newsletter-admin-card dl {
    grid-template-columns: 1fr;
  }

  .newsletter-consent-heading,
  .newsletter-label-heading,
  .newsletter-label-card,
  .newsletter-filter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-placement-list,
  .newsletter-placement-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .newsletter-consent-card > header {
    flex-direction: column;
  }

  .newsletter-placement-card .button,
  .newsletter-consent-create .button,
  .newsletter-consent-activate .button {
    width: 100%;
  }

  .newsletter-label-create > div,
  .newsletter-label-rename > div {
    flex-direction: column;
  }

  .newsletter-label-card > form:last-child .button,
  .newsletter-label-create .button,
  .newsletter-label-rename .button,
  .newsletter-filter-form > .button,
  .newsletter-export-form,
  .newsletter-export-form .button {
    width: 100%;
  }

  .newsletter-status {
    white-space: normal;
  }

  .resource-category-panel,
  .resource-order-panel,
  .resource-order-empty {
    padding: 22px;
  }

  .resource-edit-form {
    padding: 22px;
  }

  .resource-order-heading,
  .resource-category-row,
  .resource-order-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .resource-order-heading {
    display: grid;
  }

  .resource-order-heading > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .resource-order-heading > .button {
    display: none;
  }

  .resource-order-actions {
    align-items: stretch;
  }

  .resource-order-actions :is(a, button),
  .resource-order-actions form {
    flex: 1 1 auto;
  }

  .resource-order-actions form button {
    width: 100%;
  }

  .resource-order-move {
    width: 100%;
  }

  .resource-order-move button {
    flex: 1 1 0;
  }

  .resource-order-save-bottom {
    width: 100%;
    display: inline-flex;
  }

  .resource-category-rename {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-category-rename button {
    width: 100%;
  }

  .resource-preview-actions,
  .resource-preview-actions :is(.button, form, button) {
    width: 100%;
  }

  .editor-main,
  .editor-panel {
    padding: 22px;
  }

  .content-block-builder-heading,
  .content-block-editor > header {
    align-items: stretch;
    flex-direction: column;
  }

  .content-block-add {
    width: 100%;
  }

  .content-block-editor {
    padding: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visual page editor */
.visual-edit-mode {
  padding-top: 62px;
}

.visual-editor-toolbar {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  left: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(16px, 3vw, 44px);
  color: #fffaf5;
  background: #251b1d;
  box-shadow: 0 8px 30px rgb(31 20 24 / 18%);
}

.visual-editor-toolbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.visual-editor-toolbar strong {
  font-size: 0.92rem;
}

.visual-editor-toolbar span:not(.visual-editor-live-dot) {
  color: rgb(255 250 245 / 70%);
  font-size: 0.82rem;
}

.visual-editor-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9dce9f;
  box-shadow: 0 0 0 5px rgb(157 206 159 / 15%);
}

.visual-toolbar-button,
.visual-toolbar-exit {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  color: #fffaf5;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.visual-toolbar-button:hover,
.visual-toolbar-button:focus-visible {
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 8%);
}

.visual-toolbar-exit {
  border-color: #f0d5cf;
  color: #251b1d;
  background: #f0d5cf;
}

.visual-page-picker {
  position: relative;
}

.visual-page-picker > summary {
  list-style: none;
}

.visual-page-picker > summary::-webkit-details-marker {
  display: none;
}

.visual-page-picker > summary::after {
  margin-left: 8px;
  content: "▾";
}

.visual-page-picker[open] > summary::after {
  content: "▴";
}

.visual-page-picker > nav {
  position: absolute;
  z-index: 1;
  top: calc(100% + 8px);
  right: 0;
  width: min(22rem, calc(100vw - 32px));
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 14px;
  background: #251b1d;
  box-shadow: 0 12px 32px rgb(0 0 0 / 24%);
}

.visual-page-picker > nav a {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #fffaf5;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.visual-editor-toolbar .visual-page-picker > nav a > span {
  color: inherit;
  font-size: inherit;
}

.visual-page-picker > nav a:hover,
.visual-page-picker > nav a:focus-visible,
.visual-page-picker > nav a[aria-current="page"] {
  background: rgb(255 255 255 / 10%);
}

.visual-page-picker > nav small {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 999px;
  color: #fffaf5;
  font-size: 0.75em;
}

.editable-block {
  position: relative;
}

.visual-edit-mode .editable-block::after {
  position: absolute;
  z-index: 25;
  inset: 5px;
  border: 2px dashed rgb(132 62 87 / 34%);
  border-radius: 14px;
  content: "";
  pointer-events: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.visual-edit-mode .editable-block:hover::after,
.visual-edit-mode .editable-block:focus-within::after {
  border-color: #843e57;
  background: rgb(132 62 87 / 2%);
}

.visual-edit-button {
  position: absolute;
  z-index: 40;
  top: 16px;
  right: 16px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #843e57;
  box-shadow: 0 8px 24px rgb(73 32 47 / 24%);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.visual-edit-button:hover,
.visual-edit-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgb(73 32 47 / 34%);
}

.visual-edit-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .visual-edit-button {
  top: 10px;
  right: 12px;
}

.visual-editor-backdrop {
  position: fixed;
  z-index: 1400;
  inset: 0;
  background: rgb(26 18 20 / 48%);
  backdrop-filter: blur(2px);
}

.visual-editor-drawer {
  position: fixed;
  z-index: 1500;
  top: 0;
  right: 0;
  width: min(32.5rem, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 34px clamp(22px, 4vw, 42px) 50px;
  background: #fffaf5;
  box-shadow: -20px 0 60px rgb(30 20 23 / 22%);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.visual-editor-drawer.is-open {
  transform: translateX(0);
}

.visual-editor-drawer-content {
  min-height: 0;
  overflow-y: auto;
}

.visual-editor-close {
  flex-shrink: 0;
  align-self: flex-end;
  position: relative;
  z-index: 2;
  top: 0;
  left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fffaf5;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.visual-editor-heading {
  margin: 20px 0 30px;
  padding-right: 40px;
}

.visual-editor-heading h2 {
  margin: 7px 0 12px;
  font-size: clamp(2.2rem, 7vw, 3.25rem);
}

.visual-editor-heading p {
  margin: 0;
  color: var(--muted);
}

.visual-editor-form {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 24px;
}

/* Text enlargement does not change a desktop-width media query. Keep every
   editor grid item and control shrinkable at all viewport widths so 200% text
   cannot widen the drawer or move an action beyond its visible edge. */
.visual-editor-form > *,
.visual-editor-form .form-field,
.visual-editor-form .form-field > div,
.visual-editor-form :is(input, select, textarea, button) {
  min-width: 0;
  max-width: 100%;
}

.visual-editor-form button {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Action meaning stays consistent throughout the live editor. Save is the
   single primary action; reversible editor controls are secondary and
   content removal is deliberately distinct without changing its behavior. */
.visual-editor-form [data-editor-action="secondary"],
.visual-editor-form [data-editor-action="destructive"],
.editor-discard-dialog [data-editor-action="secondary"],
.editor-discard-dialog [data-editor-action="destructive"] {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 2px solid var(--berry);
  border-radius: 12px;
  color: var(--berry-dark);
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.visual-editor-form [data-editor-action="secondary"]:hover,
.editor-discard-dialog [data-editor-action="secondary"]:hover {
  background: var(--paper-warm);
  border-color: var(--berry-dark);
}

.visual-editor-form [data-editor-action="destructive"],
.editor-discard-dialog [data-editor-action="destructive"] {
  border-color: #a22836;
  color: #7b1724;
  background: #fff5f4;
}

.visual-editor-form [data-editor-action="destructive"]:hover,
.editor-discard-dialog [data-editor-action="destructive"]:hover {
  border-color: #7b1724;
  background: #fde7e5;
}

.visual-editor-form [data-editor-action]:focus-visible,
.editor-discard-dialog [data-editor-action]:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}

.visual-editor-form [data-editor-action]:disabled,
.editor-discard-dialog [data-editor-action]:disabled {
  border-color: var(--line-strong);
  color: var(--muted);
  background: var(--paper-warm);
  opacity: 0.72;
  cursor: not-allowed;
}

.visual-editor-form [data-block-library] > summary,
.visual-editor-form [data-block-toggle],
.visual-editor-form [data-block-remove],
.visual-editor-form [data-block-restore],
.visual-editor-form [data-order-up],
.visual-editor-form [data-order-down] {
  min-height: 44px;
}

.visual-editor-form [data-block-library] > summary {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.editor-compare-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-block: 8px;
  overflow-wrap: anywhere;
}

.visual-editor-field {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.visual-editor-field > label:first-of-type {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.visual-editor-field input:not([type="hidden"]):not([type="checkbox"]),
.visual-editor-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.5;
}

.visual-editor-field textarea {
  min-height: 132px;
  resize: vertical;
}

.visual-editor-field input[type="file"] {
  padding: 10px;
  font-size: 0.82rem;
}

.visual-editor-field input:focus,
.visual-editor-field textarea:focus {
  border-color: var(--berry);
  outline: 3px solid rgb(132 62 87 / 12%);
  outline-offset: 1px;
}

.visual-editor-field:last-of-type {
  border-bottom: 0;
}

.visual-editor-field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.visual-editor-input-help {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.navigation-editor > h3,
.navigation-editor > p,
.navigation-editor-card h4,
.navigation-editor-card p {
  margin: 0;
}

.navigation-editor-list {
  display: grid;
  gap: 16px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.navigation-editor-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-warm);
  overflow-wrap: anywhere;
}

.navigation-editor-card h4 {
  color: var(--ink);
  font-size: 1.05rem;
}

.navigation-editor-card label {
  min-width: 0;
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.navigation-editor-destination,
.navigation-editor-module-note {
  color: var(--muted);
  line-height: 1.5;
}

.navigation-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.navigation-editor-actions button {
  min-height: 44px;
  white-space: normal;
}

.visual-editor-form :is([data-trust-list], [data-pillar-list], [data-tool-list], [data-home-tool-list], [data-value-list], [data-hero-button-list]) {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.visual-editor-form :is([data-trust-item], [data-pillar-item], [data-tool-item], [data-home-tool-item], [data-value-item], [data-hero-button-item]) {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-warm);
}

.visual-editor-form :is([data-trust-item], [data-pillar-item], [data-tool-item], [data-home-tool-item], [data-value-item], [data-hero-button-item]) label {
  min-width: 0;
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.visual-editor-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visual-editor-form :is([data-tool-add], [data-tool-up], [data-tool-down], [data-tool-remove],
  [data-home-tool-add], [data-home-tool-up], [data-home-tool-down], [data-home-tool-remove],
  [data-hero-button-add], [data-hero-button-up], [data-hero-button-down], [data-hero-button-remove],
  [data-value-add], [data-value-up], [data-value-down], [data-value-remove]) {
  min-height: 44px;
  white-space: normal;
}

.block-library-options {
  display: grid;
  gap: 12px;
  margin-block: 16px;
}

.block-library-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-warm);
  overflow-wrap: anywhere;
}

.block-library-card h4,
.block-library-card p {
  margin-top: 0;
}

.block-library-example {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--berry);
  background: var(--paper);
}

.block-library-example span,
.block-library-state {
  color: var(--muted);
}

.block-library-card button {
  width: 100%;
  min-height: 44px;
  white-space: normal;
}

.visual-editor-image-preview {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4eee8;
}

.visual-editor-image-preview img {
  width: 100%;
  max-height: 260px;
  display: block;
  object-fit: cover;
}

.visual-editor-remove-image {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  font-size: 0.82rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.visual-editor-remove-image input {
  width: 18px;
  height: 18px;
}

.visual-editor-actions {
  position: sticky;
  bottom: -50px;
  margin: 8px -42px -50px;
  padding: 18px 42px 24px;
  border-top: 1px solid var(--line);
  background: rgb(255 250 245 / 96%);
  backdrop-filter: blur(12px);
}

.visual-editor-actions p {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.visual-editor-loading {
  padding: 80px 0;
  color: var(--muted);
  text-align: center;
}

.visual-editor-open {
  overflow: hidden;
}

.visual-edit-mode .site-header {
  position: relative;
  top: auto;
}

.hero-uploaded-image {
  position: absolute;
  z-index: 12;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  border: 10px solid #fffaf5;
  border-radius: 38% 62% 48% 52% / 48% 38% 62% 52%;
  object-fit: cover;
  box-shadow: 0 24px 70px rgb(57 35 42 / 20%);
}

.about-uploaded-image {
  width: 100%;
  max-height: 290px;
  display: block;
  margin-bottom: 22px;
  border-radius: 16px;
  object-fit: cover;
}

.tools-uploaded-image {
  width: min(100%, 720px);
  max-height: 380px;
  display: block;
  margin: 38px auto 0;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgb(57 35 42 / 14%);
}

.wordmark-image {
  width: auto;
  max-width: 180px;
  height: 48px;
  display: block;
  object-fit: contain;
}

/* Keep the toolbar in document flow on phones, including landscape.
   Enlarged labels can wrap without covering the page or hiding exit controls. */
@media (max-width: 1040px) {
  .visual-edit-mode {
    padding-top: 0;
  }

  .visual-editor-toolbar {
    position: relative;
    min-height: 64px;
    gap: 0;
    padding-block: 10px;
  }

  .visual-editor-toolbar > div {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }

  .visual-page-picker {
    width: 100%;
  }

  .visual-page-picker > summary {
    width: 100%;
    justify-content: space-between;
  }

  .visual-page-picker > nav {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .visual-toolbar-button,
  .visual-toolbar-exit {
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .visual-editor-toolbar > div:first-child {
    display: none;
  }

  .visual-edit-button span {
    display: none;
  }

  .visual-edit-button {
    width: 44px;
    min-height: 44px;
    padding-inline: 0;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .visual-editor-drawer {
    padding-inline: 20px;
  }

  .visual-editor-actions {
    margin-inline: -20px;
    padding-inline: 20px;
  }
}

/* Enlarged phone navigation must reflow instead of pushing links off-screen. */
@media (max-width: 1040px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-block: 12px;
  }

  .wordmark {
    flex: 1 1 180px;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.15;
  }

  .menu-toggle {
    flex: 0 0 auto;
  }

  .site-nav {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }

  .site-nav > a {
    overflow-wrap: anywhere;
    min-width: 0;
  }

  .site-header .visual-edit-button {
    position: relative;
    top: auto;
    right: auto;
    margin: 8px 12px 0 auto;
    display: flex;
  }
}

@media (max-width: 880px) {
  .site-nav {
    position: absolute;
    top: 100%;
    /* Shield the page for the full remaining height, even between scrolled links. */
    height: calc(100dvh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-wrap: nowrap;
  }

  .site-nav > a {
    flex-shrink: 0;
  }
}

/* Long enlarged words must contribute a shrinkable minimum to mobile grids. */
@media (max-width: 1040px) {
  .homepage-layout,
  .site-footer {
    overflow-wrap: anywhere;
  }

  .homepage-layout {
    overflow-x: clip;
  }

  .story-grid > *,
  .section-intro-row > *,
  .tools-heading > *,
  .journey-panel > *,
  .newsletter-panel > * {
    min-width: 0;
  }

  .eyebrow {
    max-width: 100%;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }

  .journey-index {
    right: 24px;
    left: 24px;
    overflow: hidden;
    text-align: right;
    transform: none;
  }

  /* Keep the notes in flow so growing text cannot overlap the next card. */
  .hero-visual {
    display: grid;
    gap: 24px;
    min-width: 0;
  }

  .hero-visual .note-card {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .note-card-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hand-circle {
    width: auto;
    min-width: 54px;
    height: auto;
    min-height: 34px;
    padding: 4px 8px;
  }

  .hero-visual .scribble-badge {
    display: flex;
    position: relative;
    inset: auto;
    width: min(150px, 100%);
    height: auto;
    min-height: 150px;
    padding: 18px;
    justify-self: end;
    transform: none;
  }

  .hero-visual .tape {
    top: -14px;
  }
}

/* Enlarged editor content must shrink and wrap inside its scrollable panel. */
@media (max-width: 1040px) {
  .visual-editor-drawer {
    overflow-wrap: anywhere;
  }

  .visual-editor-form,
  .visual-editor-form .form-field,
  .visual-editor-form .form-field > div {
    min-width: 0;
  }

  .visual-editor-form input,
  .visual-editor-form select,
  .visual-editor-form textarea,
  .visual-editor-form button {
    min-width: 0;
    max-width: 100%;
  }

  .visual-editor-form button {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .visual-editor-form [data-order-item] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 16px;
  }

  .visual-editor-form [data-order-name] {
    flex-basis: 100%;
  }

  .visual-editor-actions {
    position: static;
    margin-inline: 0;
    padding-inline: 0;
  }

  .about-sections {
    overflow-wrap: anywhere;
  }

  /* A tall enlarged quote otherwise rotates beyond the viewport. */
  .about-intro-card {
    transform: none;
  }
}

/* Use Dutch syllable boundaries for the enlarged public headings instead of
   leaving an unmarked final letter on its own line. Keep emergency wrapping
   for custom words absent from the browser's language dictionary. */
@media (max-width: 1040px) {
  .latest-section .section-intro-row h2 .heading-word,
  .tools-preview-section .tools-heading h2 .heading-word {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
  }
}

/* Give enlarged card titles room to use syllables rather than narrow fragments.
   em follows the card grid's text size, including text-only enlargement. */
@media (max-width: 1040px) {
  .catalogue-card h2,
  .catalogue-card h3 {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
  }

  .hero-copy h1,
  .hero-actions .button,
  .about-hero h1,
  .pillar-card h3,
  .tool-preview-card h3,
  .values-grid h3 {
    hyphens: auto;
    hyphenate-limit-chars: 6 2 3;
    text-wrap: balance;
  }

  .pillar-grid,
  .tool-preview-grid,
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18em), 1fr));
  }

  .pillar-card:last-child,
  .tool-preview-card:last-child,
  .values-grid article:last-child {
    grid-column: auto;
  }
}

/* Keep the quote and story heading readable when text enlargement makes the
   two-column About layout too narrow. */
@media (max-width: 1040px) {
  .about-intro-card p,
  .prose-sticky h2 {
    hyphens: auto;
    hyphenate-limit-chars: 6 2 3;
    text-wrap: balance;
  }
}

@media (min-width: 881px) and (max-width: 1040px) {
  .about-hero-grid,
  .prose-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24em), 1fr));
  }

  .prose-sticky {
    position: static;
  }
}

.editor-destination-list summary,
.editor-destination-list button {
  white-space: normal;
  overflow-wrap: anywhere;
}

.editor-destination-list button {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-block: .5rem;
  text-align: left;
  font: inherit;
}

/* Listing pages must retain their text size when users enlarge text. */
@media (max-width: 980px) {
  .page-hero-editorial h1,
  .listing-section {
    overflow-wrap: anywhere;
  }

  .article-search-form {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .article-search-form > label,
  .article-search-form > a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  #article-search {
    max-width: 100%;
  }

  .content-grid-listing > .content-card {
    min-width: 0;
  }

  .category-nav {
    flex-wrap: wrap;
  }

  .category-nav a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .newsletter-panel,
  .newsletter-panel > *,
  .newsletter-form,
  .email-row {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .newsletter-panel .eyebrow {
    max-width: 100%;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }
}

/* Reserve real layout space: enlarged controls and feedback never overlay fields. */
.visual-editor-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}
.visual-editor-form--split {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 0;
}
.visual-editor-fields {
  display: grid;
  flex: 1;
  min-height: 0;
  align-content: start;
  gap: 24px;
  overflow-y: auto;
  scroll-padding-block: 1rem;
}
.visual-editor-form--split > .visual-editor-actions {
  position: static;
  flex: 0 0 auto;
  max-height: 45%;
  overflow-y: auto;
  margin: 0;
  padding: 8px 0;
}
.visual-editor-form--split > .visual-editor-actions p:empty {
  display: none;
}

.visual-editor-field .field-validation-error,
.visual-editor-field [data-editor-native-error] {
  display: block;
  max-width: 100%;
  color: #a22836;
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.media-library-shell,
.media-library-card,
.media-library-copy,
.media-picker {
  min-width: 0;
}

.media-library-shell .admin-header h1,
.media-library-shell .admin-header p,
.media-library-upload label,
.media-library-upload .field-help {
  overflow-wrap: anywhere;
}

.media-library-upload {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.media-library-upload label,
.media-library-upload .field-help {
  grid-column: 1;
}

.media-library-upload .button {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.media-library-upload input,
.media-picker select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.media-library-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.media-library-card > img,
.media-unavailable {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-warm);
}

.media-unavailable {
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--ink-soft);
  text-align: center;
}

.media-library-copy {
  padding: 20px;
}

.media-library-copy h2,
.media-library-copy p {
  overflow-wrap: anywhere;
}

.media-library-copy h2 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.media-library-copy p,
.media-library-copy li {
  font-size: 0.72rem;
}

.media-library-copy ul {
  padding-left: 20px;
}

.media-library-card.is-archived {
  opacity: 0.76;
}

.media-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  gap: 7px;
  margin-top: 12px;
}

.media-picker > label {
  font-size: 0.72rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .media-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .media-library-upload,
  .media-library-grid {
    grid-template-columns: 1fr;
  }

  .media-library-upload label,
  .media-library-upload .field-help,
  .media-library-upload .button {
    grid-column: 1;
    grid-row: auto;
  }

  .media-library-upload .button {
    width: 100%;
  }
}

.visual-editor-field [aria-invalid="true"] {
  border-color: #a22836 !important;
}

[data-editor-validation-summary] {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

[data-editor-validation-summary][hidden] {
  display: none;
}

.content-kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, var(--paper));
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
}

.journey-editor,
.journey-results-editor,
.journey-result-row,
.journey-result-fields,
.case-results,
.case-result,
.case-result dd {
  min-width: 0;
}

.journey-editor {
  min-inline-size: 0;
  max-width: 100%;
  margin: 28px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.journey-editor > legend {
  max-width: calc(100% - 16px);
  padding: 0 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.journey-results-editor {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.journey-results-editor[hidden],
.journey-editor[hidden] {
  display: none;
}

.journey-results-editor h2,
.journey-results-editor p {
  margin: 0;
}

.journey-result-list {
  display: grid;
  gap: 14px;
}

.journey-result-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}

.journey-result-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
}

.journey-result-explanation {
  grid-column: 1 / -1;
}

.journey-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.journey-result-actions .button {
  min-height: 40px;
  padding: 8px 12px;
}

.case-results {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.case-results h2 {
  margin-top: 8px;
}

.case-results-note {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.article-header h1,
.article-excerpt {
  overflow-wrap: anywhere;
}

.article-body-grid,
.article-body {
  min-width: 0;
}

.article-body {
  overflow-wrap: anywhere;
}

.case-results dl {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.case-result {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.case-result dt {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.case-result dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.case-result dd strong,
.case-result dd span {
  display: block;
}

.case-result dd strong {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.55rem);
}

.case-result dd span {
  margin-top: 5px;
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .journey-editor,
  .journey-result-row {
    padding: 16px;
  }

  .journey-result-fields,
  .case-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey-result-actions .button {
    width: 100%;
    flex: 1 1 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

[data-editor-validation-summary] strong {
  display: block;
  margin-bottom: 0.5rem;
}

[data-editor-validation-summary] ul {
  margin: 0;
  padding-left: 1.25rem;
}

[data-editor-validation-summary] a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

/* Native modal top layer keeps discard actions above the editor and navigation. */
.editor-discard-dialog {
  box-sizing: border-box;
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--berry);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: anywhere;
}
.editor-discard-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.editor-discard-dialog h2 { margin-top: 0; font-size: 1.5em; }
.editor-discard-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.editor-discard-actions button {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 44px;
  padding: .75em;
  white-space: normal;
  font: inherit;
  color: var(--ink);
  background: var(--paper-warm);
  border: 2px solid var(--berry);
  border-radius: .5rem;
  cursor: pointer;
}
.editor-discard-actions button:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }

/* Tenant events are deliberately independent of newsletter consent. */
.event-grid,
.event-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}
.event-card,
.event-signup-card,
.event-sharing {
  min-width: 0;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  overflow-wrap: anywhere;
}
.event-card h2 { margin: .5rem 0; font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2rem); }
.event-card h2 a { color: inherit; }
.event-meta { display: flex; flex-wrap: wrap; gap: .35rem; color: var(--ink-soft); }
.event-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 1fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.event-description { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.event-signup-form,
.event-edit-form { display: grid; gap: .65rem; }
.event-signup-form input:not([type="checkbox"]),
.event-edit-form input:not([type="checkbox"]),
.event-edit-form textarea,
.event-edit-form select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.event-edit-form textarea { resize: vertical; }
.event-signup-form :is(input, button):focus-visible,
.event-edit-form :is(input, textarea, select, button):focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.event-consent { display: flex; align-items: flex-start; gap: .65rem; line-height: 1.5; }
.event-consent input { flex: 0 0 auto; margin-top: .3rem; }
.event-time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.event-edit-shell { max-width: 58rem; }
.event-edit-form,
.event-sharing { margin-top: 1.5rem; }
.event-sharing { display: grid; gap: .75rem; }
.event-newsletter-link { display: grid; min-width: 0; gap: .3rem; padding-block: .75rem; border-top: 1px solid var(--line); }
.event-sharing input[type="url"], .event-newsletter-link input[type="url"] {
  box-sizing: border-box; width: 100%; min-width: 0; padding: .7rem .8rem;
  border: 1px solid var(--line); border-radius: .65rem; font: inherit; background: #fff;
}
.event-signups-table-wrap { max-width: 100%; overflow-x: auto; }
.event-signups-table { width: 100%; border-collapse: collapse; }
.event-signups-table :is(th, td) { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .event-detail-grid,
  .event-time-grid { grid-template-columns: minmax(0, 1fr); }
  .event-signups-table { min-width: 32rem; }
}

/* Management is a workspace, rather than a public editorial landing page.
   Keep this layer scoped so theme previews and live website editing retain
   the visitor's typography. Controls still have a 44px touch target. */
.admin-nav-toggle {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.admin-nav-current {
  min-width: 0;
  margin-left: auto;
  color: var(--ink-soft);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.admin-nav-chevron { flex: 0 0 auto; }
.admin-nav-toggle[aria-expanded="true"] .admin-nav-chevron { transform: rotate(180deg); }
.admin-nav-toggle:focus-visible,
.admin-global-nav a:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }

/* Signup actions use the shared cards rather than a sideways table on phones. */
body.admin-workspace .event-signups-table { white-space: normal; }
@media (max-width: 980px) {
  body.admin-workspace .event-signups-table { min-width: 0; }
  body.admin-workspace .event-signups-table-wrap { overflow: visible; }
}

@media (max-width: 880px) {
  .admin-global-nav-shell { padding-top: 8px; }
  .admin-global-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 0;
  }
  .admin-global-nav-label { grid-column: 1 / -1; padding-inline: 12px; }
  .admin-global-nav a {
    border-radius: 8px;
    padding: 9px 12px;
    font-size: .875rem;
    line-height: 1.4;
  }

  body.admin-workspace .admin-section {
    padding-block: 22px 40px;
    font-size: .9375rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  body.admin-workspace .account-section {
    min-height: 0;
    padding: 22px 14px 40px;
    font-size: .9375rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  body.admin-workspace .account-card { padding: 16px; border-radius: 12px; }
  body.admin-workspace .account-card .back-link { margin-bottom: 8px; }
  body.admin-workspace .account-card h1 {
    font-family: var(--sans);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
  }
  body.admin-workspace :is(.admin-header, .admin-editor-header) {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }
  body.admin-workspace :is(.admin-header, .admin-editor-header) h1 {
    margin-bottom: 8px;
    font-family: var(--sans);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
    text-wrap: pretty;
  }
  body.admin-workspace :is(.admin-header, .admin-editor-header) .eyebrow {
    margin: 0 0 6px;
    font-size: .6875rem;
    letter-spacing: .08em;
  }
  body.admin-workspace :is(.admin-header, .admin-editor-header) .back-link { margin-bottom: 8px; }
  body.admin-workspace .admin-section :is(h2, h3) {
    font-family: var(--sans);
    font-size: 1.125rem;
    font-weight: 650;
    letter-spacing: -.015em;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  body.admin-workspace :is(.admin-section, .account-section) .button {
    min-height: 44px;
    min-width: 44px;
    gap: 8px;
    padding: 8px 12px;
    font-size: .875rem;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body.admin-workspace .admin-header-actions {
    align-items: center;
    flex-flow: row wrap;
    gap: 8px;
  }
  body.admin-workspace .admin-header-actions :is(.button, form) {
    width: auto;
    max-width: 100%;
  }
  body.admin-workspace :is(.admin-dashboard-grid, .admin-form-grid, .analytics-grid) { gap: 14px; }
  body.admin-workspace :is(.admin-dashboard-panel, .admin-form-card, .admin-editor-form, .editor-main, .editor-panel,
    .commerce-admin-card, .commerce-limits, .commerce-scope-note, .commerce-empty,
    .commerce-product-form, .commerce-video-manager, .newsletter-admin-card, .media-library-upload) {
    padding: 16px;
    border-radius: 12px;
  }
  body.admin-workspace :is(.commerce-scope-note, .commerce-limits, .commerce-product-form,
    .media-library-upload, .newsletter-admin-card) { margin-bottom: 16px; }
  body.admin-workspace .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }
  body.admin-workspace .admin-stat { padding: 12px; gap: 4px; border-radius: 10px; }
  body.admin-workspace .admin-stat strong { font-family: var(--sans); font-size: 1.5rem; font-weight: 650; }
  body.admin-workspace .admin-stat span { font-size: .75rem; font-weight: 600; }
  body.admin-workspace :is(.admin-recent-list, .admin-quick-actions) > a { padding-block: 12px; }
  body.admin-workspace :is(.admin-section, .account-section) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea) {
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    font-size: max(16px, 1rem);
    line-height: 1.4;
  }
  body.admin-workspace :is(.admin-section, .account-section) :is(.form-field, .field-group) { gap: 6px; }
  body.admin-workspace :is(.admin-section, .account-section) :is(.form-field > label, .field-group > label) { font-size: .875rem; }
  body.admin-workspace :is(.admin-section, .account-section) :is(.field-help, .form-field > small, .field-group > small) { font-size: .8125rem; line-height: 1.5; }
  body.admin-workspace :is(.commerce-admin-actions, .commerce-video-actions) { justify-content: flex-start; }
  body.admin-workspace :is(.commerce-admin-actions, .commerce-video-actions) :is(form, .button) { width: auto; max-width: 100%; }
  body.admin-workspace .admin-section .media-library-copy { padding: 12px; }
  body.admin-workspace .media-library-copy h2 { font-size: .875rem; }
  body.admin-workspace .media-library-upload .button { width: fit-content; }
}

@media (max-width: 620px) {
  body.admin-workspace .theme-choice-content {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 4px 12px;
    padding: 12px;
    border-radius: 12px;
  }
  body.admin-workspace .theme-choice-content > .theme-preview {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 72px;
    padding: 6px;
  }
  /* A decorative colour thumbnail leaves room for the actual theme choice. */
  body.admin-workspace .theme-choice-content :is(.theme-preview-header, .theme-preview-cards,
    .theme-preview-hero > div:first-child) { display: none; }
  body.admin-workspace .theme-choice-content .theme-preview-hero { grid-template-columns: minmax(0, 1fr); padding: 0; }
  body.admin-workspace .theme-choice-content .theme-preview-art { min-height: 54px; }
  body.admin-workspace .theme-choice-content .theme-preview-art > i { font-size: 1.5rem; }
  body.admin-workspace .theme-choice-content :is(.theme-choice-name, .theme-choice-description) {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body.admin-workspace .theme-choice-content .theme-choice-description { font-size: .8125rem; }
  body.admin-workspace .admin-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 12px;
  }
  body.admin-workspace .admin-table td {
    display: block;
    padding: 0;
    border: 0;
    font-size: .875rem;
    line-height: 1.45;
  }
  body.admin-workspace .admin-table td:first-child,
  body.admin-workspace .admin-table td:last-child { grid-column: 1 / -1; }
  body.admin-workspace .admin-table td::before {
    display: block;
    margin-bottom: 2px;
    font-size: .6875rem;
    font-weight: 650;
    letter-spacing: .04em;
  }
  body.admin-workspace .admin-table td:first-child::before,
  body.admin-workspace .admin-table td:last-child::before { display: none; }
  body.admin-workspace .admin-table td .admin-status { width: fit-content; max-width: 100%; padding: 4px 8px; font-size: .75rem; }
  body.admin-workspace .admin-table td:last-child .text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding-block: 8px;
  }
  body.admin-workspace .admin-content-table td:nth-last-child(2) { align-self: center; }
  body.admin-workspace .admin-content-table td:last-child {
    display: flex;
    grid-column: auto;
    align-items: center;
    justify-content: flex-end;
  }
  body.admin-workspace .media-library-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 12px;
  }
  body.admin-workspace .media-library-card > :is(img, .media-unavailable) {
    width: 72px;
    aspect-ratio: 1;
    border-radius: 8px;
  }
  body.admin-workspace .media-library-card > .media-unavailable {
    padding: 4px;
    font-size: .6875rem;
  }
  body.admin-workspace .media-library-card .media-library-copy { padding: 0; }
  body.admin-workspace .media-library-copy :is(h2, p, ul) { margin-bottom: 8px; }
  body.admin-workspace .media-library-copy :is(p, li) { font-size: .8125rem; line-height: 1.45; }
}

/* Compact visible controls retain a full 44px pointer and keyboard target. */
body.admin-workspace .admin-section .admin-action {
  --action-fill: transparent;
  --action-border: var(--line);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font: 650 .8125rem/1.4 var(--sans);
  letter-spacing: 0;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
  transform: none;
  cursor: pointer;
}
body.admin-workspace .admin-section .admin-action::before {
  position: absolute;
  inset: 4px 0;
  z-index: -1;
  border: 1px solid var(--action-border);
  border-radius: 8px;
  background: var(--action-fill);
  content: "";
  pointer-events: none;
}
body.admin-workspace .admin-section .admin-action.button-primary {
  --action-fill: var(--berry);
  --action-border: var(--berry);
  color: #fff;
}
body.admin-workspace .admin-section .admin-action:hover {
  --action-fill: var(--cream);
  --action-border: var(--berry);
  background: transparent;
  color: var(--berry-dark);
  transform: none;
}
body.admin-workspace .admin-section .admin-action.button-primary:hover {
  --action-fill: var(--berry-dark);
  --action-border: var(--berry-dark);
  color: #fff;
}
body.admin-workspace .admin-section .admin-action:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 1px;
}
body.admin-workspace .admin-section .admin-action:disabled {
  opacity: .4;
  cursor: default;
}
body.admin-workspace .admin-section .admin-action-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 8px;
  color: var(--berry-dark);
}
body.admin-workspace .admin-section .admin-action-icon::before { inset: 4px; }
body.admin-workspace .admin-section .admin-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
body.admin-workspace :is(.admin-header-actions, .commerce-admin-actions, .content-block-actions, .journey-result-actions) {
  gap: 4px;
}
body.admin-workspace .resource-order-move {
  width: auto;
  flex: 0 0 auto;
  gap: 2px;
}
body.admin-workspace .resource-order-actions :is(a, form) { flex: 0 1 auto; }
body.admin-workspace .admin-section .resource-order-move .admin-action-icon { flex: 0 0 44px; }
