/* ------------------------------------------------------------------
   Village — design system
   Ellen's mood board (2026-10-07): muted, airy, editorial. Warm cream
   canvas, dusty Village Blue for actions, Butter for highlights, Sage for
   success, Putty for hairlines; Fraunces for display, Inter for text;
   softly rounded cards and pill buttons. Polished, not flashy.

   The values below are the defaults. The live theme is stored in the
   `themes` table and emitted by the layout as a <style> that overrides
   them (docs/design/theme.md) — change the palette in the database, not here.
   ------------------------------------------------------------------ */

:root {
    /* mood-board palette */
    --cream: #FAF7EE;
    --surface: #FFFDF8;
    --primary: #476FA1;        /* deep Village Blue — buttons and links, white text 5.18:1 */
    --primary-deep: #3C5E88;
    --on-primary: #FFFFFF;
    --blue: #8EA7C7;           /* Village Blue — fills, chips, accents */
    --butter: #F6E3A7;
    --sage: #A7B89F;
    --putty: #D9D0C4;
    --input-border: #9C9183;
    --wordmark: #5781B5;

    /* names the rest of this file uses, mapped onto the palette */
    --ink: #2D3A42;
    --ink-soft: #46545D;
    --ivory: #F3EEDF;          /* soft band behind page titles */
    --bordeaux: var(--primary);
    --bordeaux-deep: var(--primary-deep);
    --champagne: var(--butter);
    --bronze: #74601E;
    --warm-gray: #56636C;
    --taupe: var(--putty);
    --success: #4A6644;
    --error: #94404B;
    --white: #FFFFFF;

    --hairline: rgba(45, 58, 66, 0.14);
    --hairline-soft: rgba(45, 58, 66, 0.09);
    --tile-border: #E4DDD1;

    --font-display: "Libre Caslon Text", Georgia, serif;
    --font-body: "Lato", -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --ease: 180ms ease-out;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- type scale ---------------------------------------------------- */

h1, h2, .display {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.1rem); }
h2 { font-size: 1.6rem; font-weight: 500; line-height: 1.2; }
h3 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: -0.005em; }

p { margin: 0; }

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.num, time, .price {
    font-variant-numeric: tabular-nums;
}

.price {
    font-weight: 600;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

/* ---- eyebrow labels & hairlines ------------------------------------ */

.eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: lowercase;
    color: var(--ink-soft);
    margin-bottom: 0.6rem;
}

.hairline {
    border: 0;
    border-top: 1px solid var(--hairline-soft);
    margin: 1.35rem 0;
}

/* ---- header / footer ------------------------------------------------
   Light and airy: a cream bar with the lowercase blue wordmark, quiet
   nav in small tracked caps, and a soft putty rule underneath. */

.site-header {
    background: var(--cream);
    color: var(--ink);
    border-bottom: 1px solid var(--tile-border);
}

.site-header .bar {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.9rem;
    flex-wrap: wrap;
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.85rem;
    line-height: 1;
    letter-spacing: -0.015em;
    text-transform: lowercase;
    color: var(--wordmark);
}

.wordmark:hover { text-decoration: none; color: var(--primary-deep); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0 0.3rem;
    border-bottom: 2px solid transparent;
    transition: color var(--ease), border-color var(--ease);
}

.site-nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

.site-nav a.active {
    color: var(--ink);
    border-bottom-color: var(--blue);
}

.site-header a:focus-visible,
.signout-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.role-switch {
    display: inline-flex;
    border: 1px solid var(--putty);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--surface);
}

.role-switch a {
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.32rem 0.85rem;
    transition: color var(--ease), background var(--ease);
}

.role-switch a:hover { text-decoration: none; color: var(--primary); }

.role-switch a.active {
    background: var(--primary);
    color: var(--on-primary);
}

.avatar-link { display: inline-flex; border-radius: 999px; }
.avatar-link:hover .avatar { box-shadow: 0 0 0 2px var(--primary); }
.avatar-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.signout-btn {
    background: none;
    border: none;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color var(--ease);
}

.signout-btn:hover { color: var(--primary); }

.site-footer {
    background: var(--ivory);
    color: var(--ink-soft);
    margin-top: auto;
    border-top: 1px solid var(--tile-border);
}

.site-footer .bar {
    max-width: 1020px;
    margin: 0 auto;
    padding: 2.2rem 1.5rem 2.4rem;
    font-size: 0.86rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer .wordmark { font-size: 1.4rem; }

/* ---- layout --------------------------------------------------------- */

main.page {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding: 3.25rem 1.5rem 5.5rem;
}

main.page.narrow { max-width: 580px; }

/* Page titles sit straight on the cream, editorial style (no band). */
.page-head {
    margin-bottom: 1.9rem;
    padding: 0;
    background: none;
}

.page-head .lede {
    color: var(--warm-gray);
    margin-top: 0.75rem;
    max-width: 36rem;
    font-size: 1.02rem;
}

.stack > * + * { margin-top: 1.1rem; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    align-items: start;
}

/* ---- cards ----------------------------------------------------------
   Softly rounded, warm-white tiles with a putty hairline and a very
   gentle lift on hover. */

.card {
    background: var(--surface);
    border: 1px solid var(--tile-border);
    border-radius: var(--radius-lg);
    padding: 1.9rem 2rem;
    box-shadow: 0 1px 2px rgba(45, 58, 66, 0.03);
    transition: border-color var(--ease), box-shadow var(--ease);
}

.card:hover {
    border-color: var(--putty);
    box-shadow: 0 10px 28px rgba(45, 58, 66, 0.07);
}

.card + .card { margin-top: 1.25rem; }
.card + form > .card:first-of-type { margin-top: 1.25rem; } /* a form that follows a card (its first child may be a hidden input) */
/* Cards that carry their own inline bottom margin must not double up with the sibling rules. */
.card[style*="margin-bottom"] + .card,
.card[style*="margin-bottom"] + form > .card:first-of-type { margin-top: 0; }
.card > .list > li:first-child { padding-top: 0; }

.card-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.card .meta {
    color: var(--warm-gray);
    font-size: 0.9rem;
}

.card-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* A row that never wraps: the text truncates, the chip and button keep their size. */
.card-row.one-line { flex-wrap: nowrap; align-items: center; gap: 0.75rem; }
.card-row.one-line > div:first-child { min-width: 0; }
.card-row.one-line .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The top line (date and time) is never cut: a touch smaller, and it wraps rather than truncating. */
.card-row.one-line .card-title { font-size: 1.1rem; }
.card-row.one-line .btn-row { flex-wrap: nowrap; flex-shrink: 0; }
.card-row.one-line .btn { white-space: nowrap; }

/* 2-up product-tile grid for the home feed on wide screens. */
.tile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    align-items: stretch;
}

@media (min-width: 720px) {
    .tile-grid { grid-template-columns: 1fr 1fr; }
}

.tile-grid .card {
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.tile-grid .card + .card { margin-top: 0; }

.tile-grid .card > .card-row:first-child { margin-bottom: 1.35rem; }

.tile-grid .card .hairline {
    margin-top: auto;
    margin-bottom: 1.1rem;
}

.tile-grid + .eyebrow,
.eyebrow.section-gap { margin-top: 3rem; }

.muted { color: var(--warm-gray); }
.small { font-size: 0.88rem; }
.bronze-note {
    color: var(--bronze);
    font-size: 0.84rem;
}

/* ---- buttons --------------------------------------------------------
   Sentence-case, medium weight, fully rounded. Primary = solid deep
   Village Blue; secondary = blue outline that softens to a blue wash. */

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.7rem 1.7rem;
    cursor: pointer;
    text-align: center;
    transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:hover {
    background: var(--primary-deep);
    border-color: var(--primary-deep);
    text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-pill);
    box-shadow: none;
}

.btn.secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn.secondary:hover {
    background: rgba(142, 167, 199, 0.22);
    color: var(--primary-deep);
    border-color: var(--primary-deep);
}

.btn.quiet,
.btn.ghost {
    background: transparent;
    border-color: var(--putty);
    color: var(--ink-soft);
    font-weight: 500;
}

.btn.quiet:hover,
.btn.ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn.slim { padding: 0.4rem 1.05rem; font-size: 0.82rem; }

.btn-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ---- chips ----------------------------------------------------------
   Soft pills: putty by default, sage for good, butter for attention. */

.chip {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-pill);
    padding: 0.22rem 0.75rem;
    background: rgba(217, 208, 196, 0.4);
    border: 1px solid var(--putty);
    color: var(--ink-soft);
    white-space: nowrap;
}

.chip.good {
    background: rgba(167, 184, 159, 0.32);
    border-color: var(--sage);
    color: var(--success);
}

.chip.attention {
    background: rgba(246, 227, 167, 0.55);
    border-color: var(--butter);
    color: var(--bronze);
}

.chip.closed {
    background: rgba(148, 64, 75, 0.07);
    border-color: rgba(148, 64, 75, 0.3);
    color: var(--error);
}

.chip.gold {
    background: var(--butter);
    border-color: var(--butter);
    color: var(--bronze);
}

/* ---- flash banners --------------------------------------------------- */

.banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    margin: 1.25rem auto 0;
    max-width: 1020px;
    font-size: 0.95rem;
    border: 1px solid;
}

.banner-wrap {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.banner[data-fade] { transition: opacity 0.3s ease-out; }
.banner.fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .banner[data-fade] { transition: none; } }

.banner.success {
    background: rgba(167, 184, 159, 0.28);
    border-color: var(--sage);
    color: var(--success);
}

.banner.error {
    background: rgba(148, 64, 75, 0.07);
    border-color: rgba(148, 64, 75, 0.35);
    color: var(--error);
}

.banner .dismiss {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.2rem;
}

/* ---- forms -----------------------------------------------------------
   Quiet fields: thin warm border, a soft blue focus ring. */

.field { margin-bottom: 1.1rem; }

.field label,
.field > .label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
}

.field .hint {
    font-size: 0.82rem;
    color: var(--warm-gray);
    margin-top: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="month"],
select,
textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    padding: 0.66rem 0.85rem;
    transition: border-color var(--ease), box-shadow var(--ease);
}

textarea { resize: vertical; min-height: 5.5rem; }

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(142, 167, 199, 0.45);
}

.field-row {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.field-row .field { flex: 1 1 130px; margin-bottom: 1.1rem; }

.checkline {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.92rem;
}

.checkline input { margin-top: 0.22rem; accent-color: var(--primary); }

.radioline {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0;
}

.radioline input { margin-top: 0.28rem; accent-color: var(--primary); }

fieldset {
    border: 1px solid var(--tile-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.2rem 0.4rem;
    margin-bottom: 1.1rem;
}

legend {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 0 0.4rem;
}

/* copy-link row */
.copy-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.copy-row input {
    flex: 1;
    font-size: 0.86rem;
    color: var(--warm-gray);
    background: var(--ivory);
}

/* a value she cannot change (the number an invitation was texted to) */
.field input[readonly] {
    color: var(--warm-gray);
    background: var(--ivory);
}

/* ---- availability grid ----------------------------------------------- */

.avail-row {
    display: grid;
    grid-template-columns: 6.5rem 1fr 1fr;
    gap: 0.7rem;
    align-items: center;
    padding: 0.35rem 0;
}

.avail-row .day {
    font-size: 0.88rem;
    font-weight: 600;
}

/* ---- lists ------------------------------------------------------------ */

.list { list-style: none; }

.list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--hairline-soft);
    flex-wrap: wrap;
}

.list > li:last-child { border-bottom: none; padding-bottom: 0; }

/* ---- estimate table ---------------------------------------------------- */

.estimate {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.estimate td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.estimate tr:last-child td { border-bottom: none; font-weight: 600; }

.estimate td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---- misc -------------------------------------------------------------- */

.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
}

.empty-state h2 { margin-bottom: 0.5rem; }

.empty-state p {
    color: var(--warm-gray);
    max-width: 28rem;
    margin: 0 auto 1.4rem;
}

.auth-card {
    max-width: 430px;
    margin: 3.5rem auto 0;
}

.auth-card .card { padding: 2.4rem 2.4rem 2.2rem; }

.code-input {
    font-size: 1.5rem !important;
    letter-spacing: 0.45em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.section-gap { margin-top: 3rem; }

details.folded summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bordeaux);
    list-style: none;
}

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

details.folded[open] summary { margin-bottom: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ── Avatars ─────────────────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--taupe, #DED4C9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-monogram {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--ink, #1F1A1C);
  user-select: none;
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.85rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1.15rem; }
.avatar-lg { width: 88px; height: 88px; font-size: 2rem; }

.card-lead { display: flex; align-items: flex-start; gap: 0.9rem; }
.profile-head { display: flex; align-items: center; gap: 1.1rem; margin-top: 0.35rem; }
.profile-head h1 { margin: 0; }

.photo-form { display: flex; align-items: center; gap: 1.1rem; }
.photo-form .photo-actions { display: inline-block; margin-top: 0.5rem; margin-right: 0.4rem; }
.photo-pick { cursor: pointer; }
@media (max-width: 560px) {
  .card-lead { align-items: center; }
}

/* ── Validation marks (heart + thumbs-up, thin-stroke) ───────────────── */
.validation-marks {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.45rem;
  vertical-align: -0.15em;
  color: var(--bronze, #7E5E33);
}
.validation-marks svg { width: 17px; height: 17px; display: block; }

/* ── Bottom tab bar (mobile — iOS app feel) ──────────────────────────── */
.tab-bar { display: none; }
@media (max-width: 720px) {
  .tab-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: var(--cream);
    background: color-mix(in srgb, var(--cream) 94%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--tile-border);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
  }
  .tab-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    padding: 0.3rem 0.2rem;
    text-decoration: none;
    color: var(--warm-gray, #5C5250);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .tab-bar a svg { width: 23px; height: 23px; }
  .tab-bar a.active { color: var(--primary); }
  .tab-bar a:active { transform: scale(0.96); }

  /* Keep content and footer clear of the fixed bar (only when there is one: signed-in pages) */
  body:has(.tab-bar) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* The tab bar replaces the top nav on phones */
  .site-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-bar a:active { transform: none; }
}

/* ── Header icon links (messages + notifications) ────────────────────── */
.icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  transition: color var(--ease);
}
.icon-link svg { width: 21px; height: 21px; display: block; }
.icon-link:hover { color: var(--primary); text-decoration: none; }
.icon-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}
.icon-dot {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bordeaux);
}
.tab-icon { position: relative; display: inline-flex; }

/* ── Messages: thread list (one card, hairline between rows) ────────── */
.thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(45, 58, 66, 0.03);
  overflow: hidden;
}
.thread-list > li + li { border-top: 1px solid var(--hairline); }
.thread-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  color: var(--ink);
  transition: background var(--ease);
}
.thread-row:hover { text-decoration: none; background: var(--ivory); }
.thread-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.thread-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.thread-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-time { flex-shrink: 0; font-size: 0.78rem; color: var(--warm-gray); }
.thread-preview {
  font-size: 0.9rem;
  color: var(--warm-gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-you { color: var(--ink-soft); }
.thread-booking { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--primary); }
.thread-row.unread .thread-preview { color: var(--ink); font-weight: 600; }
.thread-row.unread .thread-time { color: var(--primary); font-weight: 600; }
.unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ── Messages: chat view (iOS-app feel) ──────────────────────────────── */
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.chat-head > a:first-child { font-size: 1.1rem; }
.masked-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--bronze);
  margin-bottom: 1.2rem;
}
.chat-thread { display: flex; flex-direction: column; }
.bubble {
  max-width: 78%;
  padding: 0.6rem 0.95rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.bubble.mine {
  align-self: flex-end;
  background: var(--primary);
  color: var(--on-primary);
  border-bottom-right-radius: 5px;
}
.bubble.theirs {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--tile-border);
  border-bottom-left-radius: 5px;
}
.bubble-time {
  font-size: 0.68rem;
  color: var(--warm-gray);
  margin: 0.15rem 0.4rem 0.6rem;
}
.bubble-time.mine { align-self: flex-end; }
.bubble-time.theirs { align-self: flex-start; }
.composer {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline-soft);
  padding: 0.8rem 0 1rem;
  margin-top: 1.5rem;
}
.composer textarea {
  flex: 1;
  min-height: 2.7rem;
  max-height: 8rem;
  border-radius: 18px;
  padding: 0.58rem 1rem;
}
.composer .btn { margin-bottom: 0.15rem; }
@media (max-width: 720px) {
  /* Sit above the fixed tab bar on phones */
  .composer { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ── Notifications ───────────────────────────────────────────────────── */
.card.notif {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--ink);
}
.card.notif:hover { text-decoration: none; }
.card.notif.unread { box-shadow: inset 4px 0 0 var(--primary); }

/* ── Review ratings: 1–5 pill radios ─────────────────────────────────── */
.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline-soft);
  flex-wrap: wrap;
}
.rate-label { font-size: 0.9rem; font-weight: 500; }
.rate-pills { display: inline-flex; gap: 0.35rem; }
.rate-pills label { position: relative; cursor: pointer; }
.rate-pills input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.rate-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--warm-gray);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.rate-pills label:hover span { border-color: var(--primary); color: var(--primary); }
.rate-pills input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.rate-pills input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Legal prose ─────────────────────────────────────────────────────── */
.prose { max-width: 62ch; line-height: 1.7; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin: 2.4rem 0 0.6rem;
}
.prose p + p { margin-top: 0.8rem; }
.prose-note {
  border: 1px solid var(--champagne);
  background: rgba(246, 227, 167, 0.4);
  color: var(--bronze);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  margin-bottom: 2.2rem;
}

/* ── Brand lockup + landing page ────────────────────────────────────── */
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1.8rem;
  text-align: center;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 10vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--wordmark);
}
.brand-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: -0.34em; /* optically re-center tracked caps */
}
.brand-lockup.left { align-items: flex-start; text-align: left; }
/* Signed-out pages that carry the big lockup don't repeat the small one in the header. */
body:has(.brand-lockup) .site-header { display: none; }
.brand-lockup.left .brand-tag { margin-right: 0; }

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 4rem;
}
.landing-hero .hero-copy { max-width: 34rem; }
.landing-hero h1 { margin-bottom: 1.1rem; font-size: clamp(2.1rem, 4.6vw, 3rem); }
.landing-hero .lede {
  color: var(--warm-gray);
  font-size: 1.08rem;
  max-width: 32rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .landing-hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 0.5rem; }
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
.steps .card { margin-top: 0; }
.step-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 0.7rem;
}
.small-print {
  margin-top: 3rem;
  font-size: 0.82rem;
  color: var(--warm-gray);
}

/* ── Footer legal links ──────────────────────────────────────────────── */
.footer-links { display: inline-flex; gap: 1.1rem; }
.site-footer a { color: var(--primary); }
.site-footer a:hover { color: var(--primary-deep); }


/* ---- Admin feedback: plus button + modal ---- */
.feedback-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.plus-btn {
    flex: none; width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--primary); color: var(--on-primary); padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.plus-btn svg { display: block; }
.plus-btn:hover { background: var(--primary-deep); }
.plus-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
dialog.modal {
    width: min(640px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
    border: 1px solid var(--tile-border); border-radius: var(--radius-lg); padding: 1.6rem;
    background: var(--surface); color: var(--ink);
    box-shadow: 0 24px 60px rgba(45, 58, 66, 0.18);
}
/* The global reset zeroes margins, which un-centers the native dialog; center it explicitly. */
dialog.modal[open] { position: fixed; inset: 0; margin: auto; height: fit-content; }
dialog.modal::backdrop { background: rgba(45, 58, 66, 0.45); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-head h2 { margin: 0; }
.modal-head .dismiss { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--warm-gray); }


/* ---- Admin portal: left sidebar ---- */
.admin-shell {
    max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
    display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2.5rem; align-items: start;
}
.admin-shell main.page { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
.admin-shell main.page.narrow { max-width: 580px; }
.admin-sidebar { position: sticky; top: 1.5rem; padding-top: 3.25rem; }
.admin-sidebar .eyebrow { display: block; margin-bottom: 0.75rem; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-sidebar a {
    display: block; padding: 0.6rem 0.8rem; border-left: 2px solid transparent;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-soft); text-decoration: none;
}
.admin-sidebar a:hover { background: var(--ivory); text-decoration: none; }
.admin-sidebar a.active { color: var(--ink); border-left-color: var(--primary); background: var(--ivory); }
.admin-sidebar a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 720px) {
    /* minmax(0, …): a plain 1fr track grows to the unwrapped tab row and pushes the page off the screen. */
    .admin-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 1rem; }
    .admin-shell main.page { padding-top: 1.5rem; }
    .admin-sidebar { position: static; padding-top: 1rem; min-width: 0; }
    .admin-sidebar .eyebrow { display: none; }
    /* The tabs scroll sideways; the faded right edge says there are more. */
    .admin-sidebar nav {
        flex-direction: row; overflow-x: auto; gap: 0.25rem; border-bottom: 1px solid var(--hairline);
        scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
        mask-image: linear-gradient(to right, #000 85%, transparent);
    }
    .admin-sidebar nav::-webkit-scrollbar { display: none; }
    .admin-sidebar a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
    .admin-sidebar a.active { border-bottom-color: var(--primary); background: none; }
}


/* ---- Feedback checklist ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.feedback-summary { margin: 1.5rem 0 0.6rem; color: var(--ink-soft); }
.progress { height: 8px; background: var(--tile-border); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--success); }
.tabs { display: flex; gap: 1.5rem; flex-wrap: wrap; border-bottom: 1px solid var(--hairline); margin: 1.25rem 0 1.5rem; }
.tabs a { padding: 0.7rem 0; border-bottom: 2px solid transparent; color: var(--warm-gray); font-weight: 600; text-decoration: none; }
.tabs a .num { color: var(--warm-gray); font-weight: 400; margin-left: 0.25rem; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--primary); }
.feedback-item { display: flex; gap: 1rem; align-items: flex-start; }
.feedback-controls { display: flex; gap: 0.5rem; flex: none; }
.feedback-controls form { margin: 0; }
.check-btn, .flag-btn {
    width: 2.4rem; height: 2.4rem; border: 1px solid var(--input-border); border-radius: var(--radius);
    background: var(--surface); color: var(--warm-gray); font-size: 1.1rem; font-weight: 700; cursor: pointer; line-height: 1;
}
.check-btn:hover, .flag-btn:hover { border-color: var(--primary); color: var(--primary); }
.check-btn.on { background: var(--success); border-color: var(--success); color: #FFFFFF; }
.flag-btn.on { background: var(--error); border-color: var(--error); color: #FFFFFF; }
.check-btn:focus-visible, .flag-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.feedback-body { flex: 1; min-width: 0; }
.feedback-title { margin: 0 0 0.35rem; }
.feedback-item.done .feedback-title { text-decoration: line-through; color: var(--warm-gray); }
.feedback-item.flagged { box-shadow: inset 4px 0 0 var(--error); }
.feedback-shot { display: block; max-width: 220px; max-height: 140px; margin: 0.6rem 0; border: 1px solid var(--tile-border); border-radius: var(--radius); }
.note-form { display: flex; gap: 0.75rem; align-items: center; margin: 0.75rem 0 0.5rem; }
.note-form input[type="text"] { flex: 1; }
.note-save { background: none; border: 0; cursor: pointer; font-weight: 600; color: var(--primary); padding: 0.4rem; }
.dropzone {
    border: 1.5px dashed var(--input-border); border-radius: var(--radius); padding: 1rem; text-align: center;
    color: var(--warm-gray); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.dropzone:hover, .dropzone.over, .dropzone:focus-visible { border-color: var(--primary); color: var(--ink); outline: none; background: var(--ivory); }
.dropzone img { max-width: 100%; max-height: 160px; border-radius: var(--radius); }
@media (max-width: 560px) { .feedback-item { flex-direction: column; } }
/* The drop zone is a <label>; undo the small tracked-caps form-label style. */
.field label.dropzone { display: flex; margin: 0; text-transform: none; letter-spacing: normal; font-size: 0.95rem; font-weight: 400; color: var(--warm-gray); }
.field label.dropzone:hover, .field label.dropzone.over, .field label.dropzone:focus-visible { color: var(--ink); }


/* Feedback link in the header, styled like the nav links */
.header-link {
    color: var(--ink-soft); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; padding: 0.35rem 0 0.3rem; border-bottom: 2px solid transparent; text-decoration: none;
}
.header-link:hover { color: var(--primary); text-decoration: none; }
.header-link.active { color: var(--ink); border-bottom-color: var(--blue); }
.header-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- Phone header: one tidy row (wordmark left, actions right) instead of wrapping under the wordmark ---- */
@media (max-width: 560px) {
    .site-header .bar { gap: 0.6rem; padding: 0.7rem 1rem; flex-wrap: nowrap; }
    .site-header .wordmark { font-size: 1.55rem; flex: none; }
    .header-right { gap: 0.7rem; min-width: 0; flex-wrap: nowrap; }
    .header-right .header-link,
    .header-right .signout-btn { font-size: 0.64rem; letter-spacing: 0.08em; padding: 0.3rem 0; white-space: nowrap; }
    .header-right .icon-link svg { width: 20px; height: 20px; }
    .header-right form { margin: 0; }
}
@media (max-width: 380px) {
    .header-right { gap: 0.65rem; }
    .header-right .avatar { display: none; }
    .header-right .header-link,
    .header-right .signout-btn { font-size: 0.6rem; letter-spacing: 0.06em; }
}


/* ---- Weekly availability: day heading, then time windows that always fit the screen ---- */
.avail-list { margin-top: 0.5rem; }
.avail-day { padding: 0.8rem 0; border-top: 1px solid var(--tile-border); }
.avail-day:first-child { border-top: 0; }
.avail-day .day { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.avail-window { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; }
.avail-window[hidden] { display: none; }
.avail-window input[type="time"] { width: 100%; min-width: 0; }
.avail-window .to { color: var(--warm-gray); font-size: 0.85rem; }
.avail-add { background: none; border: 0; padding: 0.25rem 0; cursor: pointer; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--primary); }
.avail-add:hover { color: var(--primary-deep); text-decoration: underline; }
.avail-add:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }


/* ---- Phone rhythm: tighter page padding, one consistent gap between blocks, smaller card padding ---- */
@media (max-width: 560px) {
    main.page { padding: 1.4rem 1rem 1.5rem; }
    .page-head { margin-bottom: 1.4rem; padding: 0; }
    .card { padding: 1.2rem 1.15rem; }
    .card + .card,
    .card + form > .card:first-of-type { margin-top: 1rem; }
    .card[style*="margin-bottom"] { margin-bottom: 1rem !important; }
    .card[style*="margin-bottom"] + .card,
    .card[style*="margin-bottom"] + form > .card:first-of-type { margin-top: 0; }
    form > .card + .card { margin-top: 1rem; }
}


/* ---- Phone footer: a slim line of links, not a website footer above the app's own bottom menu ---- */
@media (max-width: 720px) {
    .site-footer { background: transparent; border-top: 0; }
    .site-footer .bar { padding: 0.4rem 1rem 1.1rem; justify-content: center; font-size: 0.8rem; }
    .site-footer .wordmark,
    .site-footer .tagline { display: none; }
    .site-footer .footer-links { gap: 1.4rem; }
    .site-footer a { color: var(--text-muted, var(--warm-gray)); }
}


/* Imagery (hydrangea banner, leaf sprig) removed at Ellen's request on Oct 9; text only for now. */


/* ---- Phone: Terms and Privacy sit at the bottom of the screen on short pages (the base footer's margin-top: auto) ---- */
@media (max-width: 720px) {
    main.page { padding-bottom: 1rem; }
}

/* ---- Phone: a conversation fills the screen, with the composer resting above the tab bar ---- */
@media (max-width: 720px) {
    main.page:has(.composer) { flex: 1; display: flex; flex-direction: column; }
    main.page:has(.composer) .chat-thread { flex: 1; }
    main.page:has(.composer) .composer { margin-top: 0.5rem; }
    body:has(.composer) .site-footer { display: none; }
}

/* ---- Back link on every page you can drill into ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}
.back-link:hover { text-decoration: none; opacity: 0.8; }
.back-link span { font-size: 1.6rem; line-height: 1; margin-top: -0.15rem; }

/* ---- Phone app: signed-in members have the tab bar, so Terms and Privacy live under More instead of on every page ---- */
@media (max-width: 720px) {
    .site-footer.has-tabbar { display: none; }
}

/* A page that opens with a back link starts closer to the header: the link's own tap area is the spacing. */
main.page:has(> .back-link:first-child) { padding-top: 0.35rem; }
.back-link { margin-bottom: 0; }
@media (min-width: 721px) {
    main.page:has(> .back-link:first-child) { padding-top: 1rem; }
}

/* ---- pill filters: a row of toggle pills (Sitters by sorority / favorites, Requests pending / confirmed) ---- */
.pill-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.25rem 0 1.1rem; }
/* A page title with its one action beside it (Requests: "Book a Sitter"); the pills then sit right under it. */
.head-with-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.head-with-action h1 { margin: 0; line-height: 1; }
/* The serif title's glyphs sit high in their box; nudge it down so its letters and the button share a middle. */
.head-with-action h1 { padding-top: 0.12em; }
.head-with-action .btn { padding: 0.6rem 1.3rem; font-size: 0.92rem; }
/* A tab page's title, then its filter pills straight under it (Requests, Sitters). */
.page-head:has(+ .pill-filters) { margin-bottom: 1rem; }
.page-head + .pill-filters { margin-top: 0; }
.pill-filters a {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.05rem;
    border: 1px solid var(--taupe); border-radius: 999px; background: var(--white);
    color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.pill-filters a .num { color: var(--warm-gray); font-weight: 400; }
.pill-filters a:hover { border-color: var(--bordeaux); color: var(--ink); text-decoration: none; }
.pill-filters a.active { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--white); }
.pill-filters a.active .num { color: rgba(255, 255, 255, 0.88); }
.pill-filters a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- Requests: the quiet "History…" row under a list, and the history page's sub-heading ---- */
.history-link { display: block; margin: 0.9rem 0 0; padding: 0.75rem 0; text-align: center; color: var(--primary); font-weight: 600; text-decoration: none; }
.history-link:hover { text-decoration: underline; }
.history-sub { margin: 1.5rem 0 0.7rem; font-size: 1rem; color: var(--ink-soft); }

/* ==================================================================
   Brand pass (2026-10-14): closer to the brand board — airy, editorial,
   photo-led. Section labels are lowercase and letter-spaced over a
   hairline; filter pills are outlined; lists are hairline rows.
   ================================================================== */

/* Section labels: "pending", "free to sit" — lowercase, tracked, a fine rule beneath. */
.section-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    color: var(--ink);
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--hairline);
}

/* Filter pills: light outlines; the chosen one is a soft blue tint, not a solid block. */
.pill-filters a { background: transparent; border-color: var(--putty); font-weight: 600; padding: 0.42rem 1rem; }
.pill-filters a:hover { border-color: var(--primary); color: var(--primary); }
.pill-filters a.active { background: rgba(142, 167, 199, 0.18); border-color: var(--primary); color: var(--primary-deep); }
.pill-filters a.active .num { color: var(--primary); }

/* Cards: quieter edges so the page breathes. */
.card { border-color: var(--hairline-soft); box-shadow: 0 1px 3px rgba(45, 58, 66, 0.04); }
.card:hover { border-color: var(--hairline); box-shadow: 0 6px 20px rgba(45, 58, 66, 0.06); }

/* Home: "Need a sitter?" and the one action, side by side in a quiet card. */
.need-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.need-card h2 { margin: 0; font-size: 1.7rem; }
.need-card .btn { white-space: nowrap; }

/* Home hero: the season's hydrangeas with the one action floating over them (SeasonalHero). */
.hero-photo {
    position: relative;
    min-height: 15rem;
    aspect-ratio: 16 / 10;
    max-height: 22rem;
    width: 100%;
    border-radius: var(--radius-lg);
    background-color: var(--ivory);
    background-size: cover;
    background-position: center 40%;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
/* A soft fade at the foot so the panel sits on calm ground whatever the season's photo. */
.hero-photo::after {
    content: ""; position: absolute; inset: 45% 0 0 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(45, 58, 66, 0) 0%, rgba(45, 58, 66, 0.16) 100%);
}
.hero-panel {
    position: absolute; z-index: 1;
    left: 0.9rem; right: 0.9rem; bottom: 0.9rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.95rem 1.1rem 0.95rem 1.3rem;
    background: rgba(255, 253, 248, 0.92);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 24px rgba(45, 58, 66, 0.12);
}
.hero-panel h2 { margin: 0; font-size: 1.7rem; }
.hero-panel .btn { white-space: nowrap; }
@media (max-width: 380px) { .hero-panel { gap: 0.6rem; padding-left: 1rem; } .hero-panel h2 { font-size: 1.45rem; } }
@media (min-width: 720px) { .hero-panel { left: 1.4rem; right: auto; bottom: 1.4rem; min-width: 22rem; } }

/* Sitter profile: her photo across the top, name beneath. */
.profile-photo { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 26rem; object-fit: cover; object-position: center; border-radius: var(--radius-lg); margin-bottom: 1.1rem; }
.profile-name { margin-bottom: 0.35rem; }

/* Cormorant's old-style figures sit low in times and dates; titles use lining figures. */
h1, h2, .card-title, .hero-panel h2 { font-variant-numeric: lining-nums; }

/* Chapter badge: the sorority's Greek letters in a round seal — blue letters on white with a thin blue ring once her chapter
   confirms her (Oct 23: the filled blue circle read as bulky), grey until then. */
.chapter-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.75rem; height: 1.75rem; padding: 0 0.35rem; margin-left: 0.4rem; border-radius: 999px; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; line-height: 1; letter-spacing: 0.02em; vertical-align: middle; white-space: nowrap; }
.chapter-badge.verified { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 55%, transparent); }
.chapter-link { color: inherit; text-decoration: none; }
/* A sitter's name on a parent's booking that opens her profile: reads as the title, underlines on hover. */
.name-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.name-link:hover, .name-link:focus-visible { text-decoration-color: currentColor; }
.chapter-link .chapter-name { color: var(--primary); }
.chapter-link:hover .chapter-name { text-decoration: underline; text-underline-offset: 2px; }
.chapter-badge.pending { background: rgba(86, 99, 108, 0.08); color: var(--warm-gray); border: 1px dashed rgba(86, 99, 108, 0.45); }

/* ---- Your circle: people as hairline rows in one quiet panel ---- */
.circle-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.circle-list li { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; }
.circle-list li + li { border-top: 1px solid var(--hairline-soft); }
.circle-list .circle-name { flex: 1; min-width: 0; font-weight: 600; }
.circle-list .circle-name .meta { display: block; font-weight: 400; font-size: 0.85rem; color: var(--warm-gray); }
.circle-list .circle-link { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.circle-list li > .btn { flex-shrink: 0; }

/* "Text an invite" and "Choose from contacts" (public/js/invite.js) */
.text-invite .btn[type="submit"] { width: 100%; }
.text-invite .hint { margin-top: 0.5rem; }
/* The share card's hidden link input: form-input widths otherwise beat .sr-only and push the page sideways. */
input.sr-only { width: 1px !important; min-width: 0 !important; min-height: 0 !important; }
.text-invite-ready { margin-top: 0.75rem; display: grid; gap: 0.6rem; justify-items: start; }
.text-invite-ready[hidden], .text-invite-error[hidden], [data-contact-pick][hidden], .picked-name[hidden] { display: none !important; }
.or-type { margin: 1.1rem 0 0.6rem; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.label-row label { margin-bottom: 0; }
.picked-name { display: block; margin-top: 0.35rem; font-weight: 600; }

/* Vertical carousel of chapters: three rows tall, starting at the top (no blank row), snapping row by row;
   the bottom edge fades to show there are more. */
.chapter-carousel {
    --row: 2.6rem;
    position: relative;
    box-sizing: border-box;
    height: calc(3 * var(--row) + 0.6rem);
    padding: 0.3rem;
    scroll-padding: 0.3rem;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 1px solid var(--putty);
    border-radius: var(--radius, 14px);
    background: var(--surface, #fff);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, rgba(0,0,0,0.4) 100%);
            mask-image: linear-gradient(to bottom, #000 70%, rgba(0,0,0,0.4) 100%);
}
.chapter-carousel::-webkit-scrollbar { display: none; }
.chapter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    box-sizing: border-box;
    height: var(--row);
    padding: 0 0.85rem;
    border-radius: 10px;
    scroll-snap-align: start;
    color: var(--ink);
    text-decoration: none;
}
.chapter-option:hover { background: rgba(217, 208, 196, 0.3); text-decoration: none; }
.chapter-option.active:hover { background: var(--primary); }
.chapter-option .num { color: var(--warm-gray); font-size: 0.85rem; }
.chapter-option.empty { color: var(--warm-gray); opacity: 0.6; }
.chapter-option.active { background: var(--primary); color: #fff; font-weight: 600; opacity: 1; }
.chapter-option.active .num { color: rgba(255, 255, 255, 0.85); }

button.chapter-option { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }

/* ---- Book a Sitter: month calendar ---- */
.cal { border: 1px solid var(--putty); border-radius: var(--radius-lg); background: var(--surface); padding: 0.75rem 0.75rem 0.9rem; }
.cal-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.cal.js .cal-head { display: flex; }
.cal-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.cal-nav { width: 2.4rem; height: 2.4rem; border: 0; border-radius: 999px; background: none; color: var(--primary); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cal-nav:hover { background: rgba(142, 167, 199, 0.18); }
.cal-nav:disabled { color: var(--putty); cursor: default; background: none; }
.cal-name { font-family: var(--font-display); font-size: 1.2rem; margin: 0.6rem 0 0.3rem; text-align: center; }
.cal.js .cal-name { display: none; }
.cal.js .cal-month:not(.shown) { display: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.2rem; text-align: center; }
.cal-dow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--warm-gray); padding: 0.2rem 0 0.35rem; }
.cal-day { display: grid; place-items: center; aspect-ratio: 1; max-height: 2.8rem; margin: 0 auto; width: 100%; max-width: 2.8rem; border-radius: 999px; font-variant-numeric: lining-nums tabular-nums; cursor: pointer; }
.cal-day input { position: absolute; opacity: 0; pointer-events: none; }
.cal-day span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 999px; }
.cal-day:hover span { background: rgba(142, 167, 199, 0.2); }
.cal-day.today span { box-shadow: inset 0 0 0 1px var(--blue); }
.cal-day input:checked + span { background: var(--primary); color: #fff; font-weight: 700; box-shadow: none; }
.cal-day input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
.cal-day.off { color: var(--putty); cursor: default; }

/* ---- Book a Sitter: time wheels (three rows, the middle one is the choice) ---- */
.wheel {
    --row: 2.6rem;
    position: relative; box-sizing: border-box; height: calc(3 * var(--row)); padding: var(--row) 0.3rem;
    overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none;
    border: 1px solid var(--putty); border-radius: var(--radius-lg); background: var(--surface);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0, #000 33%, #000 67%, rgba(0,0,0,0.4) 100%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0, #000 33%, #000 67%, rgba(0,0,0,0.4) 100%);
}
.wheel::-webkit-scrollbar { display: none; }
.wheel-opt { display: flex; align-items: center; justify-content: center; height: var(--row); border-radius: 10px; scroll-snap-align: center; cursor: pointer; font-variant-numeric: lining-nums tabular-nums; color: var(--ink-soft); }
.wheel-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wheel-opt:has(input:checked) { background: var(--primary); color: #fff; font-weight: 700; }
.wheel-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---- Book a Sitter: who it goes to ---- */
.aud-options { display: grid; gap: 0.55rem; margin-top: 0.6rem; }
.aud-options .checkline .muted { font-weight: 400; margin-left: 0.25rem; }
.aud-chapters { margin: 0.1rem 0 0 1.9rem; }
.aud-summary { margin: 1rem 0 0; font-weight: 600; color: var(--primary-deep); }
.aud-summary:empty { display: none; }
.aud-pick { margin-top: 1rem; border-top: 1px solid var(--hairline-soft); padding-top: 0.8rem; }
.aud-pick > summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 0.92rem; list-style: none; }
.aud-pick > summary::-webkit-details-marker { display: none; }
.aud-pick > summary::after { content: ' ›'; }
.aud-pick[open] > summary { margin-bottom: 0.75rem; }

/* ---- Confirm window ---- */
.confirm-dialog { margin: auto; width: min(92vw, 26rem); border: 0; border-radius: var(--radius-lg); padding: 1.6rem 1.5rem 1.4rem; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(45, 58, 66, 0.25); }
.confirm-dialog::backdrop { background: rgba(45, 58, 66, 0.38); }
.confirm-dialog h2 { margin: 0 0 0.6rem; }
.confirm-summary { margin: 0 0 0.75rem; line-height: 1.5; }
.confirm-pay { margin: 0 0 1.25rem; color: var(--warm-gray); font-size: 0.92rem; }
.confirm-dialog .btn-row { flex-wrap: nowrap; }
.confirm-dialog .btn-row .btn { flex: 1 1 0; justify-content: center; }
/* Calendar days and wheel rows are labels inside a .field; undo the field-label look. */
.field label.cal-day, .field label.wheel-opt { margin: 0; font-size: 1rem; font-weight: 400; letter-spacing: 0; color: inherit; }
.field label.cal-day { display: grid; }
.field label.wheel-opt { display: flex; color: var(--ink-soft); }
.field label.wheel-opt:has(input:checked) { color: #fff; font-weight: 700; }

/* Book a Sitter: the section that still needs something, and what. */
.req-form .card.is-missing { border-color: var(--error); box-shadow: 0 0 0 3px rgba(148, 64, 75, 0.12); }
.missing-note { margin: 0.8rem 0 0; color: var(--error); font-size: 0.9rem; font-weight: 600; }

/* Book a Sitter, "Request her": who and when, at the top. */
.quick-head { display: flex; align-items: center; gap: 1rem; }
.quick-head .avatar-lg { width: 72px; height: 72px; flex-shrink: 0; }
.quick-free { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.2; font-variant-numeric: lining-nums; }

/* Booking page: Message / Change the time / Cancel side by side on the sitter's card; the new-time form opens beneath. */
.booking-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.booking-actions > *, .booking-actions form .btn { flex: 1 1 0; justify-content: center; text-align: center; white-space: nowrap; }
.booking-actions form { display: flex; flex: 1 1 0; margin: 0; }
.reschedule-panel { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hairline-soft); }
.availability-card { margin-top: 1.75rem; }

/* Sitter offer page: Accept / Decline side by side; Can't make it? folded into one row. */
.offer-decide { margin-top: 1.25rem; }
.offer-decide .btn { width: 100%; }
.card.pass-on { margin-top: 1.25rem; }
.pass-send { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.9rem; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Sitter profile: folded settings — label and summary on one row, the form opens beneath. */
.setting-row { min-height: 3.6rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.setting-text { display: flex; flex-direction: column; min-width: 0; }
.setting-meta { font-weight: 400; font-size: 0.85rem; color: var(--warm-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setting-row[aria-expanded="true"] .chev { transform: rotate(90deg); }
.setting-panel { padding: 0.4rem 1.1rem 1.2rem; border-top: 1px solid var(--hairline-soft); }
.setting-panel + .more-row { border-top: 1px solid var(--hairline-soft); }
.setting-list .field:last-child { margin-bottom: 0.75rem; }
.me-status { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-top: 0.7rem; flex-wrap: wrap; }
.more-me .sitter-affiliation { margin-top: 0.3rem; }

/* Share your link: three buttons, the code behind the last. */
.share-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }
.share-actions .btn { flex: 1 1 0; justify-content: center; white-space: nowrap; }
.share-qr { margin-top: 1rem; display: flex; justify-content: center; }
.fav-mark { color: var(--error); font-size: 1.05rem; }
.share-qr[hidden] { display: none; }

/* ==================================================================
   Micro-interactions (2026-10-14): small, quick, and quiet — under half
   a second, never bouncy. All off for people who ask for less motion.
   ================================================================== */
@keyframes heart-pop { 0% { transform: scale(1); } 35% { transform: scale(1.32); } 65% { transform: scale(0.94); } 100% { transform: scale(1); } }
.heart-btn.pop svg { animation: heart-pop 420ms ease-out; }

@keyframes day-settle { 0% { transform: scale(0.82); opacity: 0.6; } 100% { transform: scale(1); opacity: 1; } }
.cal-day input:checked + span { animation: day-settle 220ms ease-out; }

@keyframes row-settle { 0% { transform: scale(0.96); } 100% { transform: scale(1); } }
.wheel-opt:has(input:checked), .chapter-option.active { animation: row-settle 180ms ease-out; }

/* Send / Accept turn into a check for a beat before the page moves on. */
.btn.is-done { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-done::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 0.55rem; height: 1rem;
    border: solid currentColor; border-color: #fff; border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -62%) rotate(45deg) scale(0); animation: check-in 260ms 40ms ease-out forwards;
}
.btn.secondary.is-done::after, .btn.quiet.is-done::after { border-color: var(--primary); }
@keyframes check-in { to { transform: translate(-50%, -62%) rotate(45deg) scale(1); } }

/* Pills, rows and buttons answer a press. */
.btn, .pill-filters a, .more-row, .chapter-option, .cal-day span { transition: transform 120ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
.btn:active, .pill-filters a:active { transform: scale(0.97); }
.more-row:active, .chapter-option:active { transform: scale(0.99); }

@media (prefers-reduced-motion: reduce) {
    .heart-btn.pop svg, .cal-day input:checked + span, .wheel-opt:has(input:checked), .chapter-option.active, .btn.is-done::after { animation: none; }
    .btn.is-done::after { transform: translate(-50%, -62%) rotate(45deg) scale(1); }
    .btn:active, .pill-filters a:active, .more-row:active, .chapter-option:active { transform: none; }
}

/* ---- "She said yes": a garden grows, then the news ---- */
.celebrate { margin: auto; width: min(92vw, 25rem); border: 0; border-radius: 20px; padding: 0; overflow: hidden; background: var(--surface); color: var(--ink); box-shadow: 0 28px 70px rgba(45, 58, 66, 0.28); text-align: center; }
.celebrate::backdrop { background: rgba(45, 58, 66, 0.42); animation: fade-in 300ms ease-out; }
.garden { display: block; width: 100%; height: 9.5rem; background: linear-gradient(to bottom, #F3EEDF, var(--surface)); }
.garden .stem { fill: none; stroke: #7E9A72; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: grow-stem 700ms ease-out forwards; animation-delay: var(--d); }
.garden .leaf { fill: #A7B89F; opacity: 0; animation: fade-in 360ms ease-out forwards; animation-delay: calc(var(--d) + 380ms); }
.garden .bloom { scale: 0; animation: grow-bloom 520ms cubic-bezier(.2, .9, .3, 1.25) forwards; animation-delay: calc(var(--d) + 620ms); }
.garden .bloom circle { stroke: rgba(71, 111, 161, 0.18); stroke-width: 0.5; }
.celebrate-body { padding: 0 1.5rem 1.5rem; }
.celebrate-face { margin-top: -2.2rem; opacity: 0; animation: fade-up 420ms ease-out 1.15s forwards; }
.celebrate-face .avatar-lg { width: 76px; height: 76px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--blue); }
.celebrate h2 { margin: 0.75rem 0 0.25rem; font-size: 2rem; opacity: 0; animation: fade-up 420ms ease-out 1.3s forwards; }
.celebrate-when { margin: 0 0 0.4rem; color: var(--ink-soft); opacity: 0; animation: fade-up 420ms ease-out 1.42s forwards; font-variant-numeric: lining-nums; }
.celebrate .btn-row { margin-top: 1.2rem; flex-wrap: nowrap; opacity: 0; animation: fade-up 420ms ease-out 1.55s forwards; }
.celebrate .btn-row .btn { flex: 1 1 0; justify-content: center; padding-inline: 0.9rem; white-space: nowrap; }
.celebrate h2:focus { outline: none; }
@keyframes grow-stem { to { stroke-dashoffset: 0; } }
@keyframes grow-leaf { to { scale: 1; } }
@keyframes grow-bloom { to { scale: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .garden .stem, .garden .leaf, .garden .bloom, .celebrate-face, .celebrate h2, .celebrate-when, .celebrate .btn-row, .celebrate::backdrop { animation: none; stroke-dashoffset: 0; scale: 1; opacity: 1; }
}

/* Sitter checklist: chips for ages, checklines for the rest; on her profile, a list with fine check icons. */
.traits .label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 0.5rem; }
.trait-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.trait-chip { cursor: pointer; }
.trait-chip input { position: absolute; opacity: 0; pointer-events: none; }
.trait-chip span { display: inline-block; padding: 0.42rem 0.95rem; border: 1px solid var(--putty); border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); background: var(--surface); transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
.trait-chip input:checked + span { background: rgba(142, 167, 199, 0.2); border-color: var(--primary); color: var(--primary-deep); }
.trait-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.trait-list { display: grid; gap: 0.5rem; }
.trait-sub { margin: 0 0 0.3rem 1.9rem; max-width: 16rem; }
.trait-card { margin-top: 1rem; }
.trait-show { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.trait-show li { display: flex; align-items: center; gap: 0.6rem; }
.trait-show svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--success); }

/* Onboarding: a focused screen (no menus), progress dots, one question at a time. */
body.focus .tab-bar, body.focus .site-nav, body.focus .header-right { display: none; }
body.focus .site-footer.has-tabbar { padding-bottom: 1.5rem; }
.onb { max-width: 30rem; margin: 0 auto; }
.onb-top { display: flex; align-items: center; justify-content: space-between; min-height: 2.2rem; margin-bottom: 1.2rem; }
.onb-dots { display: flex; gap: 0.35rem; }
.onb-dots span { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--putty); transition: width 220ms ease-out, background-color 220ms ease-out; }
.onb-dots span.on { width: 1.3rem; background: var(--primary); }
.onb-dots span.past { background: var(--blue); }
.onb h1 { font-size: 2.3rem; margin: 0 0 0.5rem; }
.onb .lede { color: var(--ink-soft); margin: 0 0 1.4rem; font-size: 1.05rem; }
.onb-actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.5rem; }
.onb-actions .btn { width: 100%; justify-content: center; }
.onb-skip { text-align: center; color: var(--warm-gray); font-weight: 600; font-size: 0.92rem; }
.onb-invited { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; margin-bottom: 1.4rem; }
.onb-invited .avatar-lg { width: 60px; height: 60px; }
.onb-photo { display: flex; justify-content: center; margin: 0.5rem 0 1rem; }
.onb-photo .more-photo .avatar-lg { width: 132px; height: 132px; font-size: 3rem; }
.onb-done { text-align: center; }
.onb-done .garden { height: 11rem; border-radius: var(--radius-lg); margin-bottom: 1rem; }
.onb .circle-list { margin-bottom: 0.8rem; }
.circle-name .sitter-affiliation { display: block; font-weight: 400; margin: 0.1rem 0 0; }


/* ---- Viewing Village as a member (super admin) ----
   Pinned to the top of every page, in ink, so it can't be mistaken for the member's own screen. */
.view-as-bar {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.6rem 1rem; padding-top: calc(0.6rem + env(safe-area-inset-top, 0px));
    background: var(--ink); color: var(--white);
    font-size: 0.92rem; line-height: 1.35;
    box-shadow: 0 0 0 3px var(--butter);
}
.view-as-bar p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.view-as-bar strong { color: var(--butter); font-weight: 700; }
.view-as-bar form { margin: 0; flex: none; }
.view-as-bar button {
    min-height: 44px; padding: 0 1rem; border-radius: var(--radius-pill); border: 0; cursor: pointer;
    background: var(--butter); color: var(--ink); font: inherit; font-weight: 700; white-space: nowrap;
}
.view-as-bar button:hover { background: var(--white); }
.view-as-bar button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* The fine print: two small links at the very bottom of More and the sitter's Profile. */
.fine-print { margin: 2rem 0 0; text-align: center; font-size: 0.78rem; color: var(--warm-gray); }
.fine-print a { color: var(--warm-gray); }
.fine-print a:hover { color: var(--primary); }

/* Sign-in code step: "Didn't get a code?" folds open to why, and the fresh-code / different-number links. */
.code-help p { margin: 0 0 0.6rem; }

.btn.danger-btn { background: var(--error); border-color: var(--error); color: #fff; }
.btn.danger-btn:hover { background: #7d3540; border-color: #7d3540; }

/* Inside the iPhone app (js/native.js marks <html class="in-app">): no admin portal link. */
html.in-app .admin-signin { display: none; }

/* ---- a sitter's profile, as a parent sees it ---------------------------
   One column: header, the facts at a glance, actions, words from parents, her experience, about, why shown. */
.sitter-profile { max-width: 44rem; }
.sitter-profile > .page-head { margin-bottom: 1.4rem; }
.sitter-profile > * + * { margin-top: 1.25rem; }
.sitter-profile > .profile-section { margin-top: 2.4rem; }
.sitter-profile > .profile-section + .card { margin-top: 2.4rem; }
.member-since { margin: 0.25rem 0 0; }

.trust-summary { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.6rem; }
.trust-fact {
    display: flex; align-items: center; gap: 0.55rem; min-width: 0;
    padding: 0.7rem 0.9rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--tile-border);
    font-weight: 600; font-size: 0.94rem; line-height: 1.3; color: var(--ink);
}
.trust-fact svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--success); }
/* Her own claim (CPR): same tile, no check, quieter. */
.trust-fact.said { font-weight: 500; color: var(--ink-soft); background: transparent; }
.trust-fact.said svg { color: var(--warm-gray); }
@media (max-width: 420px) {
    .trust-summary { grid-template-columns: 1fr 1fr; }
    .trust-fact { padding: 0.6rem 0.7rem; font-size: 0.88rem; align-items: flex-start; }
}

.profile-actions { padding: 1.4rem 1.6rem; }
.profile-actions .state-line { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.profile-actions .state-line + .state-line { margin-top: 0.4rem; }
.profile-actions .state-line form { margin: 0; line-height: 0; }
/* The backup shield, beside the heart. */
.backup-btn { flex: none; border: 0; background: none; padding: 0.35rem; cursor: pointer; color: var(--warm-gray); border-radius: var(--radius-pill); line-height: 0; }
.backup-btn:hover { color: var(--primary); }
.backup-btn.on { color: var(--primary); }
.backup-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.share-friend { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--hairline-soft); }
.share-friend .label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; }
.share-friend-row, .recommend-form { display: flex; gap: 0.5rem; align-items: center; }
.share-friend-row select, .recommend-form input { flex: 1; min-width: 0; }
.recommend-card { padding: 1.3rem 1.6rem; }
.recommend-card h3 { margin: 0; font-size: 1.1rem; }
.recommend-card .recommend-form { margin-top: 0.8rem; }
.recommend-edit { margin-top: 0.6rem; }
.recommend-edit summary { list-style: none; display: inline; }
.recommend-edit summary::-webkit-details-marker { display: none; }
/* A friend's own line about a sitter. */
.rec-note { margin: 0.35rem 0 0; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); font-style: italic; }
.rec-note span { font-style: normal; color: var(--warm-gray); white-space: nowrap; }
.rec-note span::before { content: "— "; }

.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-title-row .eyebrow { margin-bottom: 0.6rem; }
.rating-mark { font-weight: 600; color: var(--bronze); white-space: nowrap; }
.profile-section .badge-row { margin: 0 0 1.1rem; }
.profile-section .review-card + .review-card { margin-top: 0.9rem; }

.said-note { font-size: 0.8rem; letter-spacing: 0.02em; color: var(--warm-gray); white-space: nowrap; }
.exp-list { margin: 0.3rem 0 0; display: grid; gap: 0; }
.exp-list > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.25rem 1rem; padding: 0.7rem 0; border-top: 1px solid var(--hairline-soft); align-items: baseline; }
.exp-list > div:first-child { border-top: 0; padding-top: 0.2rem; }
.exp-list > div:last-child { padding-bottom: 0; }
.exp-list dt { color: var(--warm-gray); font-size: 0.9rem; }
.exp-list dd { margin: 0; }
.exp-list .chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.exp-list .chip { white-space: normal; }
@media (max-width: 480px) {
    .exp-list > div { grid-template-columns: 1fr; }
}
