@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{--wine:#79152c;--dark:#251c20;--cream:#f7f4ee;--gold:#ba944d;--line:#ddd6cd;--green:#21624e;--muted:#6a6263;font-family:Arial,Helvetica,sans-serif;color:var(--dark);background:var(--cream)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:5px;padding:.7rem 1rem;background:white;color:var(--dark);font-weight:600;min-height:44px}button:hover:not(:disabled){border-color:var(--wine);background:#f6eeee}button:disabled{cursor:not-allowed;opacity:.55}a{color:var(--wine);text-underline-offset:3px}button.primary,.primary{background:var(--wine);color:white;border-color:var(--wine)}button.primary:hover:not(:disabled){background:#5b1021;color:white}.danger{color:#a02026}.skip{position:fixed;left:1rem;top:-100px;background:white;padding:1rem;z-index:20}.skip:focus{top:1rem}:focus-visible{outline:3px solid #a77b2e;outline-offset:3px}.mode{background:var(--wine);color:white;text-align:center;font-size:.84rem;padding:.65rem 1rem;line-height:1.4}header{background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:1.5rem;padding:1.3rem max(4vw,16px);flex-wrap:wrap}.brand{display:flex;align-items:center;gap:1rem;text-decoration:none;color:var(--dark);font-weight:bold}.brand img{width:150px;max-height:70px;object-fit:contain}.brand small{display:block;font-weight:normal;font-size:.8rem;margin-top:.25rem}nav{display:flex;gap:1.1rem;flex:1;justify-content:center;flex-wrap:wrap}nav a{font-size:.88rem;font-weight:bold;text-decoration:none;padding:.5rem 0}nav a[aria-current=page]{border-bottom:2px solid var(--wine)}main{max-width:1250px;margin:auto;padding:3rem max(3vw,18px);min-height:65vh}h1,h2,h3{font-family:Georgia,serif;margin:0 0 1rem;line-height:1.12}h1{font-size:clamp(2.2rem,4.4vw,4rem)}h2{font-size:1.8rem}h3{font-size:1.3rem}p{line-height:1.6;margin:.4rem 0 1rem}.eyebrow{text-transform:uppercase;font-size:.75rem;letter-spacing:.14em;font-weight:bold;color:var(--wine)}.lead{font-size:1.15rem;max-width:600px;color:var(--muted)}.fine,small{font-size:.83rem;color:var(--muted);line-height:1.5}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:3rem;align-items:start}.hero-copy{padding-top:1rem}.event-details{border-top:1px solid var(--line);margin:1.5rem 0;padding-top:1.3rem;display:grid;gap:.8rem}.event-details strong{display:block}.panel,.card{background:white;border:1px solid var(--line);border-radius:8px;padding:1.5rem}.panel + .panel{margin-top:1.5rem}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.cards{margin-top:2.5rem}.card p{color:var(--muted)}.card .primary{display:inline-block;text-decoration:none;padding:.75rem 1rem;border-radius:5px}.card-image{height:175px;width:100%;object-fit:cover;border-radius:5px;background:#eee8df;margin-bottom:1rem}.placeholder{height:140px;display:flex;align-items:center;justify-content:center;background:#f7f0e4;font-family:Georgia,serif;color:var(--wine);font-size:2rem;border-radius:5px;margin-bottom:1rem;text-align:center}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.fields .full{grid-column:1/-1}label{display:block;font-weight:600;font-size:.89rem;margin-bottom:.9rem}input,select,textarea{display:block;width:100%;border:1px solid #c5bdb5;background:white;border-radius:4px;padding:.7rem;color:var(--dark);margin-top:.4rem;min-height:44px}textarea{min-height:90px;resize:vertical}input[type=checkbox]{display:inline-block;width:20px;height:20px;min-height:20px;margin:0 .5rem 0 0;vertical-align:middle;accent-color:var(--wine)}.row{display:flex;gap:1rem;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:.9rem 0}.row:last-child{border-bottom:0}.row>div{min-width:0}.row strong,.row small{overflow-wrap:anywhere}.row small{display:block}.row input[type=number]{width:75px}.actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}.actions>*{max-width:100%}.badge{display:inline-block;padding:.25rem .5rem;border-radius:4px;background:#f0e7e0;color:var(--wine);font-size:.76rem;font-weight:bold}.badge.paid{background:#e7f2eb;color:var(--green)}.badge.draft{background:#fff0ce;color:#715212}.error{background:#fbe7e7;border:1px solid #d77b7f;color:#7c1721;padding:1rem;border-radius:5px;line-height:1.5;margin:1rem 0}.info{background:#f5efe2;border-left:3px solid var(--gold);padding:1rem;line-height:1.5;margin:1rem 0}.success{background:#eaf4ef;border-left:3px solid var(--green);padding:1rem;line-height:1.5;margin:1rem 0}.empty,.loading{padding:2rem;text-align:center;color:var(--muted);background:white;border:1px solid var(--line);border-radius:6px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}.section-head h1{font-size:2.7rem;margin:0}.admin-nav{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.5rem;border-bottom:1px solid var(--line);padding-bottom:1rem}.admin-nav a{text-decoration:none;border:1px solid var(--line);border-radius:4px;padding:.6rem .8rem;background:white}.admin-nav a[aria-current=page]{background:var(--wine);color:white}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:6px}table{width:100%;border-collapse:collapse;text-align:left;min-width:550px}th,td{padding:.8rem;border-bottom:1px solid var(--line);font-size:.86rem;vertical-align:top}th{background:#f0eae2}td small{display:block}.table-wrap button{padding:.4rem .6rem;font-size:.8rem}details{border-top:1px solid var(--line);padding:1rem 0}summary{cursor:pointer;font-weight:bold;padding:.4rem 0}.ticket{max-width:760px;margin:auto}.qr{display:flex;justify-content:center;padding:1rem;background:white}.qr img,.qr canvas,.qr svg{max-width:100%;height:auto}.check-row{display:flex;gap:.6rem;align-items:flex-start;border-bottom:1px solid var(--line);padding:1rem 0}.check-row input{margin-top:.2rem;flex:none}.check-row label{flex:1;margin:0;line-height:1.5}.check-row label strong,.check-row label small{display:block}.check-row label small{margin-top:.2rem}.colour{display:inline-block;width:13px;height:13px;border-radius:50%;border:1px solid #999;margin-right:.4rem;vertical-align:middle}.grotto-art{background:var(--wine);color:#f5dfae;padding:2rem;text-align:center;border-radius:50% 50% 8px 8px;font:3rem Georgia;margin:1rem 0}.product-preview{max-width:180px;max-height:150px;object-fit:contain}.child{border:1px solid var(--line);padding:1rem;margin-bottom:1rem;border-radius:5px;background:#faf8f4}.numbers{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:.45rem}.numbers button{padding:.6rem .1rem;font-size:.85rem}.numbers button.selected{background:var(--wine);color:white}.numbers button.sold{background:#e4e0dc;text-decoration:line-through}.winner{font-family:Georgia,serif;font-size:clamp(2.5rem,8vw,5rem);color:var(--wine);text-align:center;padding:1.5rem}.raffle-layout{display:grid;grid-template-columns:2fr 1fr;gap:1.5rem}.status-list{list-style:none;padding:0}.status-list li{padding:.65rem 0;border-bottom:1px solid var(--line)}.status-list strong{display:block}.settings-group{margin-top:1.5rem}.repeat-row{padding:1rem;background:#faf8f4;border:1px solid var(--line);border-radius:5px;margin-bottom:1rem}footer{border-top:1px solid var(--line);background:white;display:flex;gap:1rem;justify-content:space-between;flex-wrap:wrap;padding:2rem max(4vw,18px);font-size:.8rem}footer span{color:var(--muted)}dialog{border:0;border-radius:8px;width:min(720px,calc(100vw - 24px));max-height:90vh;overflow:auto;padding:1.6rem;color:var(--dark)}dialog::backdrop{background:#19121999}.modal-head{display:flex;gap:1rem;justify-content:space-between;align-items:start}.modal-head h2{margin-top:.3rem}.modal-head button{flex:none}#notice{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);padding:.8rem 1.2rem;background:var(--dark);color:white;border-radius:5px;max-width:calc(100vw - 30px);z-index:30;display:none}.poster{text-align:center;max-width:700px;margin:auto}.poster h1{font-size:3rem}.poster .qr img,.poster .qr canvas,.poster .qr svg{width:300px}.badge-line{display:flex;gap:.5rem;flex-wrap:wrap}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1050px){header{gap:1rem}.brand img{width:125px}nav{order:3;flex-basis:100%;justify-content:flex-start}header>button{margin-left:auto}.hero{gap:1.5rem}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){main{padding-top:2rem}.hero,.two,.raffle-layout{grid-template-columns:1fr}.hero-copy{padding-top:0}.grotto-art{padding:1rem;font-size:2rem}.numbers{grid-template-columns:repeat(5,minmax(0,1fr))}.hero h1{max-width:550px}.panel,.card{padding:1.2rem}}
@media(max-width:500px){.brand img{width:95px}.brand{gap:.7rem;font-size:.9rem}.brand small{font-size:.7rem}header{padding:1rem 16px}header>button{padding:.6rem .8rem;font-size:.8rem}nav{gap:.6rem 1rem}nav a{font-size:.8rem}main{padding:1.5rem 16px}.grid,.fields{grid-template-columns:1fr}.fields .full{grid-column:auto}h1{font-size:2.6rem}.section-head h1{font-size:2.2rem}.row{gap:.6rem}.actions>button{flex:1;min-width:110px}.panel,.card{padding:1rem}dialog{padding:1rem}.poster h1{font-size:2.5rem}.numbers{gap:.35rem}.numbers button{min-height:44px}.admin-nav a{font-size:.8rem}.event-details{margin:1rem 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{header,footer,.mode,.no-print,#notice{display:none!important}main{padding:0}.poster,.ticket{border:0;max-width:none}.panel{break-inside:avoid}.qr{padding:1rem}body{background:white}a{color:black}button,input{display:none!important}}

/* Parent presentation: preserve the original school-themed demo with the shared event service. */
:root{--wine:#8b1639;--dark:#242125;--cream:#faf9f7;--line:#e2dade;--muted:#655d62;font-family:'DM Sans',Arial,sans-serif;background:white}
body{background:white;line-height:1.5}.mode{background:#242125;font-size:12px;letter-spacing:.08em;padding:9px 4%}header{max-width:1440px;margin:auto;padding:24px 5%;gap:24px;border-bottom:1px solid var(--line)}.brand{gap:22px;font-weight:400}.brand img{width:240px;max-height:90px}.brand>span{border-left:1px solid var(--line);padding-left:20px;font:20px/1.25 Georgia,serif}.brand small{font:12px/1.5 'DM Sans',Arial,sans-serif;color:var(--muted);margin-top:7px}nav{margin-left:auto;justify-content:flex-end;gap:24px;flex:initial}nav a{font-size:14px;font-weight:500;white-space:nowrap}#basket-open{white-space:nowrap;font-size:14px;font-weight:500;min-height:44px}#basket-count{background:var(--wine);color:white;border-radius:50%;display:inline-grid;place-items:center;width:23px;height:23px;margin-left:6px}main{max-width:1440px;padding:44px 5% 64px;min-height:70vh}h1,h2{color:#811638;font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;letter-spacing:-.025em}h1{font-size:76px;line-height:1.06;margin-bottom:24px}h2{font-size:38px;line-height:1.15;margin-bottom:16px}h3{font-family:'DM Sans',Arial,sans-serif;font-size:18px;line-height:1.35}.eyebrow{font-size:12px;letter-spacing:.17em;margin-bottom:20px}.lead{font-size:18px;max-width:480px}.hero.fair-layout{grid-template-columns:1.1fr 1fr;gap:64px}.fair-intro{padding:24px 0}.event-details{padding-top:24px;margin:36px 0 24px;gap:18px}.event-details small{display:block;letter-spacing:.08em;text-transform:uppercase;font-size:12px}.event-details strong{font-size:15px;font-weight:500}.event-details>div{font-size:14px;color:var(--muted)}.panel.booking-panel{border-top:4px solid var(--wine);border-radius:4px;background:#faf9f7;padding:32px;box-shadow:none}.booking-panel h2{color:var(--dark)}.booking-panel>p{color:var(--muted)}button,.primary,.card .primary,input,select,textarea{border-radius:3px}.primary{display:inline-block;text-decoration:none;padding:13px 20px;min-height:47px}.wide{width:100%}.booking-panel>.wide{margin-top:24px}.basket-follow{margin-top:16px!important}.row.entry-row{gap:16px;padding:20px 0;align-items:center}.entry-row>div:first-child{flex:1}.entry-buy{display:grid;gap:8px;justify-items:end;flex:none}.entry-buy>strong{font-size:18px;color:var(--wine)}.entry-buy button{white-space:nowrap}.booking-price{padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:26px;font-weight:600;color:var(--wine);margin:24px 0}.booking-price small{display:block;font-weight:400;font-size:13px;color:var(--muted)}label{font-size:14px;font-weight:500;margin-bottom:18px}input,select,textarea{padding:12px;margin-top:7px;min-height:46px;background:white}.fields{gap:16px}.fine,small{font-size:13px}.preview-note{font-size:13px;padding:12px 14px;background:#f8f1f3;border:1px solid #e9ced7;border-left:3px solid var(--wine);margin:16px 0 24px}.school-context{font-size:14px;color:var(--muted);margin:28px 0 0}.sample-ticket{margin-top:20px}.card{border-radius:3px;display:flex;flex-direction:column}.card p{flex:1}.card .primary{align-self:flex-start}.cards{gap:24px;margin-top:48px}.cards h3{font-family:Georgia,serif;font-size:26px;font-weight:400}.cards .eyebrow{font-size:10px;margin:0 0 12px}.section-head.page-heading{align-items:flex-end;margin-bottom:32px}.page-heading h1{font-size:58px;line-height:1.08;margin-bottom:12px}.page-heading .lead{margin-bottom:0}.shop-note{max-width:280px;border-left:2px solid var(--wine);padding-left:18px;font-size:14px}.shop-note p{margin:6px 0 0;color:var(--muted)}.filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:26px 0 16px}.filter-bar button{border:1px solid var(--line);background:transparent;border-radius:30px;padding:9px 18px;font-size:14px;font-weight:500}.filter-bar button.active{background:var(--wine);color:white;border-color:var(--wine)}.shop-tools{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.shop-tools label{width:min(300px,70%);margin:0}.shop-tools>button{flex:none}.product-grid{gap:36px 24px;align-items:stretch}.product-card{min-width:0;display:flex;flex-direction:column;background:white}.card-detail{border:0;padding:0;background:transparent;display:block;width:100%;text-align:left;font-weight:500;min-height:0}.card-detail:hover:not(:disabled){background:transparent;border-color:transparent}.product-photo{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#eae9e2;border-radius:2px;margin-bottom:16px;height:auto}.product-card h3{min-height:2.7em;margin:0;font-weight:500;line-height:1.35}.product-unit{font-size:14px;color:var(--muted);min-height:3em;margin:8px 0 16px}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;min-height:46px}.product-bottom strong{font-size:18px;white-space:nowrap}.product-bottom button{font-size:14px;padding:9px 15px;font-weight:500;white-space:nowrap}.stock-note{min-height:1.5em;margin:12px 0 0;font-size:12px}.catalogue-footnote{margin-top:30px}.product-detail-photo{display:block;width:100%;height:auto;max-height:400px;object-fit:contain;background:#faf9f7;margin-bottom:20px}.product-detail-price{display:flex;gap:16px;align-items:baseline}.product-detail-price strong{font-size:24px;color:var(--wine)}.product-detail-price span{color:var(--muted);font-size:14px}#product-form>label{max-width:150px}dialog{border:1px solid var(--line);border-radius:8px;padding:28px;width:min(640px,calc(100vw - 32px))}dialog::backdrop{background:#221319bb;backdrop-filter:blur(3px)}.grotto-scene{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:20px;margin:30px 0;padding:24px 12px 0;background:#f1e9e5;border-radius:120px 120px 12px 12px;min-height:210px;overflow:hidden}.grotto-house{width:170px;background:#820e33;color:#fff;border-radius:80px 80px 0 0;text-align:center;padding:14px 20px 0;box-shadow:0 0 0 8px #fff8}.grotto-house>span{color:#e7c585;font-size:24px}.grotto-house strong{display:block;font:25px Georgia,serif}.grotto-door{width:60px;margin:14px auto 0;background:#3d1220;border-radius:30px 30px 0 0;height:70px;font-size:28px;padding-top:16px;color:#e7c585}.grotto-tree{font-size:95px;color:#2b4c3f;line-height:1}.grotto-star{align-self:flex-start;font-size:35px;color:#b58a40}.grotto-times{display:grid;gap:10px;margin:24px 0}.grotto-times>div{background:#fff;border:1px solid var(--line);border-radius:3px;padding:14px;display:grid;gap:6px}.grotto-times span{font-size:13px;color:var(--muted)}.gift-colours{margin-top:26px}.badge{border-radius:2px}.numbers button{font-variant-numeric:tabular-nums}.raffle-layout aside>button{display:block;margin-top:20px;width:100%}footer{background:#242125;color:#e4dce0;padding:24px 5%;font-size:13px;gap:24px}footer strong,footer a{color:white}footer span{color:#e4dce0}.ticket h1{font-size:46px}.ticket h2{font-size:30px}.ticket .panel{border-radius:3px}.ticket .check-row>span{flex:none;white-space:nowrap}.ticket .check-row label{min-width:0;overflow-wrap:anywhere}
@media(max-width:1220px){header{gap:20px}nav{order:3;width:100%;margin:0;justify-content:flex-end;gap:24px}#basket-open{margin-left:auto}.brand>span{font-size:18px}.hero.fair-layout{gap:40px}h1{font-size:64px}}
@media(max-width:1050px){.brand img{width:220px}.hero.fair-layout{gap:32px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px}.product-bottom{align-items:stretch;flex-direction:column;gap:8px}.product-bottom button{width:100%}}
@media(max-width:800px){header{padding:18px 5%;gap:16px}.brand{gap:16px}.brand>span{font-size:17px;padding-left:16px}nav{justify-content:space-between;gap:12px;flex-basis:100%}.hero.fair-layout{grid-template-columns:1fr;gap:32px}.fair-intro{padding:0}h1{font-size:60px}.booking-panel{max-width:650px;width:100%}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 18px}.page-heading h1{font-size:48px}.shop-note{max-width:220px}.cards{grid-template-columns:1fr}.cards .primary{margin-top:8px}.grotto-scene{max-width:540px}.product-bottom{flex-direction:row;align-items:center}.product-bottom button{width:auto}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){header{padding:16px 5%;gap:14px}.brand{gap:12px;flex:1}.brand img{width:150px}.brand>span{font-size:15px;padding-left:12px}.brand small{font-size:10px}#basket-open{font-size:13px;padding:8px 12px;margin-left:0}nav{gap:8px}nav a{font-size:12px}.mode{font-size:10px;letter-spacing:.04em}main{padding:28px 5% 48px}h1{font-size:52px}.hero.fair-layout{gap:28px}.panel.booking-panel{padding:23px}.booking-panel h2{font-size:32px}.event-details{margin:24px 0}.section-head.page-heading{display:block}.page-heading h1{font-size:44px}.shop-note{max-width:none;margin-top:20px}.product-grid{gap:26px 14px}.product-card h3{font-size:15px;min-height:4.05em}.product-unit{font-size:12px;min-height:3em}.product-bottom{flex-direction:column;align-items:stretch;gap:8px}.product-bottom strong{font-size:17px}.product-bottom button{width:100%;font-size:13px;padding:9px 10px}.filter-bar{gap:8px}.filter-bar button{padding:8px 13px;font-size:13px}.shop-tools{gap:12px}.shop-tools>button{padding:10px;font-size:12px}.stock-note{min-height:3em;font-size:11px}.fields{grid-template-columns:1fr}.fields .full{grid-column:auto}.entry-buy button{font-size:12px;padding:9px}.entry-row strong{font-size:15px}.entry-row small{font-size:12px}.grotto-tree{font-size:65px}.gift-colours{gap:6px}.ticket h1{font-size:36px}.ticket .check-row{gap:8px}.ticket .check-row label{font-size:13px}.ticket .check-row>span{font-size:12px}dialog{padding:22px}footer{gap:12px;flex-direction:column}.actions{gap:10px}}
@media(max-width:390px){.brand img{width:130px}.brand>span{font-size:14px;padding-left:10px}.brand small{display:none}.brand{gap:10px}header{gap:12px}.product-grid{gap:24px 12px}.shop-tools label{width:65%}.entry-buy button{max-width:115px;white-space:normal}h1{font-size:46px}}
@media print{body{background:white}.ticket h1{font-size:36px}.ticket .panel{border-color:#ddd}main{max-width:none}}
.basket-counter{display:flex;align-items:center;border:1px solid var(--line);border-radius:3px;width:fit-content;margin-top:10px;background:white}.basket-counter button{border:0;padding:6px 10px;min-width:40px;min-height:40px;background:transparent}.basket-counter span{min-width:32px;text-align:center;font-size:14px}
