/* Printable calendars (src/calendar.js, public/cal/app.js). */
:root { --ac: #2563eb; --ac2: #1d4ed8; --tint: #e8effd; --cream: #f7f6f1; --ink: #1c1917; --muted: #78716c; --line: #e7e5df; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--cream); color: #3f3a36; min-height: 100vh; }
.container { max-width: 900px; margin: 0 auto; padding: 24px 16px 48px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--ac); text-decoration: none; }
.top { text-align: center; margin-bottom: 18px; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 800; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 8px; }
.lede { font-size: 16.5px; line-height: 1.55; color: #57534e; max-width: 38em; margin: 0 auto; }
.answer-big { font-size: 22px; color: var(--ink); margin: 6px 0 8px; }
.answer-big b { color: var(--ac); }
.panel { background: #fff; border-radius: 16px; padding: 20px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 0 0 1px rgba(37,99,235,.06); margin-bottom: 20px; }
.panel h2 { font-size: 21px; font-weight: 750; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.panel h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 16px 0 6px; }
.panel p { font-size: 15.5px; line-height: 1.65; margin-bottom: 10px; }
.panel a { color: var(--ac); }
.small { font-size: 13.5px !important; color: var(--muted); line-height: 1.55 !important; }
.more { text-align: center; font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.9; }
.more a { color: var(--ac); }
.note-box { background: #fff7ed; border-left: 4px solid #ea580c; padding: 10px 12px; border-radius: 6px; font-size: 15px; }

/* downloads */
.get { border-top: 5px solid var(--ac); }
.ws { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.ws label { display: flex; gap: 5px; align-items: center; color: var(--ink); cursor: pointer; }
.dls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 12px; }
.dl { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; border: 1.5px solid var(--ac); background: #fff; color: var(--ac2); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; min-height: 64px; }
.dl b { font-size: 15.5px; }
.dl b::before { content: "\2193  "; }
.dl span { font-size: 12.5px; color: var(--muted); }
.dl:hover { background: var(--tint); }
.dl.primary { background: var(--ac); color: #fff; }
.dl.primary span { color: #dbe6fd; }
.dl.primary:hover { background: var(--ac2); }
.dl.big { width: 100%; align-items: center; margin-top: 10px; }
.blankprev svg, .sheet svg { width: 100%; height: auto; display: block; }
.blankprev { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 4px; }

/* year grid */
.yeargrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 8px; }
table.mini { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
table.mini caption { text-align: left; font-weight: 800; font-size: 14.5px; padding-bottom: 4px; }
table.mini caption a { color: var(--ac); text-decoration: none; }
table.mini th { font-size: 11px; color: var(--muted); font-weight: 700; padding: 2px 0; }
table.mini th abbr { text-decoration: none; }
table.mini td { text-align: center; font-size: 13px; height: 25px; padding: 0; color: var(--ink); }
table.mini .hd { display: inline-block; width: 22px; height: 22px; line-height: 22px; background: var(--ac); color: #fff; border-radius: 50%; font-weight: 700; }
.mi { width: 1em; height: 1em; vertical-align: -0.12em; color: var(--ink); }

/* one month */
table.mbig { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.mbig caption { display: none; }
table.mbig th { background: var(--ac); color: #fff; font-size: 13px; padding: 6px 2px; font-weight: 700; }
table.mbig th abbr { text-decoration: none; }
table.mbig td { border: 1px solid #d6d3d1; vertical-align: top; height: 92px; padding: 4px 5px; position: relative; }
table.mbig td.x { background: #fafaf9; }
table.mbig .n { display: block; font-weight: 800; font-size: 17px; color: var(--ink); }
table.mbig .moon { position: absolute; top: 4px; right: 6px; font-size: 13px; color: var(--ink); }
table.mbig .note { display: block; font-size: 11.5px; line-height: 1.25; margin-top: 3px; }
.h-fed { color: var(--ac); font-weight: 700; }
.h-obs { color: #57534e; }
.h-you { color: var(--ink); font-weight: 700; }
.legend { font-size: 12.5px; color: var(--muted); margin-top: 8px !important; display: flex; gap: 14px; flex-wrap: wrap; }
.pager { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 14px; font-size: 14.5px; }
.pager a { color: var(--ac); text-decoration: none; background: #fff; padding: 7px 12px; border-radius: 99px; box-shadow: 0 0 0 1px var(--line); }

/* lists + tables */
ul.dates, ul.facts { list-style: none; margin: 4px 0 10px; }
ul.dates li, ul.facts li { padding: 7px 0; border-bottom: 1px solid #f1efe9; font-size: 15px; line-height: 1.45; }
ul.dates li b { display: inline-block; min-width: 92px; color: var(--ink); font-variant-numeric: tabular-nums; }
ul.dates li.is-fed { color: var(--ac2); font-weight: 650; }
ul.facts b { color: var(--ac); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 10px; }
table.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px 6px 6px 0; }
table.tbl td { border-bottom: 1px solid #f1efe9; padding: 8px 6px 8px 0; vertical-align: top; line-height: 1.4; }
table.tbl tr.now td { background: var(--tint); font-weight: 700; }
.faq h3 { margin-top: 14px; }
.monthlinks p { font-size: 14.5px; line-height: 1.9; }
.monthlinks a { margin-right: 4px; }
.xsell { background: #fffbeb; box-shadow: 0 0 0 1px #fde68a; }

/* maker */
.m-grid { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; }
.m-preview { position: sticky; top: 12px; }
.sheet { border: 1px solid #d6d3d1; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.pv-bar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.pv-bar button { border: 1px solid var(--line); background: #fff; border-radius: 99px; width: 34px; height: 34px; font-size: 16px; cursor: pointer; }
.pv-bar button:disabled { opacity: .35; cursor: default; }
.linkish { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--ac); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 12px 0 10px; }
fieldset:first-child { border-top: 0; padding-top: 0; }
legend { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-right: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.seg label { display: flex; align-items: center; gap: 5px; font-size: 14px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 11px; cursor: pointer; color: var(--ink); background: #fff; }
.seg label:has(input:checked) { border-color: var(--ac); background: var(--tint); }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.row label, .f-title { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
select, textarea, .f-title input { font: inherit; font-size: 15px; border: 1px solid #d6d3d1; border-radius: 8px; padding: 7px 8px; background: #fff; color: var(--ink); }
textarea { width: 100%; resize: vertical; margin-top: 6px; }
.f-title { margin-top: 8px; } .f-title input { width: 100%; }
.ck { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; padding: 4px 0; color: var(--ink); cursor: pointer; }
.ck input { margin-top: 3px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hint.bad { color: #b42318; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; margin: 6px 0 4px; }
.sw input { position: absolute; opacity: 0; }
.sw span { display: block; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; cursor: pointer; }
.sw input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.sw input:focus-visible + span { outline: 2px solid var(--ac); outline-offset: 3px; }
.sw .rainbow { background: conic-gradient(#1d4ed8, #be185d, #dc2626, #ea580c, #ca8a04, #15803d, #0d9488, #7c3aed, #1d4ed8); }
.maker .f-n, .maker .f-month, .maker .f-bn { display: none; }
.maker.k-month .f-n, .maker.k-month .f-month { display: flex; }
.maker.k-blank .f-bn { display: flex; }
.maker.k-blank .f-year { display: none; }

.foot { text-align: center; font-size: 13px; color: var(--muted); line-height: 2; margin-top: 26px; }
.foot a { color: var(--ac); text-decoration: none; margin: 0 4px; }

@media (max-width: 760px) {
  .m-grid { grid-template-columns: 1fr; }
  .m-preview { position: static; order: -1; }
  .yeargrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  h1 { font-size: 27px; }
  .panel { padding: 16px 12px; }
  table.mbig td { height: 64px; padding: 2px 3px; }
  table.mbig .n { font-size: 14px; }
  table.mbig .note { font-size: 10px; }
  table.mbig .moon { font-size: 10px; top: 2px; right: 3px; }
  table.mbig th { font-size: 11px; }
  .yeargrid { gap: 12px 10px; }
  table.mini td { font-size: 12px; height: 23px; }
  table.mini .hd { width: 20px; height: 20px; line-height: 20px; }
}
.yeargrid table.mini { align-self: start; }
