/* =====================================================================
   wild ophelia — site styles
   File: public_html/assets/css/app.css
   Brand tokens, base type, components, header/footer, page scaffolding.
   Values follow Brand Guidelines v1 and the site mockups.
   ===================================================================== */

/* ---------- 1. Tokens ---------------------------------------------- */
:root {
  /* Brand */
  --poppy: #E4674A;
  --poppy-deep: #C24F33;
  --poppy-deeper: #A63F26;      /* primary button hover */
  --poppy-tint: #FDF1EE;        /* active nav background */
  --butter: #F2CE6B;
  --fern: #3F7A55;
  --fern-light: #A9C9B3;
  --petal: #F4C9C0;
  --bark: #22221F;
  --paper: #FBF8F2;
  --white: #FFFFFF;
  --line: #E6DECF;
  --line-soft: #EFEBE3;
  --stone: #5E5A50;
  --stone-light: #8B8577;
  --ink-soft: #3A3832;
  --gold: #8A6A12;              /* field-tips label */

  /* Status */
  --approved-bg: #DCEBDF;  --approved-fg: #2C5B3D;
  --pending-bg:  #FBEFC8;  --pending-fg:  #7A5A06;
  --declined-bg: #FBE0D9;  --declined-fg: #A63A22;
  --draft-bg:    #EFEBE3;  --draft-fg:    #5E5A50;

  /* Type */
  --font-display: 'Gloock', Georgia, 'Times New Roman', serif;
  --font-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-display: clamp(40px, 6vw, 64px);
  --fs-page:    clamp(38px, 5.4vw, 60px);   /* page titles in the mockups */
  --fs-h1:      clamp(32px, 4.4vw, 44px);
  --fs-section: clamp(30px, 4.2vw, 44px);   /* homepage section headings */
  --fs-h2:      clamp(26px, 3.4vw, 32px);
  --fs-h3:      22px;
  --fs-body-l:  18px;
  --fs-body:    16px;
  --fs-small:   14px;
  --fs-label:   12px;

  /* Shape */
  --radius-control: 10px;
  --radius-small: 8px;
  --radius-tile: 12px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --tap: 44px;
  --btn-h: 46px;

  /* Layout */
  --container: 1344px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --shadow-pop: 0 12px 32px rgba(34, 34, 31, .12);
}

/* ---------- 2. Base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--bark);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--poppy-deep); text-underline-offset: 3px; }
a:hover { color: var(--fern); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--poppy-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--butter); color: var(--bark); }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Utilities ------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.container--form   { max-width: calc(520px + var(--gutter) * 2); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--bark); color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius-control);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.muted { color: var(--stone); }
.small { font-size: var(--fs-small); line-height: 1.5; }
.body-l { font-size: var(--fs-body-l); line-height: 1.6; }

.stack    { display: flex; flex-direction: column; gap: 16px; }
.stack > *, .stack-sm > *, .stack-lg > * { margin-block: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.row      { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }

.section    { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .grid--2, .grid--3 { grid-template-columns: 1fr; } .grid--4 { gap: 12px; } }

/* Striped placeholder used wherever a photo is missing */
.stripes-0 { background: repeating-linear-gradient(135deg, #EFE8DA 0 10px, #F6F1E6 10px 20px); }
.stripes-1 { background: repeating-linear-gradient(135deg, #E3EDE5 0 10px, #EEF4EF 10px 20px); }
.stripes-2 { background: repeating-linear-gradient(135deg, #FBEFC8 0 10px, #FDF6E0 10px 20px); }
.stripes-3 { background: repeating-linear-gradient(135deg, #F9DDD5 0 10px, #FCEBE6 10px 20px); }
.stripes-4 { background: repeating-linear-gradient(135deg, #E1E9EE 0 10px, #EDF2F5 10px 20px); }

/* ---------- 4. Type helpers ---------------------------------------- */
.display { font-family: var(--font-display); font-size: var(--fs-display); line-height: 1; }

.label {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--poppy-deep);
}
.label--fern  { color: var(--fern); }
.label--gold  { color: var(--gold); }
.label--stone { color: var(--stone); }
.label--bark  { color: var(--bark); }
.label--lg    { font-size: 13px; letter-spacing: .14em; }

.link-arrow {
  font-weight: 600;
  color: var(--poppy-deep);
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--fern); text-decoration: underline; }

.page-head {
  padding-block: 48px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: var(--fs-page); line-height: 1; }
.page-head__sub { font-size: 17px; color: var(--stone); margin-top: 8px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: var(--fs-section); line-height: 1.05; margin-top: 8px; }

.prose { font-size: var(--fs-body-l); line-height: 1.7; max-width: 68ch; }
.prose h2 { font-size: var(--fs-h2); margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose blockquote {
  margin: 1.4em 0; padding-left: 20px;
  border-left: 3px solid var(--petal);
  font-family: var(--font-display); font-size: 22px; line-height: 1.4;
}

/* ---------- 5. Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 22px;
  border-radius: var(--radius-control);
  border: 1.5px solid transparent;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--poppy-deep); color: var(--white); }
.btn--primary:hover { background: var(--poppy-deeper); color: var(--white); }

.btn--secondary { background: var(--white); color: var(--bark); border-color: var(--bark); }
.btn--secondary:hover { background: var(--paper); color: var(--bark); }

.btn--quiet { background: var(--white); color: var(--bark); border-color: var(--line); }
.btn--quiet:hover { background: var(--paper); color: var(--bark); border-color: #D9D2C4; }

.btn--ghost { background: transparent; color: var(--poppy-deep); padding: 0 14px; }
.btn--ghost:hover { background: var(--paper); color: var(--poppy-deep); }

.btn--dark { background: var(--bark); color: var(--paper); }
.btn--dark:hover { background: #3A3832; color: var(--paper); }

.btn--approve { background: var(--fern); color: var(--white); }
.btn--approve:hover { background: #33664A; color: var(--white); }

.btn--decline { background: var(--white); color: var(--declined-fg); border-color: var(--declined-fg); }
.btn--decline:hover { background: var(--declined-bg); color: var(--declined-fg); }

.btn--feature { background: var(--butter); color: var(--bark); }
.btn--feature:hover { background: #EBC150; color: var(--bark); }

.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--radius-small); }
.btn--lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }

.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--line-soft);
  color: var(--stone-light);
  border-color: transparent;
  cursor: not-allowed;
}

/* Square icon button (bell, menu) */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: var(--radius-control);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--bark);
  font-size: 17px;
  text-decoration: none;
}
.icon-btn:hover { background: var(--paper); color: var(--bark); }
.icon-btn__count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--white);
  background: var(--poppy-deep);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- 6. Forms ----------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-small); font-weight: 600; }
.field__hint  { font-size: 13px; color: var(--stone); }
.field__error { font-size: 13px; color: var(--declined-fg); font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  min-height: var(--btn-h);
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--bark);
  font-size: 15px;
  transition: border-color .15s ease, background-color .15s ease;
}
.textarea { padding: 12px 14px; min-height: 120px; line-height: 1.55; resize: vertical; }
.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235E5A50' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input::placeholder, .textarea::placeholder { color: var(--stone-light); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--poppy-deep);
  background-color: var(--white);
}
.field--error .input, .field--error .select, .field--error .textarea {
  border-color: var(--declined-fg);
  background-color: var(--white);
}

/* Input with a fixed prefix, e.g. "@" before a username */
.input-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  overflow: hidden;
}
.input-group:focus-within { border-color: var(--poppy-deep); background: var(--white); }
.input-group .input { border: 0; background: transparent; min-width: 0; }
.input-group .input:focus { background: transparent; }
.input-group__addon {
  display: flex; align-items: center;
  padding: 0 4px 0 14px;
  color: var(--stone);
  font-weight: 600;
}
.input-group__button {
  border: 0; background: transparent;
  padding: 0 14px;
  font-size: 14px; font-weight: 600;
  color: var(--poppy-deep);
}
.field--error .input-group { border-color: var(--declined-fg); }

/* Checkbox / radio */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-small);
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin: 0;
  accent-color: var(--fern);
  cursor: pointer;
}

/* Segmented choice (e.g. "Where are you on the trail?") */
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center;
  height: var(--tap);
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
  font-size: var(--fs-small); font-weight: 600;
}
.choice input:checked + span { border-color: var(--bark); background: var(--bark); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--poppy-deep); outline-offset: 2px; }

/* Search box */
.search {
  display: flex; align-items: center; gap: 10px;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  width: min(380px, 100%);
}
.search:focus-within { border-color: var(--poppy-deep); }
.search__icon { color: var(--stone-light); font-size: 18px; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; }
.search input::placeholder { color: var(--stone-light); }

/* ---------- 7. Pills, chips, tags, badges -------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.pill--approved { background: var(--approved-bg); color: var(--approved-fg); }
.pill--pending  { background: var(--pending-bg);  color: var(--pending-fg); }
.pill--declined { background: var(--declined-bg); color: var(--declined-fg); }
.pill--featured { background: var(--petal);       color: var(--bark); }
.pill--draft    { background: var(--draft-bg);    color: var(--draft-fg); }

.badge-featured {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--butter);
  color: var(--bark);
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--bark);
  font-size: var(--fs-small); font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.chip:hover { border-color: var(--bark); color: var(--bark); }
.chip--active   { background: var(--bark); border-color: var(--bark); color: var(--paper); }
.chip--active:hover { color: var(--paper); }
.chip--featured { background: var(--butter); border-color: var(--butter); }
.chip__x { font-size: 12px; opacity: .8; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-size: 12px; font-weight: 500;
  line-height: 1.3;
}

.count-badge {
  display: inline-block;
  min-width: 22px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--poppy-deep);
  color: var(--white);
  font-size: 12px; font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

/* ---------- 8. Avatars --------------------------------------------- */
.avatar {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--petal);
  color: var(--bark);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { width: 28px; height: 28px; font-size: 13px; }
.avatar--sm { width: 36px; height: 36px; font-size: 15px; }
.avatar--md { width: 44px; height: 44px; font-size: 18px; }
.avatar--lg { width: 72px; height: 72px; font-size: 28px; }
.avatar--xl { width: 132px; height: 132px; font-size: 52px; border: 5px solid var(--paper); }

/* ---------- 9. Cards ----------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card--pad { padding: 28px; gap: 16px; }
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .badge-featured { position: absolute; top: 12px; left: 12px; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.card__title { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--poppy-deep); }
.card__meta { font-size: 13px; color: var(--stone); }
.card__link::after { content: ''; position: absolute; inset: 0; }   /* whole-card click target */
.card--linked { position: relative; }
.card--linked:hover { border-color: #D9D2C4; }

/* Gallery tile (square photo, caption underneath, no card frame) */
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; }
.tile__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-tile);
  overflow: hidden;
}
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover .tile__media img { transform: scale(1.02); }
.tile__media .badge-featured { position: absolute; top: 10px; left: 10px; }
.tile__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tile__title { font-family: var(--font-display); font-size: 17px; line-height: 1.25; color: var(--bark); text-decoration: none; }
.tile__title:hover { color: var(--poppy-deep); }
.tile__by { font-size: 13px; color: var(--stone); }
.tile__by a { color: inherit; text-decoration: none; }
.tile__by a:hover { color: var(--poppy-deep); }

/* Like / save toggle buttons */
.react {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 32px;
  padding: 0 6px;
  border: 0; border-radius: var(--radius-small);
  background: transparent;
  color: var(--stone);
  font-size: var(--fs-small);
  white-space: nowrap;
}
.react:hover { color: var(--poppy-deep); background: var(--paper); }
.react[aria-pressed="true"] { color: var(--poppy-deep); }

/* Wanderer voice (quote card) */
.voice {
  background: var(--petal);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.voice__mark {
  font-family: var(--font-display);
  font-size: 56px; line-height: .5; height: 26px;
  color: var(--poppy-deep);
}
.voice__quote { font-family: var(--font-display); font-size: 22px; line-height: 1.35; margin: 0; }
.voice__who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.voice__who .avatar { background: var(--paper); }
.voice__name { font-weight: 600; }
.voice__where { font-size: 13px; color: #5E3A30; }

/* Comment */
.comment { display: flex; gap: 12px; }
.comment__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.comment__head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.comment__user { font-size: 15px; font-weight: 600; color: var(--bark); text-decoration: none; }
.comment__user:hover { color: var(--poppy-deep); }
.comment__when { font-size: 13px; color: var(--stone); }
.comment__text { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; margin: 0; }
.comment__actions { display: flex; gap: 16px; font-size: 13px; font-weight: 600; color: var(--stone); }
.comment__actions button, .comment__actions a {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; text-decoration: none;
  min-height: 28px;
}
.comment__actions button:hover, .comment__actions a:hover { color: var(--poppy-deep); }

/* Join prompt card (petal) used inside pages for visitors */
.prompt {
  background: var(--petal);
  border-radius: var(--radius-card);
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.prompt h2, .prompt h3 { font-size: 28px; }
.prompt p { color: #5E3A30; margin: 6px 0 0; }

/* Empty state */
.empty {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-card);
  padding: 48px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--stone);
}
.empty h3 { color: var(--bark); }

/* ---------- 10. Notices (flash messages) --------------------------- */
.notices { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}
.notice__icon { font-weight: 700; flex-shrink: 0; width: 18px; text-align: center; }
.notice__text { flex: 1; }
.notice__close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 0; border-radius: var(--radius-small);
  background: transparent; color: inherit;
  font-size: 18px; line-height: 1;
  opacity: .7;
}
.notice__close:hover { opacity: 1; background: rgba(255, 255, 255, .5); }
.notice--success { background: var(--approved-bg); color: var(--approved-fg); }
.notice--info, .notice--warning { background: var(--pending-bg); color: #6B4F05; }
.notice--error   { background: var(--declined-bg); color: var(--declined-fg); }

/* ---------- 11. Tabs ----------------------------------------------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: var(--tap);
  padding: 0 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--stone);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tab:hover { color: var(--bark); }
.tab[aria-current="page"] { color: var(--bark); border-bottom-color: var(--poppy-deep); }
.tab__note { font-size: 12px; font-weight: 700; color: var(--fern); }

/* ---------- 12. Pagination ----------------------------------------- */
.pager { display: flex; justify-content: center; gap: 8px; padding-block: 40px; flex-wrap: wrap; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--tap); height: var(--tap);
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--bark);
  font-weight: 600;
  text-decoration: none;
}
.pager a:hover { border-color: var(--bark); }
.pager [aria-current="page"] { background: var(--bark); border-color: var(--bark); color: var(--paper); }

/* ---------- 13. Logo ----------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.logo:hover { color: inherit; }
.logo svg { flex-shrink: 0; }
.logo__word { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: -.005em; white-space: nowrap; }

/* ---------- 14. Site header ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav { display: flex; gap: 32px; font-size: 16px; font-weight: 500; }
.site-nav a { color: var(--bark); text-decoration: none; padding-block: 10px; }
.site-nav a:hover { color: var(--poppy-deep); }
.site-nav a[aria-current="page"] { color: var(--poppy-deep); font-weight: 600; }

.site-actions { display: flex; align-items: center; gap: 14px; }
.site-actions__login { font-size: 16px; font-weight: 600; color: var(--bark); text-decoration: none; padding: 10px 4px; }
.site-actions__login:hover { color: var(--poppy-deep); }
.site-actions .btn { height: var(--tap); padding: 0 18px; }

/* Dropdown built on <details> so it works without JavaScript */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown__panel {
  position: absolute;
  right: 0; top: calc(100% + 10px);
  min-width: 240px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column;
  z-index: 60;
}
.dropdown__panel a, .dropdown__panel button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  min-height: var(--tap);
  padding: 0 12px;
  border: 0; border-radius: var(--radius-control);
  background: none;
  color: var(--bark);
  font-size: 15px; font-weight: 500;
  text-align: left;
  text-decoration: none;
}
.dropdown__panel a:hover, .dropdown__panel button:hover { background: var(--paper); color: var(--bark); }
.dropdown__panel hr { margin: 6px 4px; border-color: var(--line-soft); }
.dropdown__panel form { margin: 0; }
.dropdown__head { padding: 10px 12px 8px; display: flex; flex-direction: column; }
.dropdown__head strong { font-weight: 600; }
.dropdown__head span { font-size: 13px; color: var(--stone); }

.user-menu__trigger {
  display: flex; align-items: center; gap: 8px;
  min-height: var(--tap);
  padding: 2px 4px;
  border-radius: var(--radius-control);
  font-size: var(--fs-small); font-weight: 600;
}
.user-menu__trigger:hover { background: var(--paper); }
.user-menu__caret { font-size: 11px; color: var(--stone); }

/* Mobile menu: a <details> whose panel spans the full header width */
.mobile-menu { display: none; }
.mobile-menu > summary { list-style: none; cursor: pointer; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu__panel {
  position: absolute;          /* relative to the sticky header */
  left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu__panel a {
  display: flex; align-items: center;
  min-height: 52px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  color: var(--bark);
  font-size: 17px; font-weight: 500;
  text-decoration: none;
}
.mobile-menu__panel a[aria-current="page"] { color: var(--poppy-deep); font-weight: 600; }
.mobile-menu__actions { display: flex; gap: 10px; padding: 16px var(--gutter) 20px; flex-wrap: wrap; }
.mobile-menu__actions .btn { flex: 1; }
.mobile-menu__actions a.btn { border-bottom: 1.5px solid transparent; min-height: 0; font-size: 15px; font-weight: 600; justify-content: center; padding: 0 22px; }
.mobile-menu__actions a.btn--secondary { border: 1.5px solid var(--bark); }
.mobile-menu__actions a.btn--primary { color: var(--white); }
.icon-btn__bars { font-size: 20px; line-height: 1; }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .site-actions__login, .site-actions__join, .site-actions__share-text { display: none; }
  .mobile-menu { display: block; }
  .logo__word { font-size: 23px; }
  .site-actions .btn--share { width: var(--tap); padding: 0; }
}
@media (max-width: 600px) {
  .site-header__inner { gap: 12px; }
  .site-actions { gap: 8px; }
  .user-menu__name, .user-menu__caret { display: none; }
  .site-header--member .logo__word { display: none; }   /* mark alone when space is tight */
}

/* ---------- 15. Join band + footer --------------------------------- */
.join-band { background: var(--fern); color: var(--paper); }
.join-band__inner {
  padding-block: clamp(56px, 8vw, 88px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.join-band__text { display: flex; align-items: center; gap: 28px; flex: 1 1 560px; min-width: 0; }
.join-band__mark { flex-shrink: 0; }
.join-band h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1; }
.join-band p { font-size: 18px; color: var(--approved-bg); margin: 10px 0 0; }
.join-band .btn { background: var(--butter); color: var(--bark); flex-shrink: 0; }
.join-band .btn:hover { background: #EBC150; color: var(--bark); }
@media (max-width: 700px) {
  .join-band__text { flex-direction: column; align-items: flex-start; gap: 18px; }
  .join-band__mark svg { width: 64px; height: 64px; }
}

.site-footer { background: var(--bark); color: var(--paper); }
.site-footer__inner {
  padding-block: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .logo__word { font-size: 22px; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.site-footer nav a { color: #D8D3C8; text-decoration: none; }
.site-footer nav a:hover { color: var(--butter); }
.site-footer__legal { width: 100%; font-size: 13px; color: #9C968A; border-top: 1px solid #3A3832; padding-top: 20px; }

/* ---------- 16. Error page ----------------------------------------- */
.error-page {
  padding-block: clamp(64px, 12vw, 140px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 820px;
}
.error-page h1 { font-size: var(--fs-page); line-height: 1; margin: 10px 0 16px; }
.error-page p { font-size: var(--fs-body-l); line-height: 1.6; color: var(--stone); max-width: 52ch; }
.error-page .row { margin-top: 28px; }
@media (max-width: 640px) {
  .error-page { grid-template-columns: 1fr; gap: 24px; }
  .error-page__mark svg { width: 72px; height: 72px; }
}

/* ---------- 17. Accounts: join, log in, passwords ------------------ */
.auth-body { background: var(--paper); }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

.auth__aside {
  background: var(--butter);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.auth__welcome { display: flex; flex-direction: column; gap: 24px; }
.auth__title { font-size: clamp(44px, 5.6vw, 72px); line-height: .95; }
.auth__text { margin: 0; font-size: 18px; line-height: 1.55; color: #3A3420; max-width: 440px; }
.auth__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-weight: 500; }
.auth__points li { display: flex; align-items: center; gap: 12px; }
.auth__tick {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bark);
  color: var(--butter);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.auth__photo {
  height: 180px;
  border-radius: var(--radius-card);
  background: repeating-linear-gradient(135deg, #E9C35A 0 12px, #EFCB64 12px 24px);
}
.auth__main { display: flex; align-items: center; justify-content: center; padding: 48px clamp(24px, 6vw, 72px); }
.auth__form { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 20px; }
.auth__form .notices { padding-top: 0; }
.auth__head { display: flex; flex-direction: column; gap: 6px; }
.auth__head h2 { font-size: 36px; }
.auth__head p { margin: 0; font-size: 15px; }
.auth__head a { font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { position: static; height: auto; padding: 24px var(--gutter) 32px; gap: 24px; }
  .auth__title { font-size: 40px; }
  .auth__text { font-size: 16px; }
  .auth__points, .auth__photo { display: none; }
  .auth__main { padding: 32px var(--gutter) 56px; align-items: flex-start; }
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { margin-bottom: 8px; padding: 0; }
.choices--thirds { display: grid; grid-template-columns: repeat(3, 1fr); }
.choices--thirds .choice span { width: 100%; justify-content: center; height: var(--btn-h); }
@media (max-width: 420px) { .choices--thirds { grid-template-columns: 1fr; } }

.btn--tall { height: 52px; font-size: 16px; }

/* Username availability mark inside the input group */
.input-group__status { display: flex; align-items: center; padding-right: 14px; font-size: 13px; font-weight: 700; }
.input-group.is-ok { border-color: var(--fern); }
.input-group.is-ok .input-group__status::after { content: '✓'; color: var(--fern); }
.input-group.is-bad { border-color: var(--declined-fg); }
.field__hint.is-ok { color: var(--fern); font-weight: 600; }
.field__hint.is-bad { color: var(--declined-fg); font-weight: 500; }

/* Password strength: four segments */
.meter { display: flex; gap: 4px; margin-top: 2px; }
.meter span { flex: 1; height: 4px; border-radius: 2px; background: var(--line-soft); transition: background-color .2s ease; }
.meter[data-score="1"] span:nth-child(-n+1) { background: var(--declined-fg); }
.meter[data-score="2"] span:nth-child(-n+2) { background: var(--butter); }
.meter[data-score="3"] span:nth-child(-n+3),
.meter[data-score="4"] span { background: var(--fern); }

/* Honeypot: hidden from people, visible to naive bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.page-head--form { padding-bottom: 20px; }

/* ---------- 18. Welcome checklist ---------------------------------- */
.welcome {
  padding-block: clamp(40px, 7vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.welcome__intro { display: flex; flex-direction: column; gap: 22px; }
.welcome__intro .body-l { margin: 0; color: var(--ink-soft); }
.welcome__title { font-size: var(--fs-display); line-height: 1; }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; } }

.progress { display: flex; flex-direction: column; gap: 8px; }
.progress__head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.progress__count { color: var(--fern); }
.progress__bar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--fern); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.step__num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #D9D2C4;
  color: var(--stone-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.step__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step__title { font-weight: 600; }
.step__hint { font-size: 13px; color: var(--stone); }
.step .btn { height: 40px; font-size: 14px; padding: 0 16px; }
.step--current { border: 1.5px solid var(--poppy-deep); }
.step--current .step__num { border-color: var(--poppy-deep); color: var(--poppy-deep); }
.step--done .step__num { border: 0; background: var(--fern); color: var(--white); }
.step--done .step__title { text-decoration: line-through; color: var(--stone-light); }
.steps__skip { display: flex; justify-content: flex-end; }

/* ---------- 19. Content pages -------------------------------------- */
.static-page { padding-bottom: 32px; }
.static-page h2:first-child { margin-top: 0; }
.static-page__cta { margin-bottom: clamp(48px, 8vw, 88px); }

/* Join / log-in forms sit on paper, so their fields are white (mockup) */
.auth__form .input, .auth__form .select, .auth__form .input-group { background-color: var(--white); }
.auth__form .input-group .input { background-color: transparent; }

/* ---------- 20. Gallery -------------------------------------------- */
.gallery__pending { margin-top: 24px; }
.gallery__pending .link-arrow { flex-shrink: 0; }
.gallery__tabs { margin-bottom: 20px; }
.filters {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filters__selects { display: flex; gap: 8px; flex-wrap: wrap; }
.select--sm {
  min-height: 40px; width: auto;
  background-color: var(--white);
  font-size: 14px; font-weight: 600;
}
.gallery__result { margin: -12px 0 20px; }
.gallery__empty { margin-bottom: 40px; }
.gallery__prompt { margin: 40px 0 56px; }
.gallery__prompt h2 { font-size: 28px; }

.tile__media img { position: absolute; inset: 0; }
.tile__status { position: absolute; top: 10px; left: 10px; }
.tile__save { position: absolute; top: 10px; right: 10px; margin: 0; }
.tile__save-btn {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--stone);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .15s ease;
}
.tile:hover .tile__save-btn, .tile__save-btn:focus-visible, .tile__save-btn[aria-pressed="true"] { opacity: 1; }
.tile__save-btn[aria-pressed="true"] { color: var(--poppy-deep); }
@media (hover: none) { .tile__save-btn { opacity: 1; } }
.tile__foot form { margin: 0; }

.react--locked { text-decoration: none; position: relative; }
.react--locked:hover::after {
  content: attr(data-tip);
  position: absolute; right: 0; bottom: calc(100% + 6px);
  background: var(--bark); color: var(--paper);
  font-size: 13px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  white-space: nowrap; z-index: 5;
}

/* ---------- 21. Photo page ----------------------------------------- */
.photo__status { margin-block: 20px; }
.photo-stage {
  margin: 0;
  background: var(--bark);
  padding: clamp(12px, 3vw, 40px);
  display: flex;
  justify-content: center;
}
.photo-stage img {
  max-height: min(82vh, 1400px);
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #2E2E2A;
}
.photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 5vw, 64px);
  padding-block: 40px 24px;
  align-items: start;
}
@media (max-width: 900px) { .photo { grid-template-columns: 1fr; } .photo__aside { order: -1; } }
.photo__head { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.photo__head h1 { font-size: var(--fs-h1); }
.photo__exif { margin: 0; font-size: 14px; color: var(--stone); }
.photo__caption { margin-top: 20px; max-width: 68ch; color: var(--ink-soft); }

.photo__aside { display: flex; flex-direction: column; gap: 20px; }
.photo__who { gap: 16px; }
.photo__who .row { flex-wrap: nowrap; }
.photo__who-text { display: flex; flex-direction: column; min-width: 0; }
.photo__who-name { font-family: var(--font-display); font-size: 22px; color: var(--bark); text-decoration: none; line-height: 1.2; }
.photo__who-name:hover { color: var(--poppy-deep); }
.photo__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.photo__actions form { margin: 0; }
.photo__actions .btn[aria-pressed="true"] { color: var(--poppy-deep); border-color: var(--petal); }
.photo__heart { font-size: 17px; }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); padding-top: 2px; }
.facts dd { margin: 0; }
.facts a { text-decoration: none; font-weight: 600; }
.facts__note { display: block; font-size: 13px; color: var(--fern); margin-top: 2px; }
.photo__more-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.photo__delete { color: var(--declined-fg); padding: 0; }
.photo__more { border-top: 1px solid var(--line); }

/* Comments */
.comments { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.comments h2 { font-size: 28px; }
.comments__list { display: flex; flex-direction: column; gap: 24px; }
.comment-form { display: flex; gap: 12px; align-items: flex-start; }
.comment-form__body { flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.comment-form .textarea { min-height: 84px; background: var(--white); }
.comment-form--reply { flex-direction: column; align-items: stretch; margin-top: 8px; gap: 8px; }
.comment-form--reply .btn { align-self: flex-start; }
.comment__actions { align-items: center; flex-wrap: wrap; }
.comment__actions form { margin: 0; }
.comment__actions button[aria-pressed="true"] { color: var(--poppy-deep); }
.comment__replies { margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--line-soft); display: flex; flex-direction: column; gap: 16px; }
.comment--reply .comment__text { font-size: 14px; }
.comment:target > .comment__body { background: #FFF8E6; border-radius: 10px; box-shadow: 0 0 0 8px #FFF8E6; }
.prompt--slim { padding: 22px 24px; }
.prompt--slim h3 { font-size: 22px; }

/* Reply and Report disclosures */
.reply, .report { font-size: 13px; }
.reply > summary, .report > summary {
  list-style: none; cursor: pointer;
  min-height: 28px; display: inline-flex; align-items: center;
  font-weight: 600; color: var(--stone);
}
.reply > summary::-webkit-details-marker, .report > summary::-webkit-details-marker { display: none; }
.reply > summary:hover, .report > summary:hover { color: var(--poppy-deep); }
.reply[open] { flex-basis: 100%; }
.report[open] { flex-basis: 100%; }
.report__form {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  display: flex; flex-direction: column; gap: 8px;
  max-width: 420px;
}
.report__form .btn { align-self: flex-start; }
.report__intro { margin: 0; color: var(--stone); font-size: 13px; }

/* ---------- 22. Upload --------------------------------------------- */
.container--upload { max-width: calc(1120px + var(--gutter) * 2); padding-bottom: 72px; }
.upload__pending, .upload__error { margin-bottom: 20px; }
.upload__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .upload__cols { grid-template-columns: 1fr; } }
.upload__file { position: sticky; top: calc(var(--header-h) + 20px); gap: 12px; }
@media (max-width: 860px) { .upload__file { position: static; } }

.dropzone {
  position: relative;
  min-height: 320px;
  border: 2px dashed var(--poppy);
  border-radius: 14px;
  background: #FDF4F1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .15s ease, border-color .15s ease;
}
.dropzone:hover, .dropzone.is-over { background: #FBE8E2; border-color: var(--poppy-deep); }
.dropzone__empty { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dropzone__title { font-family: var(--font-display); font-size: 22px; }
.dropzone__hint { font-size: 14px; color: var(--stone); }
.dropzone__browse { color: var(--poppy-deep); font-weight: 600; text-decoration: underline; }
.dropzone__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bark); }
.dropzone.has-file { border-style: solid; border-color: var(--line); }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__input:focus-visible + .upload__progress, .upload__file:focus-within .dropzone { outline: 3px solid var(--poppy-deep); outline-offset: 2px; }

.upload__progress {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.upload__progress[hidden] { display: none; }
.upload__progress-name { font-size: 13px; font-weight: 600; flex: 0 1 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.upload__bar span { display: block; width: 0; height: 100%; background: var(--fern); transition: width .2s ease; }
.upload__pct { font-size: 12px; color: var(--stone); min-width: 34px; text-align: right; }
.upload__fields .btn { align-self: flex-start; }
.upload__fields .input, .upload__fields .select, .upload__fields .textarea { background-color: var(--white); }
[data-region-field][hidden] { display: none; }

/* ---------- 23. Locations ------------------------------------------ */
.loc-tabs { margin-bottom: 20px; }
.loc-filters .search { width: min(380px, 100%); }
.loc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 42%); gap: 28px; align-items: start; padding-bottom: 64px; }
.loc-layout__map { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1000px) {
  .loc-layout { grid-template-columns: 1fr; }
  .loc-layout__map { position: static; order: -1; }
}
.loc-grid { gap: 20px; }

.map { width: 100%; border-radius: var(--radius-card); border: 1px solid var(--line); background: #E3EDE5; overflow: hidden; z-index: 0; }
.map--list { height: min(72vh, 640px); }
.map--detail { height: 100%; min-height: 280px; }
.map--picker { height: 380px; margin: 12px 0 16px; cursor: crosshair; }
@media (max-width: 1000px) { .map--list { height: 320px; } }
.map-lock {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.map-lock span { font-size: 14px; color: var(--stone); }
.map-lock .btn { margin-top: 6px; }
.map-note { margin: 0; }
.map-caption { margin: 8px 0 0; }
.leaflet-container { font-family: var(--font-ui); }
.map-area-label { background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: none; font-weight: 600; font-size: 13px; color: var(--bark); padding: 4px 10px; }
.map-area-label::before { display: none; }
.map-pop { display: flex; flex-direction: column; gap: 4px; min-width: 180px; font-family: var(--font-ui); }
.leaflet-container a.map-pop__name { font-family: var(--font-display); font-size: 18px; color: var(--bark); text-decoration: none; }
.leaflet-container a.map-pop__name:hover { color: var(--poppy-deep); }
.map-pop__meta { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fern); }
.map-pop__details { font-size: 13px; color: var(--stone); }
.leaflet-container a.map-pop__dir { margin-top: 6px; align-self: flex-start; background: var(--bark); color: var(--paper) !important; padding: 6px 12px; border-radius: 8px; font-weight: 600; text-decoration: none; }

.loc-card { position: relative; }
.loc-card .card__media img { width: 100%; height: 100%; object-fit: cover; }
.loc-card__save { position: absolute; top: 12px; right: 12px; margin: 0; z-index: 2; }
.loc-card__save-btn { opacity: 1; }
.loc-card__status { position: absolute; top: 12px; left: 12px; }
.loc-card__been {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--fern); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.loc-card--visited { border-color: var(--fern-light); }

/* Location page */
.loc__status { margin-top: 20px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--stone); padding-top: 32px; }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: var(--poppy-deep); }
.loc__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 14px 0 28px; }
.loc__head h1 { font-size: var(--fs-page); line-height: 1; }
.loc__tags { margin-top: 14px; }
.tag--lg { font-size: 14px; padding: 6px 14px; }
.loc__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.loc__actions form { margin: 0; }
@media (max-width: 600px) {
  .loc__actions { width: 100%; }
  .loc__actions > *, .loc__actions form .btn { flex: 1 1 auto; }
  .loc__actions .btn { white-space: normal; text-align: center; height: auto; min-height: var(--btn-h); padding-block: 10px; }
}
.loc__actions .btn[aria-pressed="true"] { color: var(--poppy-deep); border-color: var(--poppy-deep); }
.loc__hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; min-height: 380px; }
@media (max-width: 860px) { .loc__hero { grid-template-columns: minmax(0, 1fr); } .loc__hero-map { min-height: 260px; } }
.loc__hero-main { position: relative; border-radius: var(--radius-card); overflow: hidden; min-height: 300px; }
.loc__hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loc__hero-count {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(34, 34, 31, .82); color: var(--paper);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.loc__hero-count:hover { color: var(--butter); }
.loc__hero-map { display: flex; flex-direction: column; }
.loc__hero-map .map { flex: 1; }
.loc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); padding: 44px 0 72px; align-items: start; }
@media (max-width: 900px) { .loc { grid-template-columns: minmax(0, 1fr); } }
.loc__main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.loc__section h2 { font-size: var(--fs-h2); margin-bottom: 16px; }
.loc__about { color: var(--ink-soft); max-width: 68ch; }
.section-head--tight { margin-bottom: 16px; }
.loc .comments { margin-top: 0; }

.months { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.months__bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.months__m { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.months__swatch { width: 100%; height: 40px; border-radius: 6px; background: var(--line-soft); }
.months__m--peak .months__swatch { background: var(--fern); }
.months__m--good .months__swatch { background: var(--fern-light); }
.months__letter { font-size: 12px; font-weight: 600; color: var(--stone); }
.months__m.is-now .months__letter { color: var(--bark); font-weight: 700; }
.months__m.is-now .months__swatch { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--bark); }
.months__legend { display: flex; gap: 16px; font-size: 13px; color: var(--stone); }
.months__legend span { display: inline-flex; align-items: center; gap: 6px; }
.months__key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.months__key--peak { background: var(--fern); }
.months__key--good { background: var(--fern-light); }
.months__key--quiet { background: var(--line-soft); border: 1px solid var(--line); }

.tread { background: var(--butter); border-radius: var(--radius-card); padding: 22px 24px; }
.tread .label { color: var(--bark); margin-bottom: 6px; }
.tread p:last-child { margin: 0; font-size: 16px; line-height: 1.55; }

.loc__aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .loc__aside { position: static; } }
.good-to-know { gap: 16px; }
.panel-title { font-family: var(--font-display); font-size: 22px; }
.facts--tight > div { grid-template-columns: 88px 1fr; padding: 10px 0; }
.locked { color: var(--stone); font-size: 14px; }
.access p:last-child { margin: 4px 0 0; font-size: 15px; }
.been[aria-pressed="true"] { background: var(--approved-bg); border-color: var(--approved-bg); color: var(--approved-fg); }
.been__count { margin: -6px 0 0; text-align: center; }
.added-by p { margin: 0; }
.added-by a { font-weight: 600; text-decoration: none; }

/* Add / edit form */
.loc-form { display: flex; flex-direction: column; gap: 12px; padding-bottom: 72px; max-width: 820px; }
.loc-form__section { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.loc-form__section h2 { font-size: 24px; margin-bottom: 8px; }
.loc-form__section > .muted { margin: 0 0 12px; font-size: 15px; }
.loc-form .input, .loc-form .select, .loc-form .textarea { background-color: var(--white); }
.form__row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form__row--3 { grid-template-columns: 1fr; } }
.field--check { justify-content: flex-end; padding-bottom: 12px; }
.picker__coords { margin-bottom: 10px; }
.month-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 640px) { .month-picker { grid-template-columns: repeat(3, 1fr); } }
.month-picker__m { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: var(--line-soft); font-size: 13px; font-weight: 700; }
.month-picker__m--peak { background: var(--fern); color: var(--white); }
.month-picker__m--good { background: var(--fern-light); }
.month-picker__m .select--sm { min-height: 36px; font-size: 13px; padding-right: 30px; background-position: right 8px center; }
.species-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; }
.loc-form__submit { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

/* ---------- 24. Journal -------------------------------------------- */
.label--poppy { color: var(--poppy-deep); }
.journal-head { align-items: flex-end; }
.journal-chips { margin-top: 20px; }
.journal-chips .chip:not(.chip--active) { font-weight: 500; }
.journal { padding-bottom: 64px; }
.journal--member { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .journal--member { grid-template-columns: minmax(0, 1fr); } }
.journal__main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.journal__grid { row-gap: 32px; }

.pick { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: center; }
.journal--member .pick { grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .pick, .journal--member .pick { grid-template-columns: 1fr; } }
.pick__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-card); overflow: hidden; }
.journal--member .pick__media { aspect-ratio: 4 / 3; }
.pick__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick__text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pick__title { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; }
.journal--member .pick__title { font-size: clamp(26px, 3vw, 32px); }
.pick__title a, .post-card__title a { color: var(--bark); text-decoration: none; }
.pick__title a:hover, .post-card__title a:hover { color: var(--poppy-deep); }
.pick__excerpt { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.pick__actions { display: flex; gap: 12px; }
.pick__actions form { margin: 0; }
.pick__actions .react { font-weight: 600; }

.post-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.post-card__media { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius-tile); overflow: hidden; }
.post-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card__media img { transform: scale(1.02); }
.post-card__follow { position: absolute; top: 10px; left: 10px; background: var(--petal); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: var(--bark); }
.post-card .label { font-size: 11px; }
.post-card__title { font-size: 21px; line-height: 1.15; }
.post-card__meta { font-size: 13px; color: var(--stone); }

.write-band {
  background: var(--fern); color: var(--paper);
  border-radius: var(--radius-card); padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.write-band h2 { font-size: 28px; }
.write-band p { margin: 4px 0 0; font-size: 15px; color: var(--approved-bg); }
.write-band .btn { background: var(--butter); color: var(--bark); flex-shrink: 0; }
.write-band .btn:hover { background: #EBC150; color: var(--bark); }

.journal__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .journal__side { position: static; } }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.side-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side-list a { font-size: 15px; font-weight: 600; color: var(--bark); text-decoration: none; overflow-wrap: anywhere; }
.side-list a:hover { color: var(--poppy-deep); }
.side-list span { font-size: 13px; color: var(--stone); }
.side-list--plain a { font-weight: 500; font-size: 14px; }
.pill--xs { font-size: 11px; font-weight: 700; padding: 4px 9px; flex-shrink: 0; }

/* Article */
.article { padding-bottom: 32px; }
.article__status { margin-top: 24px; }
.article__head { padding: 48px 0 28px; display: flex; flex-direction: column; gap: 16px; }
.article__cat { text-decoration: none; }
.article__head h1 { font-size: var(--fs-page); line-height: 1.02; }
.article__dek { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink-soft); }
.article__byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.article__byline > div { display: flex; flex-direction: column; }
.article__author { font-weight: 600; color: var(--bark); text-decoration: none; }
.article__author:hover { color: var(--poppy-deep); }
.article__follow { margin: 0 0 0 auto; }
.article__cover { margin: 8px auto 40px; max-width: calc(1100px + var(--gutter) * 2); }
.article__cover img { width: 100%; max-height: 70vh; object-fit: cover; border-radius: var(--radius-card); }
.article__body { max-width: none; }
.article__body a { overflow-wrap: anywhere; }
.article__actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__actions form { margin: 0; }
.article__actions .btn[aria-pressed="true"] { color: var(--poppy-deep); border-color: var(--petal); }
.article__owner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.article__owner form { margin: 0; }
.article .comments { margin-top: 40px; }
.article__more { border-top: 1px solid var(--line); }

/* Editor */
.preview { background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius-card); padding: 28px 32px; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.preview__title { font-size: var(--fs-h1); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-bottom: 72px; }
@media (max-width: 900px) { .editor { grid-template-columns: minmax(0, 1fr); } }
.editor .input, .editor .select, .editor .textarea { background-color: var(--white); }
.input--title { font-family: var(--font-display); font-size: 24px; min-height: 56px; }
.input--file { padding: 10px 14px; }
.textarea--body { min-height: 420px; font-size: 17px; line-height: 1.7; }
.editor__cover { display: flex; align-items: center; gap: 14px; }
.editor__cover img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.editor__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.editor__help { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .editor__help { position: static; } }
.format-help { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.format-help > div { display: flex; justify-content: space-between; gap: 12px; }
.format-help dd { margin: 0; color: var(--stone); text-align: right; }
.format-help code { font-size: 13px; background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.tips-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); }

/* ---------- 25. Wanderers ------------------------------------------ */
.wanderers-tabs { margin-bottom: 28px; }
.wanderers { padding-bottom: 64px; }
.wanderers--member { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .wanderers--member { grid-template-columns: minmax(0, 1fr); } }
.wanderers__main { min-width: 0; }
.wanderers__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .wanderers__side { position: static; } }

.wotm { background: var(--butter); border-radius: 18px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-bottom: 40px; }
@media (max-width: 760px) { .wotm { grid-template-columns: 1fr; } }
.wotm__text { padding: 36px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.wotm__label { color: #6B4F05; }
.wotm__who { display: flex; align-items: center; gap: 14px; }
.wotm__who .avatar { border: 3px solid var(--paper); }
.wotm__who h2 { font-size: 32px; line-height: 1; }
.wotm__who > div > span { font-size: 15px; color: #5E4604; }
.wotm__quote { margin: 0; font-size: 17px; line-height: 1.55; color: #3A3420; }
.wotm__link { color: var(--bark); }
.wotm__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
.wotm__photo { position: relative; min-height: 150px; overflow: hidden; }
.wotm__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wotm__photo:nth-child(1) { border-radius: 14px 0 0 0; }
.wotm__photo:nth-child(2) { border-radius: 0 14px 0 0; }
.wotm__photo:nth-child(3) { border-radius: 0 0 0 14px; }
.wotm__photo:nth-child(4) { border-radius: 0 0 14px 0; }

.directory-head { margin-bottom: 20px; align-items: center; }
.directory-head h2 { font-size: 30px; margin: 0; }
.directory-search { width: 180px; min-height: 40px; font-weight: 500; }
.member-grid { gap: 16px; }
.member-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.member-card > a:first-child, .feed-item__head > a:first-child, .suggest li > a:first-child { display: block; line-height: 0; }
.member-card__who { display: flex; flex-direction: column; gap: 2px; }
.member-card__name { font-weight: 700; font-size: 16px; color: var(--bark); text-decoration: none; }
.member-card__name:hover { color: var(--poppy-deep); }
.member-card__follow { width: 100%; margin: 4px 0 0; }
.member-card__follow.is-locked { color: var(--stone-light); }
.join-line { text-align: center; color: var(--stone); margin: 32px 0 0; }
.join-line a { font-weight: 600; text-decoration: none; }

.feed { display: flex; flex-direction: column; gap: 16px; }
.feed-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.feed-item__head { display: flex; align-items: center; gap: 12px; }
.feed-item__head p { margin: 0; font-size: 15px; }
.feed-item__who { font-weight: 700; color: var(--bark); text-decoration: none; }
.feed-item__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feed-item__photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.feed-item__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed-item__card { background: var(--paper); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--bark); }
.feed-item__card:hover { background: #F4EFE5; color: var(--bark); }
.feed-item__title { font-family: var(--font-display); font-size: 20px; }
.feed-item__actions { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.feed-item__actions a { color: var(--stone); text-decoration: none; }
.feed-item__actions a:hover { color: var(--poppy-deep); }

.me-card { background: var(--petal); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.me-card .row { flex-wrap: nowrap; }
.me-card .avatar { background: var(--paper) !important; }
.me-card__who { display: flex; flex-direction: column; min-width: 0; }
.me-card__who strong { font-size: 16px; }
.me-card__who a { font-size: 13px; color: #5E3A30; text-decoration: none; }
.me-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.me-card__stats div { display: flex; flex-direction: column; }
.me-card__stats strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.me-card__stats span { font-size: 12px; color: #5E3A30; }
.suggest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.suggest li { display: flex; align-items: center; gap: 12px; }
.suggest form { margin: 0; }
.suggest__who { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.suggest__who a { font-size: 14px; font-weight: 600; color: var(--bark); text-decoration: none; overflow-wrap: anywhere; }
.suggest__who span { font-size: 12px; color: var(--stone); }

/* Profile */
.profile-cover { position: relative; height: clamp(180px, 24vw, 300px); overflow: hidden; }
.profile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile__notice { margin-top: 16px; }
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: end; margin-top: -72px; position: relative; }
@media (max-width: 760px) {
  .profile-head { grid-template-columns: 1fr; gap: 12px; margin-top: -56px; }
  .profile-head .avatar--xl { width: 112px; height: 112px; font-size: 44px; }
}
.profile-head .avatar--xl { width: 168px; height: 168px; font-size: 64px; border-width: 6px; }
.profile-head__who { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; min-width: 0; }
.profile-head__who h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1; }
.profile-head__who p { margin: 0; color: var(--stone); }
.profile-head__actions { display: flex; gap: 10px; padding-bottom: 12px; flex-wrap: wrap; }
.profile-head__actions form { margin: 0; }
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; padding-top: 32px; align-items: start; }
@media (max-width: 760px) { .profile-body { grid-template-columns: 1fr; gap: 20px; } }
.profile-body__bio .body-l { margin: 0; color: var(--ink-soft); max-width: 720px; }
.profile-stats { display: flex; gap: 32px; margin: 0; }
.profile-stats div { display: flex; flex-direction: column-reverse; }
.profile-stats dd { margin: 0; font-family: var(--font-display); font-size: 32px; line-height: 1.1; }
.profile-stats dt { font-size: 14px; color: var(--stone); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.badge { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.badge--butter { background: var(--butter); }
.badge--fern { background: var(--approved-bg); color: var(--approved-fg); }
.badge--petal { background: var(--petal); }
.profile-tabs { margin-top: 40px; }
.profile-content { padding: 32px 0 48px; }
.profile-safety { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 56px; font-size: 13px; }
.profile-safety form { margin: 0; }
.link-button { background: none; border: 0; padding: 0; min-height: 28px; font: inherit; font-weight: 600; color: var(--stone); cursor: pointer; }
.link-button:hover { color: var(--declined-fg); }

/* Settings */
.settings { margin-bottom: 20px; gap: 18px; }
.settings .input, .settings .select, .settings .textarea { background-color: var(--white); }
.settings .btn { align-self: flex-start; }
.settings__images { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (max-width: 640px) { .settings__images { grid-template-columns: 1fr; } }
.settings__images .row { flex-wrap: nowrap; }
.settings__cover { position: relative; height: 96px; border-radius: 12px; overflow: hidden; }
.settings__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.input--file { min-width: 0; }
.settings .input:disabled { color: var(--stone); background: var(--line-soft); }
.container--narrow > .settings:last-child { margin-bottom: 72px; }

/* Notifications */
.notes { list-style: none; margin: 0 0 72px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); overflow: hidden; }
.note { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.note:last-child { border-bottom: 0; }
.note--unread { background: #FFF8EC; }
.note__mark { width: 36px; display: flex; justify-content: center; }
.note__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.note__body a { color: var(--bark); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.note__body a:hover { color: var(--poppy-deep); }
.note__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--poppy-deep); flex-shrink: 0; }

/* Messages */
.convos { list-style: none; margin: 0 0 72px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); overflow: hidden; }
.convo { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); color: var(--bark); text-decoration: none; }
.convos li:last-child .convo { border-bottom: 0; }
.convo:hover { background: var(--paper); color: var(--bark); }
.convo__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.convo__who { font-weight: 600; }
.convo__last { font-size: 14px; color: var(--stone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo--unread .convo__last { color: var(--bark); font-weight: 600; }
.thread-head { padding: 32px 0 20px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); }
.thread-head__name { font-size: 28px; }
.thread-head__name a { color: var(--bark); text-decoration: none; }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; }
.thread__empty { text-align: center; padding: 24px 0; }
.bubble { max-width: min(80%, 520px); align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.bubble--mine { align-self: flex-end; background: var(--petal); border-color: var(--petal); border-radius: 16px 16px 4px 16px; }
.bubble__text { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.bubble__meta { font-size: 12px; color: var(--stone); }
.bubble .report { font-size: 12px; }
.thread__form { margin-bottom: 72px; }
.dropdown__panel .count-badge { margin-left: auto; }

/* ---------- 26. Homepage ------------------------------------------- */
.home main > .container:first-child:empty { display: none; }
.section--flush-top { padding-top: 0; }

/* Full-bleed hero, but the text lines up with the logo and the rest of the
   page on wide screens: the butter panel grows to the left while the text
   stays inside the site container. */
.hero {
  --hero-edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: grid;
  grid-template-columns: calc(var(--hero-edge) + min(560px, 40vw)) minmax(0, 1fr);
  min-height: min(620px, 78vh);
  border-bottom: 1px solid var(--line);   /* same hairline as the Fresh uploads band */
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero__text {
  background: var(--butter);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 48px) clamp(40px, 6vw, 72px) var(--hero-edge);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
}
@media (max-width: 900px) { .hero__text { padding-left: var(--gutter); padding-right: var(--gutter); } }
/* Two sections in a row don't double their spacing (sections can be switched
   off or hidden when empty, so any section may follow the hero). */
.section + .section { padding-top: 0; }
.hero__eyebrow { color: #6B4F05; }
.hero__title { font-size: clamp(48px, 6.4vw, 80px); line-height: .98; }
.hero__intro { margin: 0; font-size: 19px; line-height: 1.55; color: #3A3420; max-width: 440px; }
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--hero { height: 52px; padding: 0 26px; font-size: 16px; }
.hero__ghost { background: transparent; }
.hero__ghost:hover { background: rgba(255, 255, 255, .45); }
.hero__media { position: relative; min-height: 360px; overflow: hidden; }
.hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__credit {
  position: absolute; left: 24px; bottom: 24px; right: auto; max-width: calc(100% - 48px);
  background: var(--white); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; color: var(--bark); text-decoration: none;
}
.hero__credit:hover { color: var(--bark); box-shadow: var(--shadow-pop); }
.hero__credit > span { display: flex; flex-direction: column; min-width: 0; }
.hero__credit-title { font-family: var(--font-display); font-size: 17px; }
.hero__credit-by { font-size: 13px; color: var(--stone); }

.potw { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (max-width: 900px) { .potw { grid-template-columns: 1fr; } }
.potw__media { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--radius-card); overflow: hidden; }
.potw__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.potw__text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.potw__title { font-size: clamp(38px, 4.6vw, 52px); line-height: 1; }
.potw__story { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.potw__who { display: flex; align-items: center; gap: 12px; }
.potw__who > div { display: flex; flex-direction: column; }
.potw__name { font-weight: 600; color: var(--bark); text-decoration: none; }

.home-loc__name { font-size: 26px; }
.home-loc__species { font-size: 15px; color: var(--stone); }
.home-loc .card__media img { width: 100%; height: 100%; object-fit: cover; }

.fresh { background: var(--white); border-block: 1px solid var(--line); }

.home-journal { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; }
@media (max-width: 900px) { .home-journal { grid-template-columns: 1fr; } }
.home-journal__lead { display: flex; flex-direction: column; gap: 20px; }
.home-journal__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; }
.home-journal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-journal__title { font-size: clamp(30px, 3.4vw, 38px); line-height: 1.05; }
.home-journal__title a { color: var(--bark); text-decoration: none; }
.home-journal__title a:hover { color: var(--poppy-deep); }
.home-journal__excerpt { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 640px; }
.home-journal__list { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; }
@media (max-width: 900px) { .home-journal__list { padding-top: 0; } }
.home-journal__item { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; color: var(--bark); text-decoration: none; }
@media (max-width: 480px) { .home-journal__item { grid-template-columns: 96px 1fr; } }
.home-journal__item:hover .home-journal__item-title { color: var(--poppy-deep); }
.home-journal__thumb { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-tile); overflow: hidden; }
.home-journal__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-journal__meta { display: flex; flex-direction: column; gap: 6px; }
.home-journal__item-title { font-family: var(--font-display); font-size: 22px; line-height: 1.15; }

.seasonal { background: var(--fern); color: var(--paper); }
.seasonal__inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 12px; font-weight: 600; flex-wrap: wrap; text-align: center; }
.seasonal a { color: var(--butter); }
.seasonal a:hover { color: var(--white); }

/* Homepage preview bar (admins only) */
.preview-bar { background: var(--bark); color: var(--paper); }
.preview-bar__inner { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; font-size: 14px; }
.preview-bar strong { color: var(--butter); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.preview-bar .btn { margin-left: auto; }

/* ---------- 27. Toasts (flash messages) ---------------------------- */
/* Floats at the very top of the window, above everything (header, menus,
   maps), so the page never moves. Fades in, stays 5 seconds, fades out.
   Hover or keyboard focus pauses the countdown. */
.toasts {
  position: fixed;
  top: 12px;                      /* very top of the browser window, over the header */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(480px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;           /* never blocks clicks on the page around it */
}
@media (max-width: 600px) { .toasts { left: 12px; right: 12px; width: auto; transform: none; } }

.toast {
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(34, 34, 31, .16), 0 2px 6px rgba(34, 34, 31, .08);
  animation: toast-in .3s ease-out both, toast-out .45s ease-in 5s forwards;
}
.toast:hover, .toast:focus-within { animation-play-state: paused; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-10px); visibility: hidden; }
}

/* Avatar picker (Account settings) */
.avatar-pick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.avatar-pick__item {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border-radius: 12px; border: 2px solid transparent;
  font-size: 12px; font-weight: 600; color: var(--stone); text-align: center;
}
.avatar-pick__item:hover { background: var(--paper); }
.avatar-pick__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.avatar-pick__item:has(input:checked) { border-color: var(--poppy-deep); background: var(--poppy-tint); color: var(--bark); }
.avatar-pick__item:has(input:focus-visible) { outline: 3px solid var(--poppy-deep); outline-offset: 2px; }
.avatar-pick__item .avatar { width: 64px; height: 64px; font-size: 26px; }
.avatar-pick__reserved { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--pending-bg); border: 1.5px dashed #E9C35A; }
.avatar-pick__reserved-head { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #6B4F05; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.avatar-pick__reserved .admin-tag { background: var(--bark); color: var(--butter); font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 3px 7px; border-radius: 999px; }
.avatar-pick__item--reserved:hover { background: rgba(255, 255, 255, .5); }

/* ---------- 28. File pickers --------------------------------------- */
/* The browser's grey "Choose File" button, restyled to match the
   primary buttons (e.g. "Share a photo"). Applies to every file input. */
input[type="file"] {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--stone);
  cursor: pointer;
}
.input--file { display: flex; align-items: center; padding: 6px; min-height: 52px; }
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--poppy-deep);
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  margin-right: 14px;
  cursor: pointer;
  transition: background-color .15s ease;
}
input[type="file"]:hover::file-selector-button { background: var(--poppy-deeper); }
input[type="file"]:hover::-webkit-file-upload-button { background: var(--poppy-deeper); }
input[type="file"]:focus-visible { outline: 3px solid var(--poppy-deep); outline-offset: 2px; border-radius: 10px; }

/* Avatars keep their own size wherever they sit (e.g. the hero credit tag
   sits inside the hero photo area, whose photo rules must not reach it). */
span.avatar > img { position: static; inset: auto; width: 100%; height: 100%; object-fit: cover; transform: none; border-radius: inherit; }

/* Location form: photo of the spot + choosing a gallery photo as cover */
.h2-note { font-family: var(--font-ui); font-size: 15px; font-weight: 500; }
.loc-cover-current { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.loc-cover-current img { width: 160px; height: 106px; object-fit: cover; border-radius: 10px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pick-grid__item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--paper); }
.pick-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.pick-grid__item input { position: absolute; opacity: 0; }
.pick-grid__item:has(input:checked) { border-color: var(--poppy-deep); box-shadow: 0 0 0 2px var(--poppy-tint); }
.pick-grid__item:has(input:focus-visible) { outline: 3px solid var(--poppy-deep); outline-offset: 2px; }
.pick-grid__auto { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; border: 1.5px dashed var(--line); text-align: center; }

/* Location form: "Seen here" grouped by category */
.species-group { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-bottom: 8px; }
.species-group > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; }
.species-group > summary::-webkit-details-marker { display: none; }
.species-group > summary::before { content: '▸'; display: inline-block; width: 16px; color: var(--stone); transition: transform .15s ease; }
.species-group[open] > summary::before { transform: rotate(90deg); }
.species-group .species-picker { padding: 0 16px 14px; }

/* Getting started: avatar-menu link and the /wanderers reminder band */
.dropdown__panel .menu-onboarding { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; color: var(--poppy-deep); }
.menu-onboarding__count { font-size: 11px; font-weight: 700; background: var(--pending-bg); color: #6B4F05; padding: 3px 8px; border-radius: 999px; }
.onboard-band { background: var(--butter); }
.onboard-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; flex-wrap: wrap; font-size: 15px; }
.menu-newtab { font-size: 12px; color: var(--stone); margin-left: 2px; }

/* ---------- 29. Behind the shot / Help me ID / Light -------------- */
.id-check { margin: 4px 0 2px; }
.shot-details { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); padding: 0 16px; }
.shot-details > summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.shot-details > summary::-webkit-details-marker { display: none; }
.shot-details[open] > summary { border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.shot-details .shot-fields { padding-bottom: 16px; }
.shot-fields { display: flex; flex-direction: column; gap: 14px; }
.shot-fields__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; }
.shot-fields .input, .shot-fields .select, .shot-fields .textarea { background-color: var(--white); }

.shot { margin-top: 32px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 18px; }
.shot__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shot__head h2 { font-size: 26px; margin: 0; }
.shot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.shot__group { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.shot__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); padding-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.shot__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.shot__row dt { color: var(--stone); }
.shot__row dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.shot__tip { margin: 0; padding: 14px 18px; background: var(--pending-bg); border-radius: 12px; line-height: 1.55; display: flex; flex-direction: column; gap: 6px; }

.id-help { margin-top: 24px; padding: 24px; border: 2px dashed var(--butter); border-radius: var(--radius-card); background: #FFFBEF; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.id-help h2 { font-size: 26px; margin: 0; }
.id-help > p { margin: 0; }
.id-help__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.id-help__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.id-help__item form { margin: 0; flex-shrink: 0; }
.id-help__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.id-help__note { font-size: 14px; color: var(--ink-soft); }
.id-help__form { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.id-help__form .input, .id-help__form .select { background-color: var(--white); }
.id-help__form .btn { align-self: flex-start; }
.chip--help { border-color: #E9C35A; background: #FFF6D8; }
.chip__count { font-size: 11px; font-weight: 700; margin-left: 4px; opacity: .8; }
.tile__idhelp { position: absolute; left: 10px; bottom: 10px; background: var(--butter); color: var(--bark); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }

.light-card { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.light-card__date { margin: -4px 0 0; }
.light-card__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.light-card__col { display: flex; flex-direction: column; gap: 6px; }
.light-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 5px 8px; border-radius: 8px; }
.light-row span { color: var(--stone); }
.light-row--gold { background: #FCEFC7; }
.light-row--gold span { color: #6B4F05; }
.light-row--blue { background: #E1E9EE; }
.light-card__more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--poppy-deep); padding: 4px 0; }
.light-card__more[open] summary { margin-bottom: 8px; }
.light-card__note { margin: 0; }
.light-card__cols { grid-template-columns: 1fr; gap: 10px; }
.light-row strong { white-space: nowrap; }
.light-card__col .label { margin-bottom: 2px; }
.icon-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #6B4F05; background: var(--pending-bg); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.tag--icon { border-color: #E9C35A; background: #FFF6D8; }

/* ---------- 30. Badges -------------------------------------------- */
.badge-medal { display: inline-flex; flex-shrink: 0; border-radius: 50%; line-height: 0; }
.badge-medal img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.badge-medal--sm { width: 22px; height: 22px; box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--line); }
.badge-medal--md { width: 30px; height: 30px; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--line); }
.badge-medal--lg { width: 92px; height: 92px; box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--line); }
.badge-medal--one { --ring: #3F7A55; }
.badge-medal--t1 { --ring: #C48A5A; }
.badge-medal--t2 { --ring: #A9B1BA; }
.badge-medal--t3 { --ring: #E2B33C; }
.badge-medal--sm[class*="badge-medal--t"], .badge-medal--sm.badge-medal--one { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--ring); }
.badge-medal--md[class*="badge-medal--t"], .badge-medal--md.badge-medal--one { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ring); }
.badge-medal--lg[class*="badge-medal--t"], .badge-medal--lg.badge-medal--one { box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--ring); }
.featured-badges { display: inline-flex; gap: 8px; margin-left: 14px; vertical-align: middle; }
.featured-badges--sm { display: flex; gap: 6px; margin: 6px 0 0; }

.badges-page { display: flex; flex-direction: column; gap: 28px; }
.badges-summary p { margin: 0 0 4px; }
.badge-group__title { font-size: 26px; margin: 0 0 14px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.badge-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px 16px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.badge-card .badge-medal--lg { margin-bottom: 8px; }
.badge-card.is-locked .badge-medal img { filter: grayscale(1); opacity: .35; }
.badge-card.is-locked .badge-card__name { color: var(--stone); }
.badge-card.is-earned { border-color: #E6D6A8; background: linear-gradient(180deg, #FFFBEF, var(--white) 60%); }
.badge-card__name { font-size: 19px; margin: 0; }
.badge-card__how { margin: 0; font-size: 13px; color: var(--stone); line-height: 1.4; }
.badge-card__tiers { display: inline-flex; align-items: center; gap: 5px; }
.badge-card__tier { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-left: 4px; }
.tier-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.tier-dot--1.is-on { background: #C48A5A; }
.tier-dot--2.is-on { background: #A9B1BA; }
.tier-dot--3.is-on { background: #E2B33C; }
.badge-progress { width: 100%; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-top: 4px; }
.badge-progress span { display: block; height: 100%; background: var(--fern); border-radius: 999px; }
.badge-card__count { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.badge-card__feature { margin-top: 2px; font-size: 13px; }
.badges-form__bar { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 18px; box-shadow: var(--shadow-pop); }

.pledge { margin: 40px 0 72px; padding: 28px; border-radius: var(--radius-card); background: var(--mint, #DCEBDF); display: flex; gap: 24px; align-items: center; }
.pledge__badge { width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 5px var(--white); }
.pledge h2 { margin: 0 0 8px; font-size: 28px; }
.pledge p { margin: 0 0 12px; }
@media (max-width: 600px) { .pledge { flex-direction: column; text-align: center; } }

/* ---------- 31. Line icons ---------------------------------------- */
.icon { display: inline-block; flex-shrink: 0; vertical-align: -0.2em; }
.notice__icon { width: 20px; display: inline-flex; align-items: center; justify-content: center; }
.notice__icon .icon { width: 20px; height: 20px; }
.icon--bell { width: 22px; height: 22px; }
.icon--inline { width: 18px; height: 18px; vertical-align: -0.25em; margin-right: 2px; }
.icon--xs { width: 14px; height: 14px; vertical-align: -0.15em; }
.icon--title { width: 26px; height: 26px; vertical-align: -0.12em; margin-right: 4px; color: var(--poppy-deep); }
.shot-details > summary .icon { color: var(--poppy-deep); }
.with-icon { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 32. Contact ------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; padding-block: 56px 88px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 64px; } }
.contact__intro h1 { font-size: clamp(44px, 6vw, 72px); margin: 6px 0 14px; }
.contact__intro .body-l { margin: 0 0 22px; }
.contact__tips { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact__tips li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.contact__tips .icon { color: var(--poppy-deep); }
.contact__form { gap: 16px; }
.contact__form .btn { align-self: flex-start; }

/* ---------- 33. Location picker ----------------------------------- */
.lp { position: relative; display: flex; flex-direction: column; gap: 6px; }
.lp__box { position: relative; }
.lp__input { width: 100%; padding-right: 44px; }
.lp__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--stone); font-size: 22px; line-height: 1; cursor: pointer; }
.lp__clear:hover { background: var(--line-soft); color: var(--bark); }
.lp__list { position: absolute; z-index: 30; left: 0; right: 0; top: 50px; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); max-height: 320px; overflow-y: auto; }
.lp__opt { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 8px; cursor: pointer; min-height: 44px; justify-content: center; }
.lp__opt span { font-size: 13px; color: var(--stone); }
.lp__opt:hover, .lp__opt.is-active { background: var(--paper); }
.lp__opt--private { color: var(--fern); font-weight: 600; border-bottom: 1px solid var(--line-soft); border-radius: 8px 8px 0 0; }
.lp__none { padding: 10px 12px; font-size: 14px; color: var(--stone); }
.field__hint--warn { color: var(--poppy-deep); font-weight: 600; }
.comments__more { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-weight: 600; color: var(--poppy-deep); }
.map-hint { position: absolute; z-index: 500; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-pop); white-space: nowrap; }

/* ---------- 34. Location without a photo ------------------------------
   A soft palette tint with an avatar-style medallion (pin over hills). */
.loc-ph { display: flex; align-items: center; justify-content: center; background: var(--ph-bg); }
.loc-ph--0 { --ph-bg: #F6F1E6; --ph-disc: #EFE8DA; --ph-hill: #DCCDAF; --ph-ink: #A8875A; }
.loc-ph--1 { --ph-bg: #EEF4EF; --ph-disc: #DCEBDF; --ph-hill: #BCD6C3; --ph-ink: #3F7A55; }
.loc-ph--2 { --ph-bg: #FDF6E0; --ph-disc: #FBEFC8; --ph-hill: #F2DC96; --ph-ink: #B8912E; }
.loc-ph--3 { --ph-bg: #FCEBE6; --ph-disc: #F9DDD5; --ph-hill: #F2C3B6; --ph-ink: #C24F33; }
.loc-ph--4 { --ph-bg: #EDF2F5; --ph-disc: #E1E9EE; --ph-hill: #C5D5DF; --ph-ink: #3F6F85; }
.loc-ph__medal { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.loc-ph__art { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 5px var(--white), 0 0 0 6px var(--ph-hill); }
.loc-ph__disc { fill: var(--ph-disc); }
.loc-ph__hill { fill: var(--ph-hill); }
.loc-ph__hill--back { fill: var(--ph-hill); opacity: .55; }
.loc-ph__pin { fill: var(--ph-ink); }
.loc-ph__dot { fill: var(--white); }
.loc-ph__cap { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-ink); }
.loc-ph--lg .loc-ph__art { width: 140px; height: 140px; }
.loc-ph--lg .loc-ph__cap { font-size: 12px; }
.loc-ph__line { fill: none; stroke: var(--ph-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.loc-ph__line--soft { stroke-width: 2; opacity: .45; }
.loc-ph--sm .loc-ph__art { width: 44px; height: 44px; box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--ph-hill); }

/* ---------- 35. Places in a journal post + multi-picker ---------------- */
.post-places { margin: 36px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-places__title { font-size: 26px; margin: 0 0 14px; display: flex; align-items: center; gap: 6px; }
.post-places__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.place-card { display: flex; align-items: center; gap: 14px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); text-decoration: none; color: inherit; min-height: 44px; }
.place-card:hover { border-color: var(--fern); }
.place-card__media { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.place-card__media img { width: 100%; height: 100%; object-fit: cover; }
.place-card__media .loc-ph__art { width: 54px; height: 54px; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--ph-hill); }
.place-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.place-card__name { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.15; }
.place-card__go { color: var(--poppy-deep); font-weight: 700; padding-right: 6px; }
.lpm { display: flex; flex-direction: column; gap: 8px; }
.lpm__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lpm__chips:empty { display: none; }
.lpm__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; background: var(--mint, #DCEBDF); border-radius: 999px; font-size: 14px; }
.lpm__chip .icon { color: var(--fern); }
.lpm__remove { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.lpm__remove:hover { background: rgba(0,0,0,.07); color: var(--bark); }
.filter-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.filter-note__clear { margin-left: auto; font-size: 14px; font-weight: 600; }
.loc-ph__cap { display: inline-block; text-decoration: none; }

/* ---------- 36. Journal photos: editor, carousel, rotating covers ---- */
.form__row--single { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.pps { display: flex; flex-direction: column; gap: 10px; }
.pps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pps__list:empty { display: none; }
.pps__item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pps__item.is-busy { opacity: .6; }
.pps__img { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--paper); }
.pps__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pps__cover { display: none; position: absolute; top: 6px; left: 6px; background: var(--white); color: var(--bark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pps__item:first-child .pps__cover { display: inline-block; }
.pps__caption { min-height: 38px; font-size: 13px; padding: 6px 10px; }
.pps__tools { display: flex; justify-content: space-between; gap: 4px; }
.pps__btn { border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 600; min-width: 36px; min-height: 36px; border-radius: 8px; cursor: pointer; }
.pps__btn:hover { background: var(--paper); color: var(--bark); }
.pps__btn--remove { color: var(--poppy-deep); }
.pps__add { display: flex; gap: 10px; flex-wrap: wrap; }
.pps__add.is-full { display: none; }
.pps__upload { position: relative; overflow: hidden; }
.pps__upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pps__gallery { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pps__gallery-head { display: flex; justify-content: space-between; align-items: center; }
.pps__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; }
.pps__pick { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--paper); }
.pps__pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pps__pick:hover { border-color: var(--fern); }
.pps__pick:disabled { opacity: .35; cursor: default; border-color: transparent; }

.pc { display: flex; flex-direction: column; gap: 10px; }
.pc__track { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--bark); outline-offset: 3px; }
.pc--multi .pc__track { aspect-ratio: 3 / 2; }
.pc__slide img { width: 100%; display: block; }
.pc--multi .pc__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.pc--multi .pc__slide.is-active { opacity: 1; }
.pc--multi .pc__slide img { width: 100%; height: 100%; object-fit: contain; }
.pc__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--bark); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-pop); }
.pc__nav--prev { left: 14px; }
.pc__nav--next { right: 14px; }
.pc__count { position: absolute; right: 14px; bottom: 12px; background: rgba(34,34,31,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pc__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 22px; }
.pc__caption { font-size: 14px; color: var(--stone); }
.pc__dots { display: flex; gap: 6px; margin-left: auto; }
.pc__dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.pc__dot.is-active { background: var(--bark); }
@media (prefers-reduced-motion: reduce) { .pc--multi .pc__slide { transition: none; } }

[data-rotate] { position: relative; }
.rotate-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.rotate-layer.is-in { opacity: 1; }
