/* Gallery White or Graphite: the layout's script sets data-theme from the member's choice (Light, Dark or Automatic,
   which follows the device). Everything below uses these variables. */
:root {
  color-scheme: light;
  --pw-ink: #ffffff;          /* page */
  --pw-ink-2: #fafaf8;        /* cards and panels */
  --pw-raised: #f4f3f0;       /* toolbars, pop-ups */
  --pw-hover: #efeee9;
  --pw-chip: #ecebe7;
  --pw-line: #e5e3de;
  --pw-text: #17181b;
  --pw-text-soft: #3d4148;    /* long text: descriptions, posts */
  --pw-muted: #6b6f78;
  --pw-accent: #c96f14;
  --pw-accent-hover: #ad5d0c;
  --pw-accent-ink: #ffffff;   /* text on accent buttons */
  --pw-accent-line: #ecc89e;
  --pw-accent-deep: #a85a0b;
  --pw-link: #9a5208;         /* accent dark enough for text links on white */
  --pw-photo-bg: #f1f0ed;     /* behind photos while they load or letterbox */
  --pw-danger: #b3261e;
  --pw-danger-line: #e9b8b4;
  --pw-danger-bg: #fbeceb;
  --pw-radius: 14px;
  --pw-photo-radius: 12px;    /* photos themselves; inside a card they sit inset, so card and photo corners line up */
  --pw-photo-inset: 6px;      /* gap between a photo card's edge and its photo */
  --pw-photo-card-radius: calc(var(--pw-photo-radius) + var(--pw-photo-inset));
  --pw-serif: "Fraunces", Georgia, serif;
  --pw-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --pw-ink: #1e2127;
  --pw-ink-2: #272b33;
  --pw-raised: #2d3139;
  --pw-hover: #333842;
  --pw-chip: #333842;
  --pw-line: #3a3f49;
  --pw-text: #eeece8;
  --pw-text-soft: #cfcdc8;
  --pw-muted: #a7abb4;
  --pw-accent: #f2a541;
  --pw-accent-hover: #ffb85c;
  --pw-accent-ink: #1a1206;
  --pw-accent-line: #6b5021;
  --pw-accent-deep: #c9822c;
  --pw-link: #f2a541;
  --pw-photo-bg: #16181c;
  --pw-danger: #f19999;
  --pw-danger-line: #6b2a2a;
  --pw-danger-bg: #3a1515;
}

html { font-size: 15px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  background: var(--pw-ink);
  color: var(--pw-text);
  font-family: var(--pw-sans);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--pw-link); }
a:hover { color: var(--pw-accent-hover); }
.text-muted { color: var(--pw-muted) !important; }

.btn:focus, .btn:active:focus, .form-control:focus, .btn-provider:focus-visible {
  box-shadow: 0 0 0 0.1rem var(--pw-ink), 0 0 0 0.25rem var(--pw-accent);
}

/* ---------- Nav ---------- */
.site-nav { border-bottom: 1px solid var(--pw-line); padding: .9rem 0; }
.brand { font-family: var(--pw-serif); font-weight: 700; font-size: 1.4rem; display: flex; align-items: center; gap: .55rem; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--pw-accent);
  box-shadow: inset 0 0 0 4px var(--pw-ink), inset 0 0 0 12px var(--pw-accent);
}
.site-nav .nav-link { color: var(--pw-text); }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--pw-accent); }
.site-nav .navbar-nav:first-child .nav-link.active { font-weight: 600; }
.nav-user { display: flex; align-items: center; gap: .5rem; background: none; border: 0; }
.nav-user img, .nav-user-initial { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-user-initial { display: inline-grid; place-items: center; background: var(--pw-chip); font-weight: 600; font-size: .85rem; text-transform: uppercase; }

/* Account menu under the avatar. */
.nav-account .dropdown-menu {
  --bs-dropdown-bg: var(--pw-raised); --bs-dropdown-border-color: var(--pw-line); --bs-dropdown-color: var(--pw-text);
  --bs-dropdown-link-color: var(--pw-text); --bs-dropdown-link-hover-bg: var(--pw-hover); --bs-dropdown-link-hover-color: var(--pw-text);
  --bs-dropdown-link-active-bg: var(--pw-hover); --bs-dropdown-link-active-color: var(--pw-accent);
  --bs-dropdown-divider-bg: var(--pw-line); --bs-dropdown-header-color: var(--pw-muted); min-width: 14rem;
}
.nav-account .dropdown-item.active { font-weight: 600; }
.dropdown-theme { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .25rem 1rem; }
.theme-choices { display: inline-flex; border: 1px solid var(--pw-line); border-radius: 99px; overflow: hidden; }
.theme-choices button { background: none; border: 0; color: var(--pw-text); font-size: .82rem; padding: .2rem .6rem; }
.theme-choices button:hover { background: var(--pw-hover); }
.theme-choices button[aria-pressed="true"] { background: var(--pw-accent); color: var(--pw-accent-ink); }
/* Wide screens show only the avatar; the collapsed mobile menu lists the account items in full instead of a dropdown. */
@media (min-width: 992px) { .nav-user-name { display: none; } }
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding-top: .5rem; }
  .site-nav .navbar-nav + .navbar-nav { border-top: 1px solid var(--pw-line); margin-top: .5rem; padding-top: .5rem; gap: .35rem; }
  .nav-account .dropdown-toggle { pointer-events: none; }
  .nav-account .dropdown-toggle::after, .nav-account .dropdown-header { display: none; }
  .nav-account .dropdown-menu { display: block; position: static; border: 0; background: none; padding: 0; }
  .nav-account .dropdown-item { padding-left: 0; }
  .dropdown-theme { padding-left: 0; justify-content: flex-start; }
}

.btn-accent { background: var(--pw-accent); color: var(--pw-accent-ink); border: 0; font-weight: 600; }
.btn-accent:hover { background: var(--pw-accent-hover); color: var(--pw-accent-ink); }
.btn-ghost { background: transparent; color: var(--pw-text); border: 1px solid var(--pw-line); }
.btn-ghost:hover { border-color: var(--pw-text); color: var(--pw-text); }

/* ---------- Home ---------- */
.hero {
  padding: clamp(4rem, 12vw, 9rem) 1rem clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--pw-accent) 22%, transparent), transparent 60%),
    radial-gradient(40rem 25rem at 0% 110%, rgba(90,120,255,.14), transparent 60%);
  border-bottom: 1px solid var(--pw-line);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-eyebrow { color: var(--pw-accent); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; }
.hero h1 { font-family: var(--pw-serif); font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; margin: .4rem 0 1.2rem; }
.hero-lead { color: var(--pw-muted); font-size: 1.15rem; max-width: 38rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; padding: 4rem 1rem; }
.features article { border-top: 1px solid var(--pw-line); padding-top: 1.25rem; }
.features h2 { font-family: var(--pw-serif); font-size: 1.6rem; margin: .4rem 0 .5rem; }
.features p { color: var(--pw-muted); }
.feature-num { color: var(--pw-accent); font-variant-numeric: tabular-nums; font-size: .85rem; }

/* ---------- Auth ---------- */
.auth { display: grid; place-items: center; padding: clamp(2rem, 8vw, 5rem) 1rem; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--pw-ink-2); border: 1px solid var(--pw-line); border-radius: var(--pw-radius);
  padding: 2.5rem 2rem; text-align: center;
}
.auth-aperture {
  width: 56px; height: 56px; margin: 0 auto 1.25rem; border-radius: 50%;
  background: conic-gradient(from 20deg, var(--pw-accent) 0 60deg, var(--pw-accent-deep) 60deg 120deg, var(--pw-accent) 120deg 180deg,
              var(--pw-accent-deep) 180deg 240deg, var(--pw-accent) 240deg 300deg, var(--pw-accent-deep) 300deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px);
          mask: radial-gradient(circle, transparent 9px, #000 10px);
}
.auth h1 { font-family: var(--pw-serif); font-size: 2rem; margin-bottom: .5rem; }
.auth-lead { color: var(--pw-muted); margin-bottom: 1.75rem; }
.auth-providers { display: grid; gap: .75rem; }

.btn-provider {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; transition: transform .08s ease, filter .15s ease;
}
.btn-provider svg { width: 20px; height: 20px; flex: none; }
.btn-provider:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn-provider:disabled { opacity: .4; cursor: not-allowed; }
.btn-provider-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
/* Apple's own style: black in light mode, white in dark mode. */
.btn-provider-apple { background: #000; color: #fff; border-color: #000; }
:root[data-theme="dark"] .btn-provider-apple { background: #fff; color: #000; border-color: #fff; }

.auth-note, .auth-legal { color: var(--pw-muted); font-size: .85rem; margin-top: 1rem; }
.auth-switch { margin: 1.5rem 0 0; }
.auth-dev { text-align: left; font-size: .85rem; margin: 1.25rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--pw-line); color: var(--pw-muted); padding: 1.5rem 0; font-size: .9rem; }
.site-footer a { color: var(--pw-muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.footer-top { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--pw-line); }
.footer-top .store-badges { margin-top: 0; justify-content: center; }
.footer-top .store-badges-note { text-align: center; }
.footer-social { display: flex; gap: .9rem; list-style: none; margin: 0; padding: 0; }
.footer-social a { display: inline-flex; padding: .15rem; }
.footer-social a:hover { color: var(--pw-accent); }
.footer-social svg { display: block; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding: 3.5rem 1rem 4rem; line-height: 1.65; }
.legal h1 { font-family: var(--pw-serif); font-size: 2.4rem; }
.legal h2 { font-family: var(--pw-serif); font-size: 1.45rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.25rem; }
.legal p, .legal li { color: var(--pw-text-soft); }
.legal-updated { color: var(--pw-muted) !important; font-size: .9rem; }

/* ---------- User guide (a legal-style article, with its contents beside it on wide screens) ---------- */
.guide { display: grid; gap: 0 3rem; grid-template-areas: "head" "toc" "body"; }
.guide-header { grid-area: head; padding-top: 3.5rem; }
.guide-header h1 { font-family: var(--pw-serif); font-size: 2.4rem; }
.guide-lead { font-size: 1.1rem; color: var(--pw-text-soft); line-height: 1.65; margin: 0; }
.guide-body { grid-area: body; padding: 1rem 0 4rem; }
.guide-tools { display: flex; justify-content: flex-end; gap: .5rem; margin: 1rem 0 .75rem; }
/* Each topic is a <details>: its title is the row you click, with a chevron that turns when it's open. */
.guide-section { border-bottom: 1px solid var(--pw-line); scroll-margin-top: 1.5rem; }
.guide-section:first-of-type { border-top: 1px solid var(--pw-line); }
.guide-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none; }
.guide-section > summary::-webkit-details-marker { display: none; }
.guide-section > summary h2 { margin: 0; font-size: 1.3rem; transition: color .15s; }
.guide-section > summary:hover h2 { color: var(--pw-accent); }
.guide-section > summary:focus-visible { outline: 2px solid var(--pw-accent); outline-offset: 2px; border-radius: 4px; }
.guide-section > summary::after { content: ""; flex: none; width: .55rem; height: .55rem; margin-right: .3rem;
  border-right: 2px solid var(--pw-muted); border-bottom: 2px solid var(--pw-muted); transform: translateY(-25%) rotate(45deg); transition: transform .2s; }
.guide-section[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
.guide-section-body { padding-bottom: 1.5rem; }
.guide-section-body > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .guide-section > summary::after, .guide-section > summary h2 { transition: none; } }
.guide-shot { margin: 1.5rem 0; }
.guide-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-photo-bg); }
.guide-shot figcaption { margin-top: .5rem; color: var(--pw-muted); font-size: .85rem; text-align: center; }
.guide-shot-phone img { max-width: 300px; margin: 0 auto; border-radius: 24px; }
.guide-toc { grid-area: toc; margin-top: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-ink-2); }
.guide-toc h2 { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pw-muted); margin: 0 0 .75rem; }
.guide-toc ol { margin: 0; padding-left: 1.25rem; columns: 2 12rem; column-gap: 2rem; }
.guide-toc li { padding: .15rem 0; break-inside: avoid; }
.guide-toc a { color: var(--pw-link); text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }
@media (min-width: 992px) {
  .guide { grid-template-columns: 15rem minmax(0, 760px); grid-template-areas: ". head" "toc body"; justify-content: center; }
  .guide-toc { position: sticky; top: 1.5rem; align-self: start; margin-top: 2.25rem; }
  .guide-toc ol { columns: 1; }
}

/* ---------- Pages & forms ---------- */
.page { padding-top: 2.5rem; padding-bottom: 4rem; }
.page.narrow { max-width: 640px; }
.page h1 { font-family: var(--pw-serif); }
.page-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.page-header h1 { font-size: 2.4rem; margin: 0; }
.page-header p { margin: .25rem 0 0; }
.small { font-size: .85rem; }
.empty-state { border: 1px dashed var(--pw-line); border-radius: var(--pw-radius); padding: 3rem 1rem; text-align: center; color: var(--pw-muted); }
.btn-danger-ghost { background: transparent; border: 1px solid var(--pw-danger-line); color: var(--pw-danger); }
.btn-danger-ghost:hover { background: var(--pw-danger-bg); color: var(--pw-danger); border-color: var(--pw-danger-line); }
.btn-link-muted { background: none; border: 0; padding: 0; color: var(--pw-muted); font-size: .8rem; }
.btn-link-muted:hover { color: var(--pw-danger); }

.form-card { background: var(--pw-ink-2); border: 1px solid var(--pw-line); border-radius: var(--pw-radius); padding: 1.5rem; display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; }
.field input, .field textarea, .comment-form textarea {
  width: 100%; background: var(--pw-ink); color: var(--pw-text); border: 1px solid var(--pw-line);
  border-radius: 10px; padding: .65rem .8rem; font: inherit;
}
.field input:focus, .field textarea:focus, .comment-form textarea:focus { outline: none; border-color: var(--pw-accent); }
.field-error, .field-validation-error { color: var(--pw-danger); font-size: .85rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .75rem; }
.edit-thumb { max-height: 220px; width: auto; max-width: 100%; border-radius: var(--pw-photo-radius); justify-self: start; }

.dropzone {
  position: relative; display: grid; place-items: center; min-height: 260px; cursor: pointer; overflow: hidden;
  border: 2px dashed var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-ink); text-align: center; color: var(--pw-muted);
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--pw-accent); }
.dropzone strong { color: var(--pw-text); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-preview { max-height: 420px; max-width: 100%; object-fit: contain; }

/* ---------- Avatars ---------- */
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initial { display: inline-grid; place-items: center; background: var(--pw-chip); color: var(--pw-text); font-size: .8rem; font-weight: 600; }

/* ---------- Gallery ---------- */
.photo-grid { columns: 3 300px; column-gap: 1.25rem; }
.photo-card { break-inside: avoid; margin: 0 0 1.25rem; padding: var(--pw-photo-inset); background: var(--pw-ink-2); border: 1px solid var(--pw-line); border-radius: var(--pw-photo-card-radius); overflow: hidden; }
.photo-card-image { display: block; overflow: hidden; border-radius: var(--pw-photo-radius); }
.photo-card img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.photo-card-image:hover img { transform: scale(1.03); }
.photo-card figcaption { padding: .65rem .55rem .45rem; }
.photo-card-title { display: block; color: var(--pw-text); font-weight: 600; text-decoration: none; margin-bottom: .4rem; }
.photo-card-title:hover { color: var(--pw-accent); }
.photo-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .85rem; }
.photo-card-owner { display: flex; align-items: center; gap: .45rem; color: var(--pw-muted); text-decoration: none; min-width: 0; }
.photo-card-owner .avatar { width: 22px; height: 22px; }
.photo-card-stats { display: flex; gap: .7rem; color: var(--pw-muted); white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.pager-status { color: var(--pw-muted); }

/* ---------- Photo page ---------- */
.photo-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
@media (max-width: 991px) { .photo-page { grid-template-columns: 1fr; } }
.photo-stage { background: var(--pw-photo-bg); border-radius: var(--pw-radius); display: grid; place-items: center; overflow: hidden; }
.photo-stage img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: var(--pw-photo-radius); }
.photo-panel h1 { font-size: 2rem; margin-bottom: .75rem; }
.photo-owner { display: inline-flex; align-items: center; gap: .55rem; color: var(--pw-text); text-decoration: none; font-weight: 500; }
.photo-owner .avatar { width: 34px; height: 34px; }
.photo-owner:hover { color: var(--pw-accent); }
.photo-panel > .small { margin: .35rem 0 1rem; }
.photo-description { white-space: pre-line; color: var(--pw-text-soft); }
.like-form { margin: 1.25rem 0; }
.btn-like {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 99px;
  background: transparent; color: var(--pw-text); border: 1px solid var(--pw-line); font-weight: 600;
}
.btn-like:hover { border-color: #e2557b; }
.btn-like-heart { color: var(--pw-muted); font-size: 1.1rem; line-height: 1; transition: transform .15s ease; }
.btn-like.is-liked { border-color: #e2557b; background: rgba(226, 85, 123, .12); }
.btn-like.is-liked .btn-like-heart { color: #e2557b; transform: scale(1.15); }
.btn-like-count { color: var(--pw-muted); font-weight: 500; }
.camera-details { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; padding: 1rem; margin: 0 0 1.25rem;
  background: var(--pw-ink-2); border: 1px solid var(--pw-line); border-radius: 10px; font-size: .9rem; }
.camera-details dt { color: var(--pw-muted); font-weight: 500; }
.camera-details dd { margin: 0; }
.owner-actions { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.comments { border-top: 1px solid var(--pw-line); padding-top: 1.25rem; }
.comments h2 { font-family: var(--pw-serif); font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: 1rem; }
.comment { display: flex; gap: .65rem; }
.comment-body { min-width: 0; flex: 1; }
.comment-head { display: flex; align-items: baseline; gap: .5rem; font-size: .85rem; }
.comment-head a { color: var(--pw-text); font-weight: 600; text-decoration: none; }
.comment-head time { color: var(--pw-muted); }
.comment-delete { margin-left: auto; }
.comment-body p { margin: .15rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment-form { display: grid; gap: .5rem; margin-top: 1rem; }
.comment-form button { justify-self: end; }

/* ---------- Member page ---------- */
.member-header { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-bottom: 2.5rem; }
.member-header .avatar { width: 88px; height: 88px; border: 3px solid var(--pw-accent); font-size: 2rem; }
.member-header h1 { font-size: 2.2rem; margin: 0; }
.member-header p { margin: .25rem 0 0; }
.member-actions { margin-left: auto; display: flex; gap: .5rem; }

/* ---------- Account settings ---------- */
.settings-facts { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 0; }
.settings-facts dt { color: var(--pw-muted); font-weight: 500; }
.settings-facts dd { margin: 0; }
.danger-zone { border-color: var(--pw-danger-line); }
.danger-zone h2 { font-family: var(--pw-serif); font-size: 1.4rem; color: var(--pw-danger); margin: 0; }
.danger-zone ul { margin: 0; }
.danger-form { display: grid; gap: .5rem; }
.danger-form input { background: var(--pw-ink); color: var(--pw-text); border: 1px solid var(--pw-line); border-radius: 10px; padding: .6rem .8rem; max-width: 260px; }
.btn-danger { background: #b3261e; border: 0; color: #fff; font-weight: 600; justify-self: start; }
.btn-danger:hover { background: #d0342b; color: #fff; }
.btn-danger:disabled { background: var(--pw-danger-bg); color: var(--pw-muted); }

/* ---------- Reports & moderation ---------- */
.report-link { margin: -0.5rem 0 1.5rem; font-size: .85rem; }
.report-link a { color: var(--pw-muted); }
.report-link a:hover { color: var(--pw-danger); }
.comment-head .comment-report { margin-left: auto; }
.comment-head .comment-report + .comment-delete { margin-left: .5rem; }
.moderation-badge { display: inline-block; padding: .1rem .5rem; border-radius: 99px; font-size: .72rem; font-weight: 600;
  background: var(--pw-danger-bg); color: var(--pw-danger); border: 1px solid var(--pw-danger-line); }
.photo-card-image { position: relative; }
/* Badges sit on photos, so they keep light text on a dark chip in both themes. */
.photo-card-badge { position: absolute; top: .6rem; left: .6rem; z-index: 1; background: rgba(20, 8, 8, .85); color: #ffb3b3; border-color: #6b2a2a; }
.moderation-banner { background: var(--pw-danger-bg); border: 1px solid var(--pw-danger-line); color: var(--pw-text); margin-top: 1.5rem; }
.moderation-banner strong { color: var(--pw-danger); margin-right: .35rem; }
.report-target { display: flex; gap: 1rem; align-items: flex-start; }
.report-target img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; flex: none; }
.report-target blockquote { margin: .5rem 0 0; padding-left: .75rem; border-left: 3px solid var(--pw-line); color: var(--pw-text-soft); white-space: pre-line; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-size: 1rem; font-weight: 500; margin-bottom: .35rem; }
.radio-row { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; cursor: pointer; }
.radio-row input { accent-color: var(--pw-accent); width: 1rem; height: 1rem; }

/* ---------- Home showcase ---------- */
.showcase { padding: 3rem 0 1rem; }
.showcase-heading { font-family: var(--pw-serif); font-size: 1.8rem; margin-bottom: 1.25rem; }
.showcase-carousel { max-width: 1200px; margin: 0 auto; background: var(--pw-photo-bg); border-radius: var(--pw-radius); overflow: hidden; }
/* Tall enough on desktop, but sized to the width on phones so landscape photos don't float in black bands. */
.showcase-carousel .carousel-item { height: clamp(240px, min(60vh, 66vw), 640px); }
.showcase-carousel .carousel-item a { display: grid; place-items: center; height: 100%; }
.showcase-carousel img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--pw-photo-radius); }
.showcase-caption {
  color: #fff;
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.5rem 2.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); display: flex; flex-direction: column; gap: .15rem;
}
.showcase-caption strong { font-family: var(--pw-serif); font-size: 1.35rem; }
.showcase-caption span { color: #d0d0cb; font-size: .9rem; }
.showcase-carousel .carousel-indicators { margin-bottom: .75rem; }
.showcase-carousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 1240px) { .showcase-carousel { border-radius: 0; } }
.check-row { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.check-row input { accent-color: var(--pw-accent); width: 1.1rem; height: 1.1rem; margin-top: .2rem; flex: none; }
.home-badge { color: var(--pw-accent); }

/* ---------- Blogs ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; background: var(--pw-ink-2); border: 1px solid var(--pw-line); border-radius: var(--pw-photo-card-radius); overflow: hidden; }
.post-card-cover { position: relative; display: block; aspect-ratio: 3 / 2; margin: var(--pw-photo-inset) var(--pw-photo-inset) 0;
  border-radius: var(--pw-photo-radius); background: var(--pw-photo-bg); overflow: hidden; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-cover img { transform: scale(1.03); }
.post-card-cover-empty { display: block; width: 100%; height: 100%;
  background: radial-gradient(20rem 12rem at 80% 0%, color-mix(in srgb, var(--pw-accent) 25%, transparent), transparent 70%), var(--pw-photo-bg); }
.post-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card-body h3 { font-family: var(--pw-serif); font-size: 1.25rem; margin: 0; }
.post-card-body h3 a { color: var(--pw-text); text-decoration: none; }
.post-card-body h3 a:hover { color: var(--pw-accent); }
.post-card-excerpt { color: var(--pw-text-soft); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .82rem; color: var(--pw-muted); }
.draft-badge { background: color-mix(in srgb, var(--pw-accent) 20%, transparent); color: var(--pw-accent); border-color: var(--pw-accent-line); }
.blog-intro { max-width: 46rem; color: var(--pw-text-soft); white-space: pre-line; margin: -1.25rem 0 2rem; }

.post-page { max-width: 760px; }
.post-header h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin-bottom: 1rem; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.post-body { font-size: 1.08rem; line-height: 1.75; color: var(--pw-text-soft); margin: 2rem 0; overflow-wrap: anywhere; }
.post-body h2, .post-body h3 { font-family: var(--pw-serif); color: var(--pw-text); margin: 2rem 0 .75rem; }
.post-body blockquote { border-left: 3px solid var(--pw-accent); padding-left: 1rem; color: var(--pw-text-soft); font-style: italic; }
.post-body figure.pw-photo { margin: 2rem 0; }
.post-body figure.pw-photo img { display: block; max-width: 100%; height: auto; border-radius: var(--pw-photo-radius); margin: 0 auto; }
.post-body figcaption { color: var(--pw-muted); font-size: .88rem; text-align: center; margin-top: .5rem; }
.attachments { margin: 2rem 0; }
.attachments h2 { font-family: var(--pw-serif); font-size: 1.4rem; margin-bottom: .75rem; }
.attachment-list { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-direction: column; gap: .5rem; }
.attachment-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem; padding: .65rem .9rem;
    background: var(--pw-ink-2); border: 1px solid var(--pw-line); border-radius: 10px; }
.attachment-name { color: var(--pw-accent); text-decoration: none; overflow-wrap: anywhere; }
.attachment-name::before { content: "\1F4C4\00A0"; }
.attachment-name:hover { text-decoration: underline; }
.attachment-remove { margin-left: auto; font-size: .85rem; color: var(--pw-muted); }
.draft-banner { border-color: var(--pw-accent-line); background: color-mix(in srgb, var(--pw-accent) 8%, transparent); }
.draft-banner strong { color: var(--pw-accent); }

/* Editor */
.editor-page { max-width: 900px; }
#editor { min-height: 360px; font-size: 1.05rem; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: var(--pw-line); }
.ql-toolbar.ql-snow { background: var(--pw-raised); border-radius: 10px 10px 0 0; }
.ql-container.ql-snow { background: var(--pw-ink); border-radius: 0 0 10px 10px; color: var(--pw-text); font-family: var(--pw-sans); }
.ql-snow .ql-stroke { stroke: var(--pw-text-soft); }
.ql-snow .ql-fill { fill: var(--pw-text-soft); }
.ql-snow .ql-picker { color: var(--pw-text-soft); }
.ql-snow .ql-picker-options { background: var(--pw-raised); border-color: var(--pw-line); }
.ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--pw-accent); }
.ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--pw-accent); }
.ql-snow .ql-tooltip { background: var(--pw-raised); color: var(--pw-text); border-color: var(--pw-line); box-shadow: none; z-index: 2; }
.ql-editor.ql-blank::before { color: var(--pw-muted); }
.ql-editor figure.pw-photo { margin: 1rem 0; }
.ql-editor figure.pw-photo img { max-width: 100%; max-height: 360px; border-radius: var(--pw-photo-radius); display: block; }
.ql-editor figcaption { color: var(--pw-muted); font-size: .85rem; }

/* Photo picker */
.picker { background: var(--pw-ink-2); color: var(--pw-text); border: 1px solid var(--pw-line); }
.picker .modal-header { border-color: var(--pw-line); }
.picker .modal-title { font-family: var(--pw-serif); font-size: 1.3rem; }
.picker-tabs { gap: .25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--pw-line); }
.picker-tabs button { background: none; border: 0; color: var(--pw-muted); padding: .5rem .75rem; border-bottom: 2px solid transparent; }
.picker-tabs button.active { color: var(--pw-text); border-bottom-color: var(--pw-accent); }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.picker-tile { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--pw-photo-bg); aspect-ratio: 1; }
.picker-tile:hover, .picker-tile:focus-visible { border-color: var(--pw-accent); }
.picker-tile img { width: 100%; height: 100%; object-fit: cover; }
.picker-upload { display: grid; gap: .75rem; }
.picker-caption { margin-top: 1rem; border-top: 1px solid var(--pw-line); padding-top: 1rem; }
.picker input[type=file] { color: var(--pw-muted); }

/* Cover photo choice in the editor; the preview matches the 3:2 post-card cover */
.cover-choice { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cover-preview { width: 180px; aspect-ratio: 3 / 2; border-radius: var(--pw-photo-radius); overflow: hidden; background: var(--pw-photo-bg);
    border: 1px solid var(--pw-line); display: grid; place-items: center; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview img[hidden] { display: none; }
.cover-preview-auto { color: var(--pw-muted); font-size: .8rem; text-align: center; padding: .5rem; }
.cover-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }

/* An error summary with nothing to report renders as an empty box; hide it until client validation fills it. */
.validation-summary-valid { display: none; }

/* ---------- Places ---------- */
.places-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
@media (max-width: 991px) { .places-layout { grid-template-columns: 1fr; } }
.places-map {
  height: clamp(360px, 70vh, 720px); border: 1px solid var(--pw-line); border-radius: var(--pw-radius);
  background: var(--pw-ink-2); z-index: 0; /* keep Leaflet's panes under the navbar dropdown */
}
@media (min-width: 992px) { .places-map { position: sticky; top: 1rem; } }
.places-panel { display: grid; gap: 1rem; }
.places-panel .form-card { margin-top: 0; }
.place-form h2 { font-family: var(--pw-serif); font-size: 1.4rem; margin: 0; }
.place-form input[type=date] { }
.place-search { display: flex; gap: .5rem; }
.place-hint { color: var(--pw-muted); font-size: .85rem; margin: 0; }
.place-results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--pw-line); border-radius: 10px; overflow: hidden; }
.place-results li + li { border-top: 1px solid var(--pw-line); }
.place-results button { display: block; width: 100%; text-align: left; background: var(--pw-ink); color: var(--pw-text); border: 0; padding: .55rem .8rem; font-size: .9rem; }
.place-results button:hover, .place-results button:focus-visible { background: var(--pw-hover); outline: none; color: var(--pw-accent); }
.place-results-message { padding: .55rem .8rem; color: var(--pw-muted); font-size: .9rem; }
.place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.place-item { display: flex; gap: .5rem; align-items: flex-start; background: var(--pw-ink-2); border: 1px solid var(--pw-line); border-radius: 12px; padding: .75rem; }
.place-item.is-active { border-color: var(--pw-accent); }
.place-item-main { flex: 1; min-width: 0; display: grid; gap: .1rem; text-align: left; background: none; border: 0; color: var(--pw-text); padding: 0; }
.place-item-main:focus-visible { outline: 2px solid var(--pw-accent); outline-offset: 4px; border-radius: 4px; }
.place-item-main span { font-size: .85rem; }
.place-item-note { color: var(--pw-muted); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.place-item-actions { display: flex; gap: .35rem; flex: none; }
.places-credit { font-size: .8rem; margin-top: 1rem; }
.place-item { flex-wrap: wrap; }
.place-item-alerts { color: var(--pw-accent); }
.place-forecast { flex-basis: 100%; }
.forecast-strip { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .4rem; }
.forecast-window { display: grid; gap: .1rem; padding: .45rem .55rem; border: 1px solid var(--pw-line); border-radius: 10px; font-size: .85rem; }
.forecast-when, .forecast-detail { color: var(--pw-muted); font-size: .78rem; }
.forecast-clear { border-color: color-mix(in srgb, var(--pw-accent) 45%, var(--pw-line)); }
.forecast-dramatic { border-color: var(--pw-accent); background: color-mix(in srgb, var(--pw-accent) 10%, transparent); }
.forecast-poor strong { color: var(--pw-muted); }
.club-search { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.club-search input[type="search"] { flex: 1 1 14rem; min-width: 0; }
.club-cover-empty { display: grid; place-items: center; font-size: 2.5rem; font-weight: 700; color: var(--pw-accent); }
.club-review { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; }
.club-cover { margin: 0 0 1.25rem; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 1; background: var(--pw-ink-2); }
.club-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.club-cover-pick { display: inline; margin-right: .75rem; }
.directions-menu .suspend-form { left: 0; right: auto; width: min(300px, calc(100vw - 32px)); gap: .4rem; border-color: var(--pw-line); }
.settings-group { border: 0; padding: 0; margin: .75rem 0 0; display: grid; gap: .35rem; }
.settings-group legend { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--pw-muted); margin-bottom: .1rem; }
.club-section { margin-top: 2rem; }
.club-section-header { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.club-section-header h2 { margin: 0; }
.club-members { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.club-members > li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .5rem .75rem; border: 1px solid var(--pw-line); border-radius: 12px; }
.club-member-actions { margin-left: auto; display: flex; gap: .35rem; flex-wrap: wrap; }

/* Pins: a teardrop in the accent colour; the one being placed pulses (unless motion is reduced). */
.place-pin { background: none; border: 0; }
.place-pin span {
  display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--pw-accent); border: 3px solid var(--pw-ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
.place-pin span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--pw-ink); }
.place-pin.is-pending span { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .place-pin.is-pending span { animation: place-pulse 1.4s ease-in-out infinite; }
}
@keyframes place-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--pw-accent) 35%, transparent); } }

/* Leaflet popups in the site's dark palette. */
.places-map .leaflet-popup-content-wrapper, .places-map .leaflet-popup-tip { background: var(--pw-ink-2); color: var(--pw-text); border: 1px solid var(--pw-line); }
.places-map .leaflet-popup-content { margin: .85rem 1rem; }
.places-map a.leaflet-popup-close-button { color: var(--pw-muted); }
.place-popup { display: grid; gap: .3rem; justify-items: start; min-width: 180px; }
.place-popup strong { font-family: var(--pw-serif); font-size: 1.1rem; }
.place-popup p { margin: 0; white-space: pre-line; color: var(--pw-text-soft); }

/* ---------- Email notifications (account settings) ---------- */
.settings-heading { font-family: var(--pw-serif); font-size: 1.4rem; margin: 0; }
.notify-status { border-radius: 10px; padding: .75rem 1rem; }
.notify-status.is-on { background: rgba(110, 200, 140, .1); border: 1px solid rgba(110, 200, 140, .35); }
.notify-status.is-pending { background: color-mix(in srgb, var(--pw-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pw-accent) 40%, transparent); }
.notify-form { display: grid; gap: 1.1rem; }
.notify-form fieldset { border: 0; padding: 0; margin: 0; }
.notify-form legend { font-size: 1rem; font-weight: 500; margin-bottom: .35rem; }

/* ---------- Everyone / Following tabs ---------- */
.feed-tabs { display: flex; gap: .25rem; margin: -0.75rem 0 1.5rem; border-bottom: 1px solid var(--pw-line); }
.feed-tabs a { color: var(--pw-muted); text-decoration: none; padding: .5rem .85rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.feed-tabs a:hover { color: var(--pw-text); }
.feed-tabs a.active { color: var(--pw-text); border-bottom-color: var(--pw-accent); font-weight: 500; }

/* ---------- Gallery camera filters ---------- */
.filters { background: var(--pw-ink-2); border: 1px solid var(--pw-line); border-radius: var(--pw-radius); margin-bottom: 1.75rem; }
.filters summary { padding: .8rem 1.1rem; cursor: pointer; font-weight: 500; }
.filters-on { color: var(--pw-accent); }
.filters-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 1.25rem; padding: 0 1.1rem 1.1rem; }
.range-inputs { display: flex; align-items: center; gap: .4rem; color: var(--pw-muted); }
.range-inputs input { min-width: 0; }
.filters-error, .filters-actions, .filters-note { grid-column: 1 / -1; margin: 0; }
.filters-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.camera-details dd a { color: var(--pw-text); text-decoration: underline dotted var(--pw-muted); text-underline-offset: 3px; }
.camera-details dd a:hover { color: var(--pw-accent); }

/* ---------- Follows ---------- */
.member-follows { margin-top: .15rem !important; }
.btn-following .btn-following-off { display: none; }
.btn-following:hover, .btn-following:focus-visible { border-color: var(--pw-danger-line); color: var(--pw-danger); }
.btn-following:hover .btn-following-on, .btn-following:focus-visible .btn-following-on { display: none; }
.btn-following:hover .btn-following-off, .btn-following:focus-visible .btn-following-off { display: inline; }
.trophies { list-style: none; padding: 0; margin: -1.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.trophies a { display: inline-block; padding: .3rem .8rem; border-radius: 99px; text-decoration: none; font-size: .88rem;
  background: color-mix(in srgb, var(--pw-accent) 12%, transparent); border: 1px solid var(--pw-accent-line); color: var(--pw-accent); }
.trophies a:hover { background: color-mix(in srgb, var(--pw-accent) 22%, transparent); }

/* ---------- Photo challenges ---------- */
.section-heading { font-family: var(--pw-serif); font-size: 1.5rem; margin: 0 0 1rem; }
.post-grid + .section-heading { margin-top: 2.5rem; }
.challenge-badge.is-open { background: rgba(110, 200, 140, .85); color: #06210f; border-color: transparent; }
.challenge-badge.is-upcoming { background: color-mix(in srgb, var(--pw-accent) 85%, transparent); color: var(--pw-accent-ink); border-color: transparent; }
.challenge-badge.is-closed { background: rgba(20, 20, 24, .85); color: #d0d0cb; border-color: transparent; }
.challenge-header .hero-eyebrow { margin: 0 0 .25rem; }
.challenge-rules { max-width: 46rem; margin-bottom: 1.75rem; }
.rank-badge { background: rgba(20, 20, 24, .85); color: #fff; border-color: transparent; }
.rank-badge.rank-1 { background: var(--pw-accent); color: var(--pw-accent-ink); border-color: transparent; }
.challenge-entry.is-winner { border-color: var(--pw-accent); box-shadow: 0 0 0 1px var(--pw-accent); }
.entry-withdraw { margin-top: .4rem; text-align: right; }
.enter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.enter-tile button { position: relative; display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: var(--pw-photo-bg); aspect-ratio: 1; }
.enter-tile button:hover:not(:disabled), .enter-tile button:focus-visible { border-color: var(--pw-accent); }
.enter-tile button:disabled { cursor: not-allowed; }
.enter-tile button:disabled img { opacity: .4; }
.enter-tile img { width: 100%; height: 100%; object-fit: cover; }
.enter-tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem .6rem .5rem; text-align: left; font-size: .85rem;
  color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enter-tile.is-entered .enter-tile-label { color: #f2a541; font-weight: 600; }

/* ---------- Blocking ---------- */
.member-block { margin-top: 2rem; text-align: right; }
.blocked-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.blocked-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .75rem; background: var(--pw-ink); border: 1px solid var(--pw-line); border-radius: 10px; }

/* ---------- Manage challenges (admins) ---------- */
.manage-table-wrap { overflow-x: auto; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); }
.manage-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.manage-table th, .manage-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--pw-line); text-align: left; vertical-align: middle; white-space: nowrap; }
.manage-table th { color: var(--pw-muted); font-weight: 500; background: var(--pw-ink-2); }
.manage-table tr:last-child td { border-bottom: 0; }
.manage-table td:first-child { white-space: normal; }
.manage-actions { display: flex; gap: .4rem; justify-content: flex-end; }
.challenge-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.challenge-dates input[type=datetime-local] { }

/* ---------- Admin: users ---------- */
.admin-search { display: flex; gap: .5rem; }
.admin-search input { background: var(--pw-ink); color: var(--pw-text); border: 1px solid var(--pw-line); border-radius: 10px; padding: .45rem .75rem; min-width: 220px; }
.admin-users tr.is-suspended td { color: var(--pw-muted); }
.admin-users td .moderation-badge + .moderation-badge { margin-left: .25rem; }
.review-post { display: flex; gap: .75rem; align-items: flex-start; min-width: 260px; }
.review-excerpt { margin: .2rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-banner .manage-actions { justify-content: flex-start; margin-top: .6rem; }
/* Before/after slider on a photo page: the "before" image is clipped at --split from the left. */
.compare { --split: 50%; position: relative; display: inline-block; max-width: 100%; line-height: 0; touch-action: pan-y; }
.photo-stage .compare img { border-radius: var(--pw-photo-radius); }
.photo-stage .compare-after { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; }
.photo-stage .compare-before { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover;
  clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .5); pointer-events: none; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--pw-accent); outline-offset: 3px; border-radius: var(--pw-photo-radius); }
.compare-label { position: absolute; top: .7rem; padding: .15rem .55rem; border-radius: 99px; font-size: .78rem; line-height: 1.4;
  background: rgba(20, 20, 24, .7); color: #fff; pointer-events: none; }
.compare-label-before { left: .7rem; }
.compare-label-after { right: .7rem; }
.before-form { display: grid; gap: .6rem; }

/* Golden-hour planner (walks and photos with a place). */
.light-planner { margin: 1rem 0; }
.light-planner .section-heading { margin-bottom: .5rem; }
.light-times { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 0 0 .5rem; font-size: .95rem; }
.light-times dt { font-weight: 500; display: flex; align-items: center; gap: .45rem; }
.light-times dd { margin: 0; font-variant-numeric: tabular-nums; }
.light-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.light-golden { background: #f2a541; }
.light-blue { background: #4a78c2; }
.light-note { color: var(--pw-accent); font-weight: 500; margin: .25rem 0; }
.light-details { margin: -.25rem 0 1rem; }
.light-details summary { cursor: pointer; color: var(--pw-text-soft); }
.light-details .light-planner { margin-top: .5rem; }
.light-details .section-heading { display: none; }

/* Public portfolio (/p/{slug}) and its settings page. */
.portfolio-header { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.portfolio-header h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: .2rem 0 .6rem; }
.portfolio-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; }
.portfolio-bio { color: var(--pw-text-soft); max-width: 42rem; white-space: pre-line; margin-bottom: .6rem; }
.portfolio-contact { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 0; }
.portfolio-caption { margin: .2rem 0 0; }
.portfolio-footer { margin-top: 2rem; text-align: center; }
.portfolio-address { display: flex; align-items: center; gap: .25rem; }
.portfolio-address input { flex: 1; min-width: 0; }
.portfolio-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.portfolio-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.portfolio-pick { display: block; border: 2px solid var(--pw-line); border-radius: var(--pw-photo-card-radius); padding: var(--pw-photo-inset);
  background: var(--pw-ink-2); cursor: pointer; }
.portfolio-pick:has(input[type=checkbox]:checked), .portfolio-pick.is-chosen { border-color: var(--pw-accent); }
.portfolio-pick img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--pw-photo-radius); }
.portfolio-pick-row { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; font-size: .85rem; }
.portfolio-pick-row input[type=checkbox] { accent-color: var(--pw-accent); flex: none; }
.portfolio-pick-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-order { width: 3.4rem; flex: none; padding: .1rem .3rem; }

.review-photo { break-inside: avoid; margin-bottom: 1.25rem; }
.review-photo .photo-card { margin-bottom: .4rem; }
.review-photo .manage-actions { align-items: center; }
.suspend-menu { position: relative; }
.suspend-menu summary { list-style: none; cursor: pointer; }
.suspend-menu summary::-webkit-details-marker { display: none; }
.suspend-form { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 5; width: 300px; white-space: normal;
  display: grid; gap: .5rem; padding: .9rem; background: var(--pw-ink-2); border: 1px solid var(--pw-danger-line); border-radius: 10px; }
.suspend-form input { background: var(--pw-ink); color: var(--pw-text); border: 1px solid var(--pw-line); border-radius: 8px; padding: .45rem .6rem; }

/* ---------- Activity ---------- */
.nav-bell { position: relative; display: inline-flex; align-items: center; }
.nav-bell-icon { display: block; }
/* The user guide's book, sized like the bell and the theme icon; its name shows only in the collapsed mobile menu. */
.nav-guide { display: inline-flex; align-items: center; gap: .6rem; }
.nav-guide .line-icon { width: 22px; height: 22px; }
@media (min-width: 992px) { .nav-guide-label { display: none; } }
.line-icon { flex: none; display: inline-block; vertical-align: -.25em; }
.community-menu .dropdown-item { display: flex; align-items: center; gap: .6rem; }
.community-menu .line-icon { color: var(--pw-accent); }
.community-menu .dropdown-item.active .line-icon, .community-menu .dropdown-item:active .line-icon { color: inherit; }
.nav-bell-count { position: absolute; top: .1rem; right: -.2rem; min-width: 1.15rem; padding: 0 .3rem; border-radius: 99px;
  background: var(--pw-accent); color: var(--pw-accent-ink); font-size: .7rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
.activity-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.activity-item { border: 1px solid var(--pw-line); border-radius: 12px; background: var(--pw-ink-2); }
.activity-item.is-unread { border-color: var(--pw-accent-line); background: color-mix(in srgb, var(--pw-accent) 7%, transparent); }
.activity-link { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; color: var(--pw-text); text-decoration: none; }
.activity-link:hover .activity-text { color: var(--pw-accent); }
.activity-link .avatar { width: 38px; height: 38px; }
.activity-icon { font-size: 1.1rem; }
.activity-body { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.activity-snippet { color: var(--pw-text-soft); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; }

/* ---------- Photo spots ---------- */
.spots-map { height: clamp(380px, 72vh, 760px); }
.spot-pin b { position: absolute; top: -8px; right: -10px; min-width: 18px; padding: 0 4px; border-radius: 99px; background: var(--pw-text);
  color: var(--pw-ink); font-size: 11px; line-height: 18px; text-align: center; }
.spot-popup { display: grid; gap: .5rem; min-width: 200px; }
.spot-popup strong { font-family: var(--pw-serif); font-size: 1.1rem; }
.spot-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.spot-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.photo-place { margin: -.25rem 0 .75rem; }
.photo-place a { color: var(--pw-text); text-decoration: none; }
.photo-place a:hover { color: var(--pw-accent); }
.field-select { width: 100%; background: var(--pw-ink); color: var(--pw-text); border: 1px solid var(--pw-line); border-radius: 10px; padding: .65rem .8rem; }

/* ---------- Collections ---------- */
.photo-save { margin: 0 0 1rem; }
.collection-photo { break-inside: avoid; margin-bottom: 1.25rem; }
.collection-photo .photo-card { margin-bottom: .25rem; }
.collection-remove { text-align: right; }

/* ---------- Tags, search and Explore ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.tag-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 99px; font-size: .88rem;
  background: var(--pw-chip); color: var(--pw-text); text-decoration: none; border: 1px solid var(--pw-line); }
.tag-chip:hover { border-color: var(--pw-accent); color: var(--pw-accent); }
.tag-chip span { color: var(--pw-muted); font-size: .78rem; }
.nav-search input { width: 9.5rem; background: var(--pw-ink-2); color: var(--pw-text); border: 1px solid var(--pw-line); border-radius: 99px;
  padding: .3rem .8rem; font-size: .9rem; transition: width .2s ease; }
.nav-search input:focus { outline: none; border-color: var(--pw-accent); width: 13rem; }
.member-results { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }
.member-result { background: var(--pw-ink-2); border: 1px solid var(--pw-line); border-radius: 12px; padding: .7rem .8rem; }
.member-result .photo-card-owner { color: var(--pw-text); }
.member-result .avatar { width: 40px; height: 40px; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }

/* ---------- Photo of the day ---------- */
.potd { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; padding: .7rem; border-radius: var(--pw-radius);
  background: color-mix(in srgb, var(--pw-accent) 8%, var(--pw-ink-2)); border: 1px solid var(--pw-accent-line); color: var(--pw-text); text-decoration: none; }
.potd:hover { border-color: var(--pw-accent); color: var(--pw-text); }
.potd img { width: 150px; height: 100px; object-fit: cover; border-radius: var(--pw-photo-radius); flex: none; background: var(--pw-photo-bg); }
.potd-body { display: grid; gap: .1rem; min-width: 0; }
.potd-body strong { font-family: var(--pw-serif); font-size: 1.3rem; }
.potd-label { color: var(--pw-accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.potd-note { color: var(--pw-text-soft); font-style: italic; }
.potd-badge { color: var(--pw-accent); font-weight: 600; margin: 0 0 .25rem; }
.admin-feature { margin: 0 0 1.25rem; border: 1px dashed var(--pw-accent-line); border-radius: 10px; padding: .5rem .75rem; }
.admin-feature summary { cursor: pointer; font-size: .9rem; color: var(--pw-muted); }
.admin-feature form { margin-top: .75rem; }

/* ---------- Feedback ---------- */
.feedback { border-top: 1px solid var(--pw-line); padding-top: 1.25rem; margin-bottom: 1.5rem; }
.feedback h2 { font-family: var(--pw-serif); font-size: 1.3rem; }
.feedback-form { display: grid; gap: .75rem; }
.feedback-form textarea { width: 100%; background: var(--pw-ink); color: var(--pw-text); border: 1px solid var(--pw-line); border-radius: 10px; padding: .6rem .75rem; font: inherit; }
.rating { border: 0; padding: 0; margin: 0; }
.rating legend { font-size: .95rem; font-weight: 500; margin-bottom: .3rem; }
.rating-scale { display: flex; gap: .35rem; }
.rating-scale label { cursor: pointer; }
.rating-scale input { position: absolute; opacity: 0; pointer-events: none; }
.rating-scale span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--pw-line); background: var(--pw-ink-2); font-weight: 600; }
.rating-scale input:checked + span { background: var(--pw-accent); color: var(--pw-accent-ink); border-color: var(--pw-accent); }
.rating-scale input:focus-visible + span { outline: 2px solid var(--pw-accent); outline-offset: 2px; }
.feedback-averages { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; padding: .8rem 1rem; background: var(--pw-ink-2);
  border: 1px solid var(--pw-line); border-radius: 10px; font-size: .92rem; }
.feedback-averages dt { color: var(--pw-muted); font-weight: 500; }
.feedback-averages dd { margin: 0; font-weight: 600; }
.filters-wide { grid-column: 1 / -1; }

/* ---------- Upload several ---------- */
.dropzone-small { min-height: 140px; }
.upload-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.upload-item { display: flex; align-items: center; gap: .75rem; padding: .5rem; border: 1px solid var(--pw-line); border-radius: 10px; background: var(--pw-ink); }
.upload-item.is-done { opacity: .7; }
.upload-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: var(--pw-photo-bg); }
.upload-item-fields { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.upload-item-fields input { width: 100%; background: var(--pw-ink-2); color: var(--pw-text); border: 1px solid var(--pw-line); border-radius: 8px; padding: .4rem .6rem; }
.upload-item-status { color: var(--pw-muted); }
.upload-item.is-done .upload-item-status { color: var(--pw-accent); font-weight: 600; }
.upload-progress { font-weight: 600; text-align: center; margin: 0; }

/* ---------- Photo walks ---------- */
.walks-map { height: 340px; }
.walk-map { height: 260px; }
.walk-pick-map { height: 300px; margin-top: .5rem; }
.walk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
@media (max-width: 991px) { .walk-layout { grid-template-columns: 1fr; } }
.walk-title { font-size: clamp(2rem, 5vw, 2.6rem); margin: .2rem 0 .8rem; }
.walk-facts { line-height: 1.9; }
.walk-actions { margin: 1rem 0 1.5rem; margin-left: 0; flex-wrap: wrap; align-items: center; }
.walk-plan { margin: 0 0 1.25rem; }
.walk-tag { color: var(--pw-muted); }
.walk-when { color: var(--pw-accent); font-weight: 600; font-size: .85rem; margin: 0; }
.walk-cover-empty { display: grid; place-items: center; font-size: 2.2rem; }
.walk-card.is-cancelled { opacity: .65; }

/* ---------- Insights ---------- */
/* Chart marks: an accent step validated for each surface (dataviz validator: lightness band + contrast). */
:root { --pw-chart: #c96f14; --pw-up: #2e7d4f; }
:root[data-theme="dark"] { --pw-chart: #cf7f22; --pw-up: #6ec88c; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.stat-tile { display: grid; gap: .15rem; padding: .9rem 1rem; border: 1px solid var(--pw-line); border-radius: 12px; background: var(--pw-ink-2); }
.stat-label { color: var(--pw-muted); font-size: .85rem; }
.stat-value { font-size: 1.9rem; font-weight: 600; line-height: 1.15; }
.stat-delta { font-size: .82rem; }
.stat-delta.is-up { color: var(--pw-up); }
.stat-delta.is-down { color: var(--pw-danger); }
.stat-delta.is-flat { color: var(--pw-muted); }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.chart-card { margin: 0; padding: .9rem 1rem .5rem; border: 1px solid var(--pw-line); border-radius: 12px; background: var(--pw-ink-2); }
.chart-card figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.chart-svg { display: block; width: 100%; height: 220px; }
.chart-grid line, .chart-svg .chart-grid { stroke: var(--pw-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-svg .chart-base { stroke: var(--pw-muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-svg .chart-tick { fill: var(--pw-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-svg .chart-mark { fill: var(--pw-chart); }
.chart-svg .chart-hit { fill: transparent; }
.chart-bar { cursor: default; outline: none; }
.chart-bar:hover .chart-mark, .chart-bar:focus-visible .chart-mark { fill: var(--pw-accent-hover); }
.chart-bar:focus-visible .chart-hit { stroke: var(--pw-accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-tooltip { position: absolute; z-index: 30; transform: translate(-50%, -100%); pointer-events: none; display: grid; gap: .1rem;
  padding: .4rem .6rem; border-radius: 8px; background: var(--pw-text); color: var(--pw-ink); font-size: .82rem; white-space: nowrap; }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip span { opacity: .8; }
.chart-table { margin: 1rem 0 2rem; }
.chart-table summary { cursor: pointer; color: var(--pw-muted); }
.manage-table .num, .num { font-variant-numeric: tabular-nums; }
.manage-table th.num, .manage-table td.num { text-align: right; }
.insight-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.insight-photos, .insight-tags { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.insight-photos li, .insight-tags li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.insight-photos .photo-card-owner { color: var(--pw-text); }

/* Downloads off: no long-press "Save image" on iOS, no selection highlight. */
img.no-save { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* Light/dark switch in the header: the icon shows what a click switches to. */
.nav-theme { display: inline-flex; align-items: center; background: none; border: 0; cursor: pointer; }
.theme-icon { display: block; }
:root[data-theme="dark"] .theme-icon-moon, :root:not([data-theme="dark"]) .theme-icon-sun { display: none; }

/* Theme picker (account settings). */
[data-theme-picker] { background: var(--pw-ink-2); color: var(--pw-text); border: 1px solid var(--pw-line); border-radius: 8px; padding: .15rem .4rem; font-size: .85rem; }

/* App Store and Google Play badges (in the home page's footer). The Google PNG has clear space built in, so it's drawn larger
   (and pulled in) to line up with Apple's 40px-high badge. */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin-top: 1.5rem; }
.store-badge { display: inline-flex; align-items: center; }
.store-badge-apple img { height: 40px; width: auto; display: block; }
.store-badge-google img { height: 59px; width: auto; display: block; margin: -9.5px -12px; }
.store-badges-note { color: var(--pw-muted); font-size: .85rem; flex-basis: 100%; }

/* Cookie message (fixed at the bottom until the visitor chooses) and the Cookie settings dialog. */
.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 1040; background: var(--pw-raised); border-top: 1px solid var(--pw-line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .12); padding: .9rem 0; font-size: .92rem; }
.cookie-banner-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.cookie-banner-inner p { flex: 1 1 28rem; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-dialog { max-width: 32rem; width: calc(100% - 2rem); border: 1px solid var(--pw-line); border-radius: var(--pw-radius);
  background: var(--pw-ink-2); color: var(--pw-text); padding: 1.5rem; }
.cookie-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
