/*
Theme Name: The Digital Printables
Theme URI: https://thedigitalprintables.com
Author: The Digital Printables
Description: Light, fast theme for a printables site: niche pages, product pages with Etsy buttons, free downloads. Needs the "Digital Printables Core" plugin.
Version: 1.9.3
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tdp
*/
:root{
  /* Palette: deep teal and coral. Teal for browsing and structure, coral for buying, soft coral for free stuff */
  --paper:#F6FAFA; --surface:#FFFFFF; --ink:#172026; --muted:#55636B; --line:#DFE9EB;
  --berry:#D4502E; --berry-dark:#B8401F; --teal:#0F4C5C; --teal-soft:#E3F1EE; --sun:#F2765C; --sun-soft:#FDF0EC; --plum-soft:#EAF3F4;
  --accent:var(--teal); --accent-ink:#FFFFFF; --pop:var(--berry);
  --display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
  --body:"Karla","Segoe UI",system-ui,sans-serif;
  --r:16px; --shadow:0 1px 2px rgba(23,32,38,.06),0 8px 24px rgba(23,32,38,.07);
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--paper);color:var(--ink);font:17px/1.65 var(--body);-webkit-font-smoothing:antialiased}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--teal)}
h1,h2,h3{font-family:var(--display);line-height:1.12;text-wrap:balance;margin:0 0 .5em;letter-spacing:-.01em}
h1{font-size:clamp(30px,4.6vw,50px);font-weight:800}
h2{font-size:clamp(23px,2.8vw,30px);font-weight:800;margin-top:1.4em}
h3{font-size:19px;font-weight:600}
p{margin:0 0 1em}
:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.skip{position:absolute;left:-999px}.skip:focus{left:12px;top:12px;background:#fff;padding:8px 12px;z-index:99}
.wrap{max-width:1160px;margin:0 auto;padding:0 20px}
.stack{display:grid;gap:40px}

/* announcement + header */
.site-header{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.sale-bar{text-align:center;background:var(--berry);color:#fff;font-size:14px;font-weight:700;letter-spacing:.02em;padding:7px 12px}
.site-header .wrap{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;padding-top:12px;padding-bottom:12px}
.logo{font-family:var(--display);font-weight:800;font-size:23px;color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;gap:10px}
.logo::before{content:"";width:30px;height:30px;border-radius:8px;background:var(--berry) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect x='7' y='9' width='16' height='14' rx='2' fill='%23fff'/%3E%3Crect x='7' y='9' width='16' height='4' fill='%23F9C5B8'/%3E%3Crect x='10' y='6' width='2' height='5' rx='1' fill='%23fff'/%3E%3Crect x='18' y='6' width='2' height='5' rx='1' fill='%23fff'/%3E%3C/svg%3E") center/100% no-repeat}
.logo span{color:var(--berry)}
.logo img{max-height:46px;width:auto}
.nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.nav a{display:block;text-decoration:none;color:var(--ink);padding:7px 15px;border-radius:999px;font-weight:700}
.nav a:hover{background:var(--teal-soft)}
.nav .current-menu-item>a,.nav .current-menu-ancestor>a,.nav a[aria-current="page"]{background:var(--ink);color:#fff}

main{padding:28px 0 70px}
.crumbs{font-size:14px;color:var(--muted);margin-bottom:16px}
.crumbs a{color:var(--muted)}

/* panels + hero */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:28px;box-shadow:var(--shadow)}
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--sun-soft) 0%,#FDE8E2 55%,var(--teal-soft) 100%);border:0;padding:clamp(28px,5vw,56px)}
.hero::after{content:"";position:absolute;right:-30px;bottom:-40px;width:min(42%,380px);aspect-ratio:1;opacity:.9;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect x='20' y='34' width='150' height='140' rx='14' fill='%23fff' transform='rotate(-8 95 104)'/%3E%3Cg transform='rotate(-8 95 104)'%3E%3Crect x='20' y='34' width='150' height='34' rx='14' fill='%23F2765C'/%3E%3Crect x='20' y='54' width='150' height='14' fill='%23F2765C'/%3E%3Cg fill='%230F4C5C' opacity='.25'%3E%3Crect x='34' y='82' width='16' height='14' rx='3'/%3E%3Crect x='56' y='82' width='16' height='14' rx='3'/%3E%3Crect x='78' y='82' width='16' height='14' rx='3'/%3E%3Crect x='100' y='82' width='16' height='14' rx='3'/%3E%3Crect x='122' y='82' width='16' height='14' rx='3'/%3E%3Crect x='144' y='82' width='12' height='14' rx='3'/%3E%3Crect x='34' y='104' width='16' height='14' rx='3'/%3E%3Crect x='56' y='104' width='16' height='14' rx='3'/%3E%3Crect x='100' y='104' width='16' height='14' rx='3'/%3E%3Crect x='122' y='104' width='16' height='14' rx='3'/%3E%3Crect x='144' y='104' width='12' height='14' rx='3'/%3E%3Crect x='34' y='126' width='16' height='14' rx='3'/%3E%3Crect x='56' y='126' width='16' height='14' rx='3'/%3E%3Crect x='78' y='126' width='16' height='14' rx='3'/%3E%3Crect x='100' y='126' width='16' height='14' rx='3'/%3E%3Crect x='34' y='148' width='16' height='14' rx='3'/%3E%3Crect x='56' y='148' width='16' height='14' rx='3'/%3E%3C/g%3E%3Crect x='78' y='104' width='16' height='14' rx='3' fill='%23F9C5B8'/%3E%3Ccircle cx='86' cy='111' r='11' fill='none' stroke='%23F2765C' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.hero > *{position:relative;z-index:1;max-width:min(640px,62%)}
@media (max-width:700px){.hero > *{max-width:100%}.hero::after{opacity:.18;width:70%}}
.hero p{color:#3A4A52;font-size:19px;max-width:58ch}
.hero h1{margin-bottom:.35em}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--teal);color:#fff;text-decoration:none;border:0;border-radius:999px;padding:12px 22px;font:700 16px var(--body);cursor:pointer;box-shadow:0 2px 0 rgba(0,0,0,.12)}
.btn:hover{transform:translateY(-1px);filter:brightness(1.06)}
.btn.buy{background:var(--berry)}
.btn.buy:hover{background:var(--berry-dark)}
.btn.ghost{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.muted{color:var(--muted)}

/* free downloads */
.free{background:var(--sun-soft);border:2px dashed #F2765C;box-shadow:none}
.free h2::before{content:"FREE";display:inline-block;vertical-align:middle;margin-right:10px;background:var(--sun);color:var(--ink);font:800 13px var(--body);letter-spacing:.08em;padding:4px 10px;border-radius:999px}
.free-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
.free-item{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;display:grid;gap:10px;align-content:start}
.free-item img{aspect-ratio:4/3;object-fit:cover;border-radius:8px;width:100%}
.free-item strong{line-height:1.3}

/* product cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:26px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(23,32,38,.12)}
.card > a{display:block;background:var(--plum-soft);aspect-ratio:4/3}
.grid .card:nth-child(3n+2) > a{background:var(--teal-soft)}
.grid .card:nth-child(3n+3) > a{background:var(--sun-soft)}
.card > a:empty::after{content:"";display:block;height:100%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Crect x='35' y='18' width='50' height='54' rx='6' fill='%23fff'/%3E%3Crect x='35' y='18' width='50' height='12' rx='6' fill='%23F2765C'/%3E%3Cg fill='%230F4C5C' opacity='.35'%3E%3Crect x='41' y='36' width='8' height='7' rx='2'/%3E%3Crect x='52' y='36' width='8' height='7' rx='2'/%3E%3Crect x='63' y='36' width='8' height='7' rx='2'/%3E%3Crect x='74' y='36' width='6' height='7' rx='2'/%3E%3Crect x='41' y='47' width='8' height='7' rx='2'/%3E%3Crect x='52' y='47' width='8' height='7' rx='2'/%3E%3Crect x='63' y='47' width='8' height='7' rx='2'/%3E%3Crect x='41' y='58' width='8' height='7' rx='2'/%3E%3C/g%3E%3C/svg%3E") center/60% no-repeat}
.card img{aspect-ratio:4/3;object-fit:contain;width:100%;height:100%}
.card .body{padding:16px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h3{margin:0;font-size:18px}
.card h3 a{color:var(--ink);text-decoration:none}
.card p{color:var(--muted);font-size:15px;margin:0}
.card .btn{margin-top:auto;padding:10px 18px}
.tag{align-self:flex-start;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--berry);background:#FDE8E2;padding:3px 10px;border-radius:999px;text-decoration:none}

/* category tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.tile{position:relative;border-radius:var(--r);overflow:hidden;text-decoration:none;color:var(--ink);display:grid;min-height:190px;background:var(--teal-soft);box-shadow:var(--shadow);transition:transform .15s}
.tile:nth-child(2){background:#FDE8E2}.tile:nth-child(3){background:var(--sun-soft)}.tile:nth-child(4){background:var(--plum-soft)}
.tile:hover{transform:translateY(-3px)}
.tile img{aspect-ratio:16/9;object-fit:cover;width:100%}
.tile .body{padding:18px 20px;align-self:end}
.tile h3{font-size:24px;font-weight:800;margin:0 0 4px}
.tile small{color:var(--muted);font-size:15px}
.tile .body::after{content:"Browse →";display:inline-block;margin-top:10px;font-weight:800;color:var(--berry)}

/* article */
.entry{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:clamp(22px,4vw,48px);box-shadow:var(--shadow)}
.entry > *{max-width:72ch}
.entry > .wp-block-image,.entry > figure,.entry > .wp-block-table{max-width:100%}
.entry h2{padding-top:.2em}
.entry h2:first-child{margin-top:0}
.entry h2::after{content:"";display:block;width:56px;height:4px;border-radius:4px;background:var(--sun);margin-top:10px}
.entry ul{padding-left:0;list-style:none}
.entry ul li{position:relative;padding-left:28px;margin-bottom:.5em}
.entry ul li::before{content:"";position:absolute;left:4px;top:.55em;width:10px;height:10px;border-radius:3px;background:var(--teal);transform:rotate(45deg)}
.entry ol{padding-left:22px}
.entry table{border-collapse:collapse;width:100%}
.entry td,.entry th{border:1px solid var(--line);padding:8px 10px}
.rank-math-faq-item{border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin-bottom:12px;background:var(--paper)}
.rank-math-question{font-size:18px;margin:0 0 6px}
.rank-math-answer p:last-child{margin:0}

/* product page */
.product{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:30px;align-items:start}
@media (max-width:820px){.product{grid-template-columns:1fr}}
.gallery{display:grid;gap:10px}
.gallery .stage{background:var(--plum-soft);border-radius:var(--r);overflow:hidden;aspect-ratio:4/3;display:grid;place-items:center;box-shadow:var(--shadow)}
.gallery .stage:empty{background:var(--plum-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Crect x='35' y='18' width='50' height='54' rx='6' fill='%23fff'/%3E%3Crect x='35' y='18' width='50' height='12' rx='6' fill='%23F2765C'/%3E%3C/svg%3E") center/40% no-repeat}
.gallery .stage img,.gallery .stage video{width:100%;height:100%;object-fit:contain}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px}
.thumbs button{padding:0;border:2px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface);cursor:pointer;position:relative;aspect-ratio:4/3}
.thumbs button[aria-pressed="true"]{border-color:var(--berry)}
.thumbs img{width:100%;height:100%;object-fit:contain}
.thumbs .play::after{content:"▶";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:20px;background:rgba(23,32,38,.45)}
.buybox{display:grid;gap:14px;position:sticky;top:110px;border-top:6px solid var(--berry)}
.buybox h1{margin:0;font-size:clamp(26px,3vw,36px)}
.price{font-family:var(--display);font-size:30px;font-weight:800;color:var(--berry)}
.buybox .btn.buy{font-size:18px;padding:14px 26px;width:100%}
.facts{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:15px;margin:0;background:var(--paper);border-radius:10px;padding:12px 14px}
.facts dt{color:var(--muted)}
.facts dd{margin:0;font-weight:700}
.note{font-size:14px;color:var(--muted)}
.note::before{content:"⚡ "}
.designs{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}
.design{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow)}
.design img{aspect-ratio:4/3;object-fit:contain;width:100%;background:var(--plum-soft)}
.design .body{padding:14px;display:grid;gap:10px}

/* footer */
.site-footer{background:var(--teal);color:#CFE3E6;padding:40px 0;font-size:15px}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;align-items:flex-start}
.site-footer strong{color:#fff;font-family:var(--display);font-size:20px}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:18px}
.site-footer a{color:#fff}

.pagination{display:flex;gap:8px;margin-top:20px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
@media (prefers-reduced-motion:reduce){.card,.tile,.btn{transition:none}.card:hover,.tile:hover,.btn:hover{transform:none}}
.share{border-top:1px solid var(--line);padding-top:14px;display:grid;gap:8px}
.share-label{font-size:13px;font-weight:700;color:var(--muted);letter-spacing:.02em}
.share-row{display:flex;flex-wrap:wrap;gap:8px}
.share-btn{font:700 13px var(--body);padding:7px 13px;border-radius:999px;border:0;cursor:pointer;text-decoration:none;color:#fff;line-height:1.2}
.share-btn:hover{filter:brightness(.92)}
.s-pinterest{background:#BD081C}.s-facebook{background:#1877F2}.s-whatsapp{background:#128C4B}.s-x{background:#111}.s-email{background:var(--teal)}.s-copy{background:var(--teal-soft);color:var(--teal)}
.gallery{position:relative}
.pin-save{position:absolute;top:12px;left:12px;z-index:2;background:#BD081C;color:#fff;font:700 14px var(--body);padding:8px 14px;border-radius:999px;text-decoration:none;opacity:0;transition:opacity .15s}
.gallery:hover .pin-save,.pin-save:focus{opacity:1}
@media (hover:none){.pin-save{opacity:1}}
.card > a{position:relative}
.sale-badge{position:absolute;bottom:10px;right:10px;background:var(--berry);color:#fff;font:800 12px var(--body);letter-spacing:.03em;padding:5px 10px;border-radius:999px;box-shadow:0 2px 6px rgba(23,32,38,.18)}
.sale-badge.inline{position:static;display:inline-block;box-shadow:none;margin-right:6px}
.sale-note{margin:0;font-size:14px;color:var(--muted)}
/* Free calendar maker */
.calmaker{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:28px;align-items:start}
@media (max-width:900px){.calmaker{grid-template-columns:1fr}}
.cm-controls{display:grid;gap:16px}
.calmaker fieldset{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.calmaker legend{font-weight:700;font-size:14px;margin-bottom:8px;color:var(--ink);width:100%}
.calmaker label{font-size:14px;font-weight:600;color:var(--muted);display:grid;gap:5px}
.cm-row{display:flex;flex-wrap:wrap;gap:12px}.cm-row label{flex:1 1 120px}
.calmaker select,.calmaker input[type=text]{font:500 15px var(--body);padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);width:100%}
.cm-pill{display:inline-flex!important;align-items:center;gap:6px!important;border:1px solid var(--line);border-radius:999px;padding:7px 12px;background:#fff;cursor:pointer;color:var(--ink)!important}
.cm-pill:has(input:checked){border-color:var(--teal);background:var(--teal-soft)}
.cm-swatch{cursor:pointer;display:inline-grid!important;justify-items:center}
.cm-swatch input{position:absolute;opacity:0}
.cm-swatch span{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--a) 50%,var(--b) 50%);border:3px solid #fff;box-shadow:0 0 0 1px var(--line)}
.cm-swatch input:checked+span{box-shadow:0 0 0 3px var(--teal)}
.cm-swatch input:focus-visible+span{outline:3px solid var(--sun)}
.cm-swatch em{position:absolute;left:-9999px}
.cm-checks label{display:inline-flex!important;align-items:center;gap:6px;color:var(--ink)!important;margin-right:10px}
.cm-actions{display:flex;flex-wrap:wrap;gap:10px}.cm-actions .btn{flex:1 1 140px}
.cm-msg{margin:0;font-size:14px;color:var(--teal);font-weight:600;min-height:1em}
.cm-label{margin:0 0 8px;font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.cm-preview{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;box-shadow:var(--shadow);color:#222}
.cm-preview.is-portrait{max-width:430px;margin:0 auto}
.cm-title{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ca)}
.cm-head{display:flex;justify-content:space-between;align-items:baseline;font-family:var(--display);font-weight:800;font-size:26px;color:var(--cm);margin-bottom:8px}.cm-head .y{color:var(--ca)}
.cm-body{display:grid;gap:10px}.is-landscape .cm-body.has-notes{grid-template-columns:1fr 22%}
.cm-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
.cm-table th{background:var(--cm);color:#fff;font-size:10px;letter-spacing:.06em;text-transform:uppercase;padding:5px 2px}
.cm-table td{border:1px solid var(--cl);height:48px;vertical-align:top;padding:3px 4px}
.is-portrait .cm-table td{height:58px}
.cm-table td.we{background:var(--ct)}.cm-table td.empty{background:#fafafa}
.cm-table b{color:var(--cm)}.cm-table b.hol{color:var(--ca)}
.cm-table small{display:block;font-size:8.5px;line-height:1.15;color:var(--ca);margin-top:2px}
.cm-notes{border:1px solid var(--cl);border-radius:8px;padding:6px 8px;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--cm);min-height:60px;background:repeating-linear-gradient(#fff 0 17px,var(--cl) 17px 18px)}
.cm-pages{margin:8px 0 0;font-size:13px;color:var(--muted);text-align:center}
.cm-ytitle{text-align:center;font-family:var(--display);font-weight:800;font-size:20px;color:var(--cm);margin-bottom:10px}
.cm-ygrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.is-portrait .cm-ygrid{grid-template-columns:repeat(3,1fr)}
.cm-mini b{display:block;background:var(--cm);color:#fff;text-align:center;font-size:10px;border-radius:4px;padding:2px;letter-spacing:.05em;text-transform:uppercase}
.cm-mgrid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:9px;line-height:1.7}
.cm-mgrid i{font-style:normal;color:var(--ca);font-weight:700}.cm-mgrid .we{color:var(--ca)}.cm-mgrid .hol{background:var(--ct);border-radius:50%;color:var(--ca);font-weight:800}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px}
.tool-card{display:grid;gap:10px;align-content:start;text-decoration:none;color:inherit}
.tool-card h3{margin:0}.tool-card p{margin:0;color:var(--muted)}
.tool-ico{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal);font:800 22px var(--display)}
.entry > .calmaker,.entry > .tools-grid{max-width:100%}
.calmaker [hidden]{display:none!important}
.cm-upsell{margin-top:28px;display:grid;gap:14px;border:2px solid var(--line);transition:border-color .3s,box-shadow .3s}
.cm-upsell.is-on{border-color:var(--berry);box-shadow:0 0 0 6px rgba(232,96,63,.12)}
.cm-upsell h2{margin:0}.cm-upsell p{margin:0;color:var(--muted)}
.up-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.up-item{display:grid;gap:8px;text-decoration:none;color:var(--ink);font-weight:700;font-size:14px;line-height:1.3}
.up-item img{aspect-ratio:4/3;object-fit:contain;width:100%;background:var(--plum-soft);border-radius:10px}
.up-item:hover span{color:var(--berry)}
.up-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px}
.up-shop{font-weight:700;color:var(--teal)}
.entry > .cm-upsell{max-width:100%}
.hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:28px;align-items:center}
.hero::after{display:none}
.hero > *{max-width:none}
.hero-free{margin:14px 0 0;font-size:16px}.hero-free a{font-weight:700;color:var(--teal)}
.hero-art{position:relative;height:350px}
.hero-art img{position:absolute;width:64%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:14px;border:6px solid #fff;background:#fff;box-shadow:0 18px 40px rgba(23,32,38,.22)}
.hero-art img:nth-child(1){left:0;top:18px;transform:rotate(-7deg)}
.hero-art img:nth-child(2){right:0;top:0;transform:rotate(6deg)}
.hero-art img:nth-child(3){left:17%;top:118px;z-index:2;transform:rotate(-1.5deg)}
@media (max-width:820px){.hero{grid-template-columns:1fr}.hero-art{height:250px;max-width:460px;width:100%;margin:0 auto}.hero-art img:nth-child(3){top:84px}}


/* 1.6.2: nine-item menu fits one line */
.nav .menu{gap:2px}
.nav .menu a{padding:7px 10px;font-size:15.5px;white-space:nowrap}

/* 1.7.0: ad slots (fixed reserved height = no layout shift) */
.ad-slot{margin:28px auto;min-height:300px;max-width:100%;display:flex;flex-direction:column;align-items:stretch;background:transparent}
.ad-slot small{display:block;text-align:center;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.ad-slot ins{display:block;min-height:280px;width:100%}
/* grid tools (chore chart, habit tracker) */
.gm-table td{height:34px;vertical-align:middle;text-align:center;padding:2px}
.gm-table td.gm-first,.gm-table th.gm-first{text-align:left;padding-left:8px;width:30%}
.gm-table td.gm-first{font-size:12px;color:#222}
.gm-table th i{display:block;font-style:normal;opacity:.8;font-size:9px}
.is-wide .gm-table{font-size:9px}.is-wide .gm-table th{font-size:8px;padding:3px 0;letter-spacing:0}.is-wide .gm-table td{height:24px}.is-wide .gm-table .gm-first{width:18%}
.gm-dot{display:inline-block;width:14px;height:14px;border:1.5px solid var(--cl);border-radius:50%}
.gm-right{font-size:15px}
.gm-preview .cm-notes{margin-top:10px;min-height:40px}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}

/* 1.7.1: hero photo behind product mockups */
.hero-art.has-photo{background-size:cover;background-position:center;border-radius:22px;box-shadow:0 22px 50px rgba(23,32,38,.18);height:380px}
.hero-art.has-photo img{width:50%;border-width:5px}
.hero-art.has-photo img:nth-child(1){left:6%;top:30px}
.hero-art.has-photo img:nth-child(2){right:6%;top:22px}
.hero-art.has-photo img:nth-child(3){left:25%;top:150px}
@media (max-width:820px){.hero-art.has-photo{height:270px}.hero-art.has-photo img:nth-child(3){top:104px}}
/* category tiles: show the photo */
.tile img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:820px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.tiles{grid-template-columns:1fr}}

/* 1.8.0: free tools part 2 */
.cert-preview{background:var(--ct);padding:10px;aspect-ratio:11/8.5}
.cert-in{height:100%;border:5px solid var(--cm);outline:1px solid var(--ca);outline-offset:-10px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px 18px}
.cert-org{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ca)}
.cert-h{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:30px;letter-spacing:.18em;text-transform:uppercase;color:var(--cm);line-height:1.1}
.cert-sub{font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:var(--ca);margin-bottom:6px}
.cert-p{margin:4px 0;font-size:11px;color:#555}
.cert-name{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:700;font-size:26px;color:var(--cm);border-bottom:1px solid var(--cl);padding:0 18px 2px;margin:2px 0}
.cert-sig{display:flex;align-items:center;justify-content:space-between;width:90%;margin-top:10px;font-size:10px;color:#444}
.cert-sig span{border-top:1px solid #444;padding-top:3px;min-width:30%}
.cert-seal{width:34px;height:34px;border-radius:50%;background:var(--ca);box-shadow:inset 0 0 0 4px var(--ca),inset 0 0 0 5px #fff}
.tooth-preview{font-size:13px;line-height:1.6;border:2px solid var(--cl)}
.tf-top{text-align:center;font-family:Georgia,serif;font-style:italic;color:var(--ca);margin-bottom:8px}
.tf-dear{font-family:Georgia,serif;font-style:italic;font-weight:700;font-size:24px;color:var(--cm);margin-bottom:6px}
.tf-sign{text-align:right;font-family:Georgia,serif;font-style:italic;color:#555}.tf-sign b{display:block;font-size:22px;color:var(--ca)}
.tf-rec{margin-top:14px;border-top:1px dashed #9aa0a4;padding-top:10px;display:grid;gap:2px;font-size:12px;background:var(--ct);border-radius:8px;padding:10px}
.tf-rec b{color:var(--cm);letter-spacing:.08em;text-transform:uppercase;font-size:12px}
.recipe-preview{font-size:11px;padding:0;overflow:hidden;aspect-ratio:6/4}.recipe-preview.is-portrait{aspect-ratio:auto}
.rc-band{background:var(--cm);color:#fff;padding:10px 14px}.rc-band b{display:block;font-size:17px}.rc-band small{opacity:.9}
.rc-meta{display:flex;gap:16px;padding:6px 14px;font-weight:800;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--ca);border-bottom:1px solid var(--cl)}
.rc-cols{display:grid;grid-template-columns:38% 1fr;gap:12px;padding:8px 14px}.rc-cols h4{margin:0 0 4px;font-size:11px;color:var(--cm);letter-spacing:.06em;text-transform:uppercase}.rc-cols ul,.rc-cols ol{margin:0;padding-left:16px}
.gen .cm-controls{align-content:start}
.gen-next{font-size:18px;padding:16px 20px}
.gen-print summary{cursor:pointer;font-weight:700;color:var(--teal);margin:4px 0 10px}
.gen-print[open]{display:grid;gap:12px}
.gen-stage{display:flex;flex-direction:column;justify-content:center}
.gen-card{min-height:200px;display:flex;align-items:center;justify-content:center;text-align:center;padding:28px;border-radius:18px;background:linear-gradient(135deg,var(--sun-soft),var(--teal-soft));font-family:var(--display);font-weight:800;font-size:clamp(24px,3.4vw,36px);line-height:1.2;color:var(--teal);box-shadow:var(--shadow)}
.gen-card.pop{animation:genpop .35s ease}
@keyframes genpop{from{transform:scale(.94);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.gen-card.pop{animation:none}}
.calmaker input[type=date]{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fff;color:var(--ink)}

/* 1.9.0: bold hero + free printables strip */
.hero2{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:36px;align-items:center;padding:clamp(30px,5vw,64px);border-radius:28px;overflow:hidden;color:#fff;background:linear-gradient(105deg,rgba(11,58,71,.97) 0%,rgba(15,76,92,.9) 48%,rgba(15,76,92,.45) 100%),var(--hero-img,none) center/cover no-repeat,#0F4C5C;box-shadow:0 26px 60px rgba(15,76,92,.28)}
.hero2 h1{color:#fff;font-size:clamp(34px,5vw,58px);line-height:1.04;margin:14px 0 14px}
.hero2 p{color:rgba(255,255,255,.9);font-size:19px;max-width:54ch;margin:0}
.hero2-kicker{display:inline-block;background:var(--sun);color:#fff;font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;padding:7px 14px;border-radius:999px}
.hero2-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.hero2 .hero2-free{background:var(--berry);border-color:var(--berry);color:#fff;font-size:18px;padding:16px 28px;box-shadow:0 12px 28px rgba(212,80,46,.5)}
.hero2 .hero2-free:hover{background:var(--berry-dark);border-color:var(--berry-dark)}
.hero2 .hero2-ghost{background:transparent;border:2px solid rgba(255,255,255,.85);color:#fff;font-size:17px;padding:14px 24px}
.hero2 .hero2-ghost:hover{background:#fff;color:var(--teal)}
.hero2-chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:20px 0 0}
.hero2-chips a{display:inline-block;padding:7px 14px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);color:#fff;font-weight:700;font-size:14px;text-decoration:none}
.hero2-chips a:hover{background:#fff;color:var(--teal)}
.hero2 .hero-art{height:380px}
@media (max-width:820px){.hero2{grid-template-columns:1fr}.hero2 .hero-art{height:260px;max-width:460px;width:100%;margin:0 auto}}
.freebar{margin-top:8px}
.freebar-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.freebar-head a{font-weight:800;color:var(--berry)}
.free-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media (max-width:900px){.free-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ft{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:20px;background:var(--c);color:var(--ink);text-decoration:none;border:1px solid rgba(0,0,0,.04);transition:transform .2s,box-shadow .2s}
.ft:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(23,32,38,.12)}
.ft i{font-style:normal;width:50px;height:50px;border-radius:15px;display:grid;place-items:center;background:#fff;font-size:22px;font-weight:800;color:var(--d);box-shadow:0 4px 12px rgba(0,0,0,.06)}
.ft b{font-family:var(--display);font-size:19px;line-height:1.2}
.ft span{margin-top:auto;font-weight:800;font-size:14px;color:var(--d)}
@media (prefers-reduced-motion:reduce){.ft{transition:none}.ft:hover{transform:none}}
.nav .menu a[href*="/free-printables/"]{background:var(--berry);color:#fff;border-radius:999px;margin-left:4px}
.nav .menu a[href*="/free-printables/"]:hover{background:var(--berry-dark);color:#fff}
/* 1.9.1: one-line swipeable menu on phones, Free Printables first */
@media (max-width:760px){
.nav .menu{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:2px;padding-bottom:4px;mask-image:linear-gradient(90deg,#000 88%,transparent)}
.nav .menu::-webkit-scrollbar{display:none}
.nav .menu li{flex:0 0 auto}
.nav .menu li:has(a[href*="/free-printables/"]){order:-1}
.hero2 h1{font-size:34px}
.hero2-kicker{font-size:11px}
}
@media (max-width:760px){.nav{min-width:0;max-width:100%;overflow:hidden}.nav .menu{max-width:100%}}
.hero-art img.hero-photo{object-fit:cover;background:#fff}
