:root {
  color-scheme: light;
  --paper: #faf8f5;
  --panel: #ffffff;
  --panel-warm: #f3efe8;
  --ink: #222a2e;
  --muted: #5a6469;
  --sage: #6e8372;
  --sage-dark: #586c5c;
  --sage-soft: #ebf0ec;
  --clay: #8a7368;
  --line: rgba(34, 42, 46, 0.1);
  --strong-line: rgba(34, 42, 46, 0.2);
  --shadow-sm: 0 2px 10px rgba(34, 42, 46, 0.04);
  --shadow-card: 0 12px 32px rgba(34, 42, 46, 0.06), 0 1px 3px rgba(34, 42, 46, 0.04);
  --shadow-hover: 0 16px 38px rgba(34, 42, 46, 0.09), 0 2px 8px rgba(34, 42, 46, 0.05);
  --radius: 1.15rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;
  --header: 4.5rem;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font: 100%/1.6 var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: #9ba59d var(--paper);
  scroll-padding-top: calc(var(--header) + 1.25rem);
}

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img, canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--sage-dark);
  text-underline-offset: 0.22em;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2.5px solid var(--sage);
  outline-offset: 3px;
}

button, textarea, input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  max-inline-size: 22ch;
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

h3 {
  font-size: 1.22rem;
}

p {
  margin: 0.65rem 0 0;
}

small {
  font-size: 0.9rem;
}

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

.frame {
  width: min(calc(100% - 3rem), 76rem);
  margin-inline: auto;
}

main {
  flex: 1;
  padding-block: 1.75rem 4rem;
}

main.home {
  width: 100%;
  max-width: none;
  padding-block: 0 4.5rem;
}

/* ===== Centered Editorial Masthead Header (Variant A1) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-row {
  min-height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand img {
  width: 1.75rem;
  height: 1.75rem;
}

#primary-nav {
  display: contents;
}

.nav-left {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

#primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.94rem;
  font-weight: 450;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}

#primary-nav a:hover,
#primary-nav a.current {
  color: var(--sage-dark);
  border-color: var(--sage);
}

.nav-divider {
  width: 1px;
  height: 1.15rem;
  background: var(--line);
}

#primary-nav a.nav-pause {
  padding: 0.44rem 0.9rem;
  border: 1px solid var(--strong-line);
  border-radius: 0.62rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}

#primary-nav a.nav-pause:hover {
  border-color: var(--sage);
  background: var(--panel);
  color: var(--sage-dark);
}

.nav-pause svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.menu {
  display: none;
}

.skip {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-220%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  z-index: 30;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.skip:focus {
  transform: none;
}

/* ===== Eyebrows, Pills & Shared Editorial Buttons ===== */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-pill--warm {
  background: var(--panel-warm);
  border-color: transparent;
}

.accent-italic {
  font-style: italic;
  color: var(--sage);
  font-weight: 500;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.62rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-pill--sage {
  background: var(--sage);
  color: #ffffff;
  border-color: var(--sage);
  box-shadow: 0 6px 18px rgba(110, 131, 114, 0.22);
}

.btn-pill--sage:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-pill--outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-color: var(--strong-line);
}

.btn-pill--outline:hover {
  background: var(--panel);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-pill--white {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-pill--white:hover {
  background: var(--paper);
  color: var(--sage-dark);
  transform: translateY(-1px);
}

.btn-pill--ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-pill--ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
  color: #ffffff;
}

/* ===== Home Atmospheric Pastel Hero Band ===== */
.hero-band {
  background:
    radial-gradient(ellipse 68% 72% at 14% 24%, rgba(196, 214, 199, 0.68), transparent 68%),
    radial-gradient(ellipse 62% 72% at 86% 22%, rgba(214, 210, 232, 0.62), transparent 66%),
    radial-gradient(ellipse 56% 64% at 48% 82%, rgba(246, 236, 222, 0.78), transparent 70%),
    linear-gradient(128deg, #e7eee7 0%, #f7f3eb 48%, #eae8f2 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.1rem, 4.5vw, 3.6rem) clamp(2.4rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-copy h1 {
  margin-top: 1.05rem;
  font-size: clamp(2.35rem, 4.3vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero-copy h1 .accent-italic {
  display: block;
}

.hero-lead {
  margin-top: 1.05rem;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.55rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.hero-stats strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sage-dark);
}

/* ===== Home Interactive Workbench Card ===== */
.hero-workbench .workbench {
  display: block;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: var(--shadow-card);
}

.hero-workbench .work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hero-workbench .work-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-workbench .work-kicker strong {
  color: var(--ink);
}

.hero-workbench .work-cue {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-workbench .work-surface canvas {
  border-radius: 0.95rem;
  border: 1px solid rgba(160, 145, 120, 0.32);
}

.hero-workbench .work-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.hero-workbench .work-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.hero-workbench .work-preferences {
  border-top: 0;
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-workbench .work-controls button,
.hero-workbench .work-preferences button {
  min-height: 2.2rem;
  padding: 0.35rem 0.88rem;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 500;
}

.hero-workbench .work-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.65rem;
}

.hero-workbench .status {
  margin: 0;
  font-size: 0.8rem;
}

.hero-workbench .keyboard-help {
  margin-top: 0;
  font-size: 0.8rem;
}

/* ===== General Controls & Tool Workbench (Tool Pages) ===== */
.workbench {
  display: grid;
  grid-template-columns: minmax(16.5rem, 20rem) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.work-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 2.2vw, 1.65rem);
  align-self: start;
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.work-panel p {
  color: var(--muted);
  font-size: 0.94rem;
}

.work-panel h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
}

.work-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-block: 1.2rem 1rem;
}

button {
  min-height: 2.65rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--strong-line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--ink);
  font-weight: 550;
  line-height: 1.25;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

button:not(:disabled):hover {
  background: var(--panel-warm);
  border-color: var(--sage);
}

button[aria-pressed="true"],
button.primary {
  background: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
}

button[aria-pressed="true"]:not(:disabled):hover,
button.primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

button[aria-disabled="true"] {
  cursor: default;
}

.work-preferences {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.9rem;
}

.work-preferences button {
  min-height: 2.25rem;
  font-size: 0.81rem;
}

.keyboard-help {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.keyboard-help summary {
  cursor: pointer;
  color: var(--sage-dark);
  width: fit-content;
  min-height: 1.7rem;
  font-weight: 500;
}

.work-surface {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-card);
}

.hero-workbench .work-surface {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 23 / 14;
  border: 1px solid rgba(160, 145, 120, 0.35);
  border-radius: 0.9rem;
  touch-action: none;
  background: #d8c6a8;
  cursor: crosshair;
}

.status {
  font-size: 0.84rem;
  color: var(--muted);
  min-height: 1.5em;
  margin: 0.5rem 0 0;
}

/* ===== Subpage Soft Pastel Intro Band ===== */
.page-hero {
  background:
    radial-gradient(ellipse 65% 80% at 15% 20%, rgba(198, 215, 201, 0.45), transparent 68%),
    radial-gradient(ellipse 60% 80% at 88% 30%, rgba(215, 212, 232, 0.42), transparent 68%),
    linear-gradient(130deg, #eff3ee 0%, #faf8f5 55%, #f1eff7 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin-top: 0.35rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.62;
}

.breadcrumb {
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.6rem;
  color: var(--strong-line);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--sage-dark);
  text-decoration: underline;
}

/* ===== Sections & Headings ===== */
.home-section {
  padding-top: clamp(2.6rem, 5vw, 4rem);
}

.home-shelf,
.home-guides,
.directory-groups,
.guide-section,
.detail-notes {
  margin-top: 2.25rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--line);
}

.home .home-shelf,
.home .home-guides {
  border-top: 0;
  margin-top: 0;
  padding-top: clamp(2.6rem, 5vw, 4rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-head--center h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
}

.section-head p,
.tool-group p {
  color: var(--muted);
}

.section-head > a {
  flex-shrink: 0;
  font-weight: 550;
  text-decoration: none;
  font-size: 0.94rem;
}

.section-head > a.btn-pill {
  font-size: 0.88rem;
  min-height: 2.4rem;
  padding: 0.45rem 1.05rem;
}

/* ===== Featured Tools Strip & Tool Cards ===== */
.featured-tools-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.tool-card,
.guide-card,
.category-card {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tool-card:hover,
.guide-card:hover,
.category-card:hover {
  border-color: rgba(110, 131, 114, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--ink);
}

.tool-card img {
  width: 100%;
  aspect-ratio: 23 / 14;
  object-fit: cover;
  grid-column: 1 / -1;
  border-radius: 0.78rem;
}

.tool-card strong,
.guide-card strong,
.category-card strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.25;
}

.tool-card small,
.guide-card small,
.category-card small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 0.3rem;
}

.tool-card--compact:has(img) {
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  padding: 0.9rem 1rem;
}

.tool-card--compact img {
  width: 4.5rem;
  height: 4.5rem;
  aspect-ratio: 1;
  grid-column: auto;
  border-radius: 0.78rem;
}

.tool-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.tool-group {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.tool-group > div {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 0.65rem;
  flex: 1;
}

.tool-group h3 {
  font-size: 1.15rem;
}

.tool-group p {
  font-size: 0.87rem;
  min-height: 2.6em;
  margin-bottom: 0.75rem;
}

.tool-group .tool-card + .tool-card {
  margin-top: 0;
}

.home-shelf .tool-group .tool-card:has(img) {
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  padding: 0.72rem 0.85rem;
}

.home-shelf .tool-group img {
  width: 3rem;
  height: 3rem;
  aspect-ratio: 1;
  grid-column: auto;
  border-radius: 0.6rem;
}

.arrow {
  color: var(--sage);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ===== Featured Horizontal Guide Card (Concept C) ===== */
.featured-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(0.95rem, 2vw, 1.35rem);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.featured-guide-card:hover {
  border-color: rgba(110, 131, 114, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--ink);
}

.featured-guide-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1rem;
}

.featured-guide-body {
  padding-inline: 0.35rem 0.85rem;
}

.featured-guide-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.5rem;
}

.featured-guide-body strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.featured-guide-body p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-top: 0.7rem;
  line-height: 1.6;
}

.featured-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sage-dark);
}

/* ===== 3-Column Editorial Guide Cards (Concept C) ===== */
.editorial-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.editorial-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
}

.editorial-card:hover {
  border-color: rgba(110, 131, 114, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--ink);
}

.editorial-card-media {
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  background: var(--panel-warm);
}

.editorial-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.editorial-card-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.24rem 0.68rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(34, 42, 46, 0.12);
}

.editorial-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 0.35rem 0.25rem;
}

.editorial-card-body strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
}

.editorial-card-body p {
  font-size: 0.89rem;
  color: var(--muted);
  margin-top: 0.45rem;
  line-height: 1.5;
  flex: 1;
}

.editorial-card-meta {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* ===== Quick Off-Screen Exercise & Moment Chips & Categories ===== */
.quick {
  background: var(--panel-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
  margin-bottom: 2.25rem;
}

.quick h3 {
  color: var(--sage-dark);
  font-size: 1.28rem;
}

.quick:has(img) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5rem, 11rem);
  gap: 1.25rem;
  align-items: center;
}

.quick img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.9rem;
}

.quick p {
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 56ch;
}

.moment-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 1.85rem;
}

.moment-links a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.moment-links a:hover {
  border-color: var(--sage);
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 0.95rem;
}

.category-card {
  min-height: 5.8rem;
  padding: 1.1rem 1.2rem;
}

.category-grid > .category-card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.guide-card:has(img) {
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  padding: 0.85rem 1rem;
}

.guide-card img {
  width: 6.5rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.7rem;
}

.guide-feature {
  min-height: 6.5rem;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.more-link {
  margin-top: 1.35rem;
  font-weight: 600;
}

.directory-groups .tool-groups {
  margin-top: 1.25rem;
}

.recommended {
  max-width: 58rem;
  margin-top: 1.5rem;
}

.recommended h2 {
  margin-bottom: 0.85rem;
}

/* ===== Rounded Sage-Green Bottom CTA Banner (Concept C) ===== */
.cta-banner {
  margin-top: 3rem;
  padding: clamp(2.1rem, 4.5vw, 3.25rem) clamp(1.4rem, 4vw, 3rem);
  border-radius: 1.75rem;
  background:
    radial-gradient(ellipse 65% 90% at 88% 95%, rgba(255, 255, 255, 0.12), transparent 65%),
    linear-gradient(135deg, #748877 0%, #637766 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(88, 108, 92, 0.22);
}

.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  max-width: 30ch;
  margin-inline: auto;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  max-width: 48ch;
  margin: 0.7rem auto 0;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.55rem;
}

/* ===== Detail Notes, Tool Detail Enrichment & Editorial Reading Layout ===== */
.tool-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.meta-chip strong {
  color: var(--ink);
  font-weight: 600;
}

.card-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.4rem;
}

.detail-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.detail-notes section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.55rem;
  box-shadow: var(--shadow-sm);
}

.detail-notes p {
  color: var(--muted);
  font-size: 0.95rem;
}

.calm-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.72rem;
}

.calm-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.calm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sage);
}

.tool-ritual {
  margin-top: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.8vw, 2rem);
  box-shadow: var(--shadow-card);
}

.tool-ritual .section-head {
  margin-bottom: 1.25rem;
}

.tool-ritual .section-head p {
  max-width: 68ch;
  margin-top: 0.55rem;
}

.ritual-steps {
  counter-reset: ritual;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ritual-steps li {
  counter-increment: ritual;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.ritual-steps li::before {
  content: counter(ritual);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--sage);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
}

.ritual-steps h3 {
  font-size: 1.12rem;
}

.ritual-steps p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.45rem;
  line-height: 1.55;
}

.tool-companion,
.tool-related {
  margin-top: 2.5rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--line);
}

.tool-companion .featured-guide-card {
  margin-bottom: 0;
}

.tool-related .featured-tools-row {
  margin-bottom: 0;
}

/* ===== 4 Original Mindful Desk Tools (2x2 Grid & Standalone) ===== */
.mindful-section {
  margin-bottom: 2.25rem;
}

.mindful-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.mindful-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.45rem, 2.8vw, 2.05rem);
  box-shadow: var(--shadow-card);
}

.mindful-card h2,
.mindful-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.42rem, 2.1vw, 1.8rem);
  font-weight: 500;
}

.mindful-sub {
  color: var(--muted);
  font-size: 0.91rem;
  max-width: 38ch;
  margin-top: 0.38rem;
}

.mindful-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem;
  margin-top: 1rem;
}

.mindful-tabs button {
  min-height: 1.95rem;
  padding: 0.25rem 0.78rem;
  font-size: 0.79rem;
  font-weight: 500;
  border-color: var(--line);
  background: var(--paper);
  color: var(--muted);
}

.mindful-tabs button[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
}

.mindful-stage {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 1.1rem 0;
}

/* 1. Worry Release Slip */
.worry-slip {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  transition: transform 600ms ease, opacity 600ms ease, filter 600ms ease;
}

.worry-slip.is-releasing {
  transform: translateY(-22px) scale(0.92);
  opacity: 0;
  filter: blur(4px);
}

.worry-slip textarea {
  border: 0;
  background: transparent;
  resize: none;
  min-height: 6.2rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 0.25rem;
}

.worry-slip textarea:focus {
  outline: none;
  background: transparent;
}

/* 2. Ambient Soundscape Mixer */
.sound-mixer {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.sound-row {
  display: grid;
  grid-template-columns: 6.8rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink);
}

.sound-row input[type="range"] {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--sage);
  cursor: pointer;
}

/* 3. Desk Tension Check */
.tension-progress {
  width: 100%;
  height: 0.42rem;
  border-radius: var(--radius-pill);
  background: var(--panel-warm);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.tension-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sage);
  border-radius: var(--radius-pill);
  transition: width 240ms ease;
}

.tension-list {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.tension-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 400;
}

.tension-item:hover {
  border-color: var(--sage);
  background: var(--panel);
}

.tension-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.tension-item small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.tension-badge {
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  border: 1.5px solid var(--strong-line);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: transparent;
}

.tension-item[aria-pressed="true"] {
  background: var(--sage-soft);
  border-color: rgba(110, 131, 114, 0.45);
  color: var(--ink);
}

.tension-item[aria-pressed="true"] .tension-badge {
  background: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
}

/* 4. Quiet Sandglass */
.sandglass-vessel {
  position: relative;
  width: 8.6rem;
  height: 11.2rem;
  margin-inline: auto;
  border-radius: 4.3rem;
  background: var(--paper);
  border: 1.5px solid var(--strong-line);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: inset 0 6px 18px rgba(34, 42, 46, 0.05);
}

.sandglass-fill {
  position: absolute;
  inset: auto 0 0;
  height: 0%;
  background: linear-gradient(180deg, rgba(154, 178, 158, 0.62) 0%, rgba(110, 131, 114, 0.82) 100%);
  transition: height 180ms linear;
}

.sandglass-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
}

.mindful-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.25rem;
}

.mindful-actions .btn-primary-sage {
  min-width: 11rem;
  min-height: 2.65rem;
  padding: 0.5rem 1.3rem;
  background: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
  font-weight: 550;
}

.mindful-actions .btn-primary-sage:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.mindful-footnote {
  margin-top: 0.85rem;
  font-size: 0.81rem;
  color: var(--muted);
}

.mindful-card-link {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--sage-dark);
}

.mindful-standalone {
  max-width: 44rem;
  margin-inline: auto;
}

/* ===== Homepage Quick Desk Resets Strip, Why Soft Desk & FAQ ===== */
.home-resets,
.home-trust,
.home-faq {
  padding-top: clamp(2.4rem, 4.5vw, 3.5rem);
}

.reset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.reset-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.reset-card:hover {
  border-color: rgba(110, 131, 114, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--ink);
}

.reset-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.reset-icon--clay {
  background: #f3ece7;
  color: var(--clay);
}

.reset-icon--mist {
  background: #eaf0f2;
  color: #536e77;
}

.reset-icon--warm {
  background: var(--panel-warm);
  color: #7c6b58;
}

.reset-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.reset-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
}

.reset-card small {
  display: block;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.48;
  flex: 1;
}

.reset-card-foot {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-top: 0.15rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.trust-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem;
  box-shadow: var(--shadow-sm);
}

.trust-card h3 {
  margin-top: 0.85rem;
  font-size: 1.16rem;
}

.trust-card p {
  font-size: 0.91rem;
  color: var(--muted);
  margin-top: 0.45rem;
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 56rem;
  margin-inline: auto;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.faq-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  flex-shrink: 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.42rem;
  line-height: 1.58;
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(10.5rem, 14rem) minmax(0, 48rem);
  justify-content: center;
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: start;
}

.contents {
  position: sticky;
  top: calc(var(--header) + 1.5rem);
  border-left: 1.5px solid var(--line);
  padding: 0.35rem 0 0.5rem 1rem;
  max-height: calc(100svh - var(--header) - 2.5rem);
  overflow: auto;
}

.small-contents {
  display: none;
}

.contents-title {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0;
}

.contents ol {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.contents li + li {
  margin-top: 0.5rem;
}

.contents a {
  font-size: 0.87rem;
  line-height: 1.32;
  color: var(--muted);
  text-decoration: none;
}

.contents a:hover {
  color: var(--sage-dark);
}

.prose {
  min-width: 0;
}

.prose .lead {
  margin-bottom: 1.35rem;
}

.prose section {
  margin-top: 2rem;
}

.prose section > h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}

.prose h3 {
  margin-top: 0.35rem;
}

.prose p {
  max-width: 70ch;
}

.prose figure {
  margin: 1.15rem 0 1.35rem;
}

.prose figure img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 27rem;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.prose figcaption,
.revision,
.photo-credit {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.prose .steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.prose .steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-top: 1.3rem;
}

.prose .steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  background: var(--sage);
  color: #ffffff;
  border-radius: 50%;
  width: 1.95rem;
  height: 1.95rem;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 650;
}

.prose .guide-list {
  grid-template-columns: minmax(0, 1fr);
}

.policy-list {
  margin: 0.75rem 0 0;
  padding-left: 1.35rem;
  display: grid;
  gap: 0.45rem;
  max-width: 70ch;
}

.policy-list li {
  color: var(--ink);
  line-height: 1.58;
}

/* ===== Contact Two-Column Editorial Layout ===== */
.contact-intro {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-blocks {
  display: grid;
  gap: 1.15rem;
}

.contact-block {
  border-left: 2.5px solid var(--sage);
  padding: 0.35rem 0 0.35rem 1.15rem;
}

.contact-block h2 {
  font-size: 1.25rem;
}

.contact-block p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 0.4rem;
}

.contact-action {
  margin-top: 0.55rem !important;
  font-weight: 600;
}

.contact-form-wrap h2 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.contact-form-wrap form {
  margin-top: 0;
  max-width: none;
}

/* ===== Contact Form ===== */
form {
  display: grid;
  gap: 0.9rem;
  max-width: 38rem;
  margin-top: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

form label span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.86rem;
}

input,
textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--strong-line);
  border-radius: 0.72rem;
  background: var(--paper);
  color: var(--ink);
}

input:focus,
textarea:focus {
  background: var(--panel);
  border-color: var(--sage);
}

form button {
  justify-self: start;
  padding-inline: 1.4rem;
}

/* ===== Editorial Footer ===== */
.footer-wrap {
  border-top: 1px solid var(--line);
  background: var(--panel);
  margin-top: auto;
}

.footer {
  padding-block: 2.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.footer-brand .brand {
  grid-column: auto;
  grid-row: auto;
  justify-self: auto;
  font-size: 1.4rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 30ch;
  margin-top: 0.7rem;
  line-height: 1.55;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.footer-heading {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay);
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--sage-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}

/* ===== Tablet Breakpoint ===== */
@media (max-width: 58rem) {
  .nav-left,
  .nav-right {
    gap: 0.95rem;
  }

  .brand {
    font-size: 1.42rem;
  }

  #primary-nav a {
    font-size: 0.88rem;
  }

  #primary-nav a.nav-pause {
    padding: 0.38rem 0.72rem;
    font-size: 0.83rem;
  }

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

  .featured-tools-row,
  .editorial-guides-grid,
  .tool-groups,
  .reset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-guide-card {
    grid-template-columns: 1fr;
  }

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

  .workbench,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Mobile Breakpoint ===== */
@media (max-width: 44rem) {
  :root {
    --header: 3.75rem;
  }

  .frame {
    width: calc(100% - 1.5rem);
  }

  main {
    padding-block: 1.15rem 2.75rem;
  }

  main.home {
    padding-block: 0 3rem;
  }

  .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }

  .brand {
    grid-column: auto;
    justify-self: auto;
    font-size: 1.38rem;
  }

  .menu {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.85rem;
    border-radius: 0.6rem;
    font-size: 0.88rem;
    background: var(--panel);
  }

  .menu::before {
    content: "☰";
  }

  #primary-nav {
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: calc(100% + 1px) 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-card);
    padding: 0.5rem 0.75rem 0.85rem;
    gap: 0.25rem;
    transition: opacity 160ms ease, visibility 160ms ease;
  }

  #primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-left,
  .nav-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: 100%;
  }

  .nav-divider {
    display: none;
  }

  #primary-nav a {
    min-height: 2.85rem;
    padding: 0.65rem 0.55rem;
    border-bottom: 1px solid var(--line);
  }

  #primary-nav a.nav-pause {
    min-height: 2.85rem;
    margin-top: 0.45rem;
    justify-content: center;
    border: 1px solid var(--strong-line);
  }

  .hero-band {
    padding-block: 1.45rem 2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8.5vw, 2.55rem);
  }

  .hero-stats {
    gap: 0.85rem 1.25rem;
    margin-top: 1.3rem;
    padding-top: 0.95rem;
  }

  .hero-workbench .workbench {
    padding: 0.85rem;
  }

  .hero-workbench .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .hero-workbench .work-controls button,
  .hero-workbench .work-preferences button {
    min-height: 2.1rem;
    padding: 0.28rem 0.68rem;
    font-size: 0.8rem;
  }

  .work-panel {
    padding: 0.95rem;
  }

  .work-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-block: 0.7rem;
  }

  .work-controls button {
    min-height: 2.25rem;
    padding: 0.35rem 0.72rem;
    font-size: 0.84rem;
  }

  .work-surface canvas {
    aspect-ratio: 23 / 16;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .section-head--center {
    align-items: center;
  }

  .featured-tools-row,
  .editorial-guides-grid,
  .tool-groups,
  .mindful-grid,
  .reset-grid,
  .trust-grid,
  .detail-notes,
  .ritual-steps,
  .guide-list,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .tool-group p {
    min-height: 0;
  }

  .quick:has(img) {
    grid-template-columns: 1fr;
  }

  .guide-card:has(img) {
    grid-template-columns: 5rem minmax(0, 1fr) auto;
  }

  .guide-card img {
    width: 5rem;
  }

  .reading-layout {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
  }

  .prose {
    display: contents;
  }

  .prose > h1 {
    order: -3;
  }

  .prose > .lead {
    order: -2;
    margin-block: 0 0.2rem;
  }

  .prose > .revision {
    order: -1;
  }

  .contents {
    display: none;
  }

  .small-contents {
    display: block;
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
  }

  .small-contents summary {
    font-weight: 600;
    color: var(--sage-dark);
    cursor: pointer;
    min-height: 1.75rem;
  }

  .small-contents ol {
    margin: 0.6rem 0 0.25rem;
    padding-inline-start: 1.25rem;
  }

  .small-contents li + li {
    margin-top: 0.35rem;
  }

  .prose section {
    width: 100%;
    margin-top: 0.75rem;
  }

  .footer {
    padding-block: 1.75rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.25rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1.35rem;
  }
}

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

[data-reduced-motion] *,
[data-reduced-motion] *::before,
[data-reduced-motion] *::after {
  scroll-behavior: auto !important;
  transition-duration: 0s !important;
  animation-duration: 0s !important;
}
