/* Shared styles for every page (homepage + /print). Page-specific CSS stays inline on that page. */
html { scroll-behavior: smooth; }
body { background: #F7F4EF; }

/* Headings: Source Serif 4 (Stanford's serif) reads best at semibold, so bold headings render at 600. */
.font-display.font-bold, .font-display.font-extrabold { font-weight: 600; }

/* Subtle paper grain / atmosphere */
.grain::before{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Load-in reveal (staggered) ---------- */
.reveal { opacity:0; transform:translateY(18px); }
.reveal.in { opacity:1; transform:translateY(0);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }

.hero-stagger > * { opacity:0; transform:translateY(22px); animation:rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-stagger > *:nth-child(1){ animation-delay:.05s }
.hero-stagger > *:nth-child(2){ animation-delay:.18s }
.hero-stagger > *:nth-child(3){ animation-delay:.31s }
.hero-stagger > *:nth-child(4){ animation-delay:.44s }
.hero-stagger > *:nth-child(5){ animation-delay:.57s }
@keyframes rise { to { opacity:1; transform:translateY(0) } }

/* Animated underline for the hero rule */
.rule-grow { transform-origin:left; animation:grow 1.1s .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from{ transform:scaleX(0) } to{ transform:scaleX(1) } }

/* Service card hover (no layout shift) */
.svc { transition: transform .25s ease-out, box-shadow .25s ease-out, border-color .25s ease-out; }
.svc:hover { transform:translateY(-6px); box-shadow:0 18px 40px -22px rgba(28,36,52,.45); border-color:#8C1515; }
.svc:hover .svc-ico { color:#8C1515; transform:rotate(-3deg) scale(1.05); }
.svc-ico { transition: color .25s ease-out, transform .25s ease-out; }
/* Service cards with their own page: the whole card is the link (the title's link stretches over it). */
.svc-link::after { content:''; position:absolute; inset:0; border-radius:inherit; }
.svc-link:focus-visible { outline:none; }
.svc:has(.svc-link:focus-visible) { outline:2px solid #8C1515; outline-offset:3px; }

.link-underline { background-image:linear-gradient(currentColor,currentColor);
  background-size:0% 1.5px; background-repeat:no-repeat; background-position:left bottom;
  transition:background-size .3s ease; }
.link-underline:hover { background-size:100% 1.5px; }

/* "Now open" badge — cardinal pill with a soft pulsing glow */
.glow-open { animation:glowOpen 2.4s ease-in-out infinite; }
@keyframes glowOpen {
  0%,100% { box-shadow:0 0 0 0 rgba(140,21,21,.4), 0 8px 24px -8px rgba(140,21,21,.55); }
  50%     { box-shadow:0 0 0 6px rgba(140,21,21,0), 0 10px 28px -6px rgba(140,21,21,.7); }
}

/* Flashy FAQ nav link — gentle attention pulse */
.faq-flash { animation:faqFlash 1.7s ease-in-out infinite; }
@keyframes faqFlash {
  0%,100% { box-shadow:0 0 0 0 rgba(140,21,21,0); }
  50%     { box-shadow:0 0 0 4px rgba(140,21,21,.12); }
}

/* FAQ accordion (native details/summary) */
.faq-item summary { list-style:none; cursor:pointer; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item .chev { transition:transform .3s ease; }
.faq-item[open] .chev { transform:rotate(45deg); }
.faq-item[open] .faq-ans { animation:faqOpen .32s ease both; }
@keyframes faqOpen { from{ opacity:0; transform:translateY(-6px) } to{ opacity:1; transform:none } }

/* ================= PRINT SECTION ================= */
/* Category bar: one flat row; scrolls sideways on phones instead of hiding. */
.cat-bar { scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.cat-bar::-webkit-scrollbar { display:none; }
.cat-link[aria-current="page"] { color:#8C1515; box-shadow:inset 0 -2px 0 #8C1515; }

/* Product order form (flow.js): the file preview sits LEFT of the sizes whenever the file's card is wide enough
   (owner, Dec 3 2026), on any screen; narrower cards (phones, 1024px laptops beside the order summary) stack it on top. */
.flow-card { container-type:inline-size; }
@container (min-width: 640px) {
  .flow-card .flow-cols { grid-template-columns:250px minmax(0,1fr); }
  /* Options under the preview, notes beside them: the same two columns as above. */
  .flow-card .fo-bottom { grid-template-columns:250px minmax(0,1fr); }
  /* Printing tiles (posters) sit above Notes, beside the options; Notes stretches to fill the rest. */
  .flow-card .fo-bottom:has(.fo-segsec) { grid-template-rows:auto 1fr; }
  .flow-card .fo-bottom:has(.fo-segsec) .fo-optsec { grid-column:1; grid-row:1 / span 2; }
  .flow-card .fo-bottom .fo-segsec { grid-column:2; grid-row:1; order:0; }
  .flow-card .fo-bottom:has(.fo-segsec) .fo-notesec { grid-column:2; grid-row:2; }
  .flow-card .fo-notesec { display:flex; flex-direction:column; }
  .flow-card .fo-notesec .fo-notes { flex:1; min-height:84px; }
  /* Products with a tile choice (poster paper): "Preview & edit" and the paper box end on the same line. */
  .flow-card .fo-align .fo-left, .flow-card .fo-align .fo-col { display:flex; flex-direction:column; }
  .flow-card .fo-align .fo-left > [data-preview]:last-child { margin-top:auto; }
  .flow-card .fo-align .fo-col .fo-tilesec { margin-top:auto; padding-top:24px; }
}
.fo-bottom { grid-column:1 / -1; display:grid; gap:24px; }
.fo-left > [data-preview]:last-child { margin-top:16px; }

/* Order form right column (flow.js), one grid (owner, Dec 3 2026: "symmetry and alignment"):
   every section has the same heading and a 24px gap; paper tiles and option rows are the same card
   (16px sides, 12px radius, 14px semibold title, 12px price/note); all edges line up with the size list. */
.fo-sec + .fo-sec { margin-top:24px; }
.fo-h { font-size:14px; font-weight:600; line-height:20px; }
.fo-sub { margin-top:2px; font-size:12px; line-height:16px; color:#5A6473; }
.fo-foot { margin-top:8px; font-size:12px; line-height:16px; color:#5A6473; }
.fo-group { margin-top:8px; }
.fo-opt { border:1px solid #E5DFD4; border-radius:12px; background:#fff; padding:12px 16px; text-align:left; }
.fo-title { font-size:14px; font-weight:600; line-height:20px; color:#1C2434; }
.fo-price { font-size:12px; line-height:16px; font-weight:600; color:#5A6473; font-variant-numeric:tabular-nums; white-space:nowrap; }
.opt-tile[aria-pressed="true"] .fo-title, .opt-tile[aria-checked="true"] .fo-title { color:#8C1515; }
.opt-tile[aria-pressed="true"] .fo-price, .opt-tile[aria-checked="true"] .fo-price { color:#8C1515; }
/* Option rows: checkbox | title ........ price / note under the title. */
.fo-list { display:grid; gap:8px; }
.fo-row { display:grid; grid-template-columns:22px minmax(0,1fr) auto; column-gap:12px; row-gap:2px; align-items:center; }
.fo-check { width:22px; height:22px; grid-row:1; }
.fo-row .fo-title { grid-column:2; grid-row:1; }
.fo-row .fo-price { grid-column:3; grid-row:1; line-height:20px; }
.fo-note { grid-column:2 / 4; grid-row:2; font-size:12px; line-height:16px; color:#5A6473; }
/* Paper tiles: three across, thickness icon in a fixed 20 × 20 box, bars sit on its bottom edge. */
.fo-tiles-wrap { container-type:inline-size; }
/* Paper heading with the Matte / Glossy dropdown on its right (owner, Dec 3 2026). */
.fo-hrow { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:-5px; }
.fo-finish { height:30px; min-width:118px; border:1px solid #E5DFD4; border-radius:8px; background-color:#fff; padding:0 34px 0 12px;
  font-size:13px; font-weight:600; color:#1C2434; }
select.fo-finish { background-size:14px; background-position:right 10px center; }
.fo-tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.fo-tile { display:flex; align-items:center; gap:8px; min-width:0; padding:5px 12px; }
.fo-tile .fo-title { font-size:13px; line-height:16px; }
.fo-tile .fo-price { font-size:11px; line-height:14px; }
.fo-tile .fo-title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fo-bars { display:flex; flex-direction:column; justify-content:flex-end; gap:2px; width:18px; height:18px; flex-shrink:0; }
.fo-bars i { display:block; height:2px; border-radius:1px; background:#1C2434; }
.opt-tile[aria-pressed="true"] .fo-bars i { background:#8C1515; }
@container (max-width: 330px) { .fo-tile { flex-direction:column; align-items:flex-start; gap:6px; padding:10px 12px; } }
/* Grouped look (owner's pick, Dec 3 2026): each section is one box with dividers, like the size list. */
.fo-group { border:1px solid #E5DFD4; border-radius:12px; overflow:hidden; background:#fff; }
.fo-list, .fo-tiles { gap:0; }
.fo-group > .fo-opt { border:0; border-radius:0; box-shadow:none; transform:none; }
.fo-group > .fo-opt:hover { transform:none; box-shadow:none; background:#FCFAF7; }
.fo-list > .fo-opt + .fo-opt { border-top:1px solid #E5DFD4; }
.fo-tiles > .fo-opt + .fo-opt { border-left:1px solid #E5DFD4; }
.fo-group > .opt-tile[aria-pressed="true"], .fo-group > .opt-tile[aria-checked="true"] { background:#FBF4F3; box-shadow:inset 3px 0 0 #8C1515; }
.fo-tiles > .opt-tile[aria-pressed="true"] { box-shadow:inset 0 -3px 0 #8C1515; }
/* Printing on tile products (posters): two tiles above Notes, same box style as Paper (owner, Dec 3 2026). */
.fo-segsec { order:-1; }   /* phones: Printing comes before the options */
.fo-seg { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:8px; }
.fo-seg .fo-tile { min-height:40px; }
.fo-swatch { width:16px; height:16px; border-radius:50%; flex-shrink:0; box-shadow:inset 0 0 0 1px rgba(28,36,52,.2); }
.fo-swatch-color { background:conic-gradient(#E53E3E, #ECC94B, #38A169, #3182CE, #805AD5, #E53E3E); }
.fo-swatch-bw { background:linear-gradient(90deg, #1C2434 50%, #fff 50%); }
.fo-notes { margin-top:8px; border:1px solid #E5DFD4; border-radius:12px; background:#fff; padding:10px 16px; }

/* Option tiles */
/* Option tiles (product configurator): soft rounded cards, lift on hover, tinted when chosen. */
.opt-tile { position:relative; box-shadow:0 1px 2px rgba(28,36,52,.05);
  transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease; }
.opt-tile:hover { border-color:rgba(140,21,21,.35); box-shadow:0 8px 20px -12px rgba(28,36,52,.35); transform:translateY(-1px); }
.opt-tile:active { transform:translateY(0) scale(.985); }
.opt-tile[aria-pressed="true"], .opt-tile[aria-checked="true"] {
  border-color:#8C1515; background:#FBF4F3; transform:none;
  box-shadow:inset 0 0 0 1px #8C1515, 0 10px 24px -16px rgba(140,21,21,.55); }
.opt-tile[aria-pressed="true"] .opt-label, .opt-tile[aria-pressed="true"] [data-price] { color:#8C1515; }
.opt-tile [data-delta] { transition:background-color .18s ease, color .18s ease; }
.opt-tile[aria-pressed="true"] [data-delta] { background:#8C1515; color:#fff; border-radius:999px; padding:1px 8px 1px 20px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:10px; background-position:7px 50%; }
.opt-tile:focus-visible, .cat-link:focus-visible, .btn:focus-visible { outline:2px solid #8C1515; outline-offset:2px; }
.opt-check { transition:background-color .18s ease, border-color .18s ease, transform .18s ease; }
.opt-tile[aria-checked="true"] .opt-check { background:#8C1515; border-color:#8C1515; transform:scale(1.05); }
.opt-tile[aria-checked="true"] .opt-check svg { opacity:1; }
.opt-tile[aria-checked="true"] [data-delta] { color:#8C1515; }
/* Dropdown + notes: rounded, custom chevron, cardinal focus ring. */
.opt-select { appearance:none; -webkit-appearance:none; box-shadow:0 1px 2px rgba(28,36,52,.05);
  transition:border-color .18s ease, box-shadow .18s ease; }
select.opt-select { cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C1515' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:18px; background-position:right 14px center; }
.opt-select:hover { border-color:rgba(140,21,21,.35); }
.opt-select:focus { outline:none; border-color:#8C1515; box-shadow:0 0 0 3px rgba(140,21,21,.14); }
/* File drop zone */
.opt-drop { transition:border-color .18s ease, background-color .18s ease; }
.opt-drop:hover { border-color:#8C1515; background:#FBF4F3; }

/* Price total flash when it changes */
.price-pop { animation:pricePop .35s ease; }
@keyframes pricePop { 0%{ transform:scale(1) } 40%{ transform:scale(1.04) } 100%{ transform:scale(1) } }

/* Help Me Decide dialog */
dialog.decide::backdrop { background:rgba(16,42,67,.45); backdrop-filter:blur(2px); }
dialog.decide[open] { animation:faqOpen .25s ease both; }

/* Phone bottom action bar sits above the safe area */
.mobile-bar { padding-bottom:env(safe-area-inset-bottom, 0px); }

/* ---------- Business card live preview ---------- */
.bc-stage { perspective:1400px; }
.bc-card { position:relative; aspect-ratio:3.5/2; width:100%; max-width:420px; border-radius:2px;
  transition:border-radius .3s ease, transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.bc-card.rounded-c { border-radius:14px; }
.bc-face { position:absolute; inset:0; border-radius:inherit; overflow:hidden; background:#fff; }
.bc-uncoated .bc-face { background:#FBF8F2; }
.bc-uncoated .bc-face::after { content:""; position:absolute; inset:0; opacity:.22; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.bc-sheen .bc-face::before { content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 60%); }
.bc-laminated .bc-face::before { background:linear-gradient(115deg, rgba(255,255,255,0) 25%, rgba(255,255,255,.8) 42%, rgba(255,255,255,0) 58%); }
.bc-back { position:absolute; inset:0; border-radius:inherit; transform:translate(18%, -16%) rotate(6deg); z-index:0; transition:opacity .3s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.bc-back.off { opacity:0; transform:translate(4%, -4%) rotate(2deg); }
.bc-front { position:absolute; inset:0; z-index:1; border-radius:inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .reveal,.hero-stagger>*,.rule-grow,.svc,.svc-ico,.opt-tile,.glow-open,.faq-flash,.faq-ans,.price-pop,.bc-card,.bc-back,dialog.decide[open] { animation:none !important; transition:none !important; }
  .reveal { opacity:1; transform:none; }
  .hero-stagger>* { opacity:1; transform:none; }
  .rule-grow { transform:none; }
}

/* Fade the right edge of the category row when it can scroll (narrower than the full row). */
@media (max-width: 1279px) {
  .cat-bar { -webkit-mask-image:linear-gradient(to right,#000 85%,transparent); mask-image:linear-gradient(to right,#000 85%,transparent); padding-right:32px; }
}

/* ---------- Print menu: category dropdowns (desktop) ---------- */
.dd-panel { opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.dd.open .dd-panel { opacity:1; visibility:visible; transform:none; transition:opacity .16s ease, transform .16s ease, visibility 0s; }
.dd.open > .dd-btn { color:#8C1515; box-shadow:inset 0 -2px 0 #8C1515; }
.dd.open .dd-chev { transform:rotate(180deg); }

/* ---------- Print menu: full-screen drawer (phones) ---------- */
.drawer[hidden] { display:none !important; }
.drawer { animation:drawerIn .22s ease both; }
@keyframes drawerIn { from{ opacity:0; transform:translateY(12px) } to{ opacity:1; transform:none } }
.dr-cat[open] .dd-chev { transform:rotate(180deg); }
.dr-cat summary::-webkit-details-marker { display:none; }
body.drawer-lock { overflow:hidden; }

@media (prefers-reduced-motion: reduce) {
  .dd-panel, .dd.open .dd-panel, .drawer { transition:none !important; animation:none !important; }
}

/* Quantity box: typed number with stacked up/down arrows (native spinners hidden). */
.qty { box-shadow:0 1px 2px rgba(28,36,52,.05); transition:border-color .18s ease, box-shadow .18s ease; }
.qty:hover { border-color:rgba(140,21,21,.35); }
.qty:focus-within { border-color:#8C1515; box-shadow:0 0 0 3px rgba(140,21,21,.14); }
.qty.over { border-color:#8C1515; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.qty input[type=number] { -moz-appearance:textfield; appearance:textfield; }
.qty-btn { transition:background-color .15s ease, color .15s ease; }
.qty-btn:hover:not(:disabled) { background:#FBF4F3; color:#8C1515; }
.qty-btn:active:not(:disabled) { background:#F4E4E2; }
.qty-btn:disabled { opacity:.3; cursor:default; }

/* The hidden attribute always wins over Tailwind display classes (grid, flex…). */
[hidden] { display:none !important; }

/* Product page tabs (Good for / Setting up your file / Questions) */
.tab { color:#5A6473; border-color:transparent; transition:color .15s ease, border-color .15s ease; }
.tab:hover { color:#1C2434; }
.tab[aria-selected="true"] { color:#1C2434; border-color:#8C1515; }

/* Pickup day/time chips (checkout, Upload Files) */
.pk-chip { cursor:pointer; box-shadow:0 1px 2px rgba(28,36,52,.05); transition:border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.pk-chip:hover { border-color:rgba(140,21,21,.35); transform:translateY(-1px); }
.pk-chip[aria-pressed="true"] { border-color:#8C1515; background:#FBF4F3; color:#8C1515; box-shadow:inset 0 0 0 1px #8C1515; transform:none; }
.pk-chip[aria-pressed="true"] span { color:#8C1515; }
.pk-error { display:none; }
.pk.pk-missing .pk-error { display:block; }
.pk.pk-missing [data-pickup-days], .pk.pk-missing [data-pickup-times] { outline:2px solid rgba(140,21,21,.35); outline-offset:4px; border-radius:12px; }

/* "Print Online" header button: rainbow light travels around the pill while a soft rainbow halo
   glows and dims behind it. ::before = blurred halo, ::after = white fill + rainbow ring. */
@property --pg-angle { syntax:'<angle>'; initial-value:0deg; inherits:false; }
.print-glow { position:relative; isolation:isolate; background:transparent !important; border-color:transparent !important; }
.print-glow::before, .print-glow::after { content:''; position:absolute; border-radius:inherit; pointer-events:none;
  --pg-rainbow: conic-gradient(from var(--pg-angle), #ff4d4d, #ff9a3c, #ffd84d, #4cd97b, #33b5ff, #7a5cff, #ff5ccf, #ff4d4d);
  animation:pgSpin 3.2s linear infinite; }
.print-glow::before { inset:-4px; z-index:-2; background:var(--pg-rainbow); filter:blur(9px);
  animation:pgSpin 3.2s linear infinite, pgBreathe 2.6s ease-in-out infinite; }
.print-glow::after { inset:0; z-index:-1; border:2px solid transparent;
  background:linear-gradient(#FFFFFF, #FFFFFF) padding-box, var(--pg-rainbow) border-box; transition:background .2s ease; }
.print-glow:hover::after { background:linear-gradient(#FBF4F3, #FBF4F3) padding-box, var(--pg-rainbow) border-box; }
.print-glow.is-current::after { background:linear-gradient(#8C1515, #8C1515) padding-box, var(--pg-rainbow) border-box; }
@keyframes pgSpin { to { --pg-angle:360deg; } }
@keyframes pgBreathe { 0%,100% { opacity:.25; transform:scale(.96); } 50% { opacity:.8; transform:scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .print-glow::before, .print-glow::after { animation:none !important; }
  .print-glow::before { opacity:.45; }
}

/* Print landing page: expanding photo gallery (.xg). Desktop: five tall panels in a row, the open
   one widens. Phones: stacked strips, the open one grows taller. */
.xg { display:flex; gap:10px; height:clamp(400px, calc(100vh - 390px), 600px); }
.xg-panel { position:relative; flex:1 1 0; min-width:0; overflow:hidden; border-radius:20px; cursor:pointer; outline:none;
  box-shadow:0 18px 40px -26px rgba(28,36,52,.55); transition:flex-grow .55s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.xg-panel.is-open { flex-grow:3.4; cursor:default; box-shadow:0 26px 60px -28px rgba(140,21,21,.55); }
.xg-panel:focus-visible { box-shadow:0 0 0 3px #8C1515; }
.xg-img img { transition:transform .8s cubic-bezier(.2,.7,.2,1); }
.xg-panel.is-open .xg-img img { transform:scale(1.04); }
.xg-shade { background:linear-gradient(to top, rgba(16,22,34,.88) 0%, rgba(16,22,34,.35) 45%, rgba(16,22,34,.05) 75%); transition:background .4s ease; }
.xg-panel.is-open .xg-shade { background:linear-gradient(to top, rgba(16,22,34,.94) 0%, rgba(16,22,34,.82) 45%, rgba(16,22,34,.35) 75%, rgba(16,22,34,.08) 100%); }
.xg-closed, .xg-open { transition:opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.xg-open { opacity:0; transform:translateY(14px); pointer-events:none; }
.xg-panel.is-open .xg-open { opacity:1; transform:none; pointer-events:auto; transition-delay:.18s; }
.xg-panel.is-open .xg-closed { opacity:0; transform:translateY(8px); }
.xg-panel:not(.is-open):hover .xg-title { text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:2px; }
@media (max-width: 767px) {
  .xg { flex-direction:column; height:auto; gap:8px; }
  .xg-panel { flex:none; height:92px; transition:height .5s cubic-bezier(.2,.7,.2,1); }
  .xg-panel.is-open { height:auto; min-height:300px; }
  .xg-panel.is-open .xg-open { position:relative; }
}
@media (prefers-reduced-motion: reduce) { .xg-panel, .xg-open, .xg-closed, .xg-img img { transition:none !important; } }

/* ---------- Testing mode (TESTING in tools/site/shell.mjs) ----------
   While Print Online is being tested, /print pages get body.print-testing: every price is hidden.
   Covers prices that scripts write at runtime (configurator, phone price bar, cart, sticker editor). */
.print-testing .price-only,
.print-testing [data-price],
.print-testing [data-delta],
.print-testing [data-bar-total],
.print-testing [data-money],
.print-testing .sb-price,
.print-testing .sb-buy .subtotal-box,
.print-testing [data-builder-size] small { display: none !important; }
/* the 36px banner makes the header taller: keep the sticker proof below it */
.print-testing .sb-scope[data-layout] .sticker-builder-workspace { top: 186px; }

/* ---------- Order flow (every product page + cart; flow.js, preview.js, pickup.js) ---------- */
:root { --flow-top: 140px; }                     /* sticky panels sit just under the fixed header */
.print-testing { --flow-top: 176px; }            /* +36px "Under testing" banner */
.testing-only { display: none; }
.print-testing .testing-only { display: block; }
.flow-in { animation: flowIn .25s ease-out; }
@keyframes flowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.flow-row { transition: background-color .15s ease; }
.flow-row.is-on { background: #FBF3F2; }
.flow-row.is-on .flow-row-label { color: #8C1515; }
[data-drop].is-drag { border-color: #8C1515; background: #FBF4F3; }
.pv-bw img, .pv-bw image { filter: grayscale(1); }
.pv-drag { cursor: grab; touch-action: none; }
.pv-drag:active { cursor: grabbing; }
.pv-spin { animation: pvSpin 1s linear infinite; }
@keyframes pvSpin { to { transform: rotate(360deg); } }
.pv-range { accent-color: #8C1515; }
.pv-check[aria-checked="true"] .chk { background: #8C1515; border-color: #8C1515; }
.pv-check[aria-checked="true"] .chk svg { opacity: 1; }
dialog::backdrop { background: rgba(16, 42, 67, .45); }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
/* pickup picker */
.pk-chip { transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.pk-chip[aria-pressed="true"] { border-color: #8C1515; background: #FBF3F2; box-shadow: inset 0 0 0 1px #8C1515; }
.pk-today { transition: background-color .15s ease, box-shadow .15s ease; }
.pk-today[aria-pressed="true"] { background: #8C1515; color: #fff; box-shadow: 0 10px 24px -14px rgba(140,21,21,.8); }
.pk-today[aria-pressed="true"] .pk-sub { color: rgba(255,255,255,.85); }
.pk-today[aria-pressed="true"] .pk-bolt { background: rgba(255,255,255,.18); color: #fff; }
.pk-today[aria-pressed="true"] .pk-radio { border-color: #fff; background: #fff; }
.pk-today[aria-pressed="true"] .pk-radio span { opacity: 1; }
.pk .pk-error { display: none; }
.pk.pk-missing .pk-error { display: block; }
@media (prefers-reduced-motion: reduce) { .flow-in, .pv-spin { animation: none; } }

/* Search: the FAQ answer or service card a search result jumped to glows briefly. */
.search-flash { box-shadow: 0 0 0 3px rgba(140, 21, 21, .35); transition: box-shadow .4s ease; }
.sr-item mark { background: rgba(140, 21, 21, .1); }

/* Floating "Find us inside" map card on the homepage (owner's pick, Nov 19 2026).
   Thumbnail = the indoor map's floor 2 (1080×1640) at 230px wide; Suite 8's centre (850,262) lands
   under the pin's tip. Re-aim background-position if the floor image changes. */
.find-us { transition: transform .25s ease-out, opacity .25s ease-out, box-shadow .25s ease-out; animation: findUsIn .5s .8s backwards cubic-bezier(.2,.8,.2,1); }
.find-us:hover { transform: translateY(-2px); }
.find-us-thumb { background: url(/tresidder-map/assets/floor2.webp) no-repeat; background-size: 230px auto; background-position: -149px -18px; }
.find-us-pin { transform: translate(-50%, -70%); filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
@keyframes findUsIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .find-us { animation: none; transition: none; } }
@media print { .find-us { display: none; } }

/* Checkout: price lines per item: label | "TX" tag | amount. Amounts are right-aligned and end on the same edge
   as the item's total above them (owner, Dec 3 2026: "see how it's offset?"). */
.cart-lines { display: grid; grid-template-columns: minmax(0, 1fr) 1.75rem auto; column-gap: .5rem; row-gap: .2rem; }
.cart-lines li { display: contents; }
.cart-lines li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cart-lines li > span:last-child { justify-self: end; text-align: right; }
.cart-tx { justify-self: end; align-self: center; text-decoration: none; font-size: 9px; font-weight: 600; letter-spacing: .06em;
  line-height: 1; padding: 2px 3px; border-radius: 3px; color: #5A6473; box-shadow: inset 0 0 0 1px #D9D2C5; cursor: help; }
