/* ficklestudio26 · Printable Calendar Maker — screen layout and print sheets */
:root { --ink:#1d1d22; --ink2:#5b5b66; --line:#e8e8ec; --bg:#fafafb; --accent:#3b5bdb; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
.wrap { max-width:1100px; margin:0 auto; padding:0 16px; }
h1 { font-size:clamp(26px,4vw,38px); line-height:1.2; margin:28px 0 8px; letter-spacing:-.02em; }
.lead { color:var(--ink2); margin:0 0 20px; max-width:760px; }
.tool { display:grid; grid-template-columns:300px 1fr; gap:20px; align-items:start; }
@media (max-width:820px) { .tool { grid-template-columns:1fr; } }
.panel { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px; position:sticky; top:12px; }
@media (max-width:820px) { .panel { position:static; } }
.panel label { display:block; font-size:13px; font-weight:600; margin:10px 0 4px; }
.panel input[type=number], .panel select { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.chk { display:flex; gap:8px; align-items:center; font-weight:500 !important; margin:8px 0 !important; }
.swatches { display:flex; gap:8px; margin-top:4px; }
.swatches label { margin:0; cursor:pointer; }
.swatches input { position:absolute; opacity:0; }
.swatches span { display:block; width:26px; height:26px; border-radius:50%; border:3px solid #fff; box-shadow:0 0 0 1px var(--line); }
.swatches input:checked + span { box-shadow:0 0 0 2px var(--ink); }
.actions { display:grid; gap:8px; margin-top:16px; }
.btn { padding:11px 14px; border-radius:10px; border:1px solid var(--line); background:#fff; font:600 15px system-ui,sans-serif; cursor:pointer; }
.btn.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
.btn:disabled { opacity:.55; cursor:default; }
.small { font-size:12.5px; color:var(--ink2); margin:6px 0 0; }
.preview-head { display:flex; justify-content:space-between; align-items:baseline; margin:0 0 8px; color:var(--ink2); font-size:14px; }

/* sheets (screen preview) */
#sheets { display:grid; gap:18px; }
.cal-page { background:#fff; border:1px solid var(--line); border-radius:6px; box-shadow:0 1px 3px rgba(0,0,0,.06);
  aspect-ratio:var(--ratio,11 / 8.5); padding:2.2cqw 2.6cqw; display:flex; flex-direction:column; container-type:inline-size; overflow:hidden; color:#1d1d22; }
.cal-page header { display:flex; justify-content:space-between; align-items:baseline; border-bottom:.35cqw solid var(--accent); padding-bottom:.8cqw; margin-bottom:1.2cqw; }
.cal-page h2 { margin:0; font-size:4.6cqw; line-height:1; font-weight:800; letter-spacing:-.02em; color:var(--accent); }
.cal-page h2 span { color:#8b8b96; font-weight:600; }
.cal-page .grid { flex:1; display:grid; grid-template-columns:repeat(7,1fr); grid-template-rows:auto repeat(var(--rows),1fr); border-top:1px solid #d9d9df; border-left:1px solid #d9d9df; min-height:0; }
.cal-page .grid.has-wk { grid-template-columns:3cqw repeat(7,1fr); }
.cal-page .dow { font-size:1.5cqw; font-weight:700; text-align:center; padding:.5cqw 0; background:#f4f4f7; color:#44444d; border-right:1px solid #d9d9df; border-bottom:1px solid #d9d9df; text-transform:uppercase; letter-spacing:.04em; }
.cal-page .dow.we { color:var(--accent); }
.cal-page .wk { font-size:1.1cqw; color:#8b8b96; display:flex; align-items:flex-start; justify-content:center; padding-top:.5cqw; border-right:1px solid #d9d9df; border-bottom:1px solid #d9d9df; background:#fafafb; }
.cal-page .d { border-right:1px solid #d9d9df; border-bottom:1px solid #d9d9df; padding:.5cqw .7cqw; display:flex; flex-direction:column; gap:.2cqw; min-height:0; overflow:hidden; }
.cal-page .d.empty { background:#fafafb; }
.cal-page .d.we { background:#fbfbfd; }
.cal-page .d .n { font-size:2cqw; font-weight:700; line-height:1; }
.cal-page .d.we .n { color:var(--accent); }
.cal-page .d .h { font-size:1.15cqw; line-height:1.15; color:var(--accent); font-weight:600; }
.cal-page .d.hol .n { text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:.3cqw; }
.cal-page .notes { margin-top:1cqw; display:grid; gap:0; font-size:1.3cqw; color:#6b6b76; }
.cal-page .notes i { display:block; border-bottom:1px solid #c9c9d1; height:3.4cqw; }
.cal-page.year .minis { flex:1; display:grid; grid-template-columns:repeat(4,1fr); gap:1.4cqw 2cqw; min-height:0; }
#sheets.portrait .cal-page.year .minis, #print-root.portrait .cal-page.year .minis { grid-template-columns:repeat(3,1fr); }
.cal-page .mini { display:flex; flex-direction:column; min-height:0; }
.cal-page .mini h3 { margin:0 0 .5cqw; font-size:1.9cqw; color:var(--accent); }
.cal-page .mini .grid { grid-template-rows:auto repeat(var(--rows),1fr); }
.cal-page .mini .dow { font-size:1cqw; padding:.25cqw 0; }
.cal-page .mini .d { padding:.2cqw .4cqw; align-items:flex-end; }
.cal-page .mini .d .n { font-size:1.3cqw; font-weight:600; }

/* SEO text under the tool */
.seo { max-width:780px; margin:36px 0 12px; }
.seo h2 { font-size:22px; margin:28px 0 8px; }
.seo table { border-collapse:collapse; margin:10px 0; font-size:15px; }
.seo th, .seo td { border:1px solid var(--line); padding:6px 12px; text-align:left; }
.seo details { border:1px solid var(--line); border-radius:10px; padding:10px 14px; margin:8px 0; background:#fff; }
.seo summary { cursor:pointer; font-weight:600; }
.related a { margin-right:14px; }

/* download wait dialog */
#wait[hidden] { display:none; }
#wait { position:fixed; inset:0; background:rgba(15,15,25,.55); display:flex; align-items:center; justify-content:center; padding:16px; z-index:50; }
.wait__card { background:#fff; border-radius:16px; padding:22px; max-width:420px; width:100%; text-align:center; }
.wait__card h2 { margin:0 0 6px; font-size:20px; }
.wait__card p { margin:0 0 12px; color:var(--ink2); font-size:14px; }
.wait__count { font-size:34px; font-weight:800; margin:4px 0 10px; }
.wait__card .btn { width:100%; margin-top:8px; }
.wait__card .ad-slot.is-on { margin:12px auto; }

/* print: only the sheets */
#print-root { display:none; }
@media print {
  body > *:not(#print-root):not(#page-style) { display:none !important; }
  #print-root { display:block; }
  html, body { background:#fff; }
  #print-root .cal-page { border:0; border-radius:0; box-shadow:none; aspect-ratio:auto; padding:0; page-break-after:always; break-after:page; }
  #print-root .cal-page:last-child { page-break-after:auto; break-after:auto; }
}
