/* Fonts: Barlow, Barlow Condensed, Source Serif 4 (SIL OFL), self-hosted */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/barlow-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barlow-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barlow-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barlow-condensed-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barlow-condensed-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/barlow-condensed-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-400-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url(/assets/fonts/barlow-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Farm View publisher demo */
:root { --ink: #1f1d1a; --ink-2: #4a463f; --ink-3: #6f695e; --hair: #e2ddd2; --bg: #f5f3ee; --green: #00804b; --green-d: #00663c; --green-l: #e3f2e9; --sun: #ffe33b; --red: #c62b26; --r: 8px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 "Barlow", "Segoe UI", sans-serif; }
img { max-width: 100%; display: block; }
h1, h2 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; line-height: 1.1; margin: 0 0 .5rem; }
h1 { font-size: 2.4rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
a { color: var(--green-d); }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid #1b87cc; outline-offset: 2px; }

.demo-bar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .55rem 1.25rem; background: var(--sun); font-size: .95rem; }
.demo-actions { display: flex; gap: 1rem; align-items: center; }
.demo-actions a { color: var(--ink); font-weight: 600; }
.demo-actions button { font: 600 .9rem/1 inherit; font-family: inherit; padding: .45rem .8rem; border: 1px solid var(--ink); background: transparent; border-radius: 6px; cursor: pointer; }

.signin { position: fixed; inset: 0; z-index: 40; background: rgba(31, 29, 26, .55); display: grid; place-items: center; padding: 1rem; }
.signin[hidden] { display: none; }
.signin-card { background: #fff; border-radius: 12px; padding: 2rem; width: min(100%, 380px); display: grid; gap: .9rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.signin-card img { width: 200px; margin: 0 auto .25rem; }
.signin-card h1 { font-size: 1.8rem; text-align: center; }

.app { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 42px); }
.side { background: #fff; border-right: 1px solid var(--hair); padding: 1.25rem .9rem; display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 42px; height: calc(100vh - 42px); }
.side-logo { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; padding: 0 .5rem; }
.side-logo span { font: 700 .75rem/1 "Barlow", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.side nav { display: grid; gap: .2rem; }
.side nav a { display: flex; gap: .7rem; align-items: center; padding: .7rem .75rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.side nav a:hover { background: var(--bg); }
.side nav a.on { background: var(--green-l); color: var(--green-d); }
.side-foot { margin-top: auto; font-size: .85rem; color: var(--ink-3); padding: 0 .5rem; }

.main { padding: 2rem 2.25rem 4rem; max-width: 1240px; }
.ph { margin-bottom: 1.5rem; }
.ph p { color: var(--ink-2); max-width: 44rem; margin: 0; font-size: 1.05rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.grid2.wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.stack { display: grid; gap: 1rem; }
.card { background: #fff; border: 1px solid var(--hair); border-radius: var(--r); padding: 1.4rem; display: grid; gap: .9rem; align-content: start; }
.card.narrow { max-width: 560px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: 400 1rem/1.4 inherit; font-family: inherit; padding: .6rem .7rem; border: 1px solid #c9c2b3; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 2px solid var(--green-l); }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.check input { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--green); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-items: end; }   /* a wrapped label never pushes its box out of line */
/* advertiser address: street, city + postal code, province */
.addr { display: grid; gap: .7rem; margin: 0; padding: .9rem 1rem 1rem; border: 1px solid var(--hair); border-radius: 6px; min-width: 0; }
.addr legend { padding: 0 .35rem; font-weight: 600; font-size: .95rem; }
input[name=postal] { text-transform: uppercase; }
.row-btns { display: flex; gap: .6rem; }
.hint { font-size: .88rem; color: var(--ink-3); margin: 0; }
.wc { font-weight: 500; color: var(--ink-3); font-size: .85rem; }
.wc.over { color: var(--red); }
.b { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1rem; min-height: 42px; border-radius: 6px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: 600 .95rem/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.b:hover { background: var(--bg); }
.b.primary { background: var(--green); border-color: var(--green); color: #fff; font-size: 1.02rem; min-height: 48px; }
.b.primary:hover { background: var(--green-d); }
.b.primary:disabled { background: #b9c9bf; border-color: #b9c9bf; cursor: not-allowed; }
.b.ghost { border-color: var(--hair); }
.b.danger { color: var(--red); border-color: #e9c6c4; }
.b.danger.sure { background: var(--red); color: #fff; border-color: var(--red); }
.b.sm { min-height: 34px; padding: .35rem .7rem; font-size: .85rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .85rem .9rem; border: 1px solid var(--hair); border-radius: 6px; }
.checklist small { display: block; color: var(--ink-3); }
.tick { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid #c9c2b3; display: grid; place-items: center; }
.checklist li.done { background: var(--green-l); border-color: #bfe0cc; }
.checklist li.done .tick { background: var(--green); border-color: var(--green); }
.checklist li.done .tick::after { content: ""; width: .45rem; height: .8rem; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.stat { gap: .2rem; }
.stat small { color: var(--ink-3); font-weight: 600; }
.stat strong { font: 800 1.9rem/1.1 "Barlow Condensed", sans-serif; }
.stat a { font-weight: 600; font-size: .92rem; }

.drop { position: relative; border: 2px dashed #c9c2b3; border-radius: var(--r); padding: 1.5rem; text-align: center; cursor: pointer; background: #fcfbf8; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--green); background: var(--green-l); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.drop-empty { display: grid; justify-items: center; gap: .4rem; font-weight: 500; }
.drop-empty svg { width: 2rem; height: 2rem; color: var(--green); }
.drop-full { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; text-align: left; }
.drop-full canvas { width: 110px; height: auto; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); background: #fff; }
.drop-full small { display: block; color: var(--ink-3); }
.drop-full .ok { color: var(--green-d); font-weight: 600; }
.drop.small { padding: 1rem; }

.issue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.issue-list li { display: grid; grid-template-columns: 48px 1fr auto; gap: .8rem; align-items: center; padding: .45rem .5rem; border-radius: 6px; }
.issue-list li:hover { background: var(--bg); }
.issue-list img { width: 48px; aspect-ratio: .72; object-fit: cover; object-position: top; box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .35); background: #fff; }
.badge { display: inline-block; margin-left: .4rem; padding: .1rem .45rem; background: var(--sun); border-radius: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }
.badge.new { background: var(--green); color: #fff; }
.badge.grey { background: #ece8df; color: var(--ink-3); }

.cal-admin, .ad-admin, .albums { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.cal-admin li { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .8rem; align-items: center; padding: .6rem; border: 1px solid var(--hair); border-radius: 6px; }
.cal-admin li.past { opacity: .55; }
.cal-admin .d { text-align: center; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.cal-admin .d b { display: block; background: var(--ink); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.cal-admin .d span { font: 800 1.35rem/1.3 "Barlow Condensed", sans-serif; }
.cal-admin small { display: block; color: var(--ink-3); }
.acts { display: flex; gap: .35rem; }
.ad-admin li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem .7rem; border-bottom: 1px solid var(--hair); }
.ad-admin small { display: block; color: var(--ink-3); }
.search { max-width: 220px; min-height: 40px; }
.albums li { display: grid; grid-template-columns: 84px 1fr; gap: .9rem; align-items: center; padding: .5rem; border: 1px solid var(--hair); border-radius: 6px; }
.albums img { width: 84px; height: 64px; object-fit: cover; border-radius: 4px; }
.albums small { display: block; color: var(--ink-3); }
.thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.thumbs li { display: grid; gap: .35rem; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.thumbs .cap { font-size: .9rem; line-height: 1.3; min-height: 0; padding: .45rem .55rem; resize: vertical; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); background: var(--ink); color: #fff; padding: .85rem 1.2rem; border-radius: 8px; font-weight: 600; max-width: min(92vw, 560px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); transition: transform .3s ease; z-index: 50; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .75rem 1rem; }
  .side-logo img { width: 120px; }
  .side nav { display: flex; flex-wrap: wrap; gap: .2rem; }
  .side nav a { padding: .5rem .6rem; font-size: .92rem; }
  .side-foot { display: none; }
  .main { padding: 1.5rem 1rem 3rem; }
  .grid2, .grid2.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; }
  .checklist li { grid-template-columns: auto 1fr; }
  .checklist li .b { grid-column: 2; justify-self: start; }
  h1 { font-size: 2rem; }
}

/* ---------------------------------------------------------------- the real publisher (admin/) */
.publisher .side { top: 0; height: 100vh; }
@media (max-width: 960px) {
  .publisher .side { height: auto; }   /* phones: the menu is a short bar on top, not a full screen */
  .publisher .side-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; width: 100%; margin: 0; padding: .55rem .5rem 0; border-top: 1px solid var(--hair); }
  .publisher .side-foot p { margin: 0; }
}
.publisher .signin { position: fixed; inset: 0; }
.signin-card .hint { text-align: left; }
.err { margin: 0; padding: .6rem .8rem; border-radius: 6px; background: #fbe9e8; color: #8a1f1b; font-weight: 600; font-size: .95rem; }
.progress { height: 8px; background: var(--hair); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
form.busy { opacity: .75; }
.side-foot p { margin: .25rem 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--green-d); text-decoration: underline; cursor: pointer; }
.pub { display: flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--green-d); }
.pub .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); flex: none; }
.pub.pending { color: #8a6d00; }
.pub.pending .dot { background: #e0b400; animation: fvpulse 1s infinite alternate; }
.pub.bad { color: var(--red); }
.pub.bad .dot { background: var(--red); }
@keyframes fvpulse { to { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pub.pending .dot { animation: none; } }
.focus-box { position: relative; display: block; cursor: crosshair; }
.focus-box img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: fill; }   /* whole photo, true shape, so a tap maps exactly */
.focus-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; background: var(--green); box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }
.thumbs li .b.sm { justify-self: start; }
.publisher .albums li { grid-template-columns: 84px 1fr auto; }
.sec-now { font-weight: 700; font-size: 1.05rem; margin: 0; padding: .7rem .9rem; background: var(--green-l); border-radius: 6px; color: var(--green-d); }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.steps small { display: block; color: var(--ink-3); margin-top: .35rem; }
.qr { display: block; margin: .6rem 0 .2rem; }
.qr img { width: 220px; height: 220px; image-rendering: pixelated; border: 1px solid var(--hair); border-radius: 6px; background: #fff; }
code { font: 600 .95rem/1.4 ui-monospace, Consolas, monospace; background: var(--bg); padding: .1rem .35rem; border-radius: 4px; letter-spacing: .04em; }
[data-sec] form { display: grid; gap: .8rem; }
/* activity log (admin only) */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters .b.on { background: var(--ink); color: #fff; }
.filters .count:not(:empty) { display: inline-block; min-width: 1.3rem; padding: .1rem .35rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; line-height: 1.1; text-align: center; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity .act-day { font: 700 .78rem/1 "Barlow", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 1.1rem 0 .45rem; border-bottom: 1px solid var(--hair); }
.activity .act-day:first-child { padding-top: .2rem; }
.activity .act { display: grid; grid-template-columns: 5.2rem 1fr; gap: .8rem; padding: .6rem .5rem .6rem .7rem; border-bottom: 1px solid var(--hair); border-left: 3px solid transparent; }
.activity .act time { color: var(--ink-3); font-size: .88rem; font-variant-numeric: tabular-nums; padding-top: .05rem; }
.activity .act strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.activity .act small { display: block; color: var(--ink-3); font-size: .83rem; overflow-wrap: anywhere; }
.activity .act-change { border-left-color: var(--green); }
.activity .act-warning { border-left-color: var(--red); background: #fdf3f2; }
.activity .act-warning strong { color: #8f1f1b; }
.activity .act-empty { padding: 1rem .5rem; color: var(--ink-3); }
.activity .act-more { padding: 1rem 0 0; text-align: center; }
@media (max-width: 560px) { .activity .act { grid-template-columns: 1fr; gap: .15rem; } }
/* sign-in & security: password card, and spacing between stacked cards on that page */
.card.narrow { max-width: 620px; }
#p-security > .card + .card, #p-security > .card + .grid2 { margin-top: 1.5rem; }
/* password requirements, ticked off live as she types */
.pw-rules { list-style: none; margin: -.2rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; color: var(--ink-3); }
.pw-rules li { display: flex; align-items: center; gap: .5rem; }
.pw-rules li::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid var(--hair); box-sizing: border-box; }
.pw-rules li.ok { color: var(--green-d); font-weight: 600; }
.pw-rules li.ok::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-10' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
/* website status: a coloured dot with its own soft ring, then the words in dark text, so the two never run together */
.pub { display: flex; align-items: center; gap: .7rem; padding: 0; background: none; color: var(--ink); font-weight: 600; line-height: 1.25; }
.pub .dot { display: inline-block; position: static; width: .65rem; height: .65rem; margin: 0 .7rem 0 .22rem; vertical-align: middle;
            box-shadow: 0 0 0 .22rem var(--green-l); }   /* own margin: stays clear of the words even without flex gap */
.pub { gap: 0; }
.pub [data-pub-text] { display: inline-block; vertical-align: middle; }
.pub.pending { color: var(--ink); }
.pub.pending .dot { box-shadow: 0 0 0 .22rem #fff1c2; }
.pub.bad { color: var(--red); }
.pub.bad .dot { box-shadow: 0 0 0 .22rem #fbe1df; }
.side-foot p.pub { margin: 0 0 .6rem .2rem; }
/* the pop-up message: fully hidden when not showing (an empty one used to peek up at the bottom of the screen) */
.toast { transform: translate(-50%, calc(100% + 2rem)); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease, visibility 0s; }
@media (max-width: 960px) { .side-foot p.pub { margin: 0; } }

/* ---------------------------------------------------------------- use the whole screen (2026-11-26)
   Collection pages show their items as a grid of cards, with the add/edit form beside them, always in view.
   Below 1150px the form drops under the list; phones get one column of cards. */
.main { max-width: 1760px; }
.below { margin-top: 1.5rem; }
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 1.5rem; align-items: start; }
/* the form beside a list: pinned while the list scrolls, only when all of it fits on screen (admin.js adds .stick).
   Never a scroll box of its own, so the mouse wheel scrolls the page wherever the pointer is. */
.side-form { position: static; }
.side-form.stick { position: sticky; top: 1.25rem; }
.cal-admin { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.cal-admin li { grid-template-columns: 3.4rem minmax(0, 1fr); align-items: start; }
.cal-admin li .acts { grid-column: 2; }
.issue-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.issue-list li { display: flex; flex-direction: column; gap: .45rem; padding: .6rem; border: 1px solid var(--hair); }
.issue-list img { width: 100%; }
.issue-list .badge { margin: .3rem 0 0; }
.albums { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.publisher .albums li, .albums li { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; padding: .6rem; }
.albums img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.album-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem; align-items: start; }
.details-form > .grid2 { gap: 2rem; }
.details-form .row-btns .b { min-width: 220px; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; align-items: start; }
.sec-grid > [data-sec-on] { display: contents; }
.sec-grid > [data-sec-on][hidden] { display: none !important; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .85rem 0 .2rem; border-top: 1px solid var(--hair); }
.search-box { position: relative; display: block; flex: 1 1 260px; max-width: 380px; font-weight: 400; }
.search-box svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: var(--ink-3); pointer-events: none; }
.search-box input { padding-left: 2.4rem; min-height: 42px; }
.seg { display: inline-flex; border: 1px solid #c9c2b3; border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { font: 600 .9rem/1 inherit; font-family: inherit; padding: 0 .95rem; min-height: 40px; border: 0; border-left: 1px solid #c9c2b3; background: transparent; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--bg); }
.seg button.on { background: var(--ink); color: #fff; }
.count-label { font: 600 1rem "Barlow", sans-serif; color: var(--ink-3); }
/* advertisers: one card each */
.biz-admin { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.biz-admin li { display: flex; flex-direction: column; gap: .35rem; padding: .85rem .95rem; border: 1px solid var(--hair); border-radius: 6px; background: #fff; }
.biz-admin li.pickup { border-color: #bfe0cc; box-shadow: inset 0 3px 0 var(--green); }
.biz-admin li.editing { border-color: var(--green); outline: 3px solid var(--green-l); }
.biz-admin strong { font-size: 1.02rem; line-height: 1.25; }
.biz-admin .star { color: #c99a00; }
.biz-admin .lines { display: grid; gap: .1rem; font-size: .88rem; color: var(--ink-3); overflow-wrap: anywhere; }
.biz-admin .lines a { color: var(--ink-2); }
.biz-admin .tag { align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--green-d); background: var(--green-l); padding: .1rem .45rem; border-radius: 4px; }
.biz-admin .tag.warn { color: #7a5d00; background: #fff4c7; }
/* buttons sit at the bottom of every card, so they line up across a row */
.biz-admin .acts, .issue-list .acts, .albums .acts { margin-top: auto; padding-top: .35rem; }
.issue-list li > div, .albums li > div { flex: none; }
.map-check { font-size: .9rem; font-weight: 600; justify-self: start; }
@media (max-width: 1150px) {
  .work { grid-template-columns: 1fr; }
  .side-form, .side-form.stick { position: static; }
}
@media (max-width: 960px) {
  .album-cols { grid-template-columns: 1fr; }
  .details-form > .grid2 { gap: 1.5rem; }
}
@media (max-width: 520px) {
  .biz-admin, .cal-admin, .albums { grid-template-columns: 1fr; }
  .issue-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-box { max-width: none; flex-basis: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 .4rem; font-size: .85rem; white-space: normal; line-height: 1.15; }
  .details-form .row-btns .b { width: 100%; }
}
/* the address box turns green and says "needed" once the pick-up box is ticked */
.addr.need { border-color: var(--green); }
.addr.need legend { color: var(--green-d); }

/* ---------------------------------------------------------------- Out & About: the photos of an album (2026-11-26)
   Each photo is a small card: drag handle, number, Cover/New badges, the photo (tap for the focal point), caption,
   then move earlier / later / take out. Two across on phones, as many as fit on a wide screen. */
.photos-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.photos-head:has(h3:empty) { display: none; }
.photos-head h3 { margin: 0; font: 700 1.2rem/1.2 "Barlow Condensed", "Arial Narrow", sans-serif; }
.photos-head .hint svg { width: 1rem; height: 1rem; vertical-align: -.2rem; fill: currentColor; stroke: none; }
.thumbs { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.thumbs li { display: flex; flex-direction: column; gap: .45rem; padding: .55rem; border: 1px solid var(--hair); border-radius: 8px; background: #fff; }
.thumbs li.new { border-color: #bfe0cc; }
.thumb-head { display: flex; align-items: center; gap: .45rem; min-height: 40px; }
.grip { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--hair); border-radius: 6px; background: var(--bg); color: var(--ink-2); cursor: grab; touch-action: none; }
.grip:hover { border-color: var(--ink-3); color: var(--ink); }
.grip:active { cursor: grabbing; }
.grip svg { fill: currentColor; stroke: none; }
.thumb-head .num { font-weight: 700; color: var(--ink-3); }
.thumb-head .badge { margin-left: 0; }
.thumb-acts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.thumb-acts .b.sm { min-height: 40px; min-width: 40px; }
.thumb-acts .b.danger { margin-left: auto; }
.thumbs.sorting { user-select: none; -webkit-user-select: none; }
.thumbs.sorting li { transition: transform .12s ease; }
.thumbs li.dragging { opacity: .55; outline: 3px dashed var(--green); outline-offset: 2px; }
@media (max-width: 520px) {
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .thumbs li { padding: .4rem; }
  .thumb-acts .b.danger { margin-left: 0; flex-basis: 100%; }
}
/* a button that can't be used right now looks it (e.g. "move earlier" on the first photo) */
.b:disabled, .b:disabled:hover { opacity: .38; cursor: not-allowed; background: #fff; }
.b.primary:disabled { opacity: 1; background: #b9c9bf; }
