/* ==========================================================================
   Aging in Place Guide — Web Stylesheet
   Modular, high-contrast, aging-friendly design system for EN & ZH sites.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Design Tokens & Typography Stacks
   -------------------------------------------------------------------------- */
:root {
  /* Warm paper & deep pine-green palette (WCAG AA/AAA oriented) */
  --paper: #fffefb;
  --cream: #f4f2ec;
  --sage: #edf2e9;
  --surface: #ffffff;
  --surface-warm: #fbf4ea;
  --surface-peach: #f9efe6;
  --surface-tint: #f5f7f1;

  --ink: #24342b;
  --green: #365d4c;
  --green-hover: #274739;
  --muted: #4b5950;
  --warm-accent: #7a4b26;
  --warm-border: #b27b43;

  --line: #d6dfd3;
  --line-strong: #6e8074;
  --focus-ring: #1b4332;
  --white: #ffffff;

  /* Backward-compatible semantic aliases */
  --orange: var(--green);

  /* High-readability serif for editorial headings; clear sans for UI & body */
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html[lang='zh-CN'] {
  --sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', system-ui, -apple-system, sans-serif;
  --serif: var(--sans);
}

/* --------------------------------------------------------------------------
   02. Base Reset, Typography & Accessibility
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

html[lang='zh-CN'] body {
  font-size: 18px;
  line-height: 1.85;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

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

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--paper);
  border-radius: 4px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 2px;
}

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

h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.2;
}

h1 {
  font-size: clamp(40px, 4.4vw, 62px);
}

h2 {
  font-size: clamp(30px, 3vw, 42px);
}

h3 {
  line-height: 1.32;
}

p {
  color: var(--muted);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  flex-shrink: 0;
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
}

em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

html[lang='zh-CN'] em {
  font-style: normal;
}

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

.skip-link {
  position: fixed;
  left: 20px;
  top: -120px;
  background: var(--green);
  color: var(--white);
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 14px;
}

/* --------------------------------------------------------------------------
   03. Layout Primitives & Shared Controls
   -------------------------------------------------------------------------- */
.container {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.section {
  padding-block: 80px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.eyebrow .icon {
  width: 17px;
  height: 17px;
}

.small-rule {
  display: inline-block;
  width: 27px;
  height: 2px;
  background: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid var(--green);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.button .icon {
  width: 19px;
  height: 19px;
}

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

.primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

.outline {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--green);
}

.outline:hover {
  background: var(--sage);
  border-color: var(--green);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-block: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

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

.text-link .icon {
  width: 19px;
  height: 19px;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button > .icon {
  width: 20px;
  height: 20px;
}

.icon-button:hover {
  background: var(--sage);
  border-color: var(--green);
}

.center-link {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 1px;
}

.breadcrumbs {
  padding-top: 28px;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 9px;
  color: var(--line-strong);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-intro {
  padding-top: 40px;
  padding-bottom: 30px;
  max-width: 1240px;
}

.page-intro h1 {
  font-size: clamp(36px, 4.2vw, 54px);
  max-width: 840px;
  margin-bottom: 18px;
}

.page-intro > p:not(.eyebrow) {
  max-width: 660px;
  font-size: 18px;
  line-height: 1.8;
}

.page-intro .download-note,
.download-note {
  font-size: 15px;
  max-width: 680px;
  line-height: 1.75;
}

.download-note a {
  font-weight: 600;
  color: var(--green);
}

.resource-band {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.resource-band > .container {
  padding-block: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.resource-band h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.resource-band p:not(.eyebrow) {
  max-width: 670px;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 0;
}

.resource-band .button {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   04. Header, Navigation, Language Switch & Reading Toolbar
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}

.brand-symbol {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px;
  height: 43px;
  position: relative;
  color: var(--green);
  display: flex;
  align-items: center;
}

.brand-mark > .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.25;
}

.brand-mark > .brand-leaf {
  position: absolute;
  right: -5px;
  top: 0;
  width: 17px;
  height: 17px;
  fill: var(--sage);
  color: var(--green);
  background: var(--surface);
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.brand-name > span {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-top: 5px;
  color: var(--muted);
}

.header-inner nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.header-inner nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 2px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.header-inner nav a:hover,
.header-inner nav a[aria-current] {
  color: var(--green);
  border-bottom-color: var(--green);
}

.header-inner nav a[aria-current] {
  font-weight: 600;
}

.language-switch {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 15px;
  background: var(--paper);
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.language-switch:hover {
  background: var(--sage);
  border-color: var(--green);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  white-space: nowrap;
  background: var(--sage);
  border: 1px solid #b8c9b8;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.header-cta:hover {
  background: #e0eadb;
  border-color: var(--green);
}

.header-cta .icon {
  width: 18px;
  height: 18px;
}

.mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green);
  font-size: 22px;
  line-height: 1;
  padding: 8px;
}

.mobile-menu:hover {
  background: var(--sage);
}

.reading-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.reading-toggle {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  min-height: 44px;
  padding-block: 4px;
}

.reading-toggle strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

[data-reading-status] {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

[data-reading-save-status] {
  font-size: 14px;
  color: var(--warm-accent);
}

.reading-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 52px;
  height: 30px;
  border: 2px solid var(--line-strong);
  border-radius: 20px;
  background: #e6ebe4;
  position: relative;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.reading-toggle input::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px #0004;
  transition: left 0.15s;
}

.reading-toggle input:checked {
  background: var(--green);
  border-color: var(--green);
}

.reading-toggle input:checked::before {
  left: 25px;
}

/* --------------------------------------------------------------------------
   05. Home Page
   -------------------------------------------------------------------------- */
.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 68px;
  padding-bottom: 72px;
}

.hero-copy h1 {
  font-size: clamp(39px, 4.1vw, 58px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-description {
  max-width: 490px;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 18px;
  margin-bottom: 0;
}

.hero-note .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.hero-visual {
  position: relative;
  padding-bottom: 20px;
}

.hero-image-wrap {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: var(--cream);
}

.hero-image-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: 70% center;
}

.image-caption {
  position: absolute;
  bottom: 18px;
  right: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  background: rgba(255, 254, 251, 0.94);
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.floating-note {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  margin-left: -28px;
  margin-top: -14px;
  width: 90%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(36, 52, 43, 0.06);
  border-radius: 14px;
  padding: 18px 22px;
  text-decoration: none;
}

.floating-note > .icon:first-child {
  width: 34px;
  height: 34px;
  background: var(--sage);
  box-sizing: content-box;
  padding: 10px;
  border-radius: 50%;
  color: var(--green);
}

.floating-note > div {
  flex: 1;
}

.floating-note span {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
}

.floating-note strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  display: block;
  margin-block: 3px;
  color: var(--ink);
}

.floating-note small {
  font-size: 14px;
  color: var(--muted);
}

.floating-note:hover {
  border-color: var(--green);
}

.hero-label {
  position: absolute;
  right: 0;
  bottom: -4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.values-strip {
  border-block: 1px solid var(--line);
  background: var(--cream);
}

.values-strip > .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
}

.values-strip span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
}

.values-strip .icon {
  color: var(--green);
  width: 20px;
  height: 20px;
}

.task-paths {
  padding-top: 64px;
}

.task-paths > h2 {
  max-width: 760px;
}

.task-paths .topic-grid p {
  font-size: 16px;
  line-height: 1.8;
}

.home-topic-section {
  padding-bottom: 72px;
}

.topic-directory {
  margin: 25px 0 45px;
}

.topic-directory > h2 {
  max-width: 720px;
}

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

.topic-grid > div {
  padding: 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.topic-grid > div:nth-child(2),
.topic-grid > div:nth-child(4) {
  background: var(--surface-peach);
}

.topic-grid h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.topic-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-grid li + li {
  border-top: 1px solid var(--line);
}

.topic-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.topic-grid a:hover {
  color: var(--green);
  text-decoration: underline;
}

.topic-grid .icon {
  width: 16px;
  height: 16px;
}

/* Guide cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.guide-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.15s, transform 0.15s;
}

.guide-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.card-art {
  height: 164px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sage);
}

.card-art.photo-art {
  height: 220px;
  padding: 0;
  background: var(--sage);
}

.card-art > .icon {
  width: 71px;
  height: 71px;
  stroke-width: 1;
  position: relative;
  z-index: 1;
}

.card-art::before {
  content: '';
  position: absolute;
  width: 137px;
  height: 137px;
  border-radius: 50%;
  background: #ffffff70;
  right: calc(50% - 80px);
  top: 21px;
}

.card-art::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 1px;
  background: rgba(54, 93, 76, 0.15);
  bottom: 32px;
  left: calc(50% - 90px);
}

.card-art.photo-art::before,
.card-art.photo-art::after {
  display: none;
  content: none;
}

.photo-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.practical-card .card-art img {
  object-fit: cover;
  object-position: center;
  background: #f1f4ed;
}

.photo-category {
  position: absolute;
  bottom: 14px;
  left: 16px;
  background: rgba(255, 254, 251, 0.94);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--green);
}

.card-number {
  position: absolute;
  top: 17px;
  left: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.card-copy {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-copy .eyebrow {
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--muted);
}

.card-copy h3 {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.card-copy > p:not(.eyebrow),
.card-copy p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.card-meta .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* Home checklist showcase & process */
.checklist-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 56px 70px;
  overflow: hidden;
}

.paper-preview {
  transform: rotate(-3deg);
  background: var(--surface);
  width: 100%;
  max-width: 340px;
  box-shadow: 0 13px 32px rgba(36, 52, 43, 0.08);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.paper-preview.real-preview {
  padding: 0;
  transform: rotate(-2.5deg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(36, 52, 43, 0.14);
  text-decoration: none;
}

.real-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.real-preview .preview-badge {
  display: block;
  padding: 14px 20px;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.feature-copy h2 {
  font-size: 40px;
  margin-bottom: 22px;
}

.feature-copy > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.85;
  max-width: 420px;
}

.check-list {
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  margin-bottom: 13px;
  color: var(--ink);
}

.check-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--green);
}

.home-process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.home-process h2 {
  font-size: 42px;
  line-height: 1.18;
}

.home-process > div > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-block: 24px;
}

.steps li:first-child {
  padding-top: 0;
}

.steps li:last-child {
  border: 0;
  padding-bottom: 0;
}

.steps li > span {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--green);
}

.steps h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
}

.steps p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Home practical discovery strip */
.practical-discover .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.practical-discover .section-heading > div {
  min-width: 0;
}

.practical-discover .discover-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.practical-discover .discover-links .button {
  min-height: 46px;
  white-space: nowrap;
  padding: 10px 16px;
}

.practical-discover .guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.practical-discover .card-copy {
  padding: 22px;
}

.practical-discover .card-copy h3 {
  font-size: 21px;
  max-width: none;
}

/* --------------------------------------------------------------------------
   06. Guide Library & Search Filters (/guides/)
   -------------------------------------------------------------------------- */
.library {
  padding-top: 18px;
}

.library-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-block: 1px solid var(--line);
  padding-block: 22px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 0 14px;
  border-radius: 10px;
  width: 340px;
  min-height: 48px;
}

.search-field .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.search-field input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 10px 0;
  font-size: 16px;
  color: var(--ink);
}

.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.library .search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #becac0;
  background: var(--surface);
  padding: 9px 15px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
}

.filter-tabs button:hover {
  background: var(--sage);
  border-color: var(--green);
}

.filter-tabs button.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  font-weight: 600;
}

.filter-count {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}

.results-count {
  font-size: 15px;
  margin-top: 22px;
  margin-bottom: 22px;
  color: var(--muted);
}

.library .guide-grid {
  row-gap: 28px;
}

.empty-state {
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 64px 20px;
  border-radius: 14px;
}

.empty-state > .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--green);
}

.empty-state h2 {
  font-size: 30px;
}

/* --------------------------------------------------------------------------
   07. Article & Practical Guide Pages
   -------------------------------------------------------------------------- */
.article-header {
  max-width: 900px;
  padding-top: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.24;
  max-width: 880px;
  margin-bottom: 20px;
}

.article-deck {
  font-size: 19px;
  line-height: 1.85;
  max-width: 780px;
  margin-bottom: 22px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.article-meta a {
  text-decoration: none;
  color: var(--green);
  font-weight: 600;
}

.article-meta a:hover {
  text-decoration: underline;
}

.article-meta > * + *::before {
  content: '\00b7';
  margin-right: 16px;
  color: var(--muted);
}

.article-feature {
  max-width: 900px;
  margin-top: 24px;
  margin-bottom: 42px;
  box-sizing: border-box;
}

.article-feature img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: cover;
  border-radius: 16px;
}

.article-feature figcaption {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  padding: 13px 0;
  max-width: 900px;
}

.article-feature figcaption span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 760px);
  gap: 64px;
  align-items: start;
  padding-top: 32px;
  justify-content: space-between;
}

.article-layout > *,
.article-content,
.article-sidebar {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: 28px;
}

.article-sidebar > .eyebrow {
  font-size: 12px;
  margin-bottom: 14px;
}

.article-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--line);
}

.article-sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px 8px 16px;
  line-height: 1.5;
}

.article-sidebar nav a:hover {
  color: var(--green);
  background: var(--cream);
}

.article-sidebar .button {
  margin-top: 20px;
  width: 100%;
}

.sidebar-tool {
  background: var(--sage);
  border: 1px solid var(--line);
  padding: 23px;
  margin-top: 28px;
  border-radius: 14px;
}

.sidebar-tool > .icon {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.sidebar-tool h2 {
  font-size: 22px;
  margin: 14px 0 10px;
}

.sidebar-tool p {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.sidebar-tool a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.sidebar-tool a:hover {
  text-decoration: underline;
}

.sidebar-tool a .icon {
  width: 17px;
  height: 17px;
}

.article-content {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.9;
}

.article-content section {
  margin-top: 42px;
  padding-top: 18px;
}

.article-content > section {
  scroll-margin-top: 30px;
}

.article-content h2 {
  font-size: 30px;
  line-height: 1.32;
  margin: 0 0 20px;
}

.article-content p {
  font-size: 18px;
  line-height: 1.9;
  margin: 0 0 20px;
  color: var(--ink);
}

.article-content ul {
  padding-left: 24px;
  color: var(--ink);
}

.article-content li {
  margin-bottom: 12px;
  padding-left: 4px;
  line-height: 1.85;
}

.quick-take {
  background: var(--sage);
  border-left: 4px solid var(--green);
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
}

.quick-take > .eyebrow {
  font-size: 12px;
  margin: 0 0 14px;
}

.quick-take h2 {
  font-size: 23px;
}

.quick-take ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-take li {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.75;
}

.quick-take li:last-child {
  margin-bottom: 0;
}

.quick-take .icon {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  color: var(--green);
}

.article-callout {
  margin: 28px 0;
  padding: 24px;
  background: var(--surface-warm);
  border-left: 4px solid var(--warm-border);
  border-radius: 0 12px 12px 0;
}

.article-callout strong {
  font-size: 16px;
  color: var(--warm-accent);
}

.article-callout p {
  font-size: 16px;
  line-height: 1.85;
  margin: 10px 0 0;
  color: var(--ink);
}

.article-content .section-evidence {
  font-size: 14px;
  line-height: 1.8;
  border-left: 3px solid var(--line-strong);
  padding: 6px 0 6px 16px;
  margin-top: 26px;
  color: var(--muted);
}

.article-content .section-evidence a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--green);
  font-weight: 600;
}

/* Diagrams & reading figures */
.reading-figure {
  margin: 28px 0 36px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.reading-figure a {
  display: block;
}

.reading-figure img {
  width: 100%;
  height: auto;
}

.reading-figure figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 16px 20px;
  text-align: center;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.observation-diagram {
  margin: 36px 0 46px;
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.observation-diagram img {
  width: 100%;
  height: auto;
  display: block;
}

.observation-diagram figcaption {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 14px;
}

.observation-diagram figcaption a {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--green);
}

/* Decision cards */
.decision-cards {
  display: grid;
  gap: 18px;
  margin: 26px 0;
}

.decision-card {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.decision-card h3 {
  font-family: var(--sans);
  font-size: 21px;
  line-height: 1.55;
  margin: 0 0 12px;
  font-weight: 600;
}

.decision-card dl {
  margin: 0;
}

.decision-card dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 14px;
}

.decision-card dd {
  font-size: 17px;
  line-height: 1.85;
  margin: 5px 0 0;
  color: var(--ink);
}

/* Tables */
.table-scroll,
.article-content .table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  margin: 24px 0;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.75;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 15px 17px;
  min-width: 120px;
  border-bottom: 1px solid var(--line);
}

thead {
  background: var(--green);
  color: var(--white);
}

th {
  font-weight: 600;
}

tbody th {
  background: var(--sage);
  color: var(--ink);
  font-weight: 600;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

.article-content table {
  min-width: 620px;
  width: 100%;
  font-size: 15px;
  line-height: 1.75;
}

.article-content caption {
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  padding: 16px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.article-content thead th {
  background: var(--green);
  color: var(--white);
  padding: 16px 20px;
}

.article-content tbody th,
.article-content tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.article-content tbody th {
  width: 28%;
}

.article-content tbody tr:nth-child(even) {
  background: #f6f8f5;
}

/* FAQs & Sources */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding-block: 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary > span {
  font-size: 22px;
  color: var(--green);
  line-height: 1;
  transition: transform 0.15s;
}

.faq-list details[open] summary > span {
  transform: rotate(45deg);
}

.faq-list details p {
  font-size: 16px;
  margin: 12px 0 4px;
  line-height: 1.85;
  color: var(--ink);
}

.sources {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.sources h2 {
  font-size: 26px;
}

.sources p,
.sources li {
  font-size: 15px;
  line-height: 1.8;
}

.sources ul {
  list-style: none;
  padding: 0;
}

.sources li {
  padding: 0;
  margin-bottom: 14px;
}

.sources a .icon {
  width: 14px;
  height: 14px;
}

.sources .source-note,
.article-content .source-list p,
.article-content .source-note {
  font-size: 15px;
  line-height: 1.8;
  margin: 6px 0 16px;
  color: var(--muted);
}

.source-list {
  list-style: none;
  padding: 0;
}

.source-list li {
  margin-bottom: 16px;
}

.source-list a {
  color: var(--green);
  font-weight: 600;
}

.sources .editorial-note {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
}

.next-action {
  background: var(--sage);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 14px;
  margin-top: 36px;
}

.next-action h2 {
  font-size: 28px;
}

.next-action p:not(.eyebrow) {
  font-size: 16px;
}

.related-guides {
  padding-top: 72px;
}

.related-guides .guide-grid:has(> .guide-card:only-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-links {
  display: grid;
  gap: 12px;
}

.related-links > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
}

.related-links > a:hover {
  background: var(--sage);
  border-color: var(--green);
  color: var(--green);
}

.section-links {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 25px;
}

.section-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  font-size: 16px;
  padding: 9px 0;
  color: var(--green);
  font-weight: 500;
}

.section-links .icon {
  width: 17px;
  height: 17px;
}

/* Inline article worksheet template */
.worksheet {
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
}

.worksheet label {
  display: block;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 6px;
}

.worksheet p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.worksheet textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.75;
  padding: 16px;
  resize: vertical;
  min-height: 280px;
}

.copy-tool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.copy-tool button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.copy-tool [data-copy-status] {
  font-size: 15px;
  line-height: 1.7;
  max-width: 420px;
  color: var(--muted);
}

/* Easy / Simplified reading view */
.easy-step {
  border-top: 1px solid var(--line);
}

.easy-step h2 {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.easy-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--sage);
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 18px;
  font-weight: 600;
  margin-top: 3px;
}

.easy-reminder {
  margin-top: 32px;
  background: var(--surface-warm);
  border-left: 4px solid var(--warm-border);
  padding: 24px;
  border-radius: 0 12px 12px 0;
}

.article-content .easy-reminder h2 {
  font-size: 23px;
  color: var(--warm-accent);
}

.article-content .easy-reminder p {
  margin-bottom: 0;
}

.article-content .reading-help {
  color: var(--muted);
  font-size: 16px;
}

.reading-sources summary {
  cursor: pointer;
  font-size: 22px;
  min-height: 44px;
  padding: 8px 0;
  font-weight: 600;
  color: var(--ink);
}

/* Practical guides layout */
.practical-hero {
  max-width: 1000px;
  margin: 0 auto 44px;
}

.practical-hero a {
  display: block;
}

.practical-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.practical-hero.scene-hero {
  max-width: 900px;
}

.practical-hero.scene-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.practical-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 56px;
  justify-content: center;
  padding-bottom: 64px;
}

.practical-toc {
  align-self: start;
  position: sticky;
  top: 104px;
  font-size: 16px;
}

.practical-toc h2 {
  font-size: 18px;
}

.practical-toc nav {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
}

.practical-toc nav a,
.practical-toc > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.practical-toc nav a:hover,
.practical-toc > a:hover {
  text-decoration: underline;
}

.practical-toc > a {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-weight: 600;
}

.practical-toc:has(nav[hidden]) {
  display: none;
}

/* Give article full reading column when simplified reading hides the TOC */
.practical-layout:has(> .practical-toc nav[hidden]) {
  grid-template-columns: minmax(0, 760px);
  gap: 0;
}

.practical-article {
  min-width: 0;
}

.practical-article section {
  margin-bottom: 42px;
}

.practical-article h2 {
  line-height: 1.4;
}

.practical-article p {
  line-height: 1.85;
  margin: 18px 0;
  font-size: 18px;
}

.practical-overview {
  margin: 0 0 32px;
}

.practical-overview img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.practical-detail {
  margin: 30px 0;
}

.practical-detail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.practical-detail figcaption {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}

.practical-article .decision-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.practical-article .decision-card p {
  font-size: 16px;
  margin-bottom: 0;
}

.practical-note {
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin: 36px 0;
}

.practical-note h2 {
  margin-top: 0;
}

.practical-sources {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.practical-sources p {
  font-size: 16px;
}

.practical-sources summary {
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}

.guide-sheet-entry {
  max-width: 900px;
  margin-bottom: 32px;
}

.guide-sheet-entry .practical-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  row-gap: 10px;
  margin: 0;
  padding: 24px 28px;
}

.guide-sheet-entry .practical-note h2 {
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0;
}

.guide-sheet-entry .practical-note p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.guide-sheet-entry .practical-note .button {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  min-height: 48px;
}

/* --------------------------------------------------------------------------
   08. Checklists, Downloads & Practical Worksheets
   -------------------------------------------------------------------------- */
.checklist-intro {
  padding-bottom: 32px;
}

.tool-badges {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.tool-badges > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-badges .icon {
  width: 17px;
  height: 17px;
  color: var(--green);
}

.checklist-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 80px;
  align-items: start;
}

.checklist-sidebar {
  position: sticky;
  top: 25px;
}

.progress-card {
  background: var(--sage);
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 14px;
}

.progress-card > .eyebrow {
  font-size: 12px;
  margin-bottom: 12px;
}

.progress-card > strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.progress-track {
  height: 6px;
  background: #d2ded3;
  margin: 16px 0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-track > span {
  display: block;
  background: var(--green);
  height: 100%;
  width: 0%;
  transition: width 0.2s;
}

.progress-card > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.small-copy,
.progress-card .small-copy,
.checklist-footnote .small-copy {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.checklist-sidebar nav {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  margin-bottom: 24px;
}

.checklist-sidebar nav a {
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.checklist-sidebar nav a .icon {
  width: 18px;
  height: 18px;
}

.checklist-sidebar nav a:hover {
  color: var(--green);
}

.checklist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-actions > .button {
  padding: 10px 16px;
  font-size: 15px;
}

.storage-note {
  font-size: 14px;
  margin: 14px 0 20px;
}

.checklist-guidance {
  background: var(--surface-warm);
  border-left: 4px solid var(--warm-border);
  padding: 21px 24px;
  border-radius: 0 10px 10px 0;
}

.checklist-guidance strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  color: var(--warm-accent);
}

.checklist-guidance p {
  font-size: 15px;
  line-height: 1.8;
  margin: 8px 0 0;
  color: var(--ink);
}

.checklist-group {
  margin-top: 34px;
}

.checklist-group h2 {
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.checklist-group h2 .icon {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.check-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 23px;
  margin-bottom: 14px;
}

.check-item[data-state='attention'] {
  border-left: 4px solid var(--warm-border);
}

.check-item[data-state='okay'] {
  border-left: 4px solid var(--green);
}

.check-item-top {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
}

.check-item-top > div {
  flex: 1;
}

.check-item-top label {
  font-size: 17px;
  line-height: 1.65;
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.check-item-top p {
  font-size: 15px;
  line-height: 1.75;
  margin: 7px 0 0;
}

.check-item select {
  color: var(--ink);
  font-size: 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
  min-width: 175px;
  max-width: 100%;
  flex-shrink: 0;
}

.action-details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.action-details summary {
  font-size: 15px;
  font-weight: 500;
  color: var(--green);
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 0;
}

.action-details summary::-webkit-details-marker {
  display: none;
}

.action-details summary span {
  font-size: 18px;
  transition: transform 0.15s;
}

.action-details[open] summary span {
  transform: rotate(45deg);
}

.action-fields {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 14px;
  padding-top: 10px;
}

.action-fields > label:first-child {
  grid-column: 1 / -1;
}

.action-fields label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  gap: 6px;
}

.action-fields input,
.action-fields textarea {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  font-weight: 400;
  min-width: 0;
}

.action-fields textarea {
  resize: vertical;
  min-height: 76px;
}

.checklist-footnote {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.checklist-footnote h2 {
  font-size: 27px;
}

.checklist-footnote p {
  font-size: 15px;
  line-height: 1.85;
}

.checklist-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}

.reset-button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  padding: 10px 14px;
}

.reset-button:hover {
  color: var(--ink);
}

.print-only,
.print-notes {
  display: none;
}

dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 34px;
  max-width: min(510px, calc(100% - 32px));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

dialog::backdrop {
  background: rgba(36, 52, 43, 0.45);
}

dialog h2 {
  font-size: 28px;
}

dialog p {
  font-size: 16px;
}

.dialog-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* Downloads & printables */
.printables-intro {
  padding-top: 0;
}

.print-quality {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 34px;
}

.print-quality span {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--sage);
  color: var(--green);
}

.download-grid,
.printable-library {
  display: grid;
  gap: 28px;
}

.download-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
}

.download-card h3 {
  font-family: var(--serif);
  font-size: 27px;
}

.download-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.printable-product {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  align-items: center;
}

.printable-cover {
  display: block;
  background: var(--sage);
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(36, 52, 43, 0.08);
  transition: transform 0.2s;
  text-decoration: none;
  color: var(--green);
}

.printable-cover:hover {
  transform: translateY(-3px);
}

.printable-cover img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 3px 10px rgba(36, 52, 43, 0.14);
}

.printable-cover > span {
  display: block;
  text-align: center;
  padding-top: 13px;
  font-size: 13px;
  font-weight: 600;
}

.printable-description h3 {
  font-size: 27px;
  line-height: 1.25;
  margin: 10px 0 16px;
}

.printable-description p {
  font-size: 16px;
  line-height: 1.85;
}

.printable-description .eyebrow {
  font-size: 12px;
}

.prose-page .printable-steps,
.printable-steps {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  gap: 14px;
  margin: 20px 0;
}

.printable-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
}

.printable-steps .icon {
  width: 16px;
  height: 16px;
}

.printable-description .file-note,
.file-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

.note-comparison {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 18px;
}

.note-comparison > div {
  padding: 22px;
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.note-comparison > div:first-child {
  background: var(--surface-warm);
}

.note-comparison p {
  font-size: 16px;
  color: var(--ink);
}

.print-instructions li {
  margin-bottom: 16px;
  padding-left: 6px;
}

/* Practical hub & interactive worksheets */
.practical-hub {
  padding-bottom: 56px;
}

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

.sheet-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

.sheet-card h2 {
  font-size: 23px;
  line-height: 1.5;
  margin: 10px 0;
}

.sheet-card p {
  line-height: 1.8;
}

.sheet-card-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}

.sheet-card-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.worksheet-wrap {
  max-width: 920px;
  padding-bottom: 56px;
}

.worksheet-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.worksheet-notice {
  width: 100%;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 4px 0 0;
}

.worksheet-page form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}

.worksheet-page h2 {
  font-size: 24px;
  line-height: 1.5;
}

.worksheet-checks > p {
  color: var(--muted);
  line-height: 1.75;
}

.worksheet-check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 48px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.75;
  cursor: pointer;
}

.worksheet-check input {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-top: 4px;
  accent-color: var(--green);
}

.worksheet-check:has(input:checked) {
  color: var(--muted);
}

.worksheet-print-check,
.worksheet-print-value {
  display: none;
}

.worksheet-record {
  margin-top: 38px;
}

.worksheet-date {
  color: var(--muted);
  font-size: 15px;
}

.worksheet-fields {
  display: grid;
  gap: 24px;
}

.worksheet-fields,
.worksheet-table-wrap,
.worksheet-field {
  min-width: 0;
}

.worksheet-field {
  display: grid;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}

.worksheet-field textarea,
.worksheet-table textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
  min-height: 96px;
}

.worksheet-footer {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 20px;
  overflow-wrap: anywhere;
}

.worksheet-table-wrap {
  position: relative;
  overflow-x: auto;
}

.worksheet-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 550px;
}

.worksheet-table caption {
  text-align: left;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--ink);
}

.worksheet-table th,
.worksheet-table td {
  border: 1px solid #aebcae;
  padding: 8px;
  vertical-align: top;
  width: 33.33%;
}

.worksheet-table th {
  background: var(--sage);
  color: var(--ink);
  text-align: left;
  font-size: 16px;
}

.worksheet-table tbody tr:last-child > * {
  border-bottom: 1px solid #aebcae;
}

.worksheet-table textarea {
  min-height: 90px;
  font-size: 16px;
}

.worksheet-page .button {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   09. Prose, Resources, 404 & Footer
   -------------------------------------------------------------------------- */
.prose-page {
  max-width: 850px;
  padding-bottom: 85px;
}

.prose-page section {
  margin-top: 34px;
}

.prose-page h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.prose-page p {
  line-height: 1.9;
  font-size: 18px;
  color: var(--ink);
}

.prose-page ul,
.prose-page ol {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
}

.resource-list {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.resource-item:hover h3 {
  text-decoration: underline;
}

.resource-item .eyebrow {
  font-size: 12px;
  margin-bottom: 8px;
}

.resource-item h3 {
  font-family: var(--serif);
  font-size: 25px;
  margin-bottom: 10px;
}

.resource-item p:not(.eyebrow) {
  font-size: 15px;
  margin-bottom: 0;
  color: var(--muted);
}

.resource-item > .icon {
  margin-top: 30px;
}

.role-definitions dt {
  font-weight: 700;
  margin-top: 24px;
  color: var(--ink);
}

.role-definitions dd {
  margin: 8px 0 20px;
  line-height: 1.85;
  color: var(--ink);
}

.not-found {
  padding-block: 120px;
  min-height: 65vh;
}

.not-found h1 {
  font-size: clamp(38px, 4.5vw, 58px);
}

.not-found p:not(.eyebrow) {
  font-size: 18px;
  margin-bottom: 30px;
}

.site-footer {
  padding-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 42px;
}

.footer-main > div:first-child p {
  font-size: 15px;
  margin-top: 18px;
  line-height: 1.8;
}

.footer-main h2 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 4px 0 16px;
}

.footer-main > div:not(:first-child) > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
}

.footer-main > div:not(:first-child) > a:hover {
  color: var(--green);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  font-size: 13px;
  margin: 0;
}

.footer-bottom > div {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   10. Large Reading Mode (.large-reading)
   -------------------------------------------------------------------------- */
.large-reading body,
.large-reading .hero-description,
.large-reading .topic-grid p,
.large-reading .steps p,
.large-reading .check-list li {
  font-size: 20px;
  line-height: 1.85;
}

.large-reading .article-content p,
.large-reading .prose-page p,
.large-reading .article-deck,
.large-reading .entry-description,
.large-reading .practical-article p,
.large-reading .worksheet-check,
.large-reading .worksheet-field {
  font-size: 22px;
  line-height: 1.9;
}

.large-reading .article-content h2 {
  font-size: 31px;
}

.large-reading .article-header h1 {
  font-size: clamp(34px, 4.2vw, 46px);
}

.large-reading .practical-article .easy-step h2 {
  font-size: 26px;
}

.large-reading .reading-figure figcaption {
  font-size: 20px;
}

.large-reading .card-copy h3 {
  font-size: 26px;
}

.large-reading .card-copy p,
.large-reading .check-item-top p,
.large-reading .topic-grid a {
  font-size: 19px;
}

.large-reading .check-item-top label {
  font-size: 21px;
}

.large-reading button,
.large-reading select,
.large-reading textarea,
.large-reading input,
.large-reading .button,
.large-reading .related-links a {
  font-size: 19px;
}

.large-reading [data-reading-status] {
  font-size: 16px;
}

.large-reading .reading-toggle strong {
  font-size: 20px;
}

.large-reading .source-list a,
.large-reading .source-list p,
.large-reading .checklist-guidance p,
.large-reading .storage-note {
  font-size: 18px;
}

.large-reading .article-sidebar a,
.large-reading .breadcrumbs ol,
.large-reading .header-inner nav a {
  font-size: 17px;
}

.large-reading .practical-toc nav[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   11. Chinese Locale Specific Adjustments (zh-CN)
   -------------------------------------------------------------------------- */
html[lang='zh-CN'] .eyebrow {
  letter-spacing: 0.02em;
  font-size: 14px;
}

html[lang='zh-CN'] .brand-name {
  letter-spacing: 0;
}

html[lang='zh-CN'] .brand-name > span {
  font-size: 12px;
  letter-spacing: 0.08em;
}

html[lang='zh-CN'] h1,
html[lang='zh-CN'] h2,
html[lang='zh-CN'] h3 {
  letter-spacing: 0;
}

html[lang='zh-CN'] h2 {
  line-height: 1.5;
}

html[lang='zh-CN'] .home-hero {
  padding-top: 36px;
  padding-bottom: 44px;
  gap: 46px;
}

html[lang='zh-CN'] .hero-copy h1 {
  white-space: pre-line;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.42;
  margin-bottom: 20px;
}

html[lang='zh-CN'] .hero-description {
  font-size: 18px;
  line-height: 1.9;
}

html[lang='zh-CN'] .hero-visual {
  padding-bottom: 0;
}

html[lang='zh-CN'] .hero-image-wrap {
  border-radius: 18px;
}

html[lang='zh-CN'] .hero-image-wrap img {
  height: 320px;
}

html[lang='zh-CN'] .page-intro {
  padding-top: 32px;
  padding-bottom: 24px;
}

html[lang='zh-CN'] .page-intro h1 {
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.45;
}

html[lang='zh-CN'] .article-header h1 {
  line-height: 1.45;
}

html[lang='zh-CN'] .article-content,
html[lang='zh-CN'] .prose-page p {
  line-height: 1.95;
}

html[lang='zh-CN'] .card-copy h3 {
  line-height: 1.55;
}

html[lang='zh-CN'] .article-content table {
  font-size: 15px;
  line-height: 1.85;
}

html[lang='zh-CN'] .worksheet textarea {
  font-family: inherit;
  line-height: 1.8;
}

html[lang='zh-CN'] .table-scroll::after {
  content: none;
}

html[lang='zh-CN'] .guide-library-page .page-intro {
  padding-top: 24px;
  padding-bottom: 24px;
}

html[lang='zh-CN'] .guide-library-page .page-intro > p:last-child {
  margin-bottom: 0;
}

html[lang='zh-CN'] .guide-library-page .library,
html[lang='zh-CN'] .library {
  padding-top: 16px;
}

html[lang='zh-CN'] .guide-library-page .library {
  padding-top: 0;
}

html[lang='zh-CN'] .library-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
  padding: 24px 0;
  margin-bottom: 20px;
}

html[lang='zh-CN'] .library .search-field {
  display: block;
  width: 100%;
  max-width: 600px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

html[lang='zh-CN'] .library .search-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}

html[lang='zh-CN'] .library .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

html[lang='zh-CN'] .library .filter-tabs button {
  min-height: 46px;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 1.5;
  white-space: normal;
}

html[lang='zh-CN'] .library .results-count {
  font-size: 15px;
  margin: 0 0 22px;
}

html[lang='zh-CN'].large-reading .library .filter-tabs button,
html[lang='zh-CN'].large-reading .library .search-field input {
  font-size: 20px;
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints (Desktop -> Tablet -> Mobile)
   -------------------------------------------------------------------------- */
@media (min-width: 1500px) {
  .home-hero {
    padding-block: 88px;
  }

  .hero-image-wrap img {
    height: 430px;
  }

  .hero-copy h1 {
    font-size: 64px;
  }
}

@media (max-width: 1150px) {
  .container {
    width: calc(100% - 60px);
  }

  .header-inner {
    gap: 18px;
  }

  .header-inner nav {
    gap: 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .header-inner nav a {
    font-size: 14px;
  }

  .header-cta {
    padding: 10px 12px;
    font-size: 14px;
  }

  .home-hero {
    gap: 35px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-image-wrap img {
    height: 365px;
  }

  .floating-note {
    margin-left: -15px;
    width: 98%;
    padding: 15px;
  }

  .floating-note strong {
    font-size: 19px;
  }

  .checklist-feature {
    gap: 48px;
    padding: 46px;
  }

  .feature-copy h2,
  .section-heading h2 {
    font-size: 35px;
  }

  .article-layout {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 44px;
  }

  .checklist-layout {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 1100px) {
  .practical-discover .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practical-discover .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 601px) and (max-width: 1000px) {
  html[lang='zh-CN'] .library .filter-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[lang='zh-CN'] .library .filter-tabs button {
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .header-inner {
    height: 82px;
    gap: 10px;
  }

  .header-inner nav {
    gap: 14px;
  }

  .header-inner nav a:nth-child(3),
  .header-inner nav a:nth-child(4) {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .language-switch {
    padding: 8px 12px;
    font-size: 14px;
  }

  html[lang='zh-CN'] .brand-name {
    font-size: 19px;
  }

  html[lang='zh-CN'] .home-hero h1 {
    font-size: 38px;
  }

  .home-hero {
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-image-wrap img {
    height: 320px;
  }

  .floating-note > .icon:first-child {
    width: 26px;
    height: 26px;
    padding: 8px;
  }

  .floating-note strong {
    font-size: 17px;
  }

  .section {
    padding-block: 60px;
  }

  .section-heading {
    gap: 20px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .guide-grid {
    gap: 18px;
  }

  .card-copy {
    padding: 20px;
  }

  .card-art {
    height: 145px;
  }

  .checklist-feature {
    gap: 36px;
    padding: 38px;
  }

  .feature-copy h2 {
    font-size: 31px;
  }

  .home-process {
    gap: 40px;
  }

  .home-process h2 {
    font-size: 35px;
  }

  .resource-band > .container {
    gap: 30px;
  }

  .resource-band h2 {
    font-size: 28px;
  }

  .footer-main {
    gap: 35px;
  }

  .article-header h1,
  .page-intro h1 {
    font-size: clamp(34px, 5vw, 44px);
  }

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

  .article-sidebar {
    position: static;
  }

  .checklist-layout {
    grid-template-columns: 1fr;
  }

  .checklist-sidebar {
    position: static;
  }

  .checklist-sidebar nav,
  .checklist-sidebar > .text-link {
    display: none;
  }

  .progress-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4px 20px;
    padding: 20px 24px;
  }

  .progress-card > .eyebrow {
    margin: 0;
  }

  .progress-card > strong {
    text-align: right;
  }

  .progress-track {
    grid-column: 1 / -1;
    margin-block: 12px;
  }

  .progress-card > p:not(.eyebrow) {
    margin: 0;
  }

  .progress-card > .small-copy {
    text-align: right;
  }

  .checklist-toolbar {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .reading-toolbar {
    justify-content: stretch;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .reading-toggle {
    justify-content: space-between;
    width: 100%;
  }

  .article-header {
    padding-top: 18px;
  }

  .article-header h1,
  .large-reading .article-header h1 {
    font-size: 30px;
  }

  .article-header .article-deck {
    font-size: 18px;
  }

  .large-reading .article-header .article-deck {
    font-size: 21px;
  }

  .article-feature {
    margin-bottom: 24px;
  }

  .article-feature img {
    border-radius: 10px;
    max-height: 280px;
  }

  .article-feature figcaption {
    font-size: 14px;
  }

  .article-content h2 {
    font-size: 25px;
  }

  .large-reading .article-content h2 {
    font-size: 27px;
  }

  .article-content p,
  .practical-article p {
    font-size: 18px;
    line-height: 1.9;
  }

  .large-reading .article-content p,
  .large-reading .practical-article p {
    font-size: 21px;
  }

  .article-content section {
    margin-top: 30px;
    padding-top: 18px;
  }

  .reading-figure {
    margin-inline: 0;
  }

  .reading-figure figcaption {
    padding: 10px 12px 18px;
    gap: 10px;
    font-size: 15px;
  }

  .large-reading .reading-figure figcaption {
    font-size: 18px;
  }

  .observation-diagram {
    padding: 14px;
  }

  .decision-card {
    padding: 18px;
  }

  .decision-card h3 {
    font-size: 20px;
  }

  .easy-reminder {
    padding: 20px;
  }

  .practical-layout {
    display: block;
  }

  .practical-toc {
    position: static;
    background: var(--sage);
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 32px;
  }

  .practical-toc nav {
    gap: 8px;
  }

  .practical-hero {
    padding-inline: 18px;
    margin-bottom: 24px;
  }

  .practical-hero img {
    border-radius: 12px;
  }

  .practical-article .decision-cards,
  .sheet-grid,
  .note-comparison {
    grid-template-columns: 1fr;
  }

  .sheet-card,
  .practical-note {
    padding: 22px;
  }

  .printable-product {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 24px;
  }

  .printable-product h2 {
    font-size: 24px;
  }

  .printable-cover {
    max-width: 240px;
    justify-self: center;
  }

  .printable-description h3 {
    font-size: 25px;
  }

  .printable-description .download-links {
    display: grid;
    gap: 10px;
  }

  .card-art.photo-art {
    height: 200px;
  }

  .article-content .table-scroll::after {
    content: 'Scroll sideways to read every column.';
    display: block;
    font-size: 13px;
    line-height: 1.8;
    padding: 8px 14px;
    color: var(--muted);
  }

  .article-content table {
    font-size: 15px;
  }

  .article-content tbody th,
  .article-content tbody td {
    padding: 14px;
  }

  .worksheet-page form {
    padding: 20px 16px;
  }

  .worksheet-page .page-intro h1 {
    font-size: 30px;
  }

  .worksheet-page h2 {
    font-size: 23px;
  }

  .worksheet-check {
    font-size: 17px;
  }

  .worksheet-table {
    display: block;
    min-width: 0;
  }

  .worksheet-table caption {
    display: block;
  }

  .worksheet-table thead {
    display: none;
  }

  .worksheet-table tbody,
  .worksheet-table tr,
  .worksheet-table td {
    display: block;
    width: 100%;
  }

  .worksheet-table tr {
    padding: 14px;
    border: 1px solid #aebcae;
    border-radius: 10px;
    margin-bottom: 16px;
  }

  .worksheet-table td {
    border: 0;
    padding: 6px 0;
  }

  .worksheet-table .sr-only {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    white-space: normal;
    overflow: visible;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
  }

  .practical-article .easy-step h2 {
    font-size: 23px;
  }

  html[lang='zh-CN'] .home-hero {
    padding-top: 24px;
    padding-bottom: 30px;
    gap: 24px;
  }

  html[lang='zh-CN'] .hero-copy h1 {
    font-size: 32px;
  }

  html[lang='zh-CN'] .hero-image-wrap img {
    height: 230px;
  }

  html[lang='zh-CN'] .page-intro h1 {
    font-size: 30px;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    height: 78px;
    gap: 10px;
    position: relative;
  }

  .brand {
    gap: 9px;
  }

  .brand-symbol {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-mark {
    width: 32px;
  }

  .brand-mark > .icon {
    width: 30px;
    height: 30px;
  }

  .brand-name > span {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .brand-mark > .brand-leaf {
    width: 14px;
    height: 14px;
    right: -5px;
    top: 4px;
  }

  .mobile-menu {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner nav {
    display: none;
  }

  .header-inner nav.open {
    display: flex;
    position: absolute;
    top: 77px;
    left: -18px;
    right: -18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(36, 52, 43, 0.1);
  }

  .header-inner nav.open a {
    display: flex;
    padding: 10px 12px;
    min-height: 44px;
    font-size: 16px;
    border-bottom: 0;
    border-radius: 8px;
  }

  .header-inner nav.open a:hover,
  .header-inner nav.open a[aria-current] {
    background: var(--sage);
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
    padding-bottom: 42px;
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 8.5vw, 48px);
    margin-bottom: 18px;
  }

  .hero-description {
    font-size: 17px;
    max-width: 440px;
    margin-bottom: 24px;
  }

  .hero-buttons {
    gap: 14px;
  }

  .hero-visual {
    margin-inline: 2px;
    padding-bottom: 16px;
  }

  .hero-image-wrap {
    border-radius: 22px;
  }

  .hero-image-wrap img {
    height: 270px;
    object-position: center;
  }

  .floating-note {
    margin-left: -4px;
    width: 96%;
    margin-top: -10px;
    padding: 14px 16px;
  }

  .floating-note strong {
    font-size: 18px;
  }

  .floating-note > .icon:first-child {
    width: 26px;
    height: 26px;
    padding: 10px;
  }

  .values-strip > .container {
    flex-direction: column;
    gap: 12px;
    padding-block: 20px;
    align-items: flex-start;
  }

  .section {
    padding-block: 44px;
  }

  .task-paths {
    padding-top: 40px;
  }

  .home-topic-section {
    padding-bottom: 40px;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .guide-grid,
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .topic-grid > div,
  .download-card {
    padding: 20px;
  }

  .download-links > .button,
  .copy-tool .button {
    width: 100%;
  }

  .checklist-feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 22px;
  }

  .paper-preview {
    max-width: 280px;
    margin-inline: auto;
  }

  .feature-copy h2,
  .home-process h2 {
    font-size: 32px;
  }

  .home-process {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .steps li {
    gap: 18px;
    padding-block: 20px;
  }

  .steps h3 {
    font-size: 23px;
  }

  .resource-band > .container {
    padding-block: 36px;
    display: block;
  }

  .resource-band h2 {
    font-size: 28px;
  }

  .resource-band .button {
    margin-top: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-bottom: 28px;
  }

  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-top: 36px;
  }

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

  .footer-bottom p {
    line-height: 1.8;
  }

  .breadcrumbs {
    padding-top: 20px;
  }

  .page-intro {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .page-intro h1,
  .article-header h1 {
    font-size: 34px;
  }

  .library-tools {
    gap: 16px;
    padding-block: 18px;
  }

  .search-field {
    width: 100%;
  }

  .article-header {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .article-deck {
    font-size: 17px;
  }

  .article-layout {
    padding-top: 24px;
    gap: 0;
  }

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

  .article-sidebar nav,
  .article-sidebar .sidebar-tool,
  .article-sidebar > .eyebrow {
    display: none;
  }

  .quick-take,
  .article-callout,
  .next-action {
    padding: 20px;
  }

  .related-guides .section-heading > .text-link {
    margin-top: 0;
  }

  .related-guides .guide-grid:has(> .guide-card:only-child) {
    grid-template-columns: 1fr;
  }

  .prose-page {
    padding-bottom: 50px;
  }

  .prose-page h2 {
    font-size: 27px;
  }

  .prose-page p {
    font-size: 17px;
  }

  .resource-item {
    gap: 18px;
  }

  .resource-item h3 {
    font-size: 23px;
  }

  .tool-badges {
    gap: 10px 18px;
  }

  .checklist-layout {
    gap: 22px;
    padding-bottom: 50px;
  }

  .progress-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px;
  }

  .progress-card > strong {
    font-size: 24px;
    text-align: left;
  }

  .progress-card > .small-copy {
    text-align: left;
  }

  .checklist-toolbar {
    align-items: flex-start;
    gap: 14px;
  }

  .checklist-guidance {
    padding: 18px;
  }

  .checklist-group h2 {
    font-size: 25px;
  }

  .check-item {
    padding: 18px;
  }

  .check-item-top {
    flex-direction: column;
    gap: 14px;
  }

  .check-item select {
    width: 100%;
  }

  .action-fields {
    grid-template-columns: 1fr 150px;
    gap: 10px;
  }

  .checklist-bottom-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .not-found {
    padding-block: 70px;
  }

  .not-found h1 {
    font-size: 38px;
  }

  th,
  td {
    padding: 12px;
  }

  .checklist-footnote h2 {
    font-size: 25px;
  }
}

@media (max-width: 600px) {
  /* Keep full Chinese brand title readable without single-character orphan wrap */
  html[lang='zh-CN'] .site-header .brand-name {
    font-size: 16px;
    line-height: 1.25;
    white-space: nowrap;
  }

  html[lang='zh-CN'] .site-header .brand-name > span {
    font-size: 12px;
  }

  .guide-sheet-entry .practical-note {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 12px;
  }

  .guide-sheet-entry .practical-note h2 {
    font-size: 22px;
  }

  .guide-sheet-entry .practical-note .button {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .practical-discover .guide-grid {
    grid-template-columns: 1fr;
  }

  .practical-discover .discover-links {
    width: 100%;
  }

  .practical-discover .discover-links .button {
    flex: 1;
  }

  .practical-discover .section-heading {
    gap: 18px;
  }

  .practical-discover .section-heading h2 {
    margin-bottom: 0;
  }

  .worksheet-controls .button {
    flex: 1 1 200px;
    text-align: center;
    justify-content: center;
  }

  html[lang='zh-CN'] .library-tools {
    padding: 18px 0;
    gap: 16px;
  }

  html[lang='zh-CN'] .library .search-field {
    max-width: none;
  }

  html[lang='zh-CN'] .library .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  html[lang='zh-CN'] .library .filter-tabs button {
    justify-content: space-between;
    padding: 11px 14px;
    min-height: 48px;
  }

  html[lang='zh-CN'].large-reading .library .filter-tabs button {
    padding-inline: 12px;
    font-size: 19px;
  }

  .action-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  html[lang='zh-CN'] .site-header .brand-name {
    white-space: normal;
    max-width: 6.2em;
  }
}

/* Keep hidden semantics effective across all responsive/component display rules */
[hidden],
body [hidden],
.practical-toc nav[hidden],
.empty-state[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   13. Reduced Motion Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   14. Print Stylesheet (Consolidated for Guides, Checklists & Worksheets)
   -------------------------------------------------------------------------- */
@media print {
  @page {
    size: auto;
    margin: 14mm;
  }

  body {
    background: white !important;
    color: #111 !important;
    font-family: Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 11pt;
    line-height: 1.45;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .breadcrumbs,
  .language-switch,
  .reading-toolbar,
  .reading-help,
  .checklist-sidebar,
  .checklist-toolbar,
  .storage-note,
  .tool-badges,
  .checklist-bottom-actions,
  .article-sidebar,
  .related-guides,
  .hero-buttons,
  .button,
  .article-meta,
  .copy-tool,
  .download-note,
  .printable-description .download-links,
  .guide-sheet-entry,
  .practical-toc,
  .practical-article .practical-note,
  .practical-article > .sheet-card-links,
  .worksheet-page .breadcrumbs,
  .worksheet-controls,
  .worksheet-links,
  .action-details,
  .hero-visual,
  .values-strip,
  .card-art,
  .paper-preview,
  dialog {
    display: none !important;
  }

  .print-only,
  .print-only.print-header {
    display: block !important;
  }

  .print-notes {
    display: block !important;
    margin-top: 8px;
    font-size: 9pt;
    border-top: 1px solid #aaa;
    padding-top: 6px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .page-intro,
  .article-header {
    padding: 0 0 12px;
  }

  .page-intro .eyebrow {
    display: none;
  }

  .page-intro h1,
  .article-header h1 {
    font-size: 24pt;
    color: #111;
  }

  .page-intro > p {
    font-size: 11pt;
  }

  .checklist-layout,
  .article-layout,
  .practical-layout,
  .topic-grid,
  .guide-grid,
  .home-hero,
  .home-process,
  .checklist-feature {
    display: block;
    padding: 0;
  }

  .checklist-intro {
    display: none;
  }

  .print-header h2 {
    font-size: 18pt;
    margin: 0 0 8px;
  }

  .print-header p {
    font-size: 10pt;
    color: #333;
    margin-bottom: 12px;
  }

  .checklist-guidance {
    background: white;
    border: 1px solid #888;
    padding: 10px;
    margin-bottom: 14px;
  }

  .checklist-guidance strong {
    font-size: 13pt;
    color: #111;
  }

  .checklist-guidance p {
    font-size: 9pt;
    color: #333;
  }

  .checklist-group {
    margin-top: 16px;
  }

  .checklist-group h2 {
    font-size: 15pt;
    margin-bottom: 10px;
    break-after: avoid;
  }

  .check-item,
  .check-item[data-state='attention'],
  .check-item[data-state='okay'] {
    border: 1px solid #999;
    border-radius: 0;
    margin-bottom: 9px;
    padding: 10px;
    break-inside: avoid;
  }

  .check-item-top {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
  }

  .check-item-top label {
    font-size: 10pt;
  }

  .check-item-top p {
    font-size: 8.5pt;
    color: #333;
  }

  .check-item select {
    display: none;
  }

  .print-status {
    font-size: 9pt;
    min-width: 95px;
    text-align: right;
    font-weight: bold;
  }

  .checklist-footnote h2 {
    font-size: 14pt;
  }

  .checklist-footnote p,
  .checklist-footnote .small-copy {
    font-size: 8.5pt;
    color: #333;
  }

  .checklist-footnote a {
    color: #111;
  }

  .article-content section,
  .practical-article section {
    margin-top: 18px;
    break-inside: auto;
  }

  .article-content h2 {
    font-size: 18pt;
    break-after: avoid;
  }

  .article-content p,
  .article-content ul,
  .large-reading .article-content p,
  .prose-page p {
    font-size: 11.5pt !important;
    line-height: 1.6;
    color: #222;
  }

  .article-content .section-evidence {
    font-size: 9.5pt;
  }

  .quick-take,
  .article-callout,
  .next-action {
    background: white;
    border: 1px solid #aaa;
    padding: 14px;
  }

  .article-content details,
  .article-content details > p,
  .practical-sources details {
    display: block;
  }

  .article-feature {
    margin-bottom: 18px;
  }

  .article-feature img {
    max-height: 180px;
    object-fit: contain;
  }

  .observation-diagram,
  .reading-figure,
  .decision-card,
  .easy-reminder,
  .printable-product,
  .topic-grid > div,
  .guide-card,
  .worksheet,
  .practical-detail {
    break-inside: avoid;
  }

  .reading-figure {
    max-width: 360px;
  }

  .reading-figure figcaption {
    font-size: 10.5pt !important;
  }

  .table-scroll,
  .worksheet-table-wrap {
    overflow: visible;
  }

  table,
  .article-content table {
    min-width: 0;
    width: 100%;
    font-size: 9.5pt;
  }

  .article-content tbody th,
  .article-content tbody td,
  .article-content thead th {
    padding: 8px;
  }

  .article-content thead th {
    color: #111;
    background: #e9ece9;
  }

  tr {
    break-inside: avoid;
  }

  .prose-page {
    padding: 0;
  }

  .prose-page h2 {
    font-size: 18pt;
  }

  .section {
    padding-block: 14px;
  }

  .checklist-feature,
  .resource-band {
    background: white;
    padding: 14px;
  }

  .resource-band > .container {
    padding: 14px 0;
  }

  .guide-card {
    margin: 14px 0;
  }

  .printable-cover {
    max-width: 140px;
  }

  .worksheet textarea {
    min-height: 320px;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  /* Practical fill-in worksheets print layout */
  .worksheet-page,
  .worksheet-page .container,
  .worksheet-page form {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: white !important;
    box-shadow: none !important;
  }

  .worksheet-page header.page-intro {
    display: block !important;
    padding: 0 0 5mm !important;
  }

  .worksheet-page header .eyebrow {
    display: block;
    font-size: 10pt !important;
  }

  .worksheet-page h1 {
    font-size: 21pt !important;
    margin: 0 0 4mm !important;
  }

  .worksheet-page header p {
    font-size: 10pt !important;
    line-height: 1.5 !important;
    max-width: none !important;
  }

  .worksheet-page h2 {
    font-size: 15pt !important;
    margin: 4mm 0 !important;
  }

  .worksheet-page p,
  .worksheet-page label,
  .worksheet-page span {
    color: #111 !important;
  }

  .worksheet-page .worksheet-checks > p,
  .worksheet-date,
  .worksheet-record .worksheet-fields > p {
    font-size: 10pt !important;
  }

  .worksheet-check {
    font-size: 12pt !important;
    line-height: 1.5 !important;
    padding: 4mm 0 !important;
    break-inside: avoid;
  }

  .worksheet-check input,
  .worksheet-page textarea {
    display: none !important;
  }

  .worksheet-print-check {
    display: inline !important;
    font-size: 15pt !important;
    min-width: 6mm;
  }

  .worksheet-record {
    break-before: page;
    margin: 0 !important;
  }

  .worksheet-fields {
    gap: 5mm;
  }

  .worksheet-field {
    break-inside: avoid;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  .worksheet-print-value {
    display: block !important;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-height: 18mm;
    border-bottom: 1px solid #777;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    font-weight: 400;
  }

  .worksheet-page .worksheet-footer {
    font-size: 8pt !important;
    line-height: 1.5 !important;
    margin-top: 5mm !important;
    padding-top: 3mm !important;
    break-before: avoid;
  }

  .worksheet-table {
    min-width: 0;
    width: 100%;
    font-size: 10pt;
    break-inside: auto;
  }

  .worksheet-table tr {
    break-inside: avoid;
  }

  .worksheet-table th {
    font-size: 10pt !important;
  }

  .worksheet-table td {
    padding: 2mm;
  }

  .worksheet-table .worksheet-print-value {
    min-height: 10mm;
    border: 0;
    font-size: 10pt !important;
  }

  .worksheet-table caption {
    font-size: 11pt;
  }

  [data-sheet-type='medication-list'] .worksheet-fields {
    gap: 3mm;
  }

  [data-sheet-type='medication-list'] .worksheet-print-value {
    min-height: 10mm;
  }

  [data-sheet-type='medication-list'] .worksheet-table .worksheet-print-value {
    min-height: 7mm;
  }

  [data-sheet-type='medication-list'] .worksheet-table-wrap {
    break-inside: avoid;
  }

  .practical-hero {
    max-width: 130mm;
  }

  .practical-detail {
    max-width: 120mm;
  }
}
