:root {
  --jwc-ink: #111827;
  --jwc-muted: #6b7280;
  --jwc-line: #e5e7eb;
  --jwc-weekend: #f8fafc;
  --jwc-accent: #0f766e;
  --jwc-paper: #fff;
  --jwc-bg: #f3f4f6;
  --jwc-radius: 8px;
  --jwc-space: 8px;
  --jwc-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  background: var(--jwc-bg);
  color: var(--jwc-ink);
  font-family: var(--jwc-font);
}
a { color: var(--jwc-accent); text-underline-offset: 3px; }
a:hover { color: #115e59; }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #14b8a6;
  outline-offset: 3px;
}
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.screen-reader-shortcut:focus {
  background: #fff;
  clip: auto;
  clip-path: none;
  color: var(--jwc-ink);
  height: auto;
  left: 8px;
  padding: 12px 16px;
  position: fixed;
  top: 8px;
  width: auto;
  z-index: 100000;
}

.grid-container { max-width: 1120px; }
.calendar-year .grid-container { max-width: 1280px; }
.jwc-main {
  margin-inline: auto;
  max-width: 1120px;
  padding: 40px 24px 64px;
  width: 100%;
}
.jwc-main-year { max-width: 1280px; }
.jwc-article { margin: 0; }
.jwc-article > * + * { margin-top: 32px; }
.jwc-article h1,
.jwc-article h2,
.jwc-article h3 { color: var(--jwc-ink); line-height: 1.2; }
.jwc-article h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.04em; margin: 0; }
.jwc-article h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.02em; }
.calendar-heading { max-width: 850px; }
.calendar-intro,
.lead { color: #374151; font-size: 1.1rem; line-height: 1.75; margin: 16px 0 0; }
.eyebrow { color: var(--jwc-accent); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-home { background: var(--jwc-paper); border: 1px solid var(--jwc-line); border-radius: 16px; padding: clamp(32px, 7vw, 72px); }
.hero-home .lead { font-size: clamp(1.1rem, 2.5vw, 1.4rem); max-width: 700px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.text-link { font-weight: 700; }

a.jwc-button,
button.jwc-button,
.jwc-nav-cta a {
  align-items: center;
  background: var(--jwc-accent);
  border: 0;
  border-radius: var(--jwc-radius);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}
a.jwc-button:hover,
button.jwc-button:hover,
.jwc-nav-cta a:hover { background: #115e59; color: #fff; }

.breadcrumbs { color: var(--jwc-muted); font-size: .875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { color: #9ca3af; content: "/"; margin-right: 6px; }

.toolbar {
  align-items: flex-end;
  background: var(--jwc-paper);
  border: 1px solid var(--jwc-line);
  border-radius: var(--jwc-radius);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 16px;
}
.toolbar-print { align-items: center; display: flex; gap: 12px; margin-right: auto; }
.toolbar-print span { color: var(--jwc-muted); display: none; font-size: .82rem; }
.tool-label { color: var(--jwc-muted); display: block; font-size: .72rem; font-weight: 750; letter-spacing: .06em; margin-bottom: 6px; text-transform: uppercase; }
.tool-options { display: inline-flex; }
.tool-options a { border: 1px solid var(--jwc-line); color: #374151; font-size: .85rem; min-height: 36px; padding: 7px 10px; text-decoration: none; }
.tool-options a:first-child { border-radius: 6px 0 0 6px; }
.tool-options a:last-child { border-radius: 0 6px 6px 0; }
.tool-options a + a { border-left: 0; }
.tool-options a.is-active { background: #ccfbf1; border-color: #5eead4; color: #115e59; font-weight: 750; }

.cal-wrap { background: var(--jwc-paper); border-radius: var(--jwc-radius); overflow-x: auto; }
.cal {
  border-collapse: collapse;
  color: var(--jwc-ink);
  table-layout: fixed;
  width: 100%;
}
.cal caption { background: var(--jwc-paper); caption-side: top; font-size: 1.35rem; font-weight: 800; padding: 16px; text-align: center; }
.cal caption a { color: inherit; text-decoration-color: #99f6e4; }
.cal th,
.cal td { border: 1px solid var(--jwc-line); }
.cal thead th { background: #fff; color: var(--jwc-muted); font-size: .75rem; letter-spacing: .05em; padding: 10px 4px; text-align: center; text-transform: uppercase; }
.cal abbr { text-decoration: none; }
.cal td { background: #fff; height: clamp(76px, 9vw, 116px); padding: 10px; text-align: right; vertical-align: top; }
.cal td.weekend,
.cal th.weekend { background: var(--jwc-weekend); }
.cal td.pad { color: transparent; }
.cal time { font-size: clamp(1rem, 2vw, 1.35rem); font-variant-numeric: tabular-nums; font-weight: 750; }
.cal .notes-row th { height: 92px; padding: 12px; text-align: left; vertical-align: top; }
.cal .notes-row span { color: var(--jwc-muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.ink-saver .cal th,
.ink-saver .cal td { background: #fff; border-color: #111; }

.month-nav { display: flex; font-weight: 700; justify-content: space-between; }
.related,
.faq,
.content-section,
.print-help {
  background: var(--jwc-paper);
  border: 1px solid var(--jwc-line);
  border-radius: var(--jwc-radius);
  padding: clamp(20px, 4vw, 32px);
}
.related h2,
.faq h2,
.content-section h2,
.print-help h2 { margin-top: 0; }
.related ul { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 0; }
.faq details { border-top: 1px solid var(--jwc-line); padding: 16px 0; }
.faq details:last-child { padding-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 750; }
.faq details p { color: #374151; margin-bottom: 0; }

.year-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-month { min-width: 0; }
.mini-month .cal-wrap { border: 1px solid var(--jwc-line); }
.cal-mini caption { font-size: 1rem; padding: 9px; }
.cal-mini thead th { font-size: .58rem; padding: 5px 1px; }
.cal-mini td { font-size: .72rem; height: 30px; padding: 4px; }
.cal-mini time { font-size: inherit; font-weight: 650; }

.blank-fields { align-items: flex-end; display: flex; font-size: 1.15rem; font-weight: 700; gap: 40px; }
.blank-fields i { border-bottom: 2px solid var(--jwc-ink); display: inline-block; min-width: 190px; }
.cal-blank td { height: clamp(76px, 8vw, 104px); }
.notice { background: #f0fdfa; border-left: 4px solid var(--jwc-accent); border-radius: 0 6px 6px 0; padding: 12px 16px; }
.cal-julian .day { position: relative; }
.cal-julian .jdn { color: var(--jwc-muted); display: block; font-size: .64rem; font-weight: 500; margin-top: 14px; white-space: nowrap; }
.month-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.month-picker a { border: 1px solid var(--jwc-line); border-radius: 999px; color: #374151; font-size: .82rem; padding: 6px 10px; text-decoration: none; }
.month-picker a.is-active { background: var(--jwc-accent); border-color: var(--jwc-accent); color: #fff; }

.calendar-library > h2 { margin-top: 40px; }
.feature-cards,
.month-cards { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.month-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.calendar-card { background: var(--jwc-paper); border: 1px solid var(--jwc-line); border-radius: var(--jwc-radius); color: var(--jwc-ink); display: flex; flex-direction: column; min-height: 118px; padding: 20px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.calendar-card:hover { border-color: #5eead4; color: var(--jwc-ink); transform: translateY(-2px); }
.calendar-card-featured { background: #f0fdfa; border-color: #99f6e4; }
.calendar-card strong { font-size: 1.05rem; }
.calendar-card span { color: var(--jwc-muted); font-size: .85rem; margin-top: 8px; }
.help-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.help-grid > div > strong { align-items: center; background: #ccfbf1; border-radius: 50%; color: #115e59; display: flex; height: 32px; justify-content: center; width: 32px; }
.help-grid h3 { font-size: 1rem; margin: 12px 0 6px; }
.help-grid p { color: var(--jwc-muted); font-size: .9rem; margin: 0; }

.jwc-footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); padding-block: 32px; }
.jwc-footer-grid h2 { font-size: 1rem; margin: 0 0 8px; }
.jwc-footer-grid ul { list-style: none; margin: 0; padding: 0; }
.jwc-footer-grid li + li { margin-top: 6px; }

@media (max-width: 900px) {
  .year-grid,
  .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jwc-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .jwc-main { padding: 28px 12px 48px; }
  .jwc-article > * + * { margin-top: 24px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-print { justify-content: space-between; }
  .toolbar-print span { display: inline; }
  .tool-options { display: flex; width: 100%; }
  .tool-options a { flex: 1; text-align: center; }
  .cal thead th { font-size: .62rem; padding: 7px 1px; }
  .cal td { height: 68px; padding: 6px; }
  .cal time { font-size: .95rem; }
  .cal-julian .jdn { font-size: .5rem; letter-spacing: -.03em; }
  .year-grid,
  .feature-cards,
  .month-cards,
  .help-grid { grid-template-columns: 1fr; }
  .month-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-card { min-height: 100px; }
  .blank-fields { align-items: stretch; flex-direction: column; gap: 16px; }
  .jwc-footer-grid { grid-template-columns: 1fr 1fr; }
  .jwc-nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-card { transition: none; }
}
/* Shared wrappers for the CSS-only printable template variants. */
.calendar-sheet .calendar-layout{display:flex;align-items:stretch;gap:16px}.calendar-sheet .calendar-layout>.cal-wrap,.calendar-sheet .blank-calendar-main{flex:1;min-width:0}.calendar-sheet .template-notes{display:flex;flex:0 0 24%;flex-direction:column;border:1px solid #789096;padding:18px 14px;color:#142b33;background:#fff}.calendar-sheet .template-notes strong{font-size:1.1rem;margin-bottom:12px}.calendar-sheet .template-notes i{display:block;height:34px;border-bottom:1px solid #a7b3b5}.write-lines{display:none}
.template-previews{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:18px 0 42px}.template-preview{display:block;padding:12px;border:1px solid #cbd7d9;border-radius:8px;color:#142b33;text-decoration:none;background:#fff}.template-preview strong,.template-preview span{display:block}.template-preview span{font-size:.85rem;color:#496169;margin-top:5px}.preview-grid{display:grid!important;grid-template-columns:repeat(7,1fr);gap:2px;height:62px;margin-bottom:9px}.preview-grid i{display:block;border:1px solid #9bafb3;background:#fff}.download-row{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.download-row .jwc-download{text-decoration:none}.jwc-download-jpg{background:#174f64}
@media(max-width:800px){.template-previews{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-sheet .calendar-layout{display:block}.calendar-sheet .template-notes{margin-top:14px}}
