:root {
  --cork: #c4b49a;
  --cork-dark: #a4956c;
  /* --pin-red repurposed as primary deep navy — no actual red in this palette */
  --pin-red: #1a3a6b;
  --pin-blue: #1565a8;
  --pin-green: #0e7490;
  --pin-yellow: #b45309;   /* amber/gold — passes WCAG AA on all paper backgrounds */
  --pin-purple: #6d28d9;
  --pin-amber: #c46210;
  --paper-white: #fefae0;
  --paper-blue: #dbeafe;
  --paper-pink: #e0e7ff;   /* repurposed: periwinkle/indigo, not pink */
  --paper-green: #ccfbf1;  /* repurposed: teal wash, not green */
  --paper-yellow: #fef9c3;
  --paper-lavender: #ede9fe;
  --ink: #1e293b;
  --ink-light: #475569;
  --shadow: rgba(20, 30, 60, 0.22);
  --radius: 0.125rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  /* Cork texture background */
  background-color: var(--cork);
  background-image: url("/images/cork.jpg");
}

/* ── HEADER ── */
.site-header {
  background: var(--pin-red);   /* now deep navy */
  color: var(--paper-white);
  padding: 1rem 1.5rem;
  box-shadow: 0 0.25rem 0.75rem var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-family: 'Shrikhand', cursive;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper-white);
  text-decoration: none;
}

.logo:visited {
  color: var(--paper-white);
}

.logo-pin {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  background: #fbbf24;   /* bright gold pin dot — high contrast on navy */
  border-radius: 50%;
  border: 0.15rem solid var(--ink);
  box-shadow: 0.1rem 0.1rem 0 var(--ink);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--paper-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 0.15rem solid transparent;
  transition: border-color 0.2s;
}

.nav-links a:visited {
  color: var(--paper-white);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-bottom-color: #fbbf24;   /* gold underline on hover */
  outline: none;
}

/* Nav separator between page links and auth links */
.nav-divider {
  width: 0.06rem;
  height: 1rem;
  background: rgba(255, 255, 255, 0.35);
  align-self: center;
  flex-shrink: 0;
}

/* Sign Out is a form POST; style the button to match nav links */
.nav-btn-link {
  background: none;
  border: none;
  border-bottom: 0.15rem solid transparent;
  color: var(--paper-white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  cursor: pointer;
  transition: border-color 0.2s;
}

.nav-btn-link:hover,
.nav-btn-link:focus-visible {
  border-bottom-color: #fbbf24;
  outline: none;
}

.btn-post {
  background: #fbbf24;   /* bright gold accent — 8:1 contrast with --ink */
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0.15rem 0.15rem 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-post:hover,
.btn-post:focus-visible {
  transform: translate(-0.05rem, -0.05rem);
  box-shadow: 0.2rem 0.2rem 0 var(--ink);
  outline: none;
}

/* ── FILTERS BAR ── */
.filters-bar {
  max-width: 80rem;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.filters-inner {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  box-shadow: 0.2rem 0.2rem 0 var(--ink);
}

.search-wrap {
  flex: 1 1 14rem;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.25rem;
  border: 0.12rem solid var(--ink-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.search-wrap input:focus {
  outline: 0.15rem solid var(--pin-blue);
  outline-offset: 0.05rem;
}

.search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink-light);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border: 0.12rem solid var(--ink);
  border-radius: 1.5rem;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.chip:hover, .chip:focus-visible {
  transform: scale(1.04);
  outline: none;
}

.chip[aria-pressed="true"] {
  color: var(--paper-white);
}

.chip-yard  { --chip-color: var(--pin-green); }
.chip-clean { --chip-color: var(--pin-blue); }
.chip-handy { --chip-color: var(--pin-red); }    /* deep navy */
.chip-move  { --chip-color: var(--pin-yellow); } /* amber */
.chip-tech  { --chip-color: var(--pin-purple); }
.chip-errand { --chip-color: var(--pin-amber); }

.chip[aria-pressed="true"] { background: var(--chip-color); border-color: var(--chip-color); }
.chip:hover { background: color-mix(in srgb, var(--chip-color) 15%, white); }

/* ── BOARD ── */
.board {
  max-width: 80rem;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  column-gap: 1.25rem;
}

.board--cols-1 { columns: 1; }
.board--cols-2 { columns: 2; }
.board--cols-3 { columns: 3; }

@media (max-width: 64rem) {
  .board--cols-3 { columns: 2; }
}

@media (max-width: 40rem) {
  .board--cols-2,
  .board--cols-3 { columns: 1; }
}

/* ── CARD (pinned note) ── */
.card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border: 0.12rem solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1rem;
  position: relative;
  box-shadow: 0.15rem 0.25rem 0.6rem var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-0.2rem) rotate(0deg);
  box-shadow: 0.2rem 0.35rem 1rem var(--shadow);
}

/* Slight random rotations via nth-child */
.card:nth-child(4n+1) { transform: rotate(-0.8deg); background: var(--paper-white); }
.card:nth-child(4n+2) { transform: rotate(0.5deg);  background: var(--paper-blue); }
.card:nth-child(4n+3) { transform: rotate(-0.3deg); background: var(--paper-pink); }   /* periwinkle */
.card:nth-child(4n)   { transform: rotate(0.6deg);  background: var(--paper-green); }  /* teal wash */
.card:nth-child(5n)   { background: var(--paper-yellow); }
.card:nth-child(7n)   { background: var(--paper-lavender); }

.card:hover { transform: translateY(-0.15rem) rotate(0deg) !important; }

/* Pushpin */
.card::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  box-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.3);
  z-index: 2;
}

.card:nth-child(4n+1)::before { background: var(--pin-red); }     /* navy */
.card:nth-child(4n+2)::before { background: var(--pin-blue); }    /* medium blue */
.card:nth-child(4n+3)::before { background: var(--pin-green); }   /* teal */
.card:nth-child(4n)::before   { background: #fbbf24; }            /* bright gold */

.card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.55rem;
  border-radius: 0.15rem;
  background: rgba(0,0,0,0.08);
  margin-bottom: 0.6rem;
}

.card-title {
  font-family: 'Shrikhand', cursive;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover,
.card-title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.12rem;
  text-underline-offset: 0.15rem;
  outline: none;
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-light);
  border-top: 0.08rem dashed rgba(0,0,0,0.15);
  padding-top: 0.6rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-rate {
  font-family: 'Shrikhand', cursive;
  font-size: 1.1rem;
  color: var(--pin-yellow);   /* amber/gold instead of red */
}

.card-stars {
  color: var(--pin-yellow);   /* amber — passes contrast on all paper backgrounds */
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.card-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 0.12rem solid var(--ink);
  background: var(--pin-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 40rem) {

  /*
   * Keep header as a wrapping row so logo + btn-post stay on the same line.
   * nav-links gets width:100% to force it onto its own second row.
   */
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.25rem;
    flex: 1 1 0;   /* grow to fill space between logo and button */
  }

  .nav-links {
    width: 100%;   /* force onto second row */
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    justify-content: flex-start;
  }

  /* Hide the visual divider on mobile — auth links are already
     visually separated by wrapping to their own row */
  .nav-divider { display: none; }

  .filters-inner { flex-direction: column; }

  /*
   * flex: 1 1 14rem means flex-grow:1. In a column flex container that
   * causes the element to stretch vertically to fill the parent's height.
   * Override with flex:none so the search box is only as tall as its input.
   */
  .search-wrap {
    width: 100%;
    flex: none;
  }
}

/* ── ANIMATIONS ── */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-1.5rem) rotate(0); }
  to { opacity: 1; }
}

.card {
  animation: dropIn 0.4s ease-out both;
}

.card:nth-child(1)  { animation-delay: 0.02s; }
.card:nth-child(2)  { animation-delay: 0.06s; }
.card:nth-child(3)  { animation-delay: 0.1s; }
.card:nth-child(4)  { animation-delay: 0.14s; }
.card:nth-child(5)  { animation-delay: 0.18s; }
.card:nth-child(6)  { animation-delay: 0.22s; }
.card:nth-child(7)  { animation-delay: 0.26s; }
.card:nth-child(8)  { animation-delay: 0.3s; }
.card:nth-child(9)  { animation-delay: 0.34s; }
.card:nth-child(10) { animation-delay: 0.38s; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999rem;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper-white);
  padding: 0.5rem 1rem;
  z-index: 200;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { left: 0.5rem; }


/* ═══════════════════════════════════════════════════════════════
   SHARED COMPONENTS
   Used across multiple pages.
   ═══════════════════════════════════════════════════════════════ */

/* ── SHARED BUTTONS ── */

/* Primary filled button — used on Index hero and elsewhere */
.btn-primary {
  background: var(--pin-red);
  color: var(--paper-white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0.15rem 0.15rem 0 var(--ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-block;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translate(-0.05rem, -0.05rem);
  box-shadow: 0.2rem 0.2rem 0 var(--ink);
  outline: none;
}

/* Secondary ghost button — used on Index hero */
.btn-secondary {
  background: var(--paper-white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0.15rem 0.15rem 0 var(--ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  display: inline-block;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translate(-0.05rem, -0.05rem);
  box-shadow: 0.2rem 0.2rem 0 var(--ink);
  background: var(--paper-yellow);
  outline: none;
}

/* Full-width form submit — Login, Register */
.btn-submit {
  width: 100%;
  background: var(--pin-red);
  color: var(--paper-white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.65rem 1.25rem;
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0.15rem 0.15rem 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-bottom: 1.1rem;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  transform: translate(-0.05rem, -0.05rem);
  box-shadow: 0.2rem 0.2rem 0 var(--ink);
  outline: none;
}

/* Inline save button — Account page */
.btn-save {
  background: var(--pin-red);
  color: var(--paper-white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.5rem;
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0.15rem 0.15rem 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-save:hover,
.btn-save:focus-visible {
  transform: translate(-0.05rem, -0.05rem);
  box-shadow: 0.2rem 0.2rem 0 var(--ink);
  outline: none;
}

/* Destructive button — Account danger zone */
.btn-danger {
  background: transparent;
  color: #b91c1c;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border: 0.12rem solid #b91c1c;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: #b91c1c;
  color: #fff;
  outline: none;
}

/* ── FORM FIELDS ── */
/* Used on Login, Register, and Account pages. */

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.1rem;
}

/* Two-column field pair — Account page password section */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
}

.field-label .required-mark {
  color: #b91c1c;
  margin-left: 0.15rem;
  font-size: 0.75rem;
}

.field-label .optional-mark {
  color: var(--ink-light);
  font-weight: 400;
  font-size: 0.78rem;
  margin-left: 0.3rem;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--ink-light);
}

.field-input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 0.12rem solid var(--ink-light);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, outline 0.15s;
}

.field-input:focus {
  border-color: var(--pin-blue);
  outline: 0.15rem solid var(--pin-blue);
  outline-offset: 0.05rem;
}

.field-input[aria-invalid="true"] {
  border-color: #dc2626;
}

.field-error {
  font-size: 0.8rem;
  color: #b91c1c;
  font-weight: 500;
}

/* Custom select — matches field-input style */
.field-select {
  width: 100%;
  padding: 0.55rem 2.25rem 0.55rem 0.8rem;
  border: 0.12rem solid var(--ink-light);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background-color: #fff;
  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' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
}

.field-select:focus {
  border-color: var(--pin-blue);
  outline: 0.15rem solid var(--pin-blue);
  outline-offset: 0.05rem;
}

/* Dashed rule between form sections */
.fields-divider {
  border: none;
  border-top: 0.08rem dashed rgba(0,0,0,0.18);
  margin: 1.5rem 0 1.25rem;
}

/* Small uppercase label above a form section */
.fields-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

/* Checkbox + label row */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.check-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--pin-blue);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.check-row label {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.45;
  cursor: pointer;
}

.check-row label a {
  color: var(--pin-blue);
  font-weight: 600;
  text-underline-offset: 0.12rem;
}

/* ── FORM FEEDBACK BANNERS ── */

/* Validation error summary — Login, Register */
.validation-summary {
  background: #fef2f2;
  border: 0.12rem solid #fca5a5;
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #991b1b;
}

.validation-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* Success status message — Account page */
.alert-success {
  background: #f0fdf4;
  border: 0.12rem solid #86efac;
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #166534;
  font-weight: 500;
}

/* ── AUTH LAYOUT ── */
/* Shared between Login and Register. */

.auth-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  gap: 2rem;
}

/* The main form, styled as a pinned note */
.auth-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem 2rem;
  width: 100%;
  max-width: 26rem;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  position: relative;
  animation: dropIn 0.4s ease-out both;
  flex-shrink: 0;
}

/* Pushpin — colour set per-page via modifier classes below */
.auth-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.12rem 0.25rem rgba(0,0,0,0.4);
  z-index: 2;
}

/* Login page: navy pin, slight counter-clockwise tilt */
.auth-note--login {
  transform: rotate(-0.4deg);
}
.auth-note--login::before {
  background: var(--pin-red);
}

/* Register page: gold pin, slight clockwise tilt */
.auth-note--register {
  transform: rotate(0.35deg);
  max-width: 28rem;
}
.auth-note--register::before {
  background: #fbbf24;
}

.auth-heading {
  font-family: 'Shrikhand', cursive;
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.auth-subheading {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 1.75rem;
}

.auth-subheading a {
  color: var(--pin-blue);
  font-weight: 600;
  text-underline-offset: 0.15rem;
}

/* "or" rule divider between submit and register link */
.auth-divider {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-bottom: 1.1rem;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 0.06rem;
  background: rgba(0,0,0,0.15);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-register-link {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-light);
}

.auth-register-link a {
  color: var(--pin-blue);
  font-weight: 600;
  text-underline-offset: 0.15rem;
}

/* Decorative scrap notes shown beside the auth form on wider screens */
.auth-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
}

.scrap-note {
  background: var(--paper-yellow);
  border: 0.12rem solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  max-width: 13rem;
  box-shadow: 0.12rem 0.2rem 0.4rem var(--shadow);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-light);
  position: relative;
  animation: dropIn 0.4s ease-out both;
}

.scrap-note::before {
  content: '';
  position: absolute;
  top: -0.4rem;
  left: 1.2rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #fbbf24;
  border: 0.08rem solid var(--ink);
  box-shadow: 0 0.08rem 0.15rem rgba(0,0,0,0.3);
}

.scrap-note strong {
  display: block;
  font-family: 'Shrikhand', cursive;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

/* Login scrap note rotations and colours */
.auth-aside--login .scrap-note:nth-child(1) { transform: rotate(1.2deg); animation-delay: 0.2s; }
.auth-aside--login .scrap-note:nth-child(2) { transform: rotate(-0.8deg); background: var(--paper-blue); animation-delay: 0.35s; }

/* Register scrap note rotations and colours */
.auth-aside--register .scrap-note:nth-child(1) { transform: rotate(-1deg); animation-delay: 0.2s; }
.auth-aside--register .scrap-note:nth-child(2) { transform: rotate(0.8deg); background: var(--paper-green); animation-delay: 0.35s; }
.auth-aside--register .scrap-note:nth-child(1)::before { background: var(--pin-green); }
.auth-aside--register .scrap-note:nth-child(2)::before { background: var(--pin-blue); }

@media (max-width: 48rem) {
  .auth-aside { display: none; }
  .auth-stage { padding: 2rem 1rem 3rem; }
}


/* ═══════════════════════════════════════════════════════════════
   INDEX PAGE
   ═══════════════════════════════════════════════════════════════ */

.hero {
  max-width: 80rem;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  position: relative;
  transform: rotate(-0.6deg);
  animation: dropIn 0.45s ease-out both;
}

.hero-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fbbf24;
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.1rem 0.25rem rgba(0,0,0,0.35);
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 0.65rem;
}

.hero-title {
  font-family: 'Shrikhand', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
  word-break: break-word;
}

@media (max-width: 40rem) {
  .hero-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
  }
}

.hero-title .highlight {
  color: var(--pin-blue);
  display: inline-block;
  border-bottom: 0.2rem solid #fbbf24;
}

.hero-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.how-strip {
  max-width: 80rem;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.how-card {
  background: var(--paper-yellow);
  border: 0.12rem solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.1rem;
  position: relative;
  box-shadow: 0.15rem 0.25rem 0.5rem var(--shadow);
  break-inside: avoid;
}

.how-card:nth-child(1) { transform: rotate(-0.4deg); animation: dropIn 0.4s 0.1s ease-out both; }
.how-card:nth-child(2) { transform: rotate(0.3deg);  background: var(--paper-blue); animation: dropIn 0.4s 0.2s ease-out both; }
.how-card:nth-child(3) { transform: rotate(-0.2deg); background: var(--paper-lavender); animation: dropIn 0.4s 0.3s ease-out both; }

.how-card::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  box-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.3);
  z-index: 2;
}

.how-card:nth-child(1)::before { background: var(--pin-yellow); border: 0.1rem solid var(--ink); }
.how-card:nth-child(2)::before { background: var(--pin-blue);   border: 0.1rem solid var(--ink); }
.how-card:nth-child(3)::before { background: var(--pin-purple); border: 0.1rem solid var(--ink); }

.how-number {
  font-family: 'Shrikhand', cursive;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(0,0,0,0.1);
  margin-bottom: 0.4rem;
  user-select: none;
}

.how-heading {
  font-family: 'Shrikhand', cursive;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.how-body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-light);
}

.teaser-label {
  max-width: 80rem;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

.teaser-label h2 {
  font-family: 'Shrikhand', cursive;
  font-size: 1.4rem;
  color: var(--paper-white);
  text-shadow: 0.05rem 0.05rem 0 rgba(0,0,0,0.4);
}

.categories {
  max-width: 80rem;
  margin: 2.5rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.cat-card {
  background: var(--paper-white);
  border: 0.12rem solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 1.1rem 0.75rem 0.9rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0.12rem 0.2rem 0.4rem var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  display: block;
  animation: dropIn 0.4s ease-out both;
}

.cat-card:visited { color: var(--ink); }

.cat-card:nth-child(1) { transform: rotate(-0.5deg); animation-delay: 0.05s; background: var(--paper-green); }
.cat-card:nth-child(2) { transform: rotate(0.4deg);  animation-delay: 0.1s;  background: var(--paper-blue); }
.cat-card:nth-child(3) { transform: rotate(-0.3deg); animation-delay: 0.15s; background: var(--paper-pink); }
.cat-card:nth-child(4) { transform: rotate(0.6deg);  animation-delay: 0.2s;  background: var(--paper-yellow); }
.cat-card:nth-child(5) { transform: rotate(-0.4deg); animation-delay: 0.25s; background: var(--paper-lavender); }
.cat-card:nth-child(6) { transform: rotate(0.3deg);  animation-delay: 0.3s;  background: var(--paper-white); }

.cat-card:hover,
.cat-card:focus-visible {
  transform: translateY(-0.2rem) rotate(0deg) !important;
  box-shadow: 0.2rem 0.35rem 0.75rem var(--shadow);
  outline: none;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: -0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  box-shadow: 0 0.08rem 0.15rem rgba(0,0,0,0.3);
}

.cat-card:nth-child(1)::before { background: var(--pin-green);  border: 0.1rem solid var(--ink); }
.cat-card:nth-child(2)::before { background: var(--pin-blue);   border: 0.1rem solid var(--ink); }
.cat-card:nth-child(3)::before { background: var(--pin-red);    border: 0.1rem solid var(--ink); }
.cat-card:nth-child(4)::before { background: var(--pin-yellow); border: 0.1rem solid var(--ink); }
.cat-card:nth-child(5)::before { background: var(--pin-purple); border: 0.1rem solid var(--ink); }
.cat-card:nth-child(6)::before { background: var(--pin-amber);  border: 0.1rem solid var(--ink); }

.cat-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.cat-name {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-illustration {
  animation: dropIn 0.5s 0.15s ease-out both;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.preview-card {
  background: var(--paper-white);
  border: 0.12rem solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  padding: 1rem 0.9rem 0.75rem;
  position: relative;
  box-shadow: 0.12rem 0.2rem 0.5rem var(--shadow);
}

.preview-card:nth-child(1) { transform: rotate(-0.7deg); background: var(--paper-blue); }
.preview-card:nth-child(2) { transform: rotate(0.5deg);  background: var(--paper-yellow); }
.preview-card:nth-child(3) { transform: rotate(0.4deg);  background: var(--paper-green); }
.preview-card:nth-child(4) { transform: rotate(-0.5deg); background: var(--paper-lavender); }

.preview-card::before {
  content: '';
  position: absolute;
  top: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  box-shadow: 0 0.08rem 0.15rem rgba(0,0,0,0.3);
}

.preview-card:nth-child(1)::before { background: var(--pin-blue);  border: 0.08rem solid var(--ink); }
.preview-card:nth-child(2)::before { background: #fbbf24;          border: 0.08rem solid var(--ink); }
.preview-card:nth-child(3)::before { background: var(--pin-green); border: 0.08rem solid var(--ink); }
.preview-card:nth-child(4)::before { background: var(--pin-purple);border: 0.08rem solid var(--ink); }

.preview-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-light);
  margin-bottom: 0.25rem;
}

.preview-title {
  font-family: 'Shrikhand', cursive;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.preview-rate {
  font-family: 'Shrikhand', cursive;
  font-size: 0.95rem;
  color: var(--pin-yellow);
}

@media (max-width: 64rem) {
  .hero                { grid-template-columns: 1fr; }
  .hero-illustration   { display: none; }
  .how-strip           { grid-template-columns: 1fr; }
  .categories          { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 40rem) {
  .categories { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════════════════════════
   ACCOUNT PAGE
   ═══════════════════════════════════════════════════════════════ */

.account-stage {
  max-width: 56rem;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Sidebar nav — styled as a small pinned note */
.account-nav-note {
  background: var(--paper-yellow);
  border: 0.12rem solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  position: relative;
  box-shadow: 0.12rem 0.2rem 0.4rem var(--shadow);
  transform: rotate(-0.4deg);
  animation: dropIn 0.4s ease-out both;
}

.account-nav-note::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--pin-yellow);
  border: 0.1rem solid var(--ink);
  box-shadow: 0 0.08rem 0.2rem rgba(0,0,0,0.3);
  z-index: 2;
}

.account-nav-heading {
  font-family: 'Shrikhand', cursive;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.account-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.account-nav-list a {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.12s;
  border-left: 0.2rem solid transparent;
}

.account-nav-list a:hover,
.account-nav-list a:focus-visible {
  background: rgba(0,0,0,0.06);
  outline: none;
}

.account-nav-list a[aria-current="page"] {
  border-left-color: var(--pin-blue);
  background: rgba(21, 101, 168, 0.08);
  color: var(--pin-blue);
}

.account-nav-list .nav-danger a {
  color: #b91c1c;
}

.account-nav-list .nav-danger a:hover {
  background: rgba(185,28,28,0.07);
}

/* Main content card */
.account-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  position: relative;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  transform: rotate(0.25deg);
  animation: dropIn 0.4s 0.1s ease-out both;
}

.account-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--pin-blue);
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.12rem 0.25rem rgba(0,0,0,0.4);
  z-index: 2;
}

.section-heading {
  font-family: 'Shrikhand', cursive;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.section-subheading {
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-bottom: 1.75rem;
}

/* Avatar + username summary row */
.avatar-block {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.08rem dashed rgba(0,0,0,0.18);
}

.avatar-large {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 0.15rem solid var(--ink);
  background: var(--pin-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
  box-shadow: 0.1rem 0.1rem 0 var(--ink);
}

.avatar-info strong {
  display: block;
  font-family: 'Shrikhand', cursive;
  font-size: 1.1rem;
  color: var(--ink);
}

.avatar-info span {
  font-size: 0.85rem;
  color: var(--ink-light);
}

/* Row of form action buttons */
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Danger zone block */
.danger-zone {
  background: #fff5f5;
  border: 0.12rem solid #fca5a5;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.danger-heading {
  font-family: 'Shrikhand', cursive;
  font-size: 1rem;
  color: #b91c1c;
  margin-bottom: 0.35rem;
}

.danger-body {
  font-size: 0.85rem;
  color: #7f1d1d;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Password change — CSS-only disclosure via <details> */
details.password-details summary {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--pin-blue);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0;
  padding: 0.2rem 0;
  border-bottom: 0.1rem dashed var(--pin-blue);
}

details.password-details summary::-webkit-details-marker { display: none; }

details.password-details summary::after {
  content: '▸';
  font-size: 0.75rem;
  transition: transform 0.2s;
  display: inline-block;
}

details.password-details[open] summary::after {
  transform: rotate(90deg);
}

details.password-details .password-fields {
  padding-top: 1.1rem;
}

@media (max-width: 52rem) {
  .account-stage {
    grid-template-columns: 1fr;
  }

  .account-nav-note {
    transform: none;
  }

  .account-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }

  /* Switch from left-border to bottom-border indicator on mobile */
  .account-nav-list a {
    border-left: none;
    border-bottom: 0.2rem solid transparent;
  }

  .account-nav-list a[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: var(--pin-blue);
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SHARED NEW COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* textarea variant of .field-input */
.field-textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.6;
}

/* Rate input with $ prefix */
.rate-input-wrap {
  position: relative;
}

.rate-prefix {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--ink-light);
  pointer-events: none;
  font-size: 0.95rem;
  line-height: 1;
}

.rate-input {
  padding-left: 1.6rem !important;
}

/* Availability day-picker checkboxes */
.avail-fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1.1rem;
}

.avail-fieldset legend {
  margin-bottom: 0.6rem;
  float: left;
  width: 100%;
}

.avail-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.avail-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border: 0.12rem solid var(--ink-light);
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  background: #fff;
  color: var(--ink);
  user-select: none;
}

.avail-chip input[type="checkbox"] {
  width: 0.85rem;
  height: 0.85rem;
  accent-color: var(--pin-blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* :has() is well-supported in all modern browsers */
.avail-chip:has(input:checked) {
  background: var(--pin-blue);
  border-color: var(--pin-blue);
  color: #fff;
}


/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════ */

.about-stage {
  max-width: 80rem;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ── Hero ── */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 14rem;
  gap: 2rem;
  align-items: start;
  padding-top: 2.5rem;
}

.about-hero-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  position: relative;
  transform: rotate(-0.4deg);
  animation: dropIn 0.45s ease-out both;
}

.about-hero-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fbbf24;
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.1rem 0.25rem rgba(0,0,0,0.35);
  z-index: 2;
}

.about-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
}

.about-scrap-1 {
  transform: rotate(1.1deg);
  animation: dropIn 0.4s 0.2s ease-out both;
}

.about-scrap-2 {
  transform: rotate(-0.8deg);
  background: var(--paper-green);
  animation: dropIn 0.4s 0.35s ease-out both;
}

.about-scrap-2::before { background: var(--pin-green); }

/* ── Sections ── */
.about-section-title {
  font-family: 'Shrikhand', cursive;
  font-size: 1.5rem;
  color: var(--ink);
  text-shadow: 0.05rem 0.05rem 0 rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

/* ── Steps ── */
.about-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.about-step-card {
  background: var(--paper-yellow);
  border: 0.12rem solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.1rem;
  position: relative;
  box-shadow: 0.15rem 0.25rem 0.5rem var(--shadow);
}

.about-step-card:nth-child(1) { transform: rotate(-0.5deg); animation: dropIn 0.4s 0.05s ease-out both; }
.about-step-card:nth-child(2) { transform: rotate(0.4deg);  background: var(--paper-blue);     animation: dropIn 0.4s 0.10s ease-out both; }
.about-step-card:nth-child(3) { transform: rotate(-0.3deg); background: var(--paper-green);    animation: dropIn 0.4s 0.15s ease-out both; }
.about-step-card:nth-child(4) { transform: rotate(0.5deg);  background: var(--paper-lavender); animation: dropIn 0.4s 0.20s ease-out both; }

.about-step-card::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 0.1rem solid var(--ink);
  box-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.3);
  z-index: 2;
}

.about-step-card:nth-child(1)::before { background: var(--pin-yellow); }
.about-step-card:nth-child(2)::before { background: var(--pin-blue); }
.about-step-card:nth-child(3)::before { background: var(--pin-green); }
.about-step-card:nth-child(4)::before { background: var(--pin-purple); }

/* ── Who it's for ── */
.about-who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.about-who-card {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  box-shadow: 0.2rem 0.25rem 0 var(--ink);
}

.about-who-card--hire   { transform: rotate(-0.5deg); background: var(--paper-blue);  animation: dropIn 0.4s 0.05s ease-out both; }
.about-who-card--offer  { transform: rotate(0.4deg);  background: var(--paper-green); animation: dropIn 0.4s 0.12s ease-out both; }

.about-who-card::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.3);
  z-index: 2;
}

.about-who-card--hire::before  { background: var(--pin-blue); }
.about-who-card--offer::before { background: var(--pin-green); }

.about-who-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.about-who-heading {
  font-family: 'Shrikhand', cursive;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.about-who-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.about-who-list li {
  font-size: 0.9rem;
  color: var(--ink-light);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.45;
}

.about-who-list li::before {
  content: '›';
  position: absolute;
  left: 0.25rem;
  font-weight: 700;
  color: var(--pin-blue);
}

/* ── FAQ ── */
.about-faq-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem 2.25rem;
  box-shadow: 0.2rem 0.25rem 0 var(--ink);
  position: relative;
  transform: rotate(-0.2deg);
  animation: dropIn 0.4s ease-out both;
}

.about-faq-note::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--pin-red);
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.3);
  z-index: 2;
}

.faq-item {
  border-bottom: 0.08rem dashed rgba(0,0,0,0.15);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--ink);
  cursor: pointer;
  padding: 0.9rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '▸';
  font-size: 0.8rem;
  color: var(--ink-light);
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] > .faq-question::after { transform: rotate(90deg); }

.faq-answer {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.65;
  padding-bottom: 1rem;
}

/* ── CTA note ── */
.about-cta-note {
  background: var(--paper-yellow);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem 2.25rem;
  text-align: center;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  position: relative;
  transform: rotate(0.3deg);
  animation: dropIn 0.4s ease-out both;
}

.about-cta-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fbbf24;
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.1rem 0.25rem rgba(0,0,0,0.35);
  z-index: 2;
}

.about-cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.about-cta-heading {
  font-family: 'Shrikhand', cursive;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.about-cta-body {
  font-size: 1rem;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── About responsive ── */
@media (max-width: 64rem) {
  .about-hero        { grid-template-columns: 1fr; }
  .about-hero-aside  { display: none; }
  .about-steps       { grid-template-columns: 1fr 1fr; }
  .about-who-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  .about-steps { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   LISTING DETAIL PAGE
   ═══════════════════════════════════════════════════════════════ */

.listing-stage {
  max-width: 72rem;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 19rem;
  gap: 1.5rem;
  align-items: start;
}

.listing-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Main detail note ── */
.listing-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2rem;
  position: relative;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  transform: rotate(-0.3deg);
  animation: dropIn 0.4s ease-out both;
}

.listing-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--pin-red);
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.12rem 0.25rem rgba(0,0,0,0.4);
  z-index: 2;
}

.listing-title {
  font-family: 'Shrikhand', cursive;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin: 0.5rem 0 0.5rem;
  color: var(--ink);
}

.listing-rating-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.listing-rating-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.listing-rating-count {
  font-size: 0.85rem;
  color: var(--ink-light);
}

.listing-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.08rem dashed rgba(0,0,0,0.15);
}

.listing-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.listing-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.listing-detail-item dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

.listing-detail-item dd {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

/* ── Reviews note ── */
.listing-reviews-note {
  background: var(--paper-yellow);
  border: 0.12rem solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.25rem;
  box-shadow: 0.15rem 0.2rem 0.5rem var(--shadow);
  position: relative;
  transform: rotate(0.25deg);
  animation: dropIn 0.4s 0.1s ease-out both;
}

.listing-reviews-note::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fbbf24;
  border: 0.1rem solid var(--ink);
  box-shadow: 0 0.08rem 0.18rem rgba(0,0,0,0.3);
  z-index: 2;
}

.listing-reviews-heading {
  font-family: 'Shrikhand', cursive;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.listing-reviews-count {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-light);
}

.review-item {
  padding: 0.9rem 0;
  border-bottom: 0.08rem dashed rgba(0,0,0,0.12);
}

.review-item:first-of-type { padding-top: 0; }
.review-item:last-child     { border-bottom: none; padding-bottom: 0; }

.review-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.review-avatar {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.review-author { font-size: 0.85rem; color: var(--ink); }
.review-stars  { font-size: 0.75rem; }

.review-date {
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-left: auto;
  white-space: nowrap;
}

.review-body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-light);
}

/* ── Sidebar ── */
.listing-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(4rem + 1.5rem);
}

.listing-provider-note {
  background: var(--paper-blue);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0.2rem 0.25rem 0 var(--ink);
  position: relative;
  transform: rotate(0.4deg);
  animation: dropIn 0.4s 0.05s ease-out both;
}

.listing-provider-note::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--pin-blue);
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.3);
  z-index: 2;
}

.listing-provider-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 0.08rem dashed rgba(0,0,0,0.15);
}

.listing-provider-avatar {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0.1rem 0.1rem 0 var(--ink);
}

.listing-provider-name {
  display: block;
  font-family: 'Shrikhand', cursive;
  font-size: 1.05rem;
  color: var(--ink);
}

.listing-provider-since {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-top: 0.15rem;
}

.listing-provider-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.listing-provider-stats dt {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-light);
}

.listing-provider-stats dd {
  font-family: 'Shrikhand', cursive;
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 0.1rem;
}

.listing-contact-btn {
  width: 100%;
  text-align: center;
  display: block;
}

.listing-safety-note {
  background: var(--paper-lavender);
  border: 0.12rem solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0.12rem 0.18rem 0.4rem var(--shadow);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-light);
  position: relative;
  transform: rotate(-0.5deg);
  animation: dropIn 0.4s 0.12s ease-out both;
}

.listing-safety-note::before {
  content: '';
  position: absolute;
  top: -0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--pin-purple);
  border: 0.08rem solid var(--ink);
  box-shadow: 0 0.08rem 0.15rem rgba(0,0,0,0.3);
}

.listing-safety-note strong {
  display: block;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.listing-safety-note ul {
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ── Listing responsive ── */
@media (max-width: 56rem) {
  .listing-stage   { grid-template-columns: 1fr; }
  .listing-sidebar { position: static; }
}


/* ═══════════════════════════════════════════════════════════════
   POST A SERVICE PAGE
   ═══════════════════════════════════════════════════════════════ */

.post-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  gap: 2rem;
}

.post-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem 2rem;
  width: 100%;
  max-width: 34rem;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  position: relative;
  animation: dropIn 0.4s ease-out both;
  flex-shrink: 0;
  transform: rotate(-0.3deg);
}

.post-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--pin-green);
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.12rem 0.25rem rgba(0,0,0,0.4);
  z-index: 2;
}

/* Post aside scrap notes */
.auth-aside--post { padding-top: 3rem; }

.post-scrap-1 {
  transform: rotate(-0.9deg);
  animation: dropIn 0.4s 0.2s ease-out both;
}

.post-scrap-2 {
  transform: rotate(0.6deg);
  background: var(--paper-green);
  animation: dropIn 0.4s 0.35s ease-out both;
}

.post-scrap-1::before { background: var(--pin-green); }
.post-scrap-2::before { background: var(--pin-blue); }

@media (max-width: 48rem) {
  .post-stage { padding: 2rem 1rem 3rem; }
  .auth-aside--post { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   MESSAGE A PROVIDER PAGE
   ═══════════════════════════════════════════════════════════════ */

.msg-new-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  gap: 2rem;
}

.msg-new-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem 2rem;
  width: 100%;
  max-width: 30rem;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  position: relative;
  animation: dropIn 0.4s ease-out both;
  flex-shrink: 0;
  transform: rotate(0.3deg);
}

.msg-new-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--pin-blue);
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.12rem 0.25rem rgba(0,0,0,0.4);
  z-index: 2;
}

.msg-listing-context {
  background: var(--paper-blue);
  border: 0.1rem solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.msg-listing-title {
  font-family: 'Shrikhand', cursive;
  font-size: 0.95rem;
  color: var(--ink);
  flex: 1;
}

/* Aside scrap notes */
.auth-aside--msg { padding-top: 3rem; }

.msg-scrap-1 {
  transform: rotate(1deg);
  animation: dropIn 0.4s 0.2s ease-out both;
}

.msg-scrap-2 {
  transform: rotate(-0.7deg);
  background: var(--paper-lavender);
  animation: dropIn 0.4s 0.35s ease-out both;
}

.msg-scrap-1::before { background: var(--pin-blue); }
.msg-scrap-2::before { background: var(--pin-purple); }

@media (max-width: 48rem) {
  .msg-new-stage { padding: 2rem 1rem 3rem; }
  .auth-aside--msg { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   MESSAGES INBOX PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Hidden radio inputs drive thread selection via CSS sibling selectors.
   Must remain in DOM (not display:none) so :checked still matches. */
.thread-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  pointer-events: none;
}

.messages-stage {
  max-width: 80rem;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 20rem 1fr;
  gap: 0; /* panels share a border */
  min-height: calc(100vh - 10rem);
}

/* ── Thread list panel ── */
.threads-panel {
  background: var(--paper-yellow);
  border: 0.15rem solid var(--ink);
  border-right: none; /* merged with thread panel border */
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.threads-heading {
  font-family: 'Shrikhand', cursive;
  font-size: 1.25rem;
  color: var(--ink);
  padding: 1.25rem 1.25rem 0.9rem;
  border-bottom: 0.08rem dashed rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.thread-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 0.06rem solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--ink);
}

.thread-item:hover { background: rgba(0,0,0,0.04); }
.thread-item:focus-visible {
  outline: 0.15rem solid var(--pin-blue);
  outline-offset: -0.15rem;
}

.thread-item-avatar {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.thread-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0; /* allow text-overflow */
}

.thread-item-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-item-subject {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-item-preview {
  font-size: 0.78rem;
  color: var(--ink-light);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
}

.thread-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.thread-item-date {
  font-size: 0.72rem;
  color: var(--ink-light);
  white-space: nowrap;
}

.thread-unread {
  background: var(--pin-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Active thread item — driven by CSS sibling selectors on the hidden radios */
#thread-1:checked ~ .threads-panel label[for="thread-1"],
#thread-2:checked ~ .threads-panel label[for="thread-2"],
#thread-3:checked ~ .threads-panel label[for="thread-3"] {
  background: rgba(21,101,168,0.12);
  border-left: 0.2rem solid var(--pin-blue);
}

/* ── Thread panels container ── */
.thread-panels {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
}

/* All panels hidden by default */
.thread-panel {
  display: none;
  flex-direction: column;
  height: 100%;
}

/* Show the selected panel */
#thread-1:checked ~ .thread-panels #panel-t1 { display: flex; }
#thread-2:checked ~ .thread-panels #panel-t2 { display: flex; }
#thread-3:checked ~ .thread-panels #panel-t3 { display: flex; }

.thread-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 0.08rem solid rgba(0,0,0,0.1);
  background: var(--paper-blue);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.thread-panel-avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.thread-panel-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.thread-panel-title strong {
  font-family: 'Shrikhand', cursive;
  font-size: 1rem;
  color: var(--ink);
}

.thread-panel-title span {
  font-size: 0.8rem;
  color: var(--ink-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-panel-listing-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
}

/* ── Message bubbles ── */
.thread-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 70%;
}

.message--sent {
  align-self: flex-end;
  align-items: flex-end;
}

.message--received {
  align-self: flex-start;
  align-items: flex-start;
}

.message-bubble {
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.message--sent .message-bubble {
  background: var(--pin-blue);
  color: #fff;
  border-bottom-right-radius: 0.15rem;
}

.message--received .message-bubble {
  background: var(--paper-yellow);
  color: var(--ink);
  border: 0.08rem solid rgba(0,0,0,0.1);
  border-bottom-left-radius: 0.15rem;
}

.message-time {
  font-size: 0.72rem;
  color: var(--ink-light);
  padding: 0 0.25rem;
}

/* ── Reply action ── */
.thread-panel-footer {
  border-top: 0.08rem solid rgba(0,0,0,0.1);
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  background: var(--paper-white);
}

/* ── Messages responsive ── */
@media (max-width: 56rem) {
  .messages-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .threads-panel {
    border-right: 0.15rem solid var(--ink);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 16rem;
  }

  .thread-panels {
    border-radius: 0 0 var(--radius) var(--radius);
    min-height: 24rem;
  }
}

@media (max-width: 40rem) {
  .thread-panel-listing-btn { display: none; }
  .message { max-width: 90%; }
}


/* ═══════════════════════════════════════════════════════════════
   REPLY PAGE
   ═══════════════════════════════════════════════════════════════ */

.reply-stage {
  max-width: 52rem;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Thread history note (condensed) ── */
.reply-history-note {
  background: var(--paper-blue);
  border: 0.12rem solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0.15rem 0.2rem 0.5rem var(--shadow);
  position: relative;
  transform: rotate(-0.2deg);
  animation: dropIn 0.4s ease-out both;
}

.reply-history-note::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--pin-blue);
  border: 0.1rem solid var(--ink);
  box-shadow: 0 0.08rem 0.18rem rgba(0,0,0,0.3);
  z-index: 2;
}

.reply-history-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 0.08rem dashed rgba(0,0,0,0.15);
  flex-wrap: wrap;
}

.reply-thread-avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.reply-thread-name {
  display: block;
  font-family: 'Shrikhand', cursive;
  font-size: 1rem;
  color: var(--ink);
}

.reply-thread-subject {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-light);
}

.reply-back-btn {
  margin-left: auto;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
}

.reply-thread-messages {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ── Reply form note ── */
.reply-form-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  position: relative;
  transform: rotate(0.25deg);
  animation: dropIn 0.4s 0.08s ease-out both;
}

.reply-form-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--pin-red);
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.12rem 0.25rem rgba(0,0,0,0.4);
  z-index: 2;
}

/* ── PRICING TYPE TOGGLE (Create page) ── */
.price-type-fieldset {
  border: none;
  padding: 0;
  margin-bottom: 0;
}

.price-type-toggle {
  display: inline-flex;
  border: 0.12rem solid var(--ink-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.35rem;
}

.price-type-option {
  display: flex;
  align-items: center;
}

/* Hide the native radio but keep it in the a11y tree */
.price-type-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  pointer-events: none;
}

.price-type-option span {
  display: block;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--ink-light);
  border-right: 0.12rem solid var(--ink-light);
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.price-type-option:last-child span {
  border-right: none;
}

.price-type-option input[type="radio"]:checked + span {
  background: var(--pin-blue);
  color: #fff;
}

.price-type-option input[type="radio"]:focus-visible + span {
  outline: 0.15rem solid var(--pin-blue);
  outline-offset: -0.15rem;
}

/* ── PRICE UNIT SUFFIX (Details page) ── */
/* Renders the /hr or /job suffix in a smaller weight next to the price */
.price-unit {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-light);
  margin-left: 0.05rem;
  letter-spacing: 0;
}

/* ── LISTING SHORT DESCRIPTION (Details page) ── */
/* Visually distinguishes the summary blurb from the full body copy */
.listing-short-desc {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
  padding-bottom: 0.75rem;
  border-bottom: 0.08rem dashed rgba(0,0,0,0.12);
  margin-bottom: 0.25rem;
}

/* The original rule uses float:left as a cross-browser fieldset hack,
   which breaks inside the flex post-note container. */
.avail-fieldset legend {
  float: none;
  display: block;
  width: 100%;
}

/* ── Empty: no threads at all ── */
.messages-empty-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.messages-empty-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  max-width: 26rem;
  text-align: center;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  position: relative;
  transform: rotate(-0.4deg);
  animation: dropIn 0.4s ease-out both;
}

.messages-empty-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--pin-blue);
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.12rem 0.25rem rgba(0,0,0,0.4);
  z-index: 2;
}

.messages-empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.messages-empty-heading {
  font-family: 'Shrikhand', cursive;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.messages-empty-body {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── Empty: threads exist but none selected ── */
.thread-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--ink-light);
}

.thread-panel-empty-icon {
  font-size: 2rem;
  line-height: 1;
}

.thread-panel-empty-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* On mobile the panels stack, so the "select one" prompt makes no sense —
   hide it and let the thread list speak for itself. */
@media (max-width: 56rem) {
  .thread-panel-empty { display: none; }
}

.field-input[readonly] {
  background: #f1f5f9;
  color: var(--ink-light);
  border-color: #cbd5e1;
  cursor: default;
}
/* ── NEW-LISTING PIP ── */
.nav-new-badge {
  position: relative;
}

/* Hide the pip entirely when count is 0 or attribute is absent */
.nav-new-badge:not([data-new]):after,
.nav-new-badge[data-new=""]:after,
.nav-new-badge[data-new="0"]:after { display: none; }

.nav-new-badge[data-new]:not([data-new=""]):not([data-new="0"]):after {
  content: attr(data-new);
  position: absolute;
  top: -0.55rem;
  right: -1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 0.6rem;
  background: #fbbf24;        /* gold — matches logo-pin and btn-post */
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  border: 0.1rem solid var(--ink);
  box-shadow: 0.05rem 0.05rem 0 var(--ink);
  white-space: nowrap;
  pointer-events: none;
}

/* ── PRONOUN BADGE ── */
.pronoun-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-light);
  background: rgba(0, 0, 0, 0.06);
  border: 0.08rem solid rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  padding: 0.1rem 0.45rem;
  letter-spacing: 0.03em;
  vertical-align: middle;
  white-space: nowrap;
  margin-left: 0.35rem;
  line-height: 1.6;
}

/* ============================================================
   Invite pages
   Append to site.css (or @import into it).
   ============================================================ */


/* ── Custom select (InviteCreate) ───────────────────────────
   Wraps the native <select class="field-input field-select">
   to replace the browser's default arrow with our own.
   ---------------------------------------------------------- */

.select-wrap {
  position: relative;
}

.field-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;   /* room for the arrow */
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--color-text-secondary, #666);
  pointer-events: none;  /* let clicks fall through to the select */
  line-height: 1;
}


/* ── Invite result stage ────────────────────────────────────
   Full-viewport centering column. The ticket is the hero;
   actions sit beneath it with some breathing room.
   ---------------------------------------------------------- */

.invite-result-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem 3rem;
  min-height: 60vh;
}


/* ── Ticket card ────────────────────────────────────────────
   Mimics a physical event ticket: dark header, QR body,
   perforated tear line, footer with expiry.
   ---------------------------------------------------------- */

.invite-ticket {
  width: 100%;
  max-width: 22rem;          /* ~352px — readable QR on any phone */
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
          0 0 0 1px rgba(0, 0, 0, 0.08),
          0 4px 24px rgba(0, 0, 0, 0.10);
}

.invite-ticket-header {
  background: #1a1a1a;
  padding: 1.25rem 1.5rem 1rem;
  text-align: center;
}

.invite-ticket-eyebrow {
  font-size: 0.6875rem;      /* 11px */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.2rem;
}

.invite-ticket-site {
  font-family: 'Shrikhand', cursive;
  font-size: 1.75rem;
  color: #fff;
  line-height: 1;
}

/* The SVG the server injects — force it to fill the wrapper
   and never overflow. QR code SVGs typically have a viewBox
   but no explicit width/height; this makes them behave. */

.invite-qr-wrap {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.invite-qr-wrap svg {
  display: block;
  width: 100%;
  max-width: 16rem;   /* 256px — good QR scan size */
  height: auto;
}

/* Perforated tear line between QR and footer */

.invite-ticket-tear {
  height: 1px;
  margin: 0 -1px;            /* bleed to card edges */
  background-image: repeating-linear-gradient(
          to right,
          transparent,
          transparent 0.375rem,
          #d0d0d0 0.375rem,
          #d0d0d0 0.75rem
  );
}

.invite-ticket-footer {
  padding: 1rem 1.5rem 1.25rem;
  text-align: center;
  background: #fff;
}

.invite-expires-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.2rem;
}

.invite-expires-date {
  font-size: 0.9375rem;      /* 15px */
  font-weight: 600;
  color: #1a1a1a;
}

.invite-countdown {
  font-size: 0.8125rem;      /* 13px */
  font-weight: 500;
  color: #b06800;            /* amber — urgency without alarm */
  margin-top: 0.3rem;
  min-height: 1.2em;         /* prevent layout jump before JS fires */
}

.invite-countdown--expired {
  color: #c0392b;
}


/* ── Actions (below the ticket) ────────────────────────────── */

.invite-actions {
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.625rem;
}

/* Copy button — secondary style, transitions to a green
   confirmation state when the clipboard write succeeds.    */

.btn-copy-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #1a1a1a;
  border-radius: 0.625rem;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  transition:
          background-color 0.15s ease,
          color            0.15s ease,
          border-color     0.15s ease;
}

.btn-copy-link:hover {
  background: #f4f4f4;
}

.btn-copy-link--copied {
  background: #1a6e3c;
  border-color: #1a6e3c;
  color: #fff;
}

.invite-url-display {
  font-size: 0.75rem;        /* 12px */
  color: #666;
  text-align: center;
  word-break: break-all;
  line-height: 1.5;
  padding: 0 0.25rem;
  /* Selectable so the user can manually copy if the
     Clipboard API is unavailable (non-HTTPS, denied). */
  user-select: all;
  -webkit-user-select: all;
}

.invite-single-use-note {
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  line-height: 1.5;
}


/* ── Responsive ─────────────────────────────────────────────
   On narrow screens the ticket already fills the column via
   max-width. No layout changes needed — just a touch more
   padding economy on very small phones.
   ---------------------------------------------------------- */

@media (max-width: 24rem) {
  .invite-result-stage {
    padding: 1.25rem 0.75rem 2rem;
  }

  .invite-ticket-header {
    padding: 1rem 1rem 0.75rem;
  }

  .invite-qr-wrap {
    padding: 1rem;
  }

  .invite-ticket-footer {
    padding: 0.875rem 1rem 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PAGES (append to site.css)
   ═══════════════════════════════════════════════════════════════ */

/* ── Admin stage wrapper ── */
.admin-stage {
  max-width: 80rem;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Admin page header ── */
.admin-page-header {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0.2rem 0.25rem 0 var(--ink);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  animation: dropIn 0.35s ease-out both;
}

.admin-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-page-title {
  font-family: 'Shrikhand', cursive;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.15;
}

.admin-page-subtitle {
  font-size: 0.825rem;
  color: var(--ink-light);
  margin-top: 0.15rem;
}

.admin-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Smaller secondary button variant */
.btn-sm {
  font-size: 0.825rem;
  padding: 0.35rem 0.85rem;
}

/* ── Admin filter bar ── */
.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  box-shadow: 0.2rem 0.2rem 0 var(--ink);
}

.admin-search-wrap {
  flex: 1 1 14rem;
}

/* Pulls the search icon down to align with the taller field-input */
.admin-search-wrap .search-icon {
  top: 50%;
}

.admin-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-chip {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 1.5rem;
}

.chip-ban[aria-pressed="true"] {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.chip-ban:hover {
  background: rgba(185, 28, 28, 0.1);
}

/* ── Admin table ── */
.admin-table-wrap {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0.2rem 0.25rem 0 var(--ink);
  overflow-x: auto;
  animation: dropIn 0.4s 0.05s ease-out both;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table thead {
  background: var(--paper-yellow);
  border-bottom: 0.12rem solid rgba(0,0,0,0.1);
}

.admin-table th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-bottom: 0.06rem solid rgba(0,0,0,0.07);
  color: var(--ink);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: rgba(0,0,0,0.02);
}

/* Banned row — muted appearance */
.user-row--banned td {
  opacity: 0.65;
}

/* Keep action buttons full-opacity even on banned rows */
.user-row--banned .action-group {
  opacity: 1;
}

/* ── Column sizing hints ── */
.col-user    { min-width: 12rem; }
.col-role    { width: 7rem; }
.col-email   { min-width: 10rem; }
.col-stats   { width: 7rem; white-space: nowrap; }
.col-joined  { width: 8rem; white-space: nowrap; }
.col-actions { width: 9rem; }

/* ── User cell (avatar + name) ── */
.user-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-avatar {
  /* card-avatar styles apply; just override size slightly */
  flex-shrink: 0;
}

.user-cell-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.user-cell-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.user-cell-pronouns {
  font-size: 0.72rem;
  color: var(--ink-light);
}

/* ── Status/role badges ── */
.user-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.4rem;
  border-radius: 0.2rem;
  line-height: 1.5;
  display: inline-block;
}

.user-badge--banned {
  background: #fef2f2;
  color: #b91c1c;
  border: 0.08rem solid #fca5a5;
}

.role-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 0.2rem;
  display: inline-block;
  white-space: nowrap;
}

.role-badge--admin   { background: #fef3c7; color: #92400e; border: 0.08rem solid #fcd34d; }
.role-badge--mod     { background: #ede9fe; color: #5b21b6; border: 0.08rem solid #c4b5fd; }
.role-badge--sp      { background: #dcfce7; color: #166534; border: 0.08rem solid #86efac; }
.role-badge--user    { background: #f1f5f9; color: #475569; border: 0.08rem solid #cbd5e1; }

/* ── Stat pills ── */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-right: 0.5rem;
}

/* ── Email link ── */
.admin-email-link {
  color: var(--pin-blue);
  font-size: 0.85rem;
  text-decoration: none;
  text-underline-offset: 0.12rem;
}

.admin-email-link:hover,
.admin-email-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.admin-none {
  color: var(--ink-light);
  font-size: 0.85rem;
}

/* ── Action icon buttons ── */
.action-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 0.1rem solid rgba(0,0,0,0.15);
  border-radius: 0.2rem;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
  padding: 0;
  color: var(--ink-light);
  flex-shrink: 0;
}

.action-btn svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

/* Per-action colour hints on hover — mnemonic, not decorative */
.action-btn--message:hover,
.action-btn--message:focus-visible {
  background: var(--paper-blue);
  border-color: var(--pin-blue);
  color: var(--pin-blue);
  outline: none;
}

.action-btn--promote:hover,
.action-btn--promote:focus-visible {
  background: #dcfce7;
  border-color: #16a34a;
  color: #16a34a;
  outline: none;
}

.action-btn--demote:hover,
.action-btn--demote:focus-visible {
  background: #fef9c3;
  border-color: #ca8a04;
  color: #ca8a04;
  outline: none;
}

.action-btn--ban:hover,
.action-btn--ban:focus-visible {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
  outline: none;
}

.action-btn--unban:hover,
.action-btn--unban:focus-visible {
  background: #dcfce7;
  border-color: #16a34a;
  color: #16a34a;
  outline: none;
}

/* Empty-state row */
.admin-table-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-light);
  font-style: italic;
}

/* ── Responsive: collapse to card-style rows on narrow screens ── */
@media (max-width: 56rem) {
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table th,
  .admin-table td,
  .admin-table tr {
    display: block;
  }

  /* Hide the visual column headers — data-label provides context */
  .admin-table thead tr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
  }

  .admin-table tbody tr {
    border-bottom: 0.1rem solid rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    align-items: center;
  }

  .admin-table tbody tr:last-child {
    border-bottom: none;
  }

  /* Each cell prepends its column label in small-caps */
  .admin-table td::before {
    content: attr(data-label) ": ";
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-light);
    margin-right: 0.25rem;
  }

  /* User column takes the full row; others share space */
  .col-user    { width: 100%; }
  .col-actions { width: 100%; }

  /* Don't show the redundant label for the user cell itself */
  .col-user::before    { display: none; }
  .col-actions::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   INVITE PAGE — use-type toggle
   ═══════════════════════════════════════════════════════════════ */

/* ── auth-note--invite pin colour ── */
.auth-note--invite {
  transform: rotate(0.3deg);
}
.auth-note--invite::before {
  background: var(--pin-green);
}

/* ── Hidden radios that drive the toggle state ──
   Kept in the a11y / tab order (no pointer-events:none) so keyboard
   users can arrow-key between options when a label has focus.        */
.use-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Toggle fieldset / wrapper ── */
.use-toggle-fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1.1rem;
}

.use-toggle-fieldset > .field-label {
  display: block;
  margin-bottom: 0.4rem;
}

.use-toggle-fieldset > .field-hint {
  display: block;
  margin-top: 0.4rem;
}

/* ── Toggle button strip ──
   Mirrors .price-type-toggle but uses <label> elements instead of
   <input>+<span> pairs because the radios live outside the form.    */
.use-toggle {
  display: inline-flex;
  border: 0.12rem solid var(--ink-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.use-toggle-option {
  display: block;
  padding: 0.4rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--ink-light);
  border-right: 0.12rem solid var(--ink-light);
  transition: background 0.15s, color 0.15s;
  user-select: none;
  line-height: 1.6;
}

.use-toggle-option:last-child {
  border-right: none;
}

/* Active state — driven by the sibling radio's :checked pseudo-class.
   The radio is a direct child of .auth-stage; .auth-note is its
   following sibling, so the ~ combinator can descend into it.       */
#use-multi:checked  ~ .auth-note .use-toggle-option[for="use-multi"],
#use-single:checked ~ .auth-note .use-toggle-option[for="use-single"] {
  background: var(--pin-blue);
  color: #fff;
}

/* Focus ring on the label when its radio receives keyboard focus */
#use-multi:focus-visible  ~ .auth-note .use-toggle-option[for="use-multi"],
#use-single:focus-visible ~ .auth-note .use-toggle-option[for="use-single"] {
  outline: 0.15rem solid var(--pin-blue);
  outline-offset: -0.15rem;
}

/* ── Invite aside scrap notes ── */
.auth-aside--invite .scrap-note:nth-child(1) { transform: rotate(-0.9deg); animation-delay: 0.2s; }
.auth-aside--invite .scrap-note:nth-child(2) { transform: rotate(0.7deg);  animation-delay: 0.2s; background: var(--paper-green); }
.auth-aside--invite .scrap-note:nth-child(3) { transform: rotate(-0.5deg); animation-delay: 0.35s; background: var(--paper-blue); }

.auth-aside--invite .scrap-note:nth-child(1)::before { background: var(--pin-amber);  }
.auth-aside--invite .scrap-note:nth-child(2)::before { background: var(--pin-green);  }
.auth-aside--invite .scrap-note:nth-child(3)::before { background: var(--pin-blue);   }

/* Default: show multi-use note, hide single-use note */
.scrap-note--single {
  display: none;
}

/* When single-use is selected: swap which note is visible */
#use-single:checked ~ .auth-aside .scrap-note--multi  { display: none;  }
#use-single:checked ~ .auth-aside .scrap-note--single { display: block; }
/* ═══════════════════════════════════════════════════════════════
   REVIEW PAGE
   Append to site.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── Page layout ── */
.review-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 4rem;
  gap: 1.25rem;
}

/* Inner row: form note + aside sit side by side */
.review-form-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

/* ── Listing context strip ── */
.review-context-note {
  width: 100%;
  max-width: 34rem;
  background: var(--paper-blue);
  border: 0.12rem solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  box-shadow: 0.12rem 0.18rem 0.4rem var(--shadow);
  animation: dropIn 0.35s ease-out both;
}

.review-context-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-context-avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.review-context-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.review-context-provider {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.review-context-listing {
  font-size: 0.8rem;
  color: var(--ink-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-context-back {
  flex-shrink: 0;
}

/* ── Main form note ── */
.review-note {
  background: var(--paper-white);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem 2rem;
  width: 100%;
  max-width: 34rem;
  box-shadow: 0.25rem 0.3rem 0 var(--ink);
  position: relative;
  animation: dropIn 0.4s 0.05s ease-out both;
  transform: rotate(0.3deg);
}

.review-note::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--pin-yellow);   /* amber/gold pin */
  border: 0.12rem solid var(--ink);
  box-shadow: 0 0.12rem 0.25rem rgba(0,0,0,0.4);
  z-index: 2;
}

/* ── Star rating fieldset ── */
.star-fieldset {
  margin-bottom: 1.5rem;
}

/* ── Star rating widget ──
   Inputs are DOM-ordered 5→1 so the ~ combinator can reach
   lower-value labels.  flex-direction:row-reverse restores the
   visual 1★–5★ left-to-right order for sighted users.
   ─────────────────────────────────────────────────────────────
   Interaction model:
     • Hover the container → reset all stars to unlit, then re-light
       via label:hover and label:hover ~ label (the "lower" stars).
     • No hover → show :checked state via input:checked ~ label.
   ─────────────────────────────────────────────────────────────
   Accessibility: The labels carry aria-hidden="true"; the inputs
   themselves carry aria-label text ("4 stars — good") so screen
   readers still get full context via keyboard navigation.
   ──────────────────────────────────────────────────────────── */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Keep inputs accessible but invisible */
.star-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.star-rating label {
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
  padding: 0 0.05rem;
  -webkit-user-select: none;
  user-select: none;
  display: block;
}

/* While hovering anywhere in the widget: reset all stars to unlit… */
.star-rating:hover label {
  color: rgba(0, 0, 0, 0.15);
  transform: none;
}

/* …then re-light the hovered star and all DOM-later siblings (visually lower) */
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--pin-yellow);
  transform: scale(1.15);
}

/* When the cursor has left the widget, show the checked/selected state */
.star-rating:not(:hover) input:checked ~ label {
  color: var(--pin-yellow);
}

/* Focus ring on the radio inputs so keyboard users see which star has focus */
.star-radio:focus-visible + label {
  outline: 0.15rem solid var(--pin-blue);
  outline-offset: 0.1rem;
  border-radius: 0.1rem;
}

.star-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-top: 0.15rem;
}

/* ── Review aside scrap notes ── */
.auth-aside--review {
  padding-top: 3rem;
}

.review-scrap-1 {
  transform: rotate(-1deg);
  animation: dropIn 0.4s 0.2s ease-out both;
}

.review-scrap-2 {
  transform: rotate(0.7deg);
  background: var(--paper-lavender);
  animation: dropIn 0.4s 0.35s ease-out both;
}

.review-scrap-1::before { background: var(--pin-yellow); }
.review-scrap-2::before { background: var(--pin-purple); }

/* ── Responsive ── */
@media (max-width: 48rem) {
  .review-stage { padding: 1.5rem 1rem 3rem; }
  .auth-aside--review { display: none; }
}

@media (max-width: 40rem) {
  .star-rating label { font-size: 2rem; }
}