:root {
  --bg: #efe8f8; --paper: #fdfbff; --ink: #2d2a32; --muted: #6f6874; --line: #ddd1ec;
  --red: #b23a48; --teal: #2a7f86; --gold: #d9a521; --plum: #5b4a9b;
  --photo: #e4e4e2; --radius: 12px;
  --serif: "Fraunces", Georgia, serif; --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
main { max-width: 1240px; margin: 0 auto; padding: 0 16px 48px; }

/* header */
header.site { text-align: center; padding: 20px 16px 4px; }
.brand { display: inline-block; text-decoration: none; }
.logo { width: min(400px, 82vw); height: auto; margin: 0 auto; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 2px 0 10px; font-size: 18px; }
header nav { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
header nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 6px 14px; border-radius: 999px; }
header nav a:hover { background: var(--paper); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
        box-shadow: 0 1px 2px rgba(60,40,20,.06), 0 4px 14px rgba(60,40,20,.06); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60,40,20,.08), 0 10px 26px rgba(60,40,20,.12); }
.card .frame { background: var(--photo); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.card .frame img { width: 100%; height: 100%; object-fit: contain; }
.card .cap { padding: 12px 16px 14px; border-top: 3px dashed var(--line); }
.card h2 { font-size: 20px; margin: 0 0 2px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; min-height: 1.4em; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* quilt page */
.quilt { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.viewer .main { margin: 0; background: var(--photo); border-radius: var(--radius); overflow: hidden; }
.viewer .main img { width: 100%; max-height: 78vh; object-fit: contain; margin: 0 auto; }
.viewer figcaption { padding: 0 14px; color: var(--muted); font-size: 15px; background: var(--paper); }
.viewer figcaption:not(:empty) { padding: 8px 14px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { border: 2px solid transparent; padding: 0; background: var(--photo); border-radius: 8px; cursor: pointer; width: 78px; height: 78px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--red); }
.info h1 { margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 14px 16px;
         background: var(--paper); border-radius: var(--radius); border: 1px dashed var(--line); }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.story p { margin: 0 0 1em; }

/* comments */
.comments { max-width: 760px; margin: 44px auto 0; }
.comment { background: var(--paper); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; }
.comment p { margin: 0 0 .6em; }
.who { margin-bottom: 4px !important; }
.who span { color: var(--muted); font-size: 14px; margin-left: 6px; }
.reply { margin: 8px 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--red); background: #f6f0fc; border-radius: 0 8px 8px 0; }
.cform { margin-top: 22px; background: var(--paper); border-radius: var(--radius); padding: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pager { display: flex; justify-content: space-between; gap: 12px; max-width: 760px; margin: 36px auto 0; font-weight: 700; flex-wrap: wrap; }
.pager a { text-decoration: none; }

/* forms + buttons */
label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 14px; }
input:not([type=checkbox]):not([type=file]), textarea, select {
  display: block; width: 100%; margin-top: 4px; font: 16px/1.4 var(--sans); padding: 10px 12px; color: var(--ink);
  border: 1px solid #d6cbe6; border-radius: 8px; background: #fff; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
input[type=file] { display: block; margin-top: 6px; font-size: 15px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 20px; height: 20px; }
.check.big { font-size: 18px; }
.btn, .pbtns button { display: inline-block; font: 700 16px var(--sans); background: var(--red); color: #fff; border: 0; border-radius: 999px;
       padding: 10px 22px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 7px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger, .pbtns .danger { background: #8e2430; }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.flashes { max-width: 760px; margin: 0 auto 18px; }
.flash { padding: 10px 16px; border-radius: 10px; margin-bottom: 8px; font-weight: 600; }
.flash.ok { background: #e4f1ec; color: #1f5c45; } .flash.err { background: #f8e1e1; color: #8e2430; }
.flash.warn { background: #fdf1cf; color: #6b4e00; max-width: 1240px; margin: 0 auto 16px; }
.prose { max-width: 700px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); padding: 28px 32px; }

/* footer */
footer.site { text-align: center; color: var(--muted); font-size: 14px; padding: 10px 16px 30px; }
footer .stitch { max-width: 600px; margin: 0 auto 14px; border-top: 3px dashed var(--line); }
footer p { margin: 4px 0; } .quiet { color: var(--muted); }

/* admin */
.adminbar { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; background: var(--ink); color: #f3eee6; padding: 8px 16px; font-size: 15px; }
.adminbar a, .adminbar .linkbtn { color: #f3eee6; }
.adminbar form { margin: 0; }
.badge { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 13px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel { background: var(--paper); border-radius: var(--radius); padding: 22px 24px; max-width: 980px; margin: 0 auto 22px; }
.panel.narrow { max-width: 440px; }
.alist { display: grid; gap: 10px; }
.arow { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 10px; text-decoration: none; color: inherit; }
.arow:hover { outline: 2px solid var(--line); }
.arow.draft { background: #f8f4fd; }
.athumb { width: 76px; height: 76px; flex: none; background: var(--photo); border-radius: 8px; overflow: hidden; }
.athumb img { width: 100%; height: 100%; object-fit: cover; }
.ameta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ameta span { color: var(--muted); font-size: 14px; }
.ameta small { color: var(--muted); font-style: italic; }
.tag { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #e6ddf2; color: var(--muted); margin-right: 4px; }
.tag.pub { background: #dcefe7; color: #1f5c45; } .tag.feat { background: #fbe9c4; color: #6b4e00; }
.pubrow { display: flex; gap: 24px; flex-wrap: wrap; padding: 12px 16px; background: #f1ebf9; border-radius: 10px; margin-bottom: 16px; }
.pubrow label { margin: 0; }
.note { background: #fdf1cf; padding: 8px 12px; border-radius: 8px; }
.grid2, .grid3 { display: grid; gap: 0 16px; } .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pcard { position: relative; background: #f1ebf9; border-radius: 10px; padding: 8px; border: 2px solid transparent; }
.pcard.cover { border-color: var(--red); }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--photo); border-radius: 6px; }
.pcard input { font-size: 14px !important; padding: 6px 8px !important; margin: 6px 0 !important; }
.maintag { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.pbtns button { padding: 5px 10px; font-size: 13px; background: var(--ink); }
.pmove { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; }
.pmove select { width: 100% !important; }
.pmove .newname { width: 100% !important; font-size: 14px !important; padding: 6px 8px !important; margin: 0 !important; }
.pmove select { font-size: 13px !important; padding: 4px 6px !important; margin: 0 !important; }
.pmove button { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.savebar { position: sticky; bottom: 0; z-index: 5; margin: 0 -24px -22px; padding: 12px 24px; background: var(--paper);
           border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 -6px 14px rgba(60,40,20,.06); }
.dangerzone h2 { font-size: 20px; }
.tabs { display: flex; gap: 6px; }
.tabs a { text-decoration: none; padding: 6px 14px; border-radius: 999px; color: var(--ink); font-weight: 700; background: var(--paper); }
.tabs a.on { background: var(--ink); color: #fff; }
.ccard .cbody { background: #fff; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }

@media (max-width: 860px) {
  .quilt { grid-template-columns: 1fr; gap: 20px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card .cap { padding: 8px 10px 10px; } .card h2 { font-size: 16px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .panel, .prose { padding: 18px 16px; }
  .thumb { width: 62px; height: 62px; }
}

body.admin .logo { width: min(220px, 60vw); }
body.admin .tagline { display: none; }
.credit { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 8px; }
.prose h2 { font-size: 21px; margin-top: 1.4em; }
footer.site p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* visitor counter (admin only) */
.statlink { text-decoration: none; color: inherit; display: block; }
.statstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 6px 0 18px; }
.statstrip div { background: var(--paper); border-radius: var(--radius); padding: 12px 14px; }
.statstrip b { display: block; font: 800 28px/1.1 var(--serif); color: var(--plum); }
.statstrip span { font-size: 13px; color: var(--muted); }
.statstrip small { display: block; font-size: 11px; }
.statlink:hover .statstrip div { outline: 2px solid var(--line); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-bottom: 22px; position: relative; }
.bar { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.bar .v, .bar .u { position: absolute; bottom: 0; width: 100%; border-radius: 3px 3px 0 0; min-height: 1px; }
.bar .v { background: #d6c8ec; } .bar .u { background: var(--plum); width: 60%; }
.bar small { position: absolute; bottom: -20px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; font-style: normal; }
.legend .sw.v { background: #d6c8ec; } .legend .sw.u { background: var(--plum); }
.stable { width: 100%; border-collapse: collapse; font-size: 15px; }
.stable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 6px; }
.stable td { padding: 6px; border-top: 1px dashed var(--line); }
.stable td + td, .stable th + th { text-align: right; width: 80px; }
.grid2.gap { gap: 22px; max-width: 980px; margin: 0 auto; } .grid2.gap .panel { margin: 0 0 22px; max-width: none; }
.okc { color: #1f5c45; } .errc { color: #8e2430; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace !important; }
@media (max-width: 760px) { .statstrip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .statstrip { grid-template-columns: repeat(2, 1fr); } }
[hidden] { display: none !important; }

/* sold / gifted ribbon across the top-left corner of the front-page picture */
.card .frame { position: relative; overflow: hidden; }
.ribbon { position: absolute; z-index: 2; top: 24px; left: -50px; width: 190px; transform: rotate(-45deg); text-align: center;
          font: 800 14px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #fff; padding: 8px 0;
          box-shadow: 0 2px 6px rgba(0,0,0,.25); pointer-events: none; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1.5px dashed rgba(255,255,255,.7); }
.ribbon::before { top: 3px; } .ribbon::after { bottom: 3px; }
.ribbon.sold { background: #b23a48; } .ribbon.gifted { background: #5b4a9b; } .ribbon.available { background: #d9a521; color: #2b2140; }
.ribbon.available::before, .ribbon.available::after { border-top-color: rgba(43,33,64,.45); }
.ribbon.notforsale { background: #2a7f86; font-size: 11.5px; letter-spacing: .1em; top: 32px; left: -54px; width: 214px; }
@media (max-width: 560px) { .ribbon { top: 20px; left: -38px; width: 150px; font-size: 10px; letter-spacing: .14em; padding: 6px 0; } }
.status { display: inline-block; font-weight: 800; letter-spacing: .04em; padding: 5px 14px; border-radius: 999px; margin: -4px 0 16px; font-size: 15px; }
.status.sold { background: #f6dfe2; color: #8e2430; } .status.gifted { background: #e6e0f5; color: #3f3274; }
.status.available { background: #dcefe7; color: #1f5c45; } .status.available a { color: inherit; }
.status.notforsale { background: #ece6f3; color: var(--muted); }
.statusrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 16px; padding: 10px 16px; background: #f1ebf9; border-radius: 10px; }
.statusrow .lbl { font-weight: 700; margin-right: 4px; }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 14px; padding: 5px 12px; border-radius: 999px;
        background: #fff; border: 1.5px solid var(--line); cursor: pointer; }
.chip input { margin: 0; }
.chip.on.sold, .chip.sold:has(input:checked) { border-color: #b23a48; background: #f6dfe2; }
.chip.on.gifted, .chip.gifted:has(input:checked) { border-color: #5b4a9b; background: #e6e0f5; }
.chip.on.available, .chip.available:has(input:checked) { border-color: #1f5c45; background: #dcefe7; }
.chip:has(input:checked) { border-color: var(--ink); }
.tag.st-sold { background: #f6dfe2; color: #8e2430; } .tag.st-gifted { background: #e6e0f5; color: #3f3274; }
.tag.st-available { background: #dcefe7; color: #1f5c45; }

/* front-page filter */
.filter { display: flex; justify-content: center; gap: 0; margin: -4px auto 22px; background: var(--paper); border-radius: 999px;
          padding: 4px; width: max-content; max-width: 100%; box-shadow: 0 1px 2px rgba(60,40,20,.06); }
.filter a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; padding: 7px 18px; border-radius: 999px; white-space: nowrap; }
.filter a span { font-weight: 600; color: var(--muted); font-size: 13px; margin-left: 4px; }
.filter a.on { background: var(--plum); color: #fff; } .filter a.on span { color: #e6e0f5; }
.filter a:not(.on):hover { background: #f1ebf9; }
@media (max-width: 420px) { .filter a { padding: 7px 12px; font-size: 14px; } }

/* pinned messages ("Saved.", errors, comment thanks) */
.toasts { position: fixed; z-index: 100; top: 14px; left: 50%; transform: translateX(-50%); width: min(620px, calc(100vw - 32px));
          display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
body:has(.adminbar) .toasts { top: 52px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 12px;
         font-weight: 700; font-size: 16px; box-shadow: 0 6px 22px rgba(40,20,70,.22), 0 1px 3px rgba(40,20,70,.15);
         animation: toastin .3s ease-out; transition: opacity .3s, transform .3s; }
.toast.ok  { background: #1f6b4f; color: #fff; }
.toast.err { background: #a12a38; color: #fff; }
.toast.warn { background: #fdf1cf; color: #6b4e00; }
.ticon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 15px; }
.tmsg { flex: 1; line-height: 1.35; }
.tclose { flex: none; background: transparent; border: 0; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; opacity: .8;
          width: 34px; height: 34px; border-radius: 8px; }
.tclose:hover { opacity: 1; background: rgba(255,255,255,.15); }
.toast.gone { opacity: 0; transform: translateY(-8px); }
@keyframes toastin { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; transition: none; } }

/* ---- click feedback ---- */
:root { --gold: #d9a521; --goldglow: rgba(217,165,33,.45); }
.btn, .pbtns button, .pmove button, .chip, .filter a, .tabs a, .linkbtn, .tclose, .thumb {
  transition: transform .08s ease, box-shadow .15s ease, outline-color .15s ease, filter .15s; }
/* 1. the moment you press: a quick squeeze and a gold ring */
.btn:active, .pbtns button:active, .pmove button:active, .filter a:active, .tabs a:active, .chip:active, .thumb:active {
  transform: scale(.96); box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px var(--goldglow); }
/* 2. while the page is working: gold outline stays, a little spinner, and it can't be pressed again */
.busy { box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px var(--goldglow) !important; cursor: progress !important; pointer-events: none; filter: saturate(.85); }
.busy::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .55em; vertical-align: -.12em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: qqspin .7s linear infinite; }
@keyframes qqspin { to { transform: rotate(360deg); } }
/* 3. after a photo action: that photo glows gold for a few seconds */
.pcard { scroll-margin-top: 110px; }
.pcard.justdone { animation: qqdone 3.2s ease-out 1 both; }
@keyframes qqdone { 0%, 55% { box-shadow: 0 0 0 4px var(--gold), 0 0 22px 6px var(--goldglow); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* keyboard users get the same gold ring */
.btn:focus-visible, .pbtns button:focus-visible, .pmove button:focus-visible, .chip:focus-within, .filter a:focus-visible, .tabs a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .busy::after { animation-duration: 2s; } .pcard.justdone { animation: none; box-shadow: 0 0 0 4px var(--gold); } }

/* ---- select several photos and move them together ---- */
.pick { position: absolute; top: 12px; right: 12px; margin: 0; display: flex; align-items: center; gap: 6px; cursor: pointer;
        background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 10px 4px 6px; font-size: 13px; font-weight: 700;
        box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--plum); cursor: pointer; }
.pcard.picked { border-color: var(--plum); background: #e6ddf5; }
.pcard.picked .pick { background: var(--plum); color: #fff; }
.bulkbar { position: sticky; top: 8px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
           padding: 12px 16px; margin: 0 0 16px; border-radius: 14px;
           background: #e3d8f4; border: 2px solid var(--plum); border-left: 10px solid var(--plum);
           box-shadow: 0 3px 12px rgba(60,40,110,.14); }
.bulkbar .btitle { font: 800 17px var(--serif); color: #3f3274; display: inline-flex; align-items: center; gap: 8px; }
.bulkbar .bicon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
                  background: var(--plum); color: #fff; font-size: 16px; }
.bulkbar .bhint { font-size: 15px; color: #3f3274; }
.bulkbar .bhint b { background: #fff; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--plum); }
.bulkbar .bcount { font-size: 15px; } .bulkbar .bcount b { font: 800 20px var(--serif); }
.bulkbar .linkbtn { font-weight: 700; color: #3f3274; }
.bulkbar .bspacer { flex: 1; }
.bulkbar .bctrls { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; margin-left: auto; }
.bulkbar .bctrls select { max-width: 200px; } .bulkbar .bctrls input { max-width: 190px; }
@media (max-width: 640px) { .bulkbar .bctrls { flex-wrap: wrap; width: 100%; } .bulkbar .bctrls select, .bulkbar .bctrls input { max-width: none; flex: 1 1 100%; } }
.bulkbar select, .bulkbar input { width: auto !important; min-width: 0; max-width: 230px; margin: 0 !important; padding: 7px 10px !important; font-size: 14px !important; }
.bulkbar .btn[disabled] { opacity: .45; cursor: not-allowed; }
/* once something is ticked: solid purple, white text, gold-edged Move button */
.bulkbar.active { background: var(--plum); border-color: #3f3274; border-left-color: var(--gold); color: #fff;
                  box-shadow: 0 6px 22px rgba(60,40,110,.35); animation: bulkpop .25s ease-out; }
.bulkbar.active .btitle, .bulkbar.active .linkbtn, .bulkbar.active .bcount { color: #fff; }
.bulkbar.active .bicon { background: var(--gold); color: #3f3274; }
.bulkbar.active .btn:not([disabled]) { background: var(--gold); color: #2d2a32; box-shadow: 0 0 0 2px #fff; }
@keyframes bulkpop { from { transform: scale(.985); } to { transform: none; } }
body:has(.adminbar) .bulkbar { top: 48px; }
@media (max-width: 640px) { .bulkbar select, .bulkbar input { min-width: 0; width: 100% !important; } .bulkbar .bspacer { display: none; } }

/* ---- workshop photos on the About page: much larger than gallery thumbnails ---- */
.workshop { max-width: 1160px; margin: 34px auto 0; }
.workshop h2 { text-align: center; font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
.workshop h2::after { content: ""; display: block; width: 120px; margin: 10px auto 0; border-top: 3px dashed var(--line); }
.wgrid { display: grid; gap: 18px; align-items: start; }
.wgrid.cols1 { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.wgrid.cols2 { grid-template-columns: repeat(2, 1fr); }
.wgrid.cols3 { grid-template-columns: repeat(3, 1fr); }
.wgrid.widelead .lead { grid-column: 1 / -1; }
.wph { margin: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(60,40,20,.06), 0 6px 18px rgba(60,40,20,.08); }
.wph a { display: block; background: var(--photo); overflow: hidden; }
.wph img { width: 100%; height: auto; display: block; cursor: zoom-in; transition: transform .25s; }
.wph.lead img { max-height: 680px; object-fit: cover; }
.wph a:hover img { transform: scale(1.015); }
.wph figcaption { padding: 10px 16px 12px; font-size: 15px; color: var(--muted); border-top: 3px dashed var(--line); }
@media (max-width: 900px) { .wgrid.cols3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wgrid.cols2, .wgrid.cols3 { grid-template-columns: 1fr; gap: 14px; } .wph.lead img { max-height: none; } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(28,22,40,.92); display: flex; align-items: center; justify-content: center; padding: 20px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #eee; margin-top: 10px; font-size: 16px; }
.lbclose, .lbnav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 999px; }
.lbclose { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 30px; line-height: 1; }
.lbnav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; font-size: 40px; }
.lbnav.prev { left: 10px; } .lbnav.next { right: 10px; }
.lbclose:hover, .lbnav:hover { background: rgba(255,255,255,.25); }
@media (max-width: 560px) { .lightbox { padding: 60px 8px; } .lbnav { top: auto; bottom: 14px; transform: none; } }
.tag.about { background: #fbe9c4; color: #6b4e00; }
.aboutnote { background: #fbe9c4; }

/* delete: explain instead of silently doing nothing */
.dangerzone { border: 2px solid #f0d3d7; scroll-margin-top: 110px; }
.delwarn { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 14px; border-radius: 10px;
           background: #a12a38; color: #fff; font-weight: 700; }
.delwarn[hidden] { display: none; }
.delwarn b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dangerzone.needtick { border-color: #a12a38; }
.dangerzone.needtick .delcheck { background: #f8e1e1; border-radius: 8px; padding: 6px 10px; outline: 2px solid #a12a38; animation: qqshake .4s; }
@keyframes qqshake { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .dangerzone.needtick .delcheck { animation: none; } }

/* photo captions: empty = quiet placeholder, filled in = stands out */
.pcard input[name^="caption_"] { font-weight: 600; color: var(--ink); }
.pcard input[name^="caption_"]::placeholder { font-style: italic; font-weight: 400; color: #a79fb0; }
.pcard input[name^="caption_"]:placeholder-shown { background: #fbf9fe; border-style: dashed; }
.pcard input[name^="caption_"]:not(:placeholder-shown) {
  font-weight: 800; color: #2d2a32; background: #f3edfb; border: 1.5px solid #cbbbe6; border-left: 5px solid var(--plum); }

/* public captions: stronger, to match the admin look */
.wph figcaption { font-weight: 700; font-size: 16px; color: var(--ink); background: #f3edfb;
                  border-top: 3px dashed var(--line); border-left: 5px solid var(--plum); padding: 10px 16px 12px; }
.viewer figcaption:not(:empty) { font-weight: 700; color: var(--ink); background: #f3edfb; border-left: 5px solid var(--plum); }
.lightbox figcaption { font-weight: 700; font-size: 17px; color: #fff; }

/* downloads */
.pbtns a.dl { display: inline-flex; align-items: center; padding: 5px 10px; font: 700 13px var(--sans); color: #fff; background: var(--teal);
              border-radius: 999px; text-decoration: none; }
.pbtns a.dl:hover { filter: brightness(1.1); }
.pbtns a.dl:active { transform: scale(.96); box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px var(--goldglow); }
.bulkbar .bdl { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; justify-content: flex-end; }
.dlbtn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 999px; font: 700 14px var(--sans);
         text-decoration: none; background: var(--teal); color: #fff; border: 2px solid var(--teal); }
.dlbtn.ghost { background: #fff; color: var(--teal); }
.dlbtn[hidden] { display: none; }
.dlbtn:active { transform: scale(.96); box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px var(--goldglow); }
.bulkbar.active .dlbtn.ghost { background: transparent; color: #fff; border-color: #fff; }
.bulkbar.active .dlbtn:not(.ghost) { background: #fff; color: var(--plum); border-color: #fff; }

/* "My Workshop" row: always last, its own look, logo in the middle */
.arow.workshoprow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 10px;
  padding: 14px 20px; border: 2px dashed #d9a521; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #fff7e2 0 14px, #fdefcc 14px 28px); }
.arow.workshoprow:hover { outline: 3px solid var(--gold); }
.workshoprow .wslogo { width: 150px; height: auto; display: block; filter: drop-shadow(0 2px 4px rgba(60,40,20,.2)); }
.workshoprow .wsside { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.workshoprow .wsside b { font: 800 18px var(--serif); color: #6b4e00; }
.workshoprow .wsside span { font-size: 14px; color: #7a5b10; }
.workshoprow .wsside.right { align-items: flex-end; }
.workshoprow .wsgo { font-weight: 800; font-size: 14px; color: #6b4e00; background: #fff; border: 1.5px solid #d9a521; border-radius: 999px; padding: 5px 14px; }
@media (max-width: 640px) {
  .arow.workshoprow { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .workshoprow .wsside, .workshoprow .wsside.right { align-items: center; }
  .workshoprow .wslogo { order: -1; width: 130px; }
}

/* slim, single-row version of the several-photos bar */
.bulkbar { flex-wrap: wrap; gap: 6px 12px; padding: 6px 12px; margin-bottom: 12px; border-width: 1.5px; border-left-width: 6px; border-radius: 10px; }
.bulkbar .btitle { font-size: 15px; gap: 6px; white-space: nowrap; }
.bulkbar .bicon { width: 22px; height: 22px; font-size: 13px; }
.bulkbar .bhint, .bulkbar .bcount, .bulkbar .linkbtn { font-size: 14px; white-space: nowrap; }
.bulkbar .bhint b { padding: 0 6px; }
.bulkbar .bcount b { font-size: 16px; }
.bulkbar .bspacer { flex: 1 1 0; min-width: 0; }
.bulkbar .bctrls { margin-left: 0; gap: 6px; }
.bulkbar .bctrls select { max-width: 150px; padding: 4px 8px !important; font-size: 13px !important; }
.bulkbar .bctrls input { max-width: 160px; padding: 4px 8px !important; font-size: 13px !important; }
.bulkbar .btn.small { padding: 5px 12px; font-size: 13px; }
.bulkbar .bdl { width: auto; gap: 6px; flex-wrap: nowrap; }
.bulkbar .dlbtn { padding: 3px 10px; font-size: 13px; border-width: 1.5px; white-space: nowrap; }
@media (max-width: 900px) { .bulkbar .bspacer { flex-basis: 100%; height: 0; } }
@media (max-width: 640px) { .bulkbar .bctrls, .bulkbar .bdl { width: 100%; flex-wrap: wrap; }
  .bulkbar .bctrls select, .bulkbar .bctrls input { max-width: none; flex: 1 1 100%; } }

.wshead { font-size: 26px; margin: 0 0 8px; }

/* front-page card: year | size | price */
.card p.cardmeta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px; }
.cardmeta .cm-size { text-align: center; white-space: nowrap; }
.cardmeta .cm-price { text-align: right; font-weight: 800; color: var(--red); font-size: 15px; }
.facts dd.price { color: var(--red); font-size: 18px; }
.grid4 { display: grid; gap: 0 16px; grid-template-columns: 1fr 1.3fr 1fr 0.8fr; }
.grid4 label small { font-weight: 600; }
.pricehelp { margin: -6px 0 14px; }
@media (max-width: 860px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card p.cardmeta { font-size: 12px; gap: 4px; } .cardmeta .cm-price { font-size: 13px; } }

/* front page order */
.olist { display: grid; gap: 8px; max-width: 900px; }
.orow { display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: var(--radius); padding: 8px 12px; scroll-margin-top: 120px; }
.orow.feat { background: #fff8e8; }
.orow .onum { width: 30px; text-align: right; font: 800 18px var(--serif); color: var(--plum); }
.orow .athumb { width: 56px; height: 56px; }
.ometa { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ometa span { font-size: 13px; color: var(--muted); }
.obtns { display: flex; gap: 6px; margin: 0; }
.obtns button { width: 40px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.obtns button:hover:not([disabled]) { border-color: var(--plum); color: var(--plum); }
.obtns button:active:not([disabled]) { transform: scale(.94); box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px var(--goldglow); }
.obtns button[disabled] { opacity: .3; cursor: default; }
.orow.justdone { animation: qqdone 2.4s ease-out 1 both; }
.osep { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 4px 0; }
@media (max-width: 560px) { .orow .athumb { display: none; } .obtns button { width: 34px; } }

/* back to top */
.totop { position: fixed; right: 20px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%; background: var(--plum); color: #fff; text-decoration: none;
  box-shadow: 0 4px 14px rgba(60,40,110,.35); border: 3px solid #fff; transition: transform .15s, background .15s, opacity .2s; }
.totop[hidden] { display: none; }
.totop span { font: 800 11px/1 var(--sans); letter-spacing: .04em; margin-top: -1px; }
.totop:hover { background: #4a3c82; transform: translateY(-3px); }
.totop:active { transform: scale(.94); box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px var(--goldglow); }
body.admin .totop { bottom: 90px; }   /* stay clear of the Save bar */
@media (max-width: 560px) { .totop { right: 14px; bottom: 16px; width: 50px; height: 50px; } body.admin .totop { bottom: 84px; } }

footer.site p.biz { font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.bizline { font-style: italic; color: var(--muted); }


.aboutask { padding: 12px 14px; border-left: 4px solid var(--teal); background: var(--paper); border-radius: 10px; }
.askline { font-size: .98rem; color: var(--ink); margin: 4px 0 12px; }
.askline a, .aboutask a, footer.site .fmail a { font-weight: 700; color: var(--plum); }

.statnote { margin: -6px 0 18px; }
@media (max-width: 560px) { .ribbon.notforsale { font-size: 8.5px; letter-spacing: .06em; top: 26px; left: -42px; width: 170px; } }

.cardmeta .cm-price .pnote { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 2px; white-space: nowrap; }
.facts dd.price .pnote { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 1px; }
@media (max-width: 560px) {
  /* narrow cards: year and size on one line, the price with its note on the next */
  .card p.cardmeta { grid-template-columns: auto 1fr; }
  .cardmeta .cm-size { text-align: right; }
  .cardmeta .cm-price { grid-column: 1 / -1; text-align: left; }
  .cardmeta .cm-price:empty { display: none; }
  .cardmeta .cm-price .pnote { display: inline; font-size: 10.5px; margin-left: 4px; white-space: normal; }
}
