/* China Business Calendar. Design tokens copied from the China Load Risk Scanner (dminorstudio brand).
   Mobile first: no horizontal page scroll at 375px. Colour is never the only cue: every event type also has a shape or text. */
:root {
  color-scheme: light;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "PingFang TC", "Microsoft YaHei", "Microsoft JhengHei", sans-serif;

  --white: #ffffff;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --sky-700: #0369a1;
  --sky-50: #f0f9ff;
  --panel: #efefef;
  --teal: #003333;
  --teal-text: #23595b;
  --teal-100: #cbe7e7;
  --teal-50: #f0fafa;
  --cyan-200: #a5f3fc;
  --cyan-50: #ecfeff;
  --brand-teal: #1590b0;
  --brand-teal-dark: #0e7490;
  --orange: #e85b23;
  --orange-dark: #c2410c;
  --blue: #1083c5;
  --blue-dark: #0b6aa3;
  --logo-blue: #4ea1e1;
  --logo-orange: #e77d3f;

  /* event colours (each paired with a shape) */
  --ev-cn: #dc2626;
  --ev-tw: #7c3aed;
  --ev-work: #0f766e;
  --ev-fair: #d97706;
  --ev-guide: #64748b;
  --avoid: #b91c1c; --avoid-bg: #fee2e2;
  --caution: #a16207; --caution-bg: #fef9c3;
  --good: #065f46; --good-bg: #ecfdf5;

  --radius: 0.25rem;
  --radius-lg: 0.375rem;
  --shadow: 0 1px 3px rgb(2 6 23 / 0.06), 0 1px 2px rgb(2 6 23 / 0.04);
  --shadow-card: 0 18px 40px -14px rgb(2 6 23 / 0.35), 0 2px 6px rgb(2 6 23 / 0.08);
  --focus: 0 0 0 3px rgb(14 165 233 / 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; color: var(--slate-600); background: var(--white); overflow-wrap: break-word; }
h1, h2, h3, h4, h5 { color: var(--teal); line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: 3rem; line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; margin-top: 1.75rem; }
h5 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.375rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; border-radius: 2px; }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 50rem; }
.section { padding-block: 4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.muted { color: var(--slate-500); }
.d-block { display: block; font-weight: 400; font-size: 0.9375rem; }
.zh { font-weight: 400; color: var(--slate-500); }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 10; background: var(--slate-950); color: var(--white); padding: 0.5rem 1rem; border-radius: 9999px; }
.skip-link:focus { top: 1rem; color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0.625rem 1.5rem; border: 0; border-radius: 9999px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--sky-500); color: var(--white); }
.btn-primary:hover { background: var(--sky-700); color: var(--white); }
.btn-dark { background: var(--brand-teal-dark); color: var(--white); }
.btn-dark:hover { background: var(--teal); color: var(--white); }
.btn-accent { background: var(--orange); color: var(--white); }
.btn-accent:hover { background: var(--orange-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--slate-800); box-shadow: inset 0 0 0 1px var(--slate-300); }
.btn-outline:hover { color: var(--blue-dark); box-shadow: inset 0 0 0 1px var(--blue); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1.125rem; }
.btn:disabled { opacity: 0.7; cursor: progress; }

/* Header (shared with the other dminorstudio tools) */
.site-header { background: var(--white); border-bottom: 1px solid var(--slate-200); position: relative; z-index: 3; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; }
.brand img { width: 146px; height: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-weight: 600; color: var(--slate-950); text-decoration: none; }
.nav-link:hover { color: var(--brand-teal-dark); }
.nav-menu { position: relative; }
.nav-menu-btn { font: inherit; font-weight: 600; color: var(--orange); background: none; border: 0; padding: 0.5rem 0; display: inline-flex; align-items: center; gap: 0.375rem; cursor: pointer; }
.nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"] { color: var(--orange-dark); }
.nav-menu-btn svg { transition: transform .15s; }
.nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-menu-list { position: absolute; right: 0; top: calc(100% + 0.5rem); width: 20rem; list-style: none; margin: 0; padding: 0.5rem; background: var(--white); border: 1px solid var(--slate-200); border-radius: 0.5rem; box-shadow: 0 18px 40px -14px rgb(2 6 23 / 0.3); z-index: 20; }
.nav-menu-list a { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.625rem 0.75rem; border-radius: var(--radius-lg); text-decoration: none; }
.nav-menu-list a:hover, .nav-menu-list a:focus-visible { background: rgb(232 91 35 / 0.08); }
.nav-menu-list a:hover strong, .nav-menu-list a:focus-visible strong { color: var(--orange-dark); }
.nav-menu-list strong { color: var(--slate-800); font-size: 0.9375rem; }
.nav-menu-list span { color: var(--slate-600); font-size: 0.8125rem; line-height: 1.4; }

/* Hero: light grid with cyan glow, copy left, live preview card right */
.hero { background:
    linear-gradient(rgb(14 116 144 / 0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgb(14 116 144 / 0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(60% 80% at 88% 20%, rgb(165 243 252 / 0.75), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgb(203 231 231 / 0.8), transparent 70%);
  color: var(--slate-600); padding-block: 3.5rem 8rem; }
.hero h1 { color: var(--teal); }
.hero .lead { font-size: 1.25rem; max-width: 44rem; color: var(--slate-700); }
.hero a { color: var(--brand-teal-dark); }
.hero-sm { padding-block: 3rem 3rem; }
.hero-sm h1 { font-size: 2.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.875rem; color: var(--brand-teal-dark); }
.eyebrow a { color: inherit; text-decoration: none; }
.hero-meta { font-size: 0.875rem; color: var(--slate-500); margin-top: 0.75rem; }
.hero-sm .lead { font-size: 1.125rem; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 500; font-size: 0.9375rem; color: var(--slate-700); }
.trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust svg { color: var(--brand-teal-dark); flex: none; }
.pending-note { font-size: 0.9375rem; color: var(--slate-700); background: #fef9c3; border-left: 4px solid #ca8a04; padding: 0.625rem 0.875rem; border-radius: var(--radius); margin: 1.25rem 0; max-width: 44rem; }
.pending-note strong { color: #854d0e; }

.preview-card { background: var(--white); border: 1px solid var(--teal-100); border-radius: 0.5rem; padding: 1.25rem; box-shadow: 0 24px 48px -20px rgb(0 51 51 / 0.35); transform: rotate(1.5deg); }
.preview-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); margin: 0 0 0.5rem; }
.next-closure { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin: 0 0 1rem; }
.nc-card { background: var(--cyan-50); border-radius: var(--radius-lg); padding: 0.75rem 1rem; }
.nc-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-teal-dark); margin-bottom: 0.125rem; }
.nc-body { margin: 0; display: grid; gap: 0.125rem; }
.nc-name { color: var(--teal); font-size: 1rem; }
.nc-when { color: var(--orange-dark); font-weight: 700; font-size: 1.125rem; }
.nc-dates, .nc-wd { font-size: 0.8125rem; color: var(--slate-600); }
.preview-month .month table { font-size: 0.75rem; }
.preview-month .day { height: 2rem; }

/* Two-panel tool that overlaps the hero */
.planner { margin-top: -6rem; position: relative; padding-bottom: 3rem; }
.panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); border-radius: 0.5rem; box-shadow: 0 18px 40px -14px rgb(0 51 51 / 0.3), 0 2px 6px rgb(0 51 51 / 0.06); border: 1px solid var(--slate-200); }
.panel { padding: 1.75rem; min-width: 0; }
.panel + .panel { border-left: 1px solid var(--slate-200); }
.panel-title { display: flex; align-items: center; gap: 0.625rem; font-size: 1.25rem; }
.num { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--brand-teal-dark); color: var(--white); font-size: 0.875rem; font-weight: 700; flex: none; }
.panel-sub { color: var(--slate-600); }
.panel .btn-primary { width: 100%; }
.placeholder { text-align: center; padding: 2.5rem 0 1rem; color: var(--slate-700); }
.ph-days { display: inline-flex; border: 1px solid var(--teal-100); margin-bottom: 1rem; }
.ph-days span { width: 3rem; height: 2.5rem; display: grid; place-items: center; border-right: 1px solid var(--teal-100); font-size: 0.875rem; color: var(--teal-text); }
.ph-days span:last-child { border-right: 0; }
.ph-off { background: var(--avoid-bg); color: var(--avoid) !important; font-weight: 700; }
.ph-work { background: #ccfbf1; font-weight: 700; text-decoration: underline; }
.plan-full { margin-top: 1.5rem; }
.plan-full .full-plan { margin: 0; border: 0; padding: 0; }

/* Cards and forms */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 2rem; border: 1px solid var(--slate-200); }
.field { display: grid; gap: 0.25rem; margin-bottom: 0.75rem; }
label, legend { font-weight: 600; color: var(--slate-800); }
input[type="date"], input[type="email"], input[type="number"], select {
  font: inherit; color: var(--slate-900); min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid var(--slate-300); border-radius: var(--radius); background: var(--white); width: 100%;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 1px; }
.date-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 0.75rem; align-items: end; }
.date-row:first-child { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.btn-remove { font: inherit; font-size: 0.875rem; min-height: 44px; margin-bottom: 0.75rem; background: none; border: 1px solid var(--slate-300); border-radius: 9999px; padding: 0 0.875rem; color: var(--slate-700); cursor: pointer; }
.regions { border: 0; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.regions legend { margin-bottom: 0.25rem; }
.regions label, .filters label { font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { width: 1.125rem; height: 1.125rem; accent-color: var(--sky-500); flex: none; }
.error { color: var(--avoid); font-weight: 600; margin: 0.25rem 0 0.75rem; }
.free-result { margin: 0; }
.free-lines { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.free-lines li { display: flex; gap: 0.625rem; padding: 0.75rem 1rem; border-radius: var(--radius); }
.line-clash { background: var(--avoid-bg); color: var(--slate-900); }
.line-ok { background: var(--good-bg); color: var(--slate-900); }
.line-mark { font-weight: 700; flex: none; width: 1.25rem; text-align: center; }
.teaser { color: var(--slate-800); }
.gate { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 1.25rem; }
.check { display: flex; gap: 0.625rem; align-items: flex-start; margin: 0.5rem 0; }
.check input { margin-top: 0.3rem; }
.check label { font-weight: 400; color: var(--slate-700); }
.fine { font-size: 0.875rem; color: var(--slate-500); }
.gate .btn { width: 100%; }
.gate-status { margin: 0.75rem 0 0; min-height: 1.5em; }
.gate-status.is-error { color: var(--avoid); font-weight: 600; }

/* Full plan */
.full-plan { margin-top: 1.75rem; border-top: 1px solid var(--slate-200); padding-top: 1.5rem; }
.full-plan:focus { outline: none; }
.plan-title { font-size: 1.5rem; }
.clash-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.clash { padding: 0.625rem 0.875rem; border-radius: var(--radius); background: var(--slate-50); border-left: 4px solid var(--slate-300); }
.clash-holiday { border-left-color: var(--ev-cn); }
.clash-fair { border-left-color: var(--ev-fair); }
.clash-guidance { border-left-color: var(--ev-guide); border-left-style: dashed; }
.clash-workday { border-left-color: var(--ev-work); }
.clash-region { font-weight: 600; color: var(--slate-800); }
.src { font-size: 0.875rem; white-space: nowrap; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 0.125rem 0.5rem; border-radius: 9999px; vertical-align: 0.1em; white-space: nowrap; }
.tag-official { background: var(--good-bg); color: var(--good); border: 1px solid currentColor; }
.tag-pending { background: var(--caution-bg); color: var(--caution); border: 1px dashed currentColor; }
.tag-guide { background: var(--slate-100); color: var(--slate-700); border: 1px dotted currentColor; }
.tag-work { background: #ccfbf1; color: var(--ev-work); border: 1px solid currentColor; }
.note-pending { background: var(--caution-bg); color: var(--slate-900); padding: 0.5rem 0.75rem; border-radius: var(--radius); }
.ok { color: var(--good); font-weight: 600; }
.order-by { font-size: 1.25rem; color: var(--slate-900); margin-bottom: 0.25rem; }
.guide-note { font-size: 0.9375rem; }
.next-steps { padding-left: 1.25rem; }
.next-steps li { margin-bottom: 0.375rem; }
.sources { padding-left: 1.25rem; font-size: 0.875rem; word-break: break-all; }
.disclaimer { font-size: 0.875rem; color: var(--slate-500); border-top: 1px solid var(--slate-200); padding-top: 1rem; }
.plan-cta { background: var(--teal); color: var(--white); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.plan-cta p { margin: 0; }
.plan-actions { margin-top: 1.25rem; }

/* Weeks (email planner) */
.weeks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.625rem; }
.weeks-compact { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); margin-top: 0.5rem; }
.week { border-radius: var(--radius); padding: 0.75rem 1rem; display: grid; gap: 0.25rem; border: 1px solid transparent; font-size: 1.0625rem; }
.w-date { font-weight: 600; color: var(--slate-800); }
.w-rating { font-weight: 700; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 0.375rem; }
.w-rating i { display: inline-block; width: 0.75rem; height: 0.75rem; }
.w-reason { font-size: 1rem; color: var(--slate-600); }
.w-avoid { background: var(--avoid-bg); border-color: #fecaca; }
.w-avoid .w-rating { color: var(--avoid); }
.w-avoid .w-rating i { background: var(--avoid); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.w-caution { background: var(--caution-bg); border-color: #fde68a; }
.w-caution .w-rating { color: var(--caution); }
.w-caution .w-rating i { background: var(--caution); border-radius: 2px; transform: rotate(45deg) scale(0.85); }
.w-good { background: var(--good-bg); border-color: #a7f3d0; }
.w-good .w-rating { color: var(--good); }
.w-good .w-rating i { background: var(--good); border-radius: 50%; }
.w-own { outline: 2px solid var(--slate-800); outline-offset: 1px; }

/* Filters + legend */
.filters { border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 0.5rem 1rem; margin: 1.5rem 0 1rem; display: flex; flex-wrap: wrap; gap: 0 1.5rem; background: var(--slate-50); }
.filters legend { padding: 0 0.25rem; }
.legend { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 1rem; }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend .ev i { position: static; }

/* Event markers: colour + shape */
.ev i { display: inline-block; width: 0.75rem; height: 0.75rem; }
.ev-hol-cn i { background: var(--ev-cn); border-radius: 50%; }
.ev-hol-cn.ev-pending i { background: var(--white); border: 2px solid var(--ev-cn); }
.ev-hol-tw i { background: var(--ev-tw); transform: rotate(45deg) scale(0.85); }
.ev-work i { width: auto; height: auto; font-style: normal; }
.ev-work i::before { content: "W"; font-size: 0.625rem; font-weight: 800; line-height: 1; color: var(--white); background: var(--ev-work); padding: 0 2px; border-radius: 2px; display: block; }
.ev-fair i { width: 0; height: 0; border-left: 0.35rem solid transparent; border-right: 0.35rem solid transparent; border-bottom: 0.625rem solid var(--ev-fair); }
.ev-guide i { width: 0.875rem; height: 0.375rem; background: repeating-linear-gradient(45deg, var(--ev-guide) 0 2px, transparent 2px 4px); border: 1px solid var(--ev-guide); }

/* Year view */
.year { margin-bottom: 2.5rem; }
.year h3 { font-size: 1.75rem; }
.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 2rem; }
.month table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 1rem; }
.month caption { text-align: left; font-weight: 700; font-size: 1.125rem; color: var(--teal); padding-bottom: 0.375rem; }
.month th { font-weight: 600; color: var(--slate-500); padding: 0.125rem 0; text-align: center; }
.day { text-align: center; vertical-align: top; padding: 0.25rem 0; height: 2.875rem; border-top: 1px solid var(--slate-100); }
.day.we .dn { color: var(--slate-400); }
.dn { display: block; line-height: 1.3; }
.evs { display: flex; justify-content: center; flex-wrap: wrap; gap: 1px 2px; min-height: 0.75rem; line-height: 1; }
.day.has { background: var(--slate-50); }
.day:has(.ev-hol-cn:not(.ev-pending)) .dn, .day:has(.ev-hol-tw) .dn { font-weight: 700; color: var(--slate-900); }
.day:has(.ev-work) .dn { font-weight: 700; color: var(--ev-work); text-decoration: underline; }

.calendar > .container > p, .email-planner > .container > p { font-size: 1.125rem; }
.filters label { font-size: 1.0625rem; }
.preview-month .month caption { font-size: 0.875rem; }
.preview-month .ev i { width: 0.625rem; height: 0.625rem; }
.weeks-compact .week { font-size: 0.9375rem; padding: 0.625rem 0.875rem; }
.weeks-compact .w-reason { font-size: 0.875rem; }

/* Filter hiding */
.hide-cn .f-cn, .hide-tw .f-tw, .hide-fair .f-fair, .hide-guide .f-guide, .hide-guide .f-guide-section { display: none !important; }

/* List view */
.list-title { margin-top: 1rem; }
.table-wrap { width: 100%; overflow-x: auto; margin-bottom: 2rem; }
.list-table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.list-table th, .list-table td { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--slate-200); vertical-align: top; }
.list-table thead th { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); background: var(--slate-50); }
.list-table tbody th { font-weight: 600; color: var(--slate-800); }
.row-workday { background: #f0fdfa; }
.row-guidance { background: repeating-linear-gradient(45deg, var(--white) 0 8px, var(--slate-50) 8px 16px); }

/* Subscribe */
.subscribe { background: var(--teal-50); }
.feeds { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feed { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.feed h3 { font-size: 1.0625rem; }
.feed-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--white); }
.faq-item summary { cursor: pointer; padding: 1rem 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--slate-500); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary h3 { margin: 0; font-size: 1.0625rem; }
.faq-a { padding: 0 1.25rem 0.5rem; }
.more-links { margin-top: 1.5rem; }

/* Landing pages */
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { margin-top: 1.5rem; }
.tool-cta { margin: 2.5rem 0; }
.related ul { padding-left: 1.25rem; }
.related h2 { font-size: 1.25rem; }

/* CTA + footer */
.cta { background: linear-gradient(120deg, var(--cyan-200), var(--teal-100)); color: var(--teal-text); padding-block: 4rem; }
.cta h2 { color: var(--teal); font-size: 1.75rem; }
.cta .lead { margin: 0; font-size: 1.125rem; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.site-footer { background: var(--slate-950); color: var(--slate-400); font-size: 0.875rem; padding-block: 2.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--white); }
.footer-logo img { width: 120px; display: block; }

/* PDF */
.pdf-doc { width: 100%; padding: 0; background: #fff; color: #1f2937; font-size: 13px; }
.pdf-doc .full-plan { border: 0; margin: 0; padding: 0; }
.pdf-brand { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--sky-500); padding-bottom: 8px; }
.pdf-logo { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.pdf-logo span:first-child { color: var(--logo-blue); }
.pdf-logo span:last-child { color: var(--logo-orange); }
.pdf-site { font-size: 13px; font-weight: 600; color: var(--blue-dark); text-decoration: none; }
.pdf-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-500); margin: 8px 0 0; }
.pdf-doc .weeks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pdf-doc .plan-cta a { color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-card { transform: none; }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--slate-200); }
  .nav-link { display: none; }
  .site-nav { gap: 1rem; }
  .months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  h1 { font-size: 2.25rem; }
  .hero-sm h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  .hero .lead { font-size: 1.0625rem; }
  .section { padding-block: 3rem; }
  .card { padding: 1.25rem; }
  .hero { padding-block: 2.5rem 7rem; }
  .hero-sm { padding-block: 2.5rem 2.5rem; }
  .panel { padding: 1.25rem; }
  .months { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .feeds { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .date-row, .date-row:first-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .date-row .btn-remove { grid-column: 1 / -1; justify-self: start; min-height: 36px; }
  /* List as stacked cards */
  .list-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .list-table, .list-table tbody, .list-table tr, .list-table th, .list-table td { display: block; width: 100%; }
  .list-table tr { border: 1px solid var(--slate-200); border-radius: var(--radius-lg); margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; }
  .list-table th, .list-table td { border: 0; padding: 0.25rem 0; }
  .list-table td::before { content: attr(data-th) ": "; font-weight: 600; color: var(--slate-500); font-size: 0.8125rem; }
  .table-wrap { overflow: visible; }
}
@media (max-width: 480px) {
  /* Grid gets too tight: phones use the list view only */
  .years, .legend { display: none; }
  .date-row, .date-row:first-child { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .header-inner .btn { padding-inline: 0.875rem; }
  .nav-menu { display: none; }
  .brand img { width: 120px; }
}

/* Print: one year per page */
@media print {
  .no-print, .skip-link, .hero, .planner, .email-planner, .subscribe, .faq-section, .cta, .site-footer, .filters { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section { padding: 0; }
  .years, .legend { display: block !important; }
  .legend { display: flex !important; }
  .year { break-after: page; page-break-after: always; }
  .months { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
  .month table { font-size: 9pt; }
  .month caption { font-size: 10pt; }
  .day { height: auto; }
  .day { height: auto; }
  .ev i, .day.has { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .list-title { break-before: page; }
  a { color: inherit; }
  body.plan-printing .planner { display: block !important; }
  body.plan-printing .calendar, body.plan-printing .panels, body.plan-printing .pending-note { display: none !important; }
  body.plan-printing .planner { margin: 0; }
  body.plan-printing .plan-full { box-shadow: none; border: 0; padding: 0; }
}
