:root {
  --paper: #fbf4e6;
  --paper-deep: #f3e8d4;
  --ink: #17130e;
  --muted: #4c3e31;
  --rule: #d7cbb8;
  --teal: #075f6f;
  --teal-dark: #064b56;
  --ring: #B8C4BA;
  --warning: #8f1717;
  --olive: #697125;
}

* {
  box-sizing: border-box;
}

html {
  background: #efe6d4;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.55), transparent 24rem),
    linear-gradient(180deg, #f8f0e1 0%, #eadcc7 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.34;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(81, 61, 35, .10) .55px, transparent .6px),
    radial-gradient(rgba(81, 61, 35, .08) .45px, transparent .55px);
  background-position: 0 0, 13px 17px;
  background-size: 28px 28px;
  opacity: .32;
  pointer-events: none;
}

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

.page-frame {
  width: min(1130px, calc(100% - 36px));
  min-height: calc(100vh - 44px);
  margin: 22px auto;
  border: 1px solid #bfb6a5;
  background: rgba(252, 246, 234, .82);
  box-shadow: inset 0 0 54px rgba(158, 120, 64, .08);
}

.site-header {
  padding: 20px 26px 18px;
  border-bottom: 1px solid var(--rule);
}

/* Inner page header */
.inner-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.inner-logo {
  display: block;
  width: 196px;
  flex: 0 0 auto;
}

.inner-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.inner-page-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

/* Inner page hero (mini) */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 24px 0 24px;
  border-bottom: 1px solid var(--rule);
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.module-label {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-hero-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
}

.page-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

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

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  background: var(--paper-deep);
  border: 1px dashed var(--rule);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.logo-link {
  display: block;
  width: 294px;
  flex: 0 0 auto;
}

.logo-link img {
  display: block;
  width: 100%;
  height: auto;
}

.manual-title {
  padding-left: 25px;
  border-left: 1px solid #c9bda9;
  font-size: 23px;
  line-height: 1.08;
}

.menu-button {
  display: none;
  width: 34px;
  height: 34px;
  padding: 5px;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #202018;
}

.method-strip {
  margin-left: auto;
  margin-top: -58px;
  width: min(510px, 46%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.method-item {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border-left: 1px solid #c9bda9;
  text-align: center;
}

.method-item strong {
  color: var(--teal);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
  letter-spacing: .04em;
}

.method-item span {
  font-size: 16px;
  line-height: 1.1;
}

main {
  padding: 18px 26px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 525px) minmax(430px, 1fr);
  gap: 30px;
  align-items: start;
  padding-bottom: 20px;
}

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

h1 {
  margin: 40px 0 19px;
  font-size: clamp(42px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
}

p {
  margin-bottom: 17px;
  font-size: 19px;
  line-height: 1.36;
}

.warning {
  max-width: 505px;
  margin-bottom: 22px;
  color: var(--warning);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 510px);
  margin-top: 24px;
}

.video-placeholder-cta {
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--teal-dark);
  background: rgba(251, 244, 230, .56);
  box-shadow: inset 0 0 18px rgba(158, 120, 64, .08);
  font-size: 21px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}

.video-placeholder-cta:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 18px rgba(158, 120, 64, .08), 0 4px 12px rgba(23, 19, 14, .10);
}

.video-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--olive);
}

.video-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.video-label {
  line-height: 1.1;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 242px;
  padding: 13px 26px 14px;
  border-radius: 5px;
  color: #fff8ed;
  background: linear-gradient(180deg, #0b7883, #075d69);
  box-shadow: 0 2px 4px rgba(31, 54, 47, .18);
  font-size: 20px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 54, 47, .28);
}

.primary-cta span {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
}

.hero-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1.01 / 1;
  object-fit: cover;
}

.guide-helps {
  border-top: 1px solid var(--rule);
  padding: 18px 0 33px;
}

.guide-helps h2 {
  display: inline-block;
  margin: 0 0 25px;
  border-bottom: 1px solid var(--teal);
  color: var(--teal);
  font-size: 21px;
  line-height: 1.05;
  font-weight: 700;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 15px;
  padding: 0 25px;
  border-left: 1px solid var(--rule);
}

.feature:first-child {
  padding-left: 14px;
  border-left: 0;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--olive);
  border-radius: 50%;
  color: var(--olive);
}

.feature-icon svg {
  width: 42px;
  height: 42px;
}

.feature h3 {
  margin-bottom: 10px;
  color: var(--warning);
  font-size: 19px;
  line-height: 1.22;
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.page-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--rule);
  color: #4c4a45;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-align: center;
}

.page-footer span {
  padding: 0 15px;
}


/* Sections */
.section {
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
}

.section-header {
  max-width: 690px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
  color: var(--teal);
}

.heading-modal-trigger {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.heading-modal-trigger:hover {
  border-color: var(--teal);
  background: rgba(7, 95, 111, .05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 19, 14, .10);
}

.modal-title-info {
  margin: 0 0 22px;
  padding-right: 28px;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.22;
}

.section-header p {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.section-header-boxed {
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: rgba(252, 246, 234, .54);
}

.section-header-boxed svg {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--teal);
}

.underlined {
  display: inline-block;
}

.underlined::after {
  content: "";
  display: block;
  width: 49px;
  height: 2px;
  margin: 6px 0 0;
  background: var(--teal);
}

/* Checkpoint cards */
.checkpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.checkpoint-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: rgba(252, 246, 234, .54);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.checkpoint-card:hover {
  border-color: var(--teal);
  background: rgba(7, 95, 111, .05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 19, 14, .10);
}

.checkpoint-card svg {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--teal);
}

.checkpoint-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
}

.checkpoint-card p {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.checkpoint-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.checkpoint-link:hover {
  text-decoration: underline;
}

.checkpoint-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 7px;
}
.checkpoint-number {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  pointer-events: none;
}

/* Bottom nav */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.bottom-nav a:hover {
  text-decoration: underline;
}


/* Feature card interactivity */
.feature[data-modal] {
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.feature[data-modal]:hover,
.feature[data-modal]:focus {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
  background: rgba(7, 95, 111, .05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 19, 14, .10);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 19, 14, .55);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  width: min(600px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px 36px 36px;
  border: 1px solid #bfb6a5;
  border-radius: 7px;
  background: #fdf7ea;
  box-shadow: 0 8px 32px rgba(23, 19, 14, .22);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  font-family: "Segoe UI", Arial, sans-serif;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-title {
  margin: 0 0 22px;
  padding-right: 28px;
  font-size: 20px;
  font-weight: 700;
  color: var(--warning);
  line-height: 1.22;
}

.atom-breakdown {
  margin: 0;
}

.atom-breakdown dt {
  margin-bottom: 5px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--teal);
}

.atom-breakdown dd {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.44;
  color: var(--ink);
}

.atom-breakdown dd:last-child {
  margin-bottom: 0;
}

/* ── Cases section ──────────────────────────────────────────── */

.section-preamble {
  max-width: 690px;
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.46;
  color: var(--ink);
}

.section-subtext {
  max-width: 690px;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.44;
  color: var(--muted);
  font-style: italic;
}

.risk-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 9px;
  border-radius: 3px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.risk-low        { background: #eaf2e8; color: #3d6138; border: 1px solid #b8d4b4; }
.risk-low-medium { background: #f7f0d8; color: #6b5520; border: 1px solid #d9c680; }
.risk-medium     { background: #fdf0d8; color: #7a4a14; border: 1px solid #e8b870; }
.risk-high       { background: #fbe8e8; color: #7a1a1a; border: 1px solid #d8a0a0; }
.risk-critical   { background: #f2e0e0; color: var(--warning); border: 1px solid #cc8888; }
.risk-prohibited { background: #1e1410; color: #f5f0e8; border: 1px solid #3d2e22; }

.case-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}

.case-card {
  padding: 18px 22px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: rgba(252, 246, 234, .54);
}

.case-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--warning);
}


.case-card[data-modal] {
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.case-card[data-modal]:hover,
.case-card[data-modal]:focus {
  border-color: var(--teal);
  background: rgba(7, 95, 111, .05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 19, 14, .10);
}

.case-expand {
  display: inline-block;
  margin-top: 6px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .04em;
}

.modal-box p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
}

.modal-box p:last-child {
  margin-bottom: 0;
}

.modal-box .case-source {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
}

.pattern-section {
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid var(--rule);
}

.pattern-label {
  margin: 0 0 4px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.pattern-intro {
  margin: 0 0 14px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
}

.pattern-list {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
}

.pattern-item {
  padding: 14px 18px;
  border-left: 3px solid var(--teal);
  border-radius: 0 5px 5px 0;
  background: rgba(7, 95, 111, .04);
}

.pattern-item h4 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.24;
  color: var(--teal);
}

.pattern-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.44;
  color: var(--muted);
}

/* ── Self-assessment ────────────────────────────────────────── */

.assessment-intro {
  max-width: 620px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  background: rgba(252, 246, 234, .54);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.44;
  color: var(--muted);
  font-style: italic;
}

.assessment-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  counter-reset: question-counter;
  display: grid;
  gap: 14px;
}

.assessment-list li {
  counter-increment: question-counter;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.assessment-list li::before {
  content: counter(question-counter);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  margin-top: 2px;
  flex-shrink: 0;
}

.assessment-list li p {
  margin: 0;
  font-size: 16px;
  line-height: 1.46;
}


/* ── Sub-module pages ──────────────────────────────────────────── */
.module-intro {
  max-width: 690px;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.safer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 690px;
  margin: 0 0 20px;
}

.safer-block {
  padding: 14px 18px;
  border-radius: 5px;
  border: 1px solid var(--rule);
}

.safer-block.safer {
  border-color: #b8d4b4;
  background: #eaf2e8;
}

.safer-block.unsafe {
  border-color: #d8a0a0;
  background: #fbe8e8;
}

.safer-block h4 {
  margin: 0 0 8px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.safer-block.safer h4 { color: #3d6138; }
.safer-block.unsafe h4 { color: #7a1a1a; }

.safer-block ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.safer-block li { margin-bottom: 4px; }

.rule-box {
  max-width: 690px;
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--warning);
  border-radius: 0 5px 5px 0;
  background: rgba(143, 23, 23, .04);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.rule-box strong { color: var(--warning); }

.note-box {
  max-width: 690px;
  margin: 16px 0;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: rgba(252, 246, 234, .54);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.note-box strong { color: var(--ink); font-weight: 700; }

.verify-list {
  list-style: none;
  margin: 10px 0 20px;
  padding: 0;
  max-width: 690px;
  display: grid;
  gap: 8px;
}

.verify-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.46;
  color: var(--ink);
}

.verify-list li::before {
  content: "?";
  font-weight: 700;
  color: var(--teal);
  margin-top: 1px;
}

.step-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  counter-reset: step-counter;
  max-width: 690px;
  display: grid;
  gap: 10px;
}

.step-list li {
  counter-increment: step-counter;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.46;
}

.step-list li::before {
  content: counter(step-counter);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.check-list {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
  max-width: 690px;
  display: grid;
  gap: 8px;
}

.check-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.46;
}

.check-list li::before {
  content: "\2022";
  color: var(--teal);
  font-size: 14px;
  margin-top: 1px;
}

.case-study {
  max-width: 690px;
  margin: 20px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--teal);
  border-radius: 0 5px 5px 0;
  background: rgba(7, 95, 111, .04);
}

.case-study-label {
  margin: 0 0 6px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal);
}

.case-study h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.24;
}

.case-study p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.case-study p:last-child { margin-bottom: 0; }

.never-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  max-width: 690px;
  display: grid;
  gap: 8px;
}

.never-list li {
  padding: 10px 14px;
  border-left: 3px solid var(--warning);
  background: rgba(143, 23, 23, .03);
  font-size: 15px;
  line-height: 1.46;
  color: var(--ink);
}

.rollback-section {
  max-width: 690px;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.rollback-item {
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: rgba(252, 246, 234, .54);
}

.rollback-item dt {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.rollback-item dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.46;
  color: var(--ink);
}

.module-table {
  width: 100%;
  max-width: 690px;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-size: 15px;
}

.module-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  background: rgba(7, 95, 111, .04);
}

.module-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.44;
  color: var(--ink);
  vertical-align: top;
}

.module-table tr:last-child td { border-bottom: none; }

.module-table td:first-child {
  font-weight: 700;
  color: var(--teal);
}

.mandatory-box {
  max-width: 690px;
  margin: 20px 0;
  padding: 14px 18px;
  border: 1.5px solid var(--warning);
  border-radius: 5px;
  background: rgba(143, 23, 23, .04);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 700;
}

.ref-note {
  max-width: 690px;
  margin: 0 0 8px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.44;
  color: var(--muted);
  font-style: italic;
}

.ref-note a { color: var(--teal); text-decoration: underline; }

.cta-box {
  max-width: 690px;
  margin: 24px 0;
  padding: 20px 24px;
  border: 1.5px solid var(--teal);
  border-radius: 7px;
  background: rgba(7, 95, 111, .04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.cta-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 19, 14, .10);
}

.cta-box p {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
  width: 100%;
}

.cta-box a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 5px;
  color: #fff8ed;
  background: linear-gradient(180deg, #0b7883, #075d69);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Risk Accordion ─────────────────────────────────────────── */
.risk-accordion {
  margin: 0 0 24px;
  display: grid;
  gap: 6px;
}

.accordion-item {
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: rgba(252, 246, 234, .54);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 19, 14, .10);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.accordion-trigger:hover {
  background: rgba(7, 95, 111, .04);
}

.accordion-trigger[aria-expanded="true"] {
  border-bottom: 1px solid var(--rule);
}

.accordion-chevron {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  padding: 16px 18px 18px;
}

.accordion-panel[hidden] {
  display: none;
}

.accordion-content {
  margin: 0;
  display: grid;
  gap: 14px;
}

.accordion-content > div {
  display: grid;
  gap: 3px;
}

.accordion-content dt {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--teal);
}

.accordion-content dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.46;
  color: var(--ink);
}

.case-trigger-link {
  display: block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .04em;
  text-align: left;
}

.case-trigger-link:hover {
  text-decoration: underline;
  color: var(--teal-dark);
}

@media (max-width: 880px) {
  .page-frame {
    width: 375px;
    max-width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .site-header {
    padding: 17px 18px 10px;
  }

  .inner-logo {
    width: 118px;
  }

  .inner-page-title {
    font-size: 16px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0 18px;
  }

  .header-top {
    align-items: flex-start;
  }

  .brand-lockup {
    display: block;
  }

  .logo-link {
    width: 176px;
  }

  .manual-title {
    margin-top: 7px;
    padding-left: 0;
    border-left: 0;
    font-size: 16px;
    line-height: 1.05;
  }

  .menu-button {
    display: block;
    margin-top: 10px;
    flex: 0 0 auto;
  }

  .method-strip {
    width: 100%;
    margin: 25px 0 0;
  }

  .method-item {
    min-height: 36px;
  }

  .method-item:first-child {
    border-left: 0;
  }

  .method-item strong {
    font-size: 11px;
    letter-spacing: .02em;
  }

  .method-item span {
    font-size: 11px;
  }

  main {
    padding: 14px 18px 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
  }

  h1 {
    margin: 0 0 11px;
    font-size: 25px;
    line-height: 1.04;
  }

  p {
    margin-bottom: 11px;
    font-size: 15px;
    line-height: 1.22;
  }

  .warning {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.2;
  }

  .hero-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1px;
  }

  .video-placeholder-cta {
    width: 100%;
    min-width: 0;
    padding: 9px 14px 10px;
    font-size: 14px;
  }

  .video-icon {
    width: 25px;
    height: 25px;
  }

  .primary-cta {
    width: 100%;
    min-width: 168px;
    padding: 10px 16px 11px;
    gap: 9px;
    font-size: 15px;
  }

  .primary-cta span {
    font-size: 19px;
  }

  .hero-figure {
    margin-top: 1px;
    border-radius: 5px;
  }

  .hero-figure img {
    aspect-ratio: 1.74 / 1;
    object-position: center center;
  }

  .guide-helps {
    padding: 9px 0 12px;
  }

  .guide-helps h2 {
    margin-bottom: 6px;
    font-size: 18px;
  }

  .feature-list {
    display: block;
  }

  .feature {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 9px 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .feature:first-child {
    padding-left: 0;
  }

  .feature-icon {
    width: 43px;
    height: 43px;
  }

  .feature-icon svg {
    width: 30px;
    height: 30px;
  }

  .feature h3 {
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.12;
  }

  .feature p {
    font-size: 12px;
    line-height: 1.18;
  }

  .page-footer {
    padding: 11px 12px 12px;
    font-size: 11px;
    letter-spacing: .05em;
  }

  .page-footer span {
    padding: 0 10px;
  }


  .modal-box {
    padding: 24px 20px 28px;
  }

  .modal-title {
    font-size: 17px;
  }

  .atom-breakdown dd {
    font-size: 15px;
  }

  .section-preamble {
    font-size: 15px;
  }

  .case-card {
    padding: 14px 16px;
  }

  .case-card h3 {
    font-size: 15px;
  }

  .pattern-item {
    padding: 12px 14px;
  }

  .pattern-item h4 {
    font-size: 13px;
  }

  .pattern-item p {
    font-size: 12px;
  }

  .assessment-list li {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }

  .assessment-list li::before {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .assessment-list li p {
    font-size: 14px;
  }

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

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

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-table {
    font-size: 13px;
  }

  .module-table th,
  .module-table td {
    padding: 8px 10px;
  }
}


@media (max-width: 480px) {
  .page-frame {
    width: min(342px, calc(100% - 20px));
    margin: 14px auto;
    border-left: 1px solid #bfb6a5;
    border-right: 1px solid #bfb6a5;
  }
}

/* ── Pattern accordion (details/summary) ─────────────────────────────────── */
.pattern-accordion { border: none; }

.pattern-accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0;
}
.pattern-accordion-summary::-webkit-details-marker { display: none; }
.pattern-accordion-summary::marker { display: none; }

.pattern-accordion-summary::after {
  content: '+';
  color: var(--teal);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 12px;
}
details[open] .pattern-accordion-summary::after {
  content: '\2212'; /* minus sign */
}

.pattern-accordion-summary:hover h4 { color: var(--teal); }

.pattern-accordion-body { padding-top: 8px; }

/* ── ATOM bridge (patterns.html) ─────────────────────────────────────────── */
.bridge-box {
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: rgba(252, 246, 234, .54);
}
.bridge-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 16px;
  border: none;
}
.bridge-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.bridge-row:last-child { border-bottom: none; }
.bridge-label {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}
.bridge-verb {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.bridge-rationale {
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--ink);
}
.bridge-responds {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}
.bridge-forward {
  font-size: 15px;
  color: var(--muted);
  margin: 16px 0 0;
  font-style: italic;
}

/* ── ATOM initial caps (bridge section) ──────────────────────────────────── */
.atom-initial {
  font-size: 22px;
  color: var(--teal-dark);
  line-height: 1;
}

/* ── Verb remainder (bridge section) ─────────────────────────────────────── */
.verb-rest {
  color: var(--muted);
  font-style: italic;
}


/* --- Site navigation menu (added 2026-07-02) --- */
.page-frame { position: relative; }
.menu-toggle {
  display: block;
  position: absolute;
  top: 18px;
  right: 22px;
  width: 38px;
  height: 34px;
  padding: 6px;
  border: 0;
  background: transparent;
  z-index: 40;
  cursor: pointer;
}
.menu-button[aria-controls="site-menu"] { cursor: pointer; }
.site-menu {
  position: absolute;
  top: 62px;
  right: 22px;
  z-index: 50;
  width: min(300px, calc(100% - 44px));
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 19, 14, .16);
  padding: 8px;
}
.site-menu[hidden] { display: none; }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.site-menu a:hover,
.site-menu a:focus {
  background: var(--paper-deep);
  color: var(--teal-dark);
  outline: none;
}
.site-menu a.sub { padding-left: 26px; }
.site-menu a.sub2 { padding-left: 40px; font-size: 13px; color: var(--muted); }
.site-menu a[aria-current="page"] {
  color: var(--teal);
  font-weight: 700;
  background: rgba(7, 95, 111, .08);
}
@media (max-width: 880px) {
  .menu-toggle { top: 14px; right: 16px; }
  .site-menu { top: 56px; right: 16px; }
}

/* Inline self-hosted page videos (added 2026-07-07) */
.page-video {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: #000;
}
.page-video-section {
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.page-video-section .page-video {
  max-width: 760px;
  margin: 0 auto;
}

/* Click-to-play video state (added 2026-07-07) */
.page-video[hidden], .video-placeholder-cta[hidden] { display: none !important; }
button.video-placeholder-cta { font-family: inherit; cursor: pointer; }

/* Video wrapper + close control (added 2026-07-07) */
.video-wrap { position: relative; display: block; width: 100%; max-width: 520px; }
.page-video-section .video-wrap { max-width: 760px; margin: 0 auto; }
.video-wrap .page-video { width: 100%; max-width: 100%; display: block; }
.video-close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(23, 19, 14, .72); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.video-close:hover { background: rgba(23, 19, 14, .92); }
