/* Forces Photo Map: base styles (palette A, Regimental) */

@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/plex-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/plex-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --paper-2: #F5F7FA;
  --paper-3: #E9EDF2;
  --ink: #121C2F;
  --ink-2: #3D4656;
  --ink-3: #566072;
  --rule: #D6DCE4;
  --rule-2: #B4BDC9;
  --accent: #C8102E;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.kicker { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.status-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 48px; }
.hero h1 { margin: 20px 0 0; max-width: 900px; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.hero .lede { margin: 24px 0 0; max-width: 640px; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hero .soon { margin: 32px 0 0; display: inline-block; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--paper-2); font-size: 17px; }
@media (max-width: 640px) { .hero { padding-top: 48px; padding-bottom: 32px; } .hero .lede { font-size: 17px; } }


/* Three points */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--ink); margin-bottom: 96px; }
.point { padding: 28px 32px 8px 0; }
.point h2 { margin: 12px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }
.point p { margin: 0; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: #F2F4F8; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; font-size: 15px; }
.site-footer .footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer .brand { color: #F2F4F8; }
.site-footer .muted { color: #B4BDC9; }
.site-footer .legal { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #3D4656; max-width: 820px; font-size: 13px; line-height: 1.6; color: #B4BDC9; }

/* Simple pages (404) */
.simple { padding-top: 96px; padding-bottom: 120px; }
.simple h1 { margin: 16px 0 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; }
.simple p { margin: 0 0 24px; max-width: 560px; color: var(--ink-2); font-size: 18px; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; }
.button:hover { background: var(--accent); color: var(--paper); }

/* Header link (signed-in staff) */
.header-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 500; font-size: 15px; }
.header-link:hover { background: var(--ink); color: #FFFFFF; }
.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--accent); }

/* Notices */
.notice { margin: 0 0 24px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--paper-2); font-size: 16px; }
.notice.ok { border-left-color: #2E7D4F; }
.muted-text { color: var(--ink-3); }

/* Photo page */
.photo-page { padding-top: 48px; padding-bottom: 96px; }
.photo-page h1 { margin: 14px 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.photo-meta { margin: 0 0 28px; color: var(--ink-2); font-size: 17px; }
.photo-figure { margin: 0 0 36px; background: var(--ink); display: flex; justify-content: center; }
.photo-figure img { display: block; max-height: 82vh; width: auto; max-width: 100%; height: auto; }
.photo-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px 56px; align-items: start; }
@media (max-width: 860px) { .photo-body { grid-template-columns: 1fr; } }
.story p { margin: 0 0 18px; font-size: 18px; line-height: 1.65; max-width: 68ch; }
.photo-facts { margin: 0; border-top: 1px solid var(--ink); }
.photo-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.photo-facts dt { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.photo-facts dd { margin: 0; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label, fieldset > legend { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.field .hint { font-size: 14px; color: var(--ink-3); }
.input, select.input, textarea.input { min-height: 44px; padding: 0 12px; border: 1px solid var(--rule-2); background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); width: 100%; border-radius: 0; }
textarea.input { padding: 10px 12px; resize: vertical; min-height: 120px; line-height: 1.5; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--accent); outline-color: var(--accent); }
.field-error { color: var(--accent); font-size: 14px; font-weight: 500; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
fieldset > legend { padding: 0; margin-bottom: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-2); background: var(--paper); font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; border-radius: 0; text-decoration: none; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { min-height: 52px; background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* Upload page */
.upload { padding-top: 32px; padding-bottom: 96px; }
.upload-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.upload-head h1 { margin: 8px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.upload-head .kicker { color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--ink-3); }
.steps li[aria-current="step"] { color: var(--ink); font-weight: 500; }
.upload-grid { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: start; }
.editor { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.details { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--paper-2); border: 1px solid var(--rule); }
.details h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; }
@media (max-width: 640px) { .details { padding: 20px; } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar .spacer { margin-left: auto; }
.stage { position: relative; width: 100%; min-height: 320px; background: var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; }
.stage canvas { display: block; max-width: 100%; }
.stage canvas.tool-crop { cursor: move; }
.stage canvas.tool-blur { cursor: crosshair; }
.dropzone { width: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; border: 2px dashed var(--rule-2); background: var(--paper-2); text-align: center; cursor: pointer; }
.dropzone.drag { border-color: var(--accent); background: #FBEFF1; }
.dropzone strong { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.dropzone span { color: var(--ink-3); font-size: 15px; }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; background: var(--paper-2); border: 1px solid var(--rule); }
.panel-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 500; }
.panel-head .muted-text { font-weight: 400; font-size: 14px; }
.strength { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.strength input { width: 100%; accent-color: var(--accent); }
.strength output { min-width: 64px; text-align: right; font-weight: 500; }
.small-print { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pin-map { height: 300px; border: 1px solid var(--rule-2); background: var(--paper-3); }
.pin-dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #FFFFFF, 0 1px 6px rgba(0,0,0,0.35); }
.form-status { margin: 0; font-size: 15px; }
.form-status.error { color: var(--accent); font-weight: 500; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Unlock page */
.narrow { max-width: 520px; }
.unlock { padding-top: 72px; padding-bottom: 120px; }
.unlock h1 { margin: 14px 0 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.unlock form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }

/* Fixes from the site check */
.hint { font-size: 14px; color: var(--ink-3); }
.brand-name, .header-link, .status-chip { white-space: nowrap; }
.stage { min-height: 0; }
.photo-body.no-story { grid-template-columns: minmax(0, 560px); }
#pin-centre { align-self: flex-start; }
@media (max-width: 480px) {
  .site-header .wrap { min-height: 60px; gap: 10px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 12px; letter-spacing: 0.12em; }
  .header-link { min-height: 40px; padding: 0 12px; font-size: 14px; }
  #signed-in-as { display: none; }
  .header-right { gap: 12px; flex-wrap: nowrap; }
  /* Signed in, small phones: logo only, so Account and Add a photo fit on one line. */
  .site-header:has(.header-right a[href="/admin"]) .brand-name { display: none; }
}
@media (max-width: 400px) {
  .site-header:has(.header-right .header-link) .brand-name { display: none; }
}

/* Join / sign in */
.join { padding-top: 48px; padding-bottom: 120px; }
.join .steps { margin-bottom: 28px; }
.join h1 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.join h1:focus { outline: none; }
.join form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.join .toolbar { margin-top: 18px; gap: 20px; }
.code-input { font-family: var(--mono); font-size: 28px; letter-spacing: 0.3em; max-width: 240px; }
.choice-list { gap: 10px; }
.choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 18px; border: 1px solid var(--rule-2); background: var(--paper); cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.choice input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.choice > span { display: flex; flex-direction: column; gap: 2px; }
.choice > span > span { color: var(--ink-3); font-size: 15px; }
.optional-group { padding: 18px; border: 1px solid var(--rule); background: var(--paper-2); gap: 14px; }
.house-rules { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--paper-2); }
.house-rules ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* Header nav */
.header-right a:not(.header-link) { font-size: 15px; font-weight: 500; text-decoration: none; }
.header-right a:not(.header-link):hover { text-decoration: underline; }

/* Photo page side column: facts, report, delete */
.photo-side { display: flex; flex-direction: column; gap: 20px; }
details.report { border: 1px solid var(--rule); background: var(--paper-2); }
details.report > summary { cursor: pointer; padding: 12px 16px; font-size: 15px; font-weight: 500; list-style: none; }
details.report > summary::-webkit-details-marker { display: none; }
details.report > summary::before { content: '+ '; font-family: var(--mono); color: var(--ink-3); }
details.report[open] > summary::before { content: '– '; }
details.report form { display: flex; flex-direction: column; gap: 14px; padding: 4px 16px 16px; }
details.report form p { margin: 0; }
.danger-zone > summary { color: var(--accent); }
.btn-danger { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-danger:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* Admin */
.admin { padding-top: 40px; padding-bottom: 96px; }
.admin h1 { margin: 10px 0 16px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 44px); }
.admin-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 32px; font-size: 16px; color: var(--ink-2); }
.admin-stats strong { font-family: var(--mono); color: var(--ink); }
.admin-section { margin-bottom: 48px; }
.admin-section h2 { margin: 0 0 6px; padding-top: 16px; border-top: 1px solid var(--ink); font-family: var(--serif); font-weight: 500; font-size: 26px; }
.admin-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.admin-card img { width: 160px; height: 120px; object-fit: cover; background: var(--paper-3); display: block; }
.admin-card-body { display: flex; flex-direction: column; gap: 6px; }
.admin-card-body p { margin: 0; }
.admin-card-title { font-weight: 500; font-size: 17px; }
.report-list { margin: 4px 0; padding-left: 18px; font-size: 15px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.admin-actions form { margin: 0; }
details.confirm > summary { list-style: none; }
details.confirm > summary::-webkit-details-marker { display: none; }
details.confirm[open] { padding: 10px; border: 1px solid var(--accent); background: #FBEFF1; }
details.confirm p { margin: 8px 0; font-size: 14px; }
.tag { display: inline-block; padding: 1px 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--rule-2); color: var(--ink-2); vertical-align: middle; }
.tag.ok { border-color: #2E7D4F; color: #2E7D4F; }
.tag.warn { border-color: var(--accent); color: var(--accent); }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.admin-table th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.joining-table { max-width: 720px; }
.joining-table tbody th { font-family: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.joining-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.joining-table tr.total th, .joining-table tr.total td { font-weight: 600; color: var(--ink); }
.joining-table tr.sub th { padding-left: 16px; }
.joining-table tr.gap th, .joining-table tr.gap td { padding-top: 22px; }
@media (max-width: 560px) { .admin-card { grid-template-columns: 96px minmax(0, 1fr); } .admin-card img { width: 96px; height: 72px; } }

/* Footer links */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.footer-links a { color: #F2F4F8; text-decoration: none; }
.footer-links a:hover { color: #FFFFFF; text-decoration: underline; }

/* Privacy and terms */
.legal-page { padding-top: 48px; padding-bottom: 96px; max-width: 860px; }
.legal-page h1 { margin: 12px 0 16px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; text-wrap: balance; }
.legal-page .lede { margin: 0 0 10px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 68ch; }
.legal-page .updated { margin: 0 0 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.legal-page h2 { margin: 40px 0 12px; padding-top: 14px; border-top: 1px solid var(--ink); font-family: var(--serif); font-weight: 500; font-size: 26px; }
.legal-page p, .legal-page li { font-size: 17px; line-height: 1.65; max-width: 70ch; }
.legal-page ul, .legal-page ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-page code { font-family: var(--mono); font-size: 15px; background: var(--paper-3); padding: 1px 6px; }
.legal-page section { scroll-margin-top: 16px; }
.legal-page h3 { margin: 28px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 21px; scroll-margin-top: 16px; }
.counting-control { margin: 4px 0 8px; }
.counting-control .notice { max-width: 70ch; }
.toc { margin: 0 0 8px; padding: 18px 22px; background: var(--paper-2); border: 1px solid var(--rule); }
.toc ol { margin: 0; columns: 2 260px; column-gap: 32px; display: block; }
.toc li { font-size: 15px; margin-bottom: 4px; break-inside: avoid; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.55; }
.legal-table th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.legal-table td:first-child { width: 32%; font-weight: 500; }
.callout { padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--paper-2); }
.rules li { padding-left: 4px; }
.join .small-print-text { font-size: 14px; color: var(--ink-3); margin: 0; }

/* Account page */
.account { padding-top: 64px; padding-bottom: 96px; }
.account h1 { margin: 12px 0 24px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
.account > .muted-text { margin: 14px 0 20px; font-size: 15px; }
.account .inline-form { margin-top: 16px; }
.account-section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink); }
.account-section h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.account-section p { color: var(--ink-2); }
.account-delete { display: grid; gap: 18px; }
.account-delete fieldset { margin: 0; padding: 0; border: 0; display: grid; }
.account-delete legend { padding: 0; margin-bottom: 12px; font-weight: 500; }
.sub-choice { display: grid; gap: 10px; margin: -4px 0 4px; padding: 14px 18px 14px 52px; border: 1px solid var(--rule-2); border-top: 0; background: var(--paper-2); }
.choice-list:has(input[value="delete"]:checked) .sub-choice { display: none; }
.account-delete .btn-danger { justify-self: start; min-height: 48px; }

/* =================================================================== Browsing pages */

/* Header with main navigation */
.header-row { flex-wrap: wrap; }
.main-nav { display: flex; align-items: center; gap: 8px 28px; font-size: 15px; }
.main-nav a { text-decoration: none; white-space: nowrap; padding: 6px 0; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-text { font-size: 15px; font-weight: 500; white-space: nowrap; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.header-link { gap: 8px; white-space: nowrap; }
.header-actions .short { display: none; }
@media (max-width: 1080px) {
  .main-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
  .site-header .header-row { padding-top: 10px; row-gap: 4px; }
}
@media (max-width: 560px) {
  .header-actions .long { display: none; }
  .header-actions .short { display: inline; }
  .header-actions { gap: 8px; }
  .btn-outline, .header-actions .header-link { padding: 0 10px; min-height: 40px; font-size: 14px; }
  .main-nav { gap: 6px 20px; font-size: 14px; }
}
@media (max-width: 400px) {
  .site-header .brand-name { display: none; }
}

/* Footer */
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-about p { margin: 14px 0 0; color: #B4BDC9; font-size: 14px; max-width: 260px; }
.footer-head { margin: 0 0 12px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #B4BDC9; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a, .footer-bottom a { color: #F2F4F8; text-decoration: none; }
.footer-col a:hover, .footer-bottom a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #3D4656; font-size: 14px; color: #B4BDC9; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* Shared bits */
.kicker.accent { color: var(--accent); }
.kicker.light { color: #B4BDC9; }
.button.accent { background: var(--accent); color: #FFFFFF; }
.button.accent:hover { background: #A30D25; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button.ghost:hover { background: var(--ink); color: #FFFFFF; }
.button.wide { width: 100%; justify-content: center; }
.dark .button.accent:hover { background: #FFFFFF; color: var(--ink); }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.section-head h2, .page h2.sub, .how h2, .faq h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.section-head p { margin: 10px 0 0; max-width: 620px; color: var(--ink-2); }
.section-head a, .crumbs a { font-size: 15px; }
.tint { background: var(--paper-3); }
.empty { padding: 28px; border: 1px dashed var(--rule-2); background: var(--paper-2); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule-2); background: var(--paper); text-decoration: none; font-size: 15px; }
.chip:hover { border-color: var(--ink); }
.type-links { margin-top: 24px; display: grid; gap: 10px; }
.more { padding-bottom: 72px; display: grid; gap: 12px; }

/* Home */
.search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; margin-top: 40px; border: 1px solid var(--ink); }
.sfield { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px; border-right: 1px solid var(--rule-2); }
.sfield span { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.sfield input { border: 0; padding: 4px 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; min-width: 0; }
.sfield input:focus { outline: none; }
.sfield:focus-within { box-shadow: inset 0 -3px 0 var(--accent); }
.search-btn { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; border: 0; background: var(--ink); color: #FFFFFF; font: inherit; font-weight: 500; cursor: pointer; }
.search-btn:hover { background: var(--accent); }
@media (max-width: 860px) {
  .search { grid-template-columns: 1fr; }
  .sfield { border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .search-btn { min-height: 52px; justify-content: center; }
}
.home-map { padding-bottom: 72px; }
.band.dark { background: var(--ink); color: #FFFFFF; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 48px; padding-bottom: 48px; }
.band-row h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 36px); }
.band-row p { margin: 0; max-width: 560px; color: #D6DCE4; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.hcard { display: flex; flex-direction: column; gap: 8px; min-height: 196px; padding: 18px 20px 20px; border: 1px solid var(--rule); background: var(--paper-2); text-decoration: none; }
.hcard.light { background: var(--paper); min-height: 168px; }
.hcard:hover { border-color: var(--ink); color: var(--ink); }
.hcard-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.hcard-title { margin-top: 8px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; }
.hcard-text { font-size: 15px; color: var(--ink-2); }
.hcard-count { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; color: var(--accent); }
.page .hgrid { margin-top: 20px; }
.intake { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 24px; padding: 28px 32px; background: var(--ink); color: #FFFFFF; }
.intake .kicker { color: #B4BDC9; }
.intake h3 { margin: 6px 0; font-family: var(--serif); font-weight: 500; font-size: 30px; }
.intake p { margin: 0; color: #D6DCE4; max-width: 560px; }
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; border-top: 1px solid var(--rule); }
.how-steps { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.how-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 20px 0; border-bottom: 1px solid var(--rule); }
.how-steps li > span { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--accent); padding-top: 6px; }
.how-steps h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.how-steps p { margin: 0; color: var(--ink-2); }
.how-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.how-cta p { margin: 0; color: var(--ink-3); font-size: 14px; max-width: 260px; }
.find-box { align-self: start; padding: 32px; background: var(--paper-3); }
.find-box h2 { font-size: clamp(26px, 2.6vw, 32px); }
.find-box p { color: var(--ink-2); margin: 12px 0 20px; }
.unit-search { display: flex; flex-wrap: wrap; gap: 10px; }
.unit-search .input { flex: 1 1 220px; }
.unit-search.wide { margin: 24px 0 32px; max-width: 720px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* Photo cards */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.pcard-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); margin-bottom: 6px; }
.pcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-meta { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.pcard-title { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; }
.pcard-sub { font-size: 14px; color: var(--ink-3); }
.pcard:hover .pcard-title { color: var(--accent); }

/* Maps (our own SVG artwork; pins are links) */
.mapfig { margin: 0; }
.map { display: block; width: 100%; height: auto; background: var(--paper-2); border: 1px solid var(--rule); }
.pin circle { fill: var(--accent); stroke: #FFFFFF; stroke-width: 2.5; }
.pin-empty circle { fill: #FFFFFF; stroke: var(--accent); stroke-width: 2.5; }
.pin:hover circle, .pin:focus circle { fill: var(--ink); }
.pin-empty:hover circle, .pin-empty:focus circle { fill: var(--accent); }
.pin:focus { outline: none; }
.pin:focus-visible circle { stroke: var(--ink); stroke-width: 4; }
.tip { display: none; pointer-events: none; }
.pin:hover .tip, .pin:focus .tip, .tip.always { display: inline; }
.tip rect { fill: var(--ink); }
.tip text { fill: #FFFFFF; font-family: var(--mono); font-weight: 500; }
.mapfig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 10px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 640px) {
  .map-world .pin circle { r: 16px; stroke-width: 5; }
  .map-regional .pin circle { r: 13px; stroke-width: 4; }
  .tip.always { display: none; }
}

/* Inner pages */
.page { padding-top: 24px; padding-bottom: 72px; }
.page-top { padding-top: 24px; padding-bottom: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 28px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.crumbs .sep { color: var(--rule-2); }
.page h1, .page-top h1 { margin: 14px 0 16px; max-width: 900px; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
.page .lede, .page-top .lede { margin: 0; max-width: 720px; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.page h2.sub { margin-top: 56px; font-size: clamp(26px, 2.8vw, 32px); }
.intro-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .intro-row { grid-template-columns: 1fr; } }
.hub-map { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px 40px; align-items: start; }
@media (max-width: 900px) { .hub-map { grid-template-columns: 1fr; } }
.place-list h2 { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-weight: 500; font-size: 26px; }
.place-list h3 { margin: 20px 0 4px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; break-inside: avoid; }
.link-list li a { text-decoration: none; }
.link-list li a:hover { text-decoration: underline; }
.link-list li span { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.link-list.two { columns: 2; column-gap: 24px; }
.link-list.cols { columns: 3 220px; column-gap: 32px; margin-top: 16px; }
.periods { padding: 48px 0 56px; }
.period-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #3D4656; }
.period-row a { display: flex; flex-direction: column; gap: 6px; color: #FFFFFF; text-decoration: none; }
.period-row a:hover .period-label { color: #FF8FA0; }
.period-label { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; }
.period-text { color: #D6DCE4; font-size: 15px; }
.period-count { font-family: var(--mono); font-size: 12px; color: #B4BDC9; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding-top: 72px; padding-bottom: 56px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.faq details p { margin: 10px 0 0; max-width: 620px; color: var(--ink-2); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Count band */
.count-band { background: var(--paper-3); }
.count-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px 48px; padding-top: 32px; padding-bottom: 32px; }
.count-row p { margin: 6px 0 0; color: var(--ink-2); }
.count-row .kicker { margin: 0; }
.count-num { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 56px; line-height: 1; }
.count-num.small { font-size: 28px; }
@media (max-width: 700px) { .count-row { grid-template-columns: 1fr; } }

/* Explore */
.explore { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; border-bottom: 1px solid var(--rule); min-height: 70vh; }
.explore-filters { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-right: 1px solid var(--rule); }
.explore-filters h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
.explore-filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.explore-filters .years { grid-template-columns: 1fr auto 1fr; align-items: center; }
.explore-filters .years legend { grid-column: 1 / -1; margin-bottom: 6px; }
.filter-actions { display: flex; align-items: center; gap: 16px; }
.explore-main { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.when-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.when-chip { padding: 4px 10px; border: 1px solid var(--rule-2); font-family: var(--mono); font-size: 13px; }
.timeline .tbars { display: flex; align-items: flex-end; gap: 2px; height: 64px; border-bottom: 1px solid var(--rule-2); }
.tbar { flex: 1; height: 100%; display: block; }
.tbar svg { display: block; width: 100%; height: 100%; }
.tbar rect { fill: var(--ink-3); }
.tbar.off rect { fill: var(--rule-2); }
.tbar:hover rect { fill: var(--accent); }
.tticks { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.selected { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: var(--paper-2); }
.selected-name { margin: 4px 0 0; font-family: var(--serif); font-weight: 500; font-size: 28px; }
.selected-actions { display: flex; align-items: center; gap: 16px; }
.view-chips { display: grid; gap: 8px; }
.view-chips .chip { min-height: 34px; font-size: 14px; }
.explore-list { padding: 24px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 20px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.list-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.explore-list .pcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 2px; }
.explore-list .pcard-img { grid-row: 1 / 4; margin: 0; }
.explore-list .pcard-title { font-size: 18px; }
.explore-list .pcard-sub { font-size: 13px; }
.explore-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 14px 32px; }
@media (max-width: 1180px) {
  .explore { grid-template-columns: 280px minmax(0, 1fr); }
  .explore-list { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
  .explore-list .pgrid-wrap { display: grid; }
}
@media (max-width: 760px) {
  .explore { grid-template-columns: 1fr; }
  .explore-filters { border-right: 0; border-bottom: 1px solid var(--rule); }
  .explore-main, .explore-filters, .explore-list { padding: 20px; }
}
.landed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 24px 0 0; padding: 16px 20px; background: var(--ink); color: #FFFFFF; }
.landed p { margin: 0; font-family: var(--serif); font-size: 22px; }
.landed .kicker { display: block; color: #B4BDC9; margin-bottom: 4px; }
.landed .btn-outline { border-color: #FFFFFF; color: #FFFFFF; }
.landed .btn-outline:hover { background: #FFFFFF; color: var(--ink); }
.photo-page .crumbs { margin-top: 24px; }
.photo-facts dd a { text-decoration: underline; text-underline-offset: 3px; }
.explore-filters .check { font-family: var(--sans); font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.tticks { justify-content: stretch; gap: 2px; }
.tticks span { flex: 1; overflow: visible; white-space: nowrap; min-width: 0; }
.filters-jump { display: none; }
@media (max-width: 760px) {
  .explore-main { order: -2; }
  .explore-list { order: -1; }
  .filters-jump { display: inline-flex; min-height: 34px; }
  .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hcard, .hcard.light { min-height: 0; padding: 14px; }
  .hcard-title { font-size: 21px; margin-top: 4px; }
  .hcard-text { font-size: 14px; }
  .hcard-top span + span { display: none; }
}
@media (max-width: 360px) { .hgrid { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .pcard-title { font-size: 17px; }
  .pcard-meta { font-size: 11px; }
  .pcard-sub { font-size: 13px; }
}
.hub-map.tall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hub-map.tall .mapfig { max-width: 560px; }
@media (max-width: 900px) { .hub-map.tall { grid-template-columns: 1fr; } }

/* In this photo (tags) */
.people { margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--ink); display: grid; gap: 12px; }
.people h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.people-list { list-style: none; margin: 0; padding: 0; }
.people-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.people-list .you { color: var(--ink-3); }
.people .muted-text { margin: 0; font-size: 14px; }
.people .btn { justify-self: start; }
.inline-form { display: inline; margin: 0; }
.linklike.small { font-size: 14px; }

/* Continue with Facebook */
.fb-wrap { display: grid; gap: 10px; margin: 20px 0 8px; }
.btn-facebook { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; background: #166FE5; color: #FFFFFF; text-decoration: none; font-weight: 500; font-size: 16px; border-radius: 0; }
.btn-facebook:hover { background: #0F5BC0; color: #FFFFFF; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; text-decoration: none; font-weight: 500; font-size: 16px; border-radius: 0; }
.btn-google:hover { background: #F2F2F2; color: #1F1F1F; }
.btn-google.hidden, .btn-facebook.hidden { display: none; }
.fb-wrap .small-print-text { margin: 0; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
@media (max-width: 420px) {
  .header-actions svg { display: none; }
  .header-actions .header-text { font-size: 14px; }
  .header-actions { gap: 6px; }
}

/* Bulk upload (/admin/bulk) */
.bulk .lede { max-width: 760px; }
.bulk h2 { margin: 0 0 16px; padding-top: 16px; border-top: 1px solid var(--ink); font-family: var(--serif); font-weight: 500; font-size: 26px; }
.bulk-shared, .bulk-files { margin: 32px 0; }
.bulk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 20px; }
.bulk-files-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--ink); margin-bottom: 4px; }
.bulk-files-head h2 { flex: 1; margin: 0; padding: 0; border: 0; }
.bulk-row textarea.input { min-height: 56px; height: 56px; resize: vertical; }
.bulk-drop { margin: 12px 0 16px; padding: 28px 20px; border: 1px dashed var(--ink-3); background: var(--paper-2); color: var(--ink-2); text-align: center; font-size: 15px; }
.bulk-drop.over { border-color: var(--accent); background: var(--paper-3); }
.bulk-list { list-style: none; margin: 0; padding: 0; }
.bulk-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 160px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.bulk-row img { width: 120px; height: 90px; object-fit: cover; background: var(--paper-3); display: block; }
.bulk-row-fields { display: grid; grid-template-columns: minmax(0, 2fr) 110px minmax(0, 1.4fr); gap: 10px 12px; }
.bulk-row-fields .r-story-f { grid-column: 1 / -1; }
.bulk-row-fields .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.bulk-row-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bulk-status { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.bulk-status.ok { color: #2E7D4F; }
.bulk-row.has-error { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.bulk-row.done { opacity: 0.75; }
.bulk-confirm { margin: 24px 0; display: grid; gap: 10px; border: 0; padding: 0; }
.bulk-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .bulk-row { grid-template-columns: 90px minmax(0, 1fr); }
  .bulk-row img { width: 90px; height: 68px; }
  .bulk-row-fields { grid-template-columns: minmax(0, 1fr); }
  .bulk-row-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; width: 100%; }
}

.site-footer .footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Places people have added (/admin/places) */
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tp .lede { max-width: 760px; }
.tp-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 0; }
.tp-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; padding: 22px 0; border-top: 1px solid var(--ink); }
.tp-card:last-child { border-bottom: 1px solid var(--ink); }
.tp-head h2 { margin: 0 0 4px; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.tp-head p { margin: 2px 0; }
.tp-warn { color: var(--accent); font-weight: 600; }
.tp-thumbs { display: flex; gap: 6px; align-self: start; }
.tp-thumbs img { width: 96px; height: 72px; object-fit: cover; display: block; background: var(--paper-3); }
.tp-like, .tp-new { grid-column: 1 / -1; }
.tp-like { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tp-like .kicker { width: 100%; margin: 0; }
.tp-new .kicker { margin: 0 0 8px; }
.tp-new-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px 12px; }
.tp-new-fields .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.tp-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.tp-ni { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-2); }
.tp-ni .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) {
  .tp-card { grid-template-columns: minmax(0, 1fr); }
  .tp-new-fields { grid-template-columns: minmax(0, 1fr); }
  .tp-thumbs img { width: 76px; height: 57px; }
}

/* Email today (/admin#email) */
.notice.warn { border-left-color: var(--accent); background: #FBEBEB; }
.email-meter { margin: 0 0 8px; font-size: 17px; }
.meter { height: 10px; background: var(--paper-3); max-width: 520px; margin: 0 0 12px; }
.meter-fill { display: block; height: 100%; background: var(--ink-2); }
.meter.high .meter-fill { background: var(--accent); }
.meter-0 { width: 0%; }
.meter-5 { width: 5%; }
.meter-10 { width: 10%; }
.meter-15 { width: 15%; }
.meter-20 { width: 20%; }
.meter-25 { width: 25%; }
.meter-30 { width: 30%; }
.meter-35 { width: 35%; }
.meter-40 { width: 40%; }
.meter-45 { width: 45%; }
.meter-50 { width: 50%; }
.meter-55 { width: 55%; }
.meter-60 { width: 60%; }
.meter-65 { width: 65%; }
.meter-70 { width: 70%; }
.meter-75 { width: 75%; }
.meter-80 { width: 80%; }
.meter-85 { width: 85%; }
.meter-90 { width: 90%; }
.meter-95 { width: 95%; }
.meter-100 { width: 100%; }
.email-limit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.email-limit label { font-size: 15px; }
.email-limit .input { width: 140px; }

/* Replies under a photo */
.replies { margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--ink); max-width: 760px; scroll-margin-top: 16px; }
.replies h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.replies h2 .count { margin-left: 6px; font-family: var(--mono); font-size: 15px; color: var(--ink-3); vertical-align: middle; }
.reply-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--rule); }
.reply { padding: 16px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.reply:target { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
.reply.is-hidden { opacity: 0.8; }
.reply .notice { margin: 6px 0 10px; font-size: 14px; }
.reply-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; font-size: 15px; color: var(--ink-2); }
.reply-name { font-weight: 600; color: var(--ink); }
.reply-head .you { color: var(--ink-3); }
.reply-head time { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.reply-body p { margin: 0 0 8px; font-size: 17px; line-height: 1.6; max-width: 68ch; overflow-wrap: anywhere; }
.reply-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 18px; margin-top: 4px; font-size: 14px; }
.reply-tools details > summary { cursor: pointer; list-style: none; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.reply-tools details > summary::-webkit-details-marker { display: none; }
.reply-tools details > summary:hover { color: var(--accent); }
.reply-tools details[open] { flex-basis: 100%; }
.reply-tools details form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; padding: 14px 16px; border: 1px solid var(--rule); background: var(--paper-2); }
.reply-tools details.reply-delete form { align-items: flex-start; }
.reply-tools .inline-form .linklike { color: var(--ink-3); }
.reply-form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.reply-form .field { width: 100%; }
.reply-form textarea { width: 100%; min-height: 96px; }
.reply-form .muted-text { margin: 0; font-size: 14px; max-width: 68ch; }
.reply-join { margin: 8px 0 0; }
.admin-reply { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.admin-reply .reply-body p { font-size: 16px; }
.admin-reply .admin-actions { margin-top: 8px; }
.reply-feed { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--rule); }
.reply-feed li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.reply-feed .reply-head { margin: 0 0 4px; }
.reply-excerpt { margin: 0; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
