@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dm-sans-regular.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('../fonts/dm-sans-bold.ttf') format('truetype'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/lora.ttf') format('truetype'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 500 700; font-display: swap; src: url('../fonts/lora-italic.ttf') format('truetype'); }
:root {
  --brand-slate: #333c35; --brand-cyan: #657858; --brand-mist: #f8f7f2;
  --brand-navy: #343e35; --brand-orange: #b84a2f;
  --green-950: #26392d; --green-800: #4b6148; --green-700: #546d4d;
  --paper: #fbfaf6; --surface: #f4f3ed; --surface-raised: #fffefa;
  --ink: #333c35; --muted: #636960; --line: #dedfd5; --line-strong: #b9bcae;
  --action-bg: #b84a2f; --action-bg-hover: #9e3c25; --action-fg: #fff;
  --amber: #b84a2f; --success: #47623f; --focus: #b84a2f;
  --font: 'DM Sans', system-ui, sans-serif; --content: 1220px;
  --shadow: 0 14px 35px #26392d0c; --shadow-soft: 0 6px 18px #26392d08;
  --radius: .75rem; --radius-lg: 1rem; --radius-sm: .4rem;
}
html[data-theme='dark'] {
  --green-950: #eef0e5; --green-800: #c0cfb1; --green-700: #c0cfb1;
  --paper: #1e2521; --surface: #28312a; --surface-raised: #303a32;
  --ink: #eceee6; --muted: #c0c8ba; --line: #465143; --line-strong: #64745e;
  --action-bg: #d96b4d; --action-bg-hover: #e98063; --action-fg: #18201a;
  --amber: #e98a6b; --success: #b7cf9b; --focus: #ffc396;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) { --green-950: #eef0e5; --green-800: #c0cfb1; --green-700: #c0cfb1; --paper: #1e2521; --surface: #28312a; --surface-raised: #303a32; --ink: #eceee6; --muted: #c0c8ba; --line: #465143; --line-strong: #64745e; --action-bg: #d96b4d; --action-bg-hover: #e98063; --action-fg: #18201a; --amber: #e98a6b; --success: #b7cf9b; --focus: #ffc396; }
}
html { scroll-padding-top: 100px; }
html[data-text-size='large'] { font-size: 19px; }
body { font-size: 1rem; line-height: 1.65; }
h1, h2 { letter-spacing: -.035em; }
p { color: var(--muted); }
.site-header { background: var(--paper); backdrop-filter: none; }
.header-inner { min-height: 88px; gap: 1.5rem; }
.brand { gap: .6rem; font-family: 'Lora', Georgia, serif; font-size: 1.7rem; font-weight: 600; letter-spacing: -.065em; }
.brand::before { content: ''; display: block; width: 30px; height: 30px; background: url('../img/favicon.svg') center / contain no-repeat; }
.brand span { border: 0; padding: 0; }
.main-nav { gap: .35rem; }
.main-nav a { padding: .65rem .7rem; font-size: .88rem; font-weight: 500; border-radius: .4rem; min-height: 44px; }
.main-nav a[aria-current='page'] { background: transparent; color: var(--amber); }
.header-actions { flex-wrap: nowrap; gap: .65rem; }
.reading-button { display: flex; gap: .4rem; align-items: center; justify-content: center; border: 0; background: transparent; min-width: 44px; min-height: 44px; font-size: 1.15rem; padding: .4rem; color: var(--ink); }
.reading-button span { font-size: .76rem; white-space: nowrap; }
.reading-button[aria-pressed='true'] { background: var(--surface); outline: 1px solid var(--line-strong); border-radius: .4rem; }
.icon-button { width: 44px; height: 44px; background: transparent; border-color: var(--line); }
.button, button.button { border-radius: .5rem; min-height: 48px; padding: .8rem 1.25rem; font-weight: 600; font-size: .95rem; }
.button.small, button.button-small { min-height: 44px; font-size: .9rem; }
.button.button-secondary { background: var(--surface); color: var(--green-950); border-color: var(--line-strong); }
.button.button-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.button.secondary { background: transparent; }
.text-link { color: var(--green-950); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; }
.text-link:hover { color: var(--amber); text-decoration: underline; }
.small-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--green-800); line-height: 1.5; margin-bottom: 1.5rem; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: var(--green-800); border-radius: 50%; margin-right: .5rem; }
.welcome-section { padding: 72px 0 68px; overflow: hidden; }
.welcome-layout { display: flex; gap: 5%; align-items: center; }
.welcome-copy { width: 51%; }
.welcome-copy h1 { font-family: 'Lora', Georgia, serif; font-size: clamp(3.3rem, 5.05vw, 4.65rem); font-weight: 500; line-height: 1.1; margin-bottom: 1.7rem; letter-spacing: -.05em; }
.welcome-copy h1 em { color: var(--amber); font-weight: 500; }
.welcome-lead { font-size: 1.075rem; line-height: 1.8; max-width: 485px; margin-bottom: 1.65rem; }
.welcome-actions { display: flex; gap: 1.55rem; align-items: center; flex-wrap: wrap; }
.welcome-assurance { display: flex; gap: .5rem; align-items: flex-start; margin: 1.6rem 0 0; font-size: .78rem; }
.welcome-assurance svg { width: 18px; height: 20px; flex: 0 0 18px; color: var(--green-800); }
.notebook-scene { width: 44%; position: relative; padding: 42px 0 40px; }
.notebook-scene::before { content: ''; background: var(--surface); position: absolute; inset: 0 -24px -10px 22px; border-radius: 50% 50% 40% 38%; z-index: -1; transform: rotate(-9deg); }
.scene-caption { display: flex; align-items: center; gap: .65rem; font-size: .62rem; color: var(--green-800); font-weight: 600; letter-spacing: .13em; margin: -24px 0 35px 20px; }
.mini-cross { font-size: 1.2rem; color: var(--amber); }
.notebook-tab { position: absolute; top: 67px; right: 28px; background: #54694d; color: #fff; font-size: .7rem; border-radius: .35rem .35rem 0 0; padding: .55rem 1.1rem; transform: rotate(-2deg); }
.notebook { background: var(--surface-raised); border: 1px solid var(--line); padding: 25px 28px 12px; border-radius: .65rem; box-shadow: 0 16px 45px #26392d0d; transform: rotate(-2deg); position: relative; }
.notebook::before { content: ''; position: absolute; top: 0; bottom: 0; left: 12px; width: 1px; background: var(--line); opacity: .5; }
.notebook-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; font-size: .75rem; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.notebook-top > span:first-child { font-weight: 600; }
.demo-badge { font-size: .58rem; background: var(--surface); border: 1px solid var(--line); color: var(--muted); padding: .15rem .4rem; border-radius: .25rem; }
.notebook-heading { padding: 22px 0 17px; }
.notebook-heading > span { display: block; font-size: .55rem; letter-spacing: .14em; color: var(--muted); margin-bottom: .45rem; }
.notebook-heading > strong { font-family: 'Lora', Georgia, serif; font-size: 1.25rem; font-weight: 500; color: var(--green-950); }
.notebook-balance { background: var(--surface); padding: 16px 18px; border-radius: .5rem; }
.notebook-balance > span { display: block; font-size: .66rem; color: var(--green-800); }
.notebook-balance > strong { font-size: 2.3rem; display: block; color: var(--green-950); letter-spacing: -.04em; line-height: 1.5; font-weight: 500; }
.notebook-balance strong span { font-size: 1.3rem; color: var(--muted); }
.notebook-totals { display: flex; gap: 2rem; padding: 19px 8px; }
.notebook-totals div { flex: 1; }
.notebook-totals span { font-size: .68rem; display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.notebook-totals strong { display: block; font-size: .9rem; margin-top: .3rem; color: var(--green-950); }
.entry-dot, .exit-dot { width: 5px; height: 5px; background: #5b7154; display: inline-block; border-radius: 50%; }
.exit-dot { background: #b84a2f; }
.notebook-records > div { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 11px 0; font-size: .68rem; }
.notebook-records > div > strong { font-weight: 500; }
.notebook-records > div:last-child { font-size: .61rem; color: var(--green-800); }
.check-circle { background: var(--surface); border-radius: 50%; padding: .1rem .35rem; }
.paper-note { background: var(--surface-raised); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: .5rem; padding: 16px 19px; display: flex; align-items: center; gap: 13px; position: relative; margin: -12px -12px 0 40px; transform: rotate(2deg); }
.paper-note svg { width: 27px; height: 27px; color: var(--amber); flex-shrink: 0; }
.paper-note strong { font-size: .76rem; display: block; font-weight: 600; }
.paper-note div span { display: block; font-size: .65rem; color: var(--muted); }
.paper-note a { font-size: 1.4rem; margin-left: auto; text-decoration: none; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.promise-strip { border-block: 1px solid var(--line); background: var(--surface); }
.promise-strip .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: 20px; }
.promise-strip span { font-size: .8rem; color: var(--green-800); }
.promise-strip b { font-weight: 400; margin-right: .5rem; }
.start-section { padding: 74px 0; }
.section-intro { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; margin-bottom: 32px; }
.section-intro h2, .resource-copy h2, .gentle-layout h2 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 2.25rem; line-height: 1.25; margin: 0; }
.section-intro .small-label { margin-bottom: .8rem; }
.section-intro > p { font-size: .9rem; margin: 0; }
.path-cards { display: flex; gap: 18px; }
.path-card { flex: 1; padding: 28px 28px 21px; border: 1px solid var(--line); border-radius: .75rem; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; background: var(--surface-raised); transition: transform 150ms ease, border-color 150ms ease; }
.church-path { background: var(--surface); }
.path-card:hover { transform: translateY(-4px); border-color: var(--green-800); color: var(--ink); }
.path-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 26px; }
.path-icon svg { width: 35px; height: 35px; color: var(--green-800); }
.paper-path .path-icon svg { color: var(--amber); }
.path-tag { font-size: .55rem; letter-spacing: .08em; color: var(--muted); }
.path-card h3 { font-family: 'Lora', Georgia, serif; font-size: 1.6rem; font-weight: 500; margin-bottom: 12px; }
.path-card p { font-size: .9rem; line-height: 1.8; margin-bottom: 24px; }
.path-link { display: flex; justify-content: space-between; font-weight: 600; font-size: .82rem; padding: 17px 0 3px; border-top: 1px solid var(--line); margin-top: auto; }
.resource-section { background: var(--surface); padding: 64px 0; border-block: 1px solid var(--line); }
.resource-layout { display: flex; gap: 8%; align-items: center; }
.resource-copy { width: 35%; }
.resource-copy .small-label { margin-bottom: 1rem; }
.resource-copy h2 { font-size: 2.6rem; margin-bottom: 1.15rem; }
.resource-copy p { font-size: .95rem; }
.resource-footnote { display: block; margin-top: 14px; font-size: .7rem; color: var(--muted); }
.featured-resources { flex: 1; }
.featured-resource { display: flex; align-items: center; gap: 18px; padding: 27px 4px; border-bottom: 1px solid var(--line-strong); text-decoration: none; }
.featured-resource:first-child { border-top: 1px solid var(--line-strong); }
.featured-resource:hover h3 { color: var(--amber); }
.resource-number { font-family: 'Lora', Georgia, serif; font-size: 1.1rem; color: var(--muted); }
.featured-resource > div { flex: 1; }
.featured-resource h3 { font-size: 1.05rem; font-weight: 500; margin: 0 0 6px; }
.featured-resource p { margin: 0; font-size: .8rem; }
.free-tag { font-size: .65rem; border: 1px solid var(--line-strong); padding: .18rem .55rem; border-radius: 20px; color: var(--green-800); }
.gentle-section { padding: 82px 0; }
.gentle-layout { display: flex; gap: 8%; align-items: center; }
.gentle-layout > div { width: 51%; }
.gentle-layout h2 { margin-bottom: 1.2rem; }
.gentle-layout > div > p:not(.small-label) { max-width: 490px; font-size: .95rem; }
.gentle-steps { flex: 1; padding: 0; margin: 0; list-style: none; }
.gentle-steps li { display: flex; gap: 20px; padding: 20px 0; }
.gentle-steps li > span { display: grid; place-items: center; background: var(--surface); color: var(--green-800); width: 39px; height: 39px; flex: 0 0 39px; border-radius: 50%; font-size: .9rem; }
.gentle-steps h3 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.gentle-steps p { font-size: .85rem; margin: 0; }
.community-section { background: var(--surface); border-block: 1px solid var(--line); padding: 62px 0 40px; }
.community-inner { max-width: 900px; text-align: center; }
.community-inner h2 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.45; margin-bottom: 1rem; }
.community-inner h2 em { font-weight: 500; color: var(--amber); }
.community-inner > p:not(.small-label) { max-width: 590px; font-size: .9rem; margin: 0 auto 1rem; }
.sibling-links { display: flex; justify-content: center; gap: 3rem; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 26px; }
.sibling-links a { text-decoration: none; text-align: left; }
.sibling-links strong { font-size: 1.25rem; letter-spacing: -.055em; display: block; }
.sibling-links span { font-size: .75rem; color: var(--muted); }
.local-note { padding: 38px 0; }
.local-note .container { display: flex; gap: 22px; align-items: center; }
.local-note svg { width: 32px; height: 35px; flex: 0 0 32px; color: var(--green-800); }
.local-note div div { flex: 1; }
.local-note h3 { font-size: .95rem; margin-bottom: 7px; }
.local-note p { font-size: .78rem; margin: 0; max-width: 720px; }
.local-note a { white-space: nowrap; font-size: .78rem; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 38px 0 20px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-grid .brand { font-size: 1.5rem; }
.footer-grid p { font-size: .78rem; margin: 13px 0 3px; }
.footer-grid small { font-size: .7rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: 540px; gap: .4rem 1.5rem; }
.footer-links a { font-size: .8rem; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 17px; font-size: .64rem; color: var(--muted); }
.section-heading > h1, body:not(.app-page) .section-heading h1 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: clamp(2.3rem, 4.5vw, 3.6rem); }
.section-heading { max-width: 800px; }
.app-page .section-heading { max-width: none; }
.library-heading { padding: 56px 0 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.library-heading h1 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: clamp(2.4rem, 4.5vw, 3.5rem); margin-bottom: 17px; }
.library-heading > .container > p:not(.small-label) { max-width: 620px; font-size: 1rem; }
.library-assurance { display: inline-flex; gap: .5rem; color: var(--green-800); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 14px; }
.library-body { padding: 34px 0 64px; }
.library-controls { display: flex; gap: 1rem; align-items: end; margin-bottom: 22px; }
.library-controls .field { width: 290px; }
.library-controls .field:last-child { flex: 1; max-width: 520px; margin-left: auto; }
.template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.template-card { padding: 24px; border-radius: .7rem; background: var(--surface-raised); }
.template-card .card-icon { display: none; }
.template-card .badge { width: fit-content; margin-bottom: 13px; font-size: .72rem; background: var(--surface); color: var(--green-800); }
.template-card h2 { font-size: 1.2rem; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.template-card p, .template-card .rich-content { font-size: .92rem; line-height: 1.7; }
.template-card small { display: block; font-size: .8rem; margin-bottom: 18px; }
.template-card .button-row { gap: 8px; }
.template-card .button-row .button { font-size: .8rem; padding: .6rem .8rem; }
.template-card .template-preview { border: 0; background: transparent; color: var(--green-800); min-height: 44px; display: block; font-size: .82rem; margin-top: 10px; padding: 6px 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.download-guide { margin-bottom: 24px; font-size: .83rem; }
.download-guide summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--green-800); }
.download-guide p { max-width: 700px; }
.template-preview-dialog { width: min(900px, calc(100% - 24px)); }
.preview-sheet { overflow-x: auto; border: 1px solid var(--line); }
.preview-sheet table { min-width: 620px; width: 100%; border-collapse: collapse; }
.preview-sheet th, .preview-sheet td { border: 1px solid var(--line); padding: 10px; font-size: .8rem; }
.preview-sheet th { background: var(--surface); color: var(--ink); }
.sheet-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 20px 0 14px; }
.sheet-tabs button { border: 1px solid var(--line); border-radius: .3rem; background: var(--surface); padding: 10px 14px; min-height: 44px; font-size: .8rem; }
.sheet-tabs button[aria-pressed='true'] { border-color: var(--green-800); font-weight: 700; }
.onboarding-note { border: 1px solid var(--line); background: var(--surface); border-radius: .6rem; padding: 18px 20px; margin-bottom: 25px; }
.onboarding-note h2 { font-size: 1rem; margin: 0 0 10px; }
.onboarding-note p { font-size: .85rem; margin-bottom: 10px; }
.onboarding-note .button-row { gap: 8px; }
.onboarding-note .button { font-size: .8rem; }
.onboarding-note summary { cursor: pointer; min-height: 44px; font-size: .85rem; color: var(--green-800); padding-block: 10px; }
.app-page h1, .app-main h1 { font-family: 'DM Sans', sans-serif; font-size: 2rem !important; font-weight: 500; letter-spacing: -.04em; }
.app-main h2, .app-page h2 { font-family: 'DM Sans', sans-serif; }
.metric-value { font-weight: 500; letter-spacing: -.04em; }
.metric-card, .panel { box-shadow: none; background: var(--surface-raised); border-color: var(--line); }
.metric-primary { background: var(--green-950); }
.metric-primary h2, .metric-primary p, .metric-primary small { color: var(--paper); }
.side-nav .nav-item { min-height: 48px; font-size: .87rem; }
.side-nav .nav-item.is-active { background: var(--surface); color: var(--green-950); border-left: 3px solid var(--amber); }
.field input, .field select, .field textarea, label > input:not([type='checkbox']):not([type='radio']), label > select { min-height: 48px; }
.field label, label { font-size: .92rem; }
dialog { background: var(--surface-raised); color: var(--ink); border-color: var(--line); border-radius: .8rem; }
dialog::backdrop { background: #17251bc4; backdrop-filter: blur(3px); }
dialog h2 { font-size: 1.45rem; }
.dialog-card > label { display: grid; gap: 7px; margin-block: 15px; }
.dialog-card > label input, .dialog-card > label select { border: 1px solid var(--line-strong); background: var(--paper); border-radius: .4rem; padding: 10px; width: 100%; }
.security-intro { max-width: 780px; padding-top: 45px; }
.data-center-section { padding-top: 25px; }
.danger-zone { border-style: dashed; }
.mobile-nav summary { min-height: 44px; min-width: 44px; border-radius: .4rem; }
.mobile-nav nav { background: var(--surface-raised); }
.mobile-nav nav a { min-height: 48px; font-size: 1rem; }
@media (min-width: 1100px) { .main-nav { display: flex; } }
@media (max-width: 1150px) { .reading-button span { display: none; } .header-inner { gap: 1rem; } }
@media (max-width: 960px) {
  .welcome-section { padding: 45px 0; }
  .welcome-layout { gap: 4%; }
  .welcome-copy h1 { font-size: 3.35rem; }
  .notebook { padding: 22px 20px 10px; }
  .scene-caption { font-size: .5rem; letter-spacing: .07em; }
  .path-card { padding: 23px 20px; }
  .path-card-top { align-items: flex-start; flex-direction: column; gap: 15px; }
  .resource-layout { gap: 5%; }
  .resource-copy { width: 39%; }
  .section-intro h2, .gentle-layout h2 { font-size: 1.9rem; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 74px; gap: .5rem; }
  .brand { font-size: 1.5rem; }
  .brand::before { width: 26px; height: 26px; }
  .header-actions { gap: .25rem; }
  .welcome-layout { display: block; }
  .welcome-copy { width: 100%; }
  .welcome-copy h1 { font-size: clamp(2.9rem, 11vw, 4rem); }
  .welcome-lead { font-size: 1rem; max-width: 540px; }
  .welcome-section { padding: 39px 0 36px; }
  .welcome-copy .small-label { font-size: .62rem; }
  .welcome-actions { gap: 10px 18px; }
  .welcome-assurance { font-size: .72rem; }
  .notebook-scene { width: min(100%, 450px); margin: 40px auto 0; padding-bottom: 20px; }
  .scene-caption { font-size: .55rem; margin-bottom: 36px; }
  .notebook-tab { top: 68px; }
  .notebook { padding: 24px 27px 12px; }
  .paper-note { margin-left: 16px; margin-right: 0; padding: 13px; }
  .promise-strip .container { flex-wrap: wrap; justify-content: flex-start; gap: 9px; padding-block: 17px; }
  .promise-strip span { flex: 1 1 100%; font-size: .78rem; }
  .start-section { padding: 45px 0; }
  .section-intro { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 23px; }
  .section-intro > p br { display: none; }
  .section-intro h2 { font-size: 2rem; }
  .path-cards { flex-direction: column; gap: 14px; }
  .path-card { padding: 23px; }
  .path-card-top { flex-direction: row; align-items: center; margin-bottom: 18px; }
  .path-tag { font-size: .6rem; }
  .path-card p { margin-bottom: 14px; }
  .resource-section { padding: 42px 0; }
  .resource-layout { display: block; }
  .resource-copy { width: 100%; }
  .resource-copy h2 { font-size: 2.2rem; }
  .resource-copy h2 br { display: none; }
  .featured-resources { margin-top: 30px; }
  .featured-resource { gap: 12px; padding: 24px 0; }
  .featured-resource h3 { font-size: .98rem; }
  .featured-resource p { font-size: .77rem; }
  .gentle-section { padding: 45px 0; }
  .gentle-layout { display: block; }
  .gentle-layout > div { width: 100%; }
  .gentle-steps { margin-top: 20px; }
  .community-section { padding: 42px 0 30px; }
  .sibling-links { gap: 25px; flex-wrap: wrap; }
  .sibling-links span { font-size: .68rem; }
  .local-note .container { flex-wrap: wrap; gap: 14px; }
  .local-note div div { flex: 1; min-width: 230px; }
  .local-note a { margin-left: 46px; }
  .footer-grid { flex-direction: column; gap: 22px; }
  .footer-links { justify-content: flex-start; gap: 0 24px; }
  .footer-bottom { flex-direction: column; font-size: .65rem; gap: 6px; }
  .library-controls { flex-direction: column; align-items: stretch; }
  .library-controls .field, .library-controls .field:last-child { width: 100%; max-width: none; }
  .template-grid { grid-template-columns: minmax(0, 1fr); }
  .template-card { padding: 22px; }
  .library-heading { padding-top: 37px; }
  .app-page h1, .app-main h1 { font-size: 1.7rem !important; }
  .app-tabs { flex-wrap: wrap; overflow: visible; }
  .app-tabs button { min-height: 44px; }
  .app-page .side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 12px; }
  .side-nav .nav-item { white-space: normal; padding: 10px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .path-card:hover, .button:hover { transform: none; } }

/* The support page previously used an inverted footer; keep the shared surface. */
body .site-footer { background: var(--surface); color: var(--ink); }
body .site-footer p, body .site-footer small, body .site-footer .footer-bottom { color: var(--muted); }
body .site-footer .brand, body .site-footer a { color: var(--green-950); }
body .site-footer a:hover { color: var(--amber); }
@media (min-width: 960px) { .app-page .side-nav { top: 88px; height: calc(100vh - 88px); } }

.landing-page .site-footer { background: var(--surface); border-color: var(--line); }
.landing-page .site-footer .brand, .landing-page .site-footer a { color: var(--green-950); }
.landing-page .site-footer .muted { color: var(--muted); }
