/* Shakeskin – shared styles. Fonts are hosted here, so no visitor data goes to Google. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }

/* Layout: the 2004 frame (red wordmark bar, green sidebar, blue gallery wall) rebuilt as a responsive sidebar + photo wall. Single committed bright look. */
:root {
  color-scheme: light;
  --pink: #fc3698;      /* page ground, from the original */
  --red: #e8141c;       /* wordmark bar */
  --yellow: #fff23a;    /* labels, highlights */
  --green: #3a851f;     /* sidebar; deepened for AA contrast (4.6:1 with white) */
  --blue: #086eb2;      /* gallery wall; deepened for AA contrast (5.4:1 white, 4.6:1 yellow) */
  --ink: #1b1424;       /* text on light */
  --paper: #ffffff;     /* photo frames */
  --muted: #5d5468;
  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Public Sans", "Helvetica Neue", Arial, sans-serif; /* small labels; plain zero, no slash */
}
html { background: var(--pink); }
body { background: var(--pink); color: var(--ink); font: 16px/1.5 var(--f-body); padding-inline: 16px; padding-block: 16px 40px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
button, input, select { font: inherit; }

.frame { max-width: 1240px; margin: 0 auto; background: var(--paper); padding: 10px; display: grid; gap: 10px; }

/* masthead */
.mast { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.word { background: var(--red); color: #fff; padding: 6px 18px 2px; display: flex; align-items: center; }
.word h1 { margin: 0; font: 800 clamp(40px, 7vw, 68px)/0.9 var(--f-display); letter-spacing: 0.01em; text-transform: uppercase; display: flex; }
.word h1 span { display: inline-block; }
.word:hover h1 span { animation: shake .35s ease-in-out 2; }
.word h1 span:nth-child(2n):not(:only-child) { animation-delay: .04s; }
@keyframes shake { 0%,100% { transform: translate(0,0) rotate(0) } 25% { transform: translate(-3px,1px) rotate(-4deg) } 75% { transform: translate(3px,-1px) rotate(4deg) } }
.steps { background: var(--red); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 12px 18px; font: 600 18px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--red); font-size: 15px; margin-right: 6px; }

.body { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 10px; align-items: start; }
@media (max-width: 760px) { .mast, .body { grid-template-columns: minmax(0,1fr); } }

/* sidebar */
.side { background: var(--green); color: #fff; padding: 16px; display: grid; gap: 18px; position: sticky; top: env(safe-area-inset-top, 0px); }
@media (max-width: 760px) { .side { position: static; gap: 12px; } .steps, .side .fine, .side > div > h2:first-child { display: none; } .nav, .cats { display: flex; flex-wrap: wrap; gap: 4px; } .cats .n { margin-left: 4px; } #filters2 { grid-template-columns: 1fr 1fr; } #filters2 > .check { grid-column: 1 / -1; } }
.side h2 { margin: 0 0 6px; font: 800 20px/1 var(--f-display); text-transform: uppercase; color: var(--yellow); letter-spacing: .03em; }
.nav { display: grid; gap: 2px; }
.nav button, .cats button { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 3px; font-weight: 700; }
.nav button:hover, .cats button:hover { background: rgba(0,0,0,.22); }
.nav button[aria-current="true"], .cats button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.nav button:focus-visible, .cats button:focus-visible { outline: 3px solid var(--yellow); }
.cats { display: grid; gap: 2px; }
.cats .n { font: 400 13px/1.6 var(--f-mono); font-variant-numeric: tabular-nums; }
.side label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.side input[type=search], .side select { width: 100%; border: 0; border-radius: 3px; padding: 8px 10px; background: #fff; color: var(--ink); }
.check { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; font-size: 14px !important; }
.side .fine { font-size: 13px; line-height: 1.4; opacity: .95; margin: 0; }

/* gallery wall */
.wall { --gx: 28px; --gy: 40px; background: var(--blue); color: #fff; padding: 18px; min-width: 0; }
@media (min-width: 900px) { .wall { --gx: 44px; --gy: 52px; padding: 28px 32px; } }
.wallhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 16px; }
.wallhead h2 { margin: 0; font: 800 34px/1 var(--f-display); text-transform: uppercase; }
.count { font: 400 14px var(--f-mono); color: var(--yellow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: var(--gy) var(--gx); justify-content: center; }
.tile { all: unset; cursor: pointer; display: grid; gap: 4px; align-content: start; width: 150px; }
.tile .ph { margin-bottom: 6px; }
.grid { list-style: none; margin: 0; padding: 0; }
.cell { display: block; }
.cell.wide { grid-column: span 2; }
.tile.wide { width: calc(300px + var(--gx)); }
.tile .ph { width: 150px; height: 150px; background: rgba(255,255,255,.18); border: 3px solid #fff; box-sizing: content-box; margin-left: -3px; overflow: hidden; }
.tile.wide .ph { width: 300px; height: 170px; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile:hover .ph, .tile:focus-visible .ph { animation: wob .3s ease-in-out; border-color: var(--yellow); }
@keyframes wob { 25% { transform: rotate(-2deg) } 75% { transform: rotate(2deg) } }
.tile .nm { font-weight: 700; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.tile .meta { font: 400 12px/1.35 var(--f-mono); color: #e4f3ff; }
.tile .age { font-weight: 700; font-size: 15px; line-height: 1.2; }
.tile .age .yr { color: var(--yellow); font-weight: 400; }
.lost { display: grid; place-items: center; text-align: center; font: 600 17px/1.1 var(--f-display); text-transform: uppercase; color: #fff; background: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 8px, transparent 8px 16px) !important; }
.badge { justify-self: start; font: 500 11px var(--f-mono); background: var(--yellow); color: var(--ink); padding: 1px 6px; text-transform: uppercase; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: rgba(0,0,0,.22); padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.seg button { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 999px; font-weight: 700; color: #fff; }
.seg button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.seg button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.adm { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,420px); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .adm { grid-template-columns: minmax(0,1fr); } }
.adm-list { display: grid; gap: 12px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.chips button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: none; }
.chips button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.chips span { font-variant-numeric: tabular-nums; margin-left: 2px; }
.eq { border: 0; border-radius: 999px; padding: 9px 14px; background: #fff; color: var(--ink); width: 100%; max-width: 320px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.thumb { all: unset; cursor: pointer; display: grid; gap: 4px; font-size: 12px; line-height: 1.25; color: #fff; min-width: 0; }
.thumb .tph { aspect-ratio: 1; max-width: 100%; border: 3px solid transparent; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.16); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .tn { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb .tno { color: #e4f3ff; font-variant-numeric: tabular-nums; }
.thumb:hover .tph { border-color: rgba(255,255,255,.7); }
.thumb[aria-current="true"] .tph { border-color: var(--yellow); }
.thumb:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.thumb .flag { justify-self: start; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 1px 5px; border-radius: 3px; background: var(--yellow); color: var(--ink); }
.editor { position: sticky; top: env(safe-area-inset-top, 0px); display: grid; gap: 14px; }
.editor #ed-body { display: grid; gap: 14px; }
.ed-empty h3 { margin: 0 0 4px; }
.ed-empty p { margin: 0; color: var(--muted); }
.ed-top { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; align-items: center; }
.ed-img img { width: 120px; height: 120px; object-fit: cover; display: block; border: 3px solid var(--ink); }
.ed-img.wide img { width: 180px; height: 102px; }
.ed-top h3 { overflow-wrap: anywhere; }
.ed-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ed-orig { background: #f2eef6; border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.ed-orig b { display: block; margin-bottom: 2px; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-status { margin: 0; font-size: 14px; font-weight: 700; color: var(--green); min-height: 1.4em; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-block: 0 28px; }
#pager-bottom { margin-block: 40px 4px; }
.pager button { all: unset; cursor: pointer; min-width: 40px; height: 40px; padding: 0 12px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: #fff; transition: background .15s, transform .1s; }
.pager button:hover { background: rgba(0,0,0,.22); }
.pager button:active { transform: scale(.96); }
.pager button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pager button[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.pager button[disabled] { opacity: .4; cursor: default; background: none; }
.pager .gap { color: #e4f3ff; padding: 0 2px; }
.pager .where { flex-basis: 100%; text-align: center; font-size: 14px; color: #e4f3ff; order: -1; margin-bottom: 4px; }
.pager .rand { box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); margin-left: 8px; }
.tile .no { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #e4f3ff; font-variant-numeric: tabular-nums; }
.btn { all: unset; cursor: pointer; background: var(--yellow); color: var(--ink); font: 800 18px/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; padding: 11px 18px; border-radius: 3px; text-align: center; }
.btn:hover { background: #fff; }
.btn:focus-visible { outline: 3px solid var(--ink); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn.ghost:hover { background: rgba(0,0,0,.22); }
.btn.red { background: var(--red); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.empty { text-align: center; padding: 40px 10px; font-size: 18px; }

/* demo note */
.demo-note { background: var(--yellow); color: var(--ink); padding: 10px 14px; font-size: 14px; margin-bottom: 18px; border-left: 6px solid var(--red); }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(27,20,36,.82); display: grid; place-items: center; padding: 16px; z-index: 50; }
.lb-card { background: var(--paper); color: var(--ink); max-width: 560px; width: 100%; display: grid; gap: 14px; padding: 16px; max-height: 100%; overflow: auto; }
.lb-img { background: var(--blue); display: grid; place-items: center; padding: 14px; }
.lb-img img { width: 300px; max-width: 100%; height: auto; border: 3px solid #fff; display: block; }
.lb-img.wide img { width: 520px; }
.lb h2 { margin: 0; font: 800 32px/1 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.lb dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; }
.lb dt { font: 500 12px/1.9 var(--f-mono); text-transform: uppercase; color: var(--muted); }
.lb dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.lb-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.lb .note { font-size: 13px; color: var(--muted); margin: 0; background: #f2eef6; border-radius: 6px; padding: 10px 12px; }
.you { background: #fff8c2; border-radius: 8px; padding: 14px 16px; display: grid; gap: 10px; }
.you h3 { margin: 0; font: 800 22px/1 var(--f-display); text-transform: uppercase; }
.you p { margin: 0; font-size: 15px; }
.you .heart { color: var(--red); }
.you-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.you-actions .pbtn { font-size: 15px; padding: 10px 18px; }
.you .you-remove { font-size: 15px; color: var(--ink); font-weight: 700; }
.linkbtn { all: unset; cursor: pointer; text-decoration: underline; font-size: 14px; color: var(--muted); }
.linkbtn:focus-visible { outline: 2px solid var(--blue); }

/* upload */
.panel { background: var(--paper); color: var(--ink); padding: 18px; display: grid; gap: 16px; }
.up { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
@media (max-width: 980px) { .up { grid-template-columns: minmax(0,1fr); } }
.panel h3 { margin: 0; font: 800 24px/1 var(--f-display); text-transform: uppercase; }
.drop { border: 3px dashed var(--blue); padding: 28px 16px; text-align: center; display: grid; gap: 14px; justify-items: center; align-content: center; }
.up > .panel { align-content: start; }
.pbtn { align-self: center; }
.drop.over { background: #e6f4ff; }
.pbtn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; font-size: 16px; line-height: 1; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); color: #fff; box-shadow: 0 2px 0 rgba(27,20,36,.18); transition: background .15s, color .15s, transform .1s; }
.pbtn:hover { background: #065a92; border-color: #065a92; }
.pbtn:active { transform: scale(.97); }
.pbtn.alt { background: #fff; color: var(--blue); box-shadow: none; }
.pbtn.alt:hover { background: #e6f1fa; }
#drop:has(#file:focus-visible) label[for="file"], #drop:has(#cam:focus-visible) label[for="cam"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.drop p { margin: 0; }
.cropwrap { display: grid; gap: 10px; justify-items: center; }
canvas#crop { background: #ddd; touch-action: none; cursor: grab; max-width: 100%; border: 3px solid var(--ink); }
.zoom { display: flex; gap: 10px; align-items: center; width: 100%; max-width: 320px; }
.zoom input { flex: 1; }
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.form input[type=text], .form input[type=number], .form input[type=url], .form input[type=email], .form select { border: 2px solid #c9c2d1; border-radius: 3px; padding: 8px 10px; background: #fff; color: var(--ink); width: 100%; }
.form .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.radios legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.radios label { position: relative; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 15px; background: #f2eef6; color: var(--ink); padding: 9px 16px; border: 2px solid transparent; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.radios label:hover { border-color: var(--green); }
.radios label:active { transform: scale(.97); }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios label:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 2px 0 rgba(27,20,36,.18); }
.radios label:has(input:checked)::before { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-2px) rotate(-45deg); }
.radios label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.combo-field { display: grid; gap: 4px; align-content: start; }
.combo-field > label { font-weight: 700; font-size: 14px; }
.combo { position: relative; }
.combo input { border: 2px solid #c9c2d1; border-radius: 3px; padding: 8px 10px; background: #fff; color: var(--ink); width: 100%; }
.combo input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.combo ul { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 2px solid var(--ink); border-radius: 6px; max-height: 260px; overflow-y: auto; box-shadow: 0 8px 24px rgba(27,20,36,.18); }
.combo li { padding: 8px 10px; border-radius: 4px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.combo li[aria-selected="true"] { background: var(--green); color: #fff; }
.combo li .alt { font-size: 13px; color: var(--muted); }
.combo li[aria-selected="true"] .alt { color: #fff; }
.combo li.none { cursor: default; color: var(--muted); }
.combo li.opt-out { border-bottom: 1px solid #e3dfe8; border-radius: 4px 4px 0 0; }
.consent { display: flex !important; grid-template-columns: none !important; gap: 8px !important; align-items: flex-start; font-weight: 400 !important; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 50%; background: #e3dfe8 center / 13px no-repeat; border: 2px solid #e3dfe8; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
.consent input:hover { border-color: var(--green); }
.consent input:active { transform: scale(.92); }
.consent input:checked { background-color: var(--green); border-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.consent input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent span { padding-top: 1px; }
#upsubmit { background: var(--green); color: #fff; border-radius: 999px; padding: 13px 22px; box-shadow: 0 2px 0 rgba(27,20,36,.18); transition: background .15s, transform .1s; }
#upsubmit:hover { background: #2f6e19; }
#upsubmit:active { transform: scale(.98); }
#upsubmit:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.err { color: var(--red); font-weight: 700; font-size: 14px; margin: 0; }
.done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 20px 0; }
.done img { border: 3px solid var(--ink); }

/* moderation */
.queue { display: grid; gap: 12px; }
.qitem { background: var(--paper); color: var(--ink); display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px; }
@media (max-width: 600px) { .qitem { grid-template-columns: auto minmax(0,1fr); } .qitem .qact { grid-column: 1 / -1; } }
.qitem img { width: 110px; height: 110px; object-fit: cover; display: block; border: 2px solid var(--ink); }
.qitem.wide img { width: 194px; height: 110px; }
.qitem h4 { margin: 0 0 2px; font: 800 22px/1 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.qitem p { margin: 0; font-size: 14px; }
.qitem .mono { font: 400 12px var(--f-mono); color: var(--muted); }
.qact { display: flex; gap: 8px; flex-wrap: wrap; }
.qact .btn { font-size: 16px; padding: 9px 14px; }
.stamp { font: 500 12px var(--f-mono); text-transform: uppercase; padding: 2px 6px; }
.stamp.ok { background: var(--green); color: #fff; }
.stamp.no { background: var(--ink); color: #fff; }

/* about */
.about { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .about { grid-template-columns: minmax(0,1fr); } }
.prose { background: var(--paper); color: var(--ink); padding: 20px; }
.prose h3 { font: 800 26px/1 var(--f-display); text-transform: uppercase; margin: 22px 0 8px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; max-width: 65ch; }
.faq { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: q; }
.faq li { counter-increment: q; }
.faq b { display: block; }
.faq b::before { content: counter(q) ". "; color: var(--red); }
.crew { display: grid; gap: 8px; margin: 0 0 12px; }
.crew div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.howto { background: var(--paper); padding: 10px; display: grid; gap: 10px; }
.howto img { width: 100%; height: auto; display: block; }
.howto p, .rescued p { margin: 0; font-size: 13px; color: var(--muted); }
.rescued { background: var(--yellow); color: var(--ink); padding: 16px; display: grid; gap: 6px; }
.rescued h3 { margin: 0; font: 800 20px/1 var(--f-display); text-transform: uppercase; }
.rescued dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font: 400 13px var(--f-mono); }
.rescued dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.side-col { display: grid; gap: 10px; }
.about-col { display: grid; gap: 18px; min-width: 0; }
.prose .lead { font-size: 19px; line-height: 1.55; }
.sign { font: 800 18px/1 var(--f-display); text-transform: uppercase; color: var(--red); margin-left: 4px; }
.howto figcaption { font-size: 13px; color: var(--muted); }
/* the original 2004 text, framed like a clipping from the old site */
.old { color: var(--ink); background: #f4f1e8; border: 2px dashed #b9b2a3; padding: 20px; display: grid; gap: 12px; }
.old-stamp { justify-self: start; font: 700 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 6px 10px; border-radius: 999px; }
.old .intro-old { font-style: italic; color: var(--muted); margin: 0; }
.old h3 { margin: 0; font: 700 20px/1.2 Verdana, Geneva, sans-serif; }
.old p, .old dt, .old dd { font-family: Verdana, Geneva, sans-serif; font-size: 14px; }
.old p { margin: 0; max-width: 62ch; }
.old dl { margin: 0; display: grid; gap: 8px; }
.old dl div { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 10px; }
.old dt { font-weight: 700; }
.old dd { margin: 0; }
.maker { border-left: 8px solid var(--red); }
.pill { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; }
.pill:hover { background: #c50f16; }
.pill.alt { background: #fff; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.pill.alt:hover { background: #fff0f0; }
.pill:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.foot { text-align: center; color: var(--ink); font-size: 13px; margin-top: 14px; }
.foot a { color: inherit; text-underline-offset: 2px; }
.foot a:hover { text-decoration-thickness: 2px; }
.foot a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* --- production additions */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
#main:focus { outline: none; }
.filters2 { display: grid; gap: 12px; }
.drop-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.drop .hint, .cropwrap .hint { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.zoom label { font-size: 14px; font-weight: 700; }
canvas#crop:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.muted-sm { color: var(--muted); font-size: 13px; }
html.lb-open { overflow: hidden; }
.lb-nav { display: flex; gap: 8px; }
.crew { display: grid; gap: 8px; margin: 0 0 12px; }
.crew div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.crew dt { font-weight: 700; }
.crew dd { margin: 0; }
.howto { margin: 0; }
.howto figcaption { margin: 0; font-size: 13px; color: var(--muted); }
.rescued p { margin: 0; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.you-choices, .you-form { display: grid; gap: 10px; }
.you-form h4 { margin: 0; font: 800 20px/1 var(--f-display); text-transform: uppercase; }
.you-form textarea { border: 2px solid #c9c2d1; border-radius: 3px; padding: 8px 10px; background: #fff; color: var(--ink); width: 100%; font: inherit; resize: vertical; }
.you-form input[type=email] { border: 2px solid #c9c2d1; border-radius: 3px; padding: 8px 10px; background: #fff; color: var(--ink); width: 100%; }
.you-form textarea:focus-visible, .you-form input:focus-visible, .form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.you-result { margin: 0; font-weight: 700; color: var(--ink); }
.btn:disabled, .pbtn:disabled { opacity: .55; cursor: progress; }
.h-big { font: 800 34px/1 var(--f-display); text-transform: uppercase; margin: 0 0 12px; }
.h-small { font: 800 20px/1 var(--f-display); text-transform: uppercase; margin: 8px 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.checklist .ok { color: #1d6b2c; } .checklist .bad { color: #b3121a; font-weight: 700; }
/* phones: two flexible columns instead of one fixed column */
@media (max-width: 520px) {
  .wall { --gx: 14px; --gy: 28px; padding: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.wide { width: 100%; }
  .tile .ph, .tile.wide .ph { width: 100%; height: auto; aspect-ratio: 1; box-sizing: border-box; margin-left: 0; }
  .tile.wide .ph { aspect-ratio: 300 / 170; }
}
/* home link on the wordmark */
.word .home { color: inherit; text-decoration: none; display: block; }
.word .home:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
/* share panel in the photo view */
.lb-left { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.share-btn { background: var(--pink-deep, #b80d6b); border-color: var(--pink-deep, #b80d6b); padding: 10px 20px; font-size: 15px; }
.share-btn:hover { background: #95095a; border-color: #95095a; }
.share { background: #ffe3f1; border-radius: 8px; padding: 14px 16px; display: grid; gap: 10px; }
.share h3 { margin: 0; font: 800 22px/1 var(--f-display); text-transform: uppercase; }
.sbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font: 700 15px/1.2 var(--f-body); padding: 10px 12px; border-radius: 999px; border: 2px solid #b80d6b; color: #b80d6b; background: #fff; cursor: pointer; text-decoration: none; }
.sbtn:hover { background: #fff0f7; }
.sbtn.primary { background: #b80d6b; color: #fff; grid-column: 1 / -1; }
.sbtn.primary:hover { background: #95095a; }
.sbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sbtn svg { width: 18px; height: 18px; flex: none; }
.sbtn[hidden] { display: none; }
.sh-link { border: 2px solid #c9c2d1; border-radius: 3px; padding: 8px 10px; width: 100%; font: inherit; }
.note-sm { margin: 0; font-size: 13px; color: var(--muted); }
.sh-status { margin: 0; font-size: 14px; font-weight: 700; min-height: 1.2em; }
@media (max-width: 420px) { .sbtns { grid-template-columns: 1fr; } }
/* photo view: name and Share on one row; rounded buttons to match */
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lb-head h2 { flex: 1 1 auto; min-width: 0; }
.lb-head .share-btn { flex: none; }
.lb-nav .btn { border-radius: 999px; min-width: 44px; }
#lb-name:focus, .lb h3:focus, #you-form-title:focus { outline: none; } /* headings that only receive focus from script */
