/* Network screens: the Sitters tab, More, invitations, the share link and QR codes. Uses the theme
   variables from app.css (set from the database); nothing here hard-codes a colour. */

/* ---- filter pills (Sitters tab) ---- */
/* ---- sitter cards: one compact row; the whole row opens her profile, the heart sits top-right ---- */
/* One quiet panel of hairline rows, like the board's sitter list. */
.sitter-list { display: block; border: 1px solid var(--hairline-soft, rgba(45, 58, 66, 0.09)); border-radius: 16px; background: var(--surface, var(--white)); overflow: hidden; }
.sitter-card {
    position: relative; display: flex; align-items: flex-start; gap: 0.95rem; padding: 1rem 1.1rem;
    background: transparent;
}
.sitter-card + .sitter-card { border-top: 1px solid var(--hairline-soft, rgba(45, 58, 66, 0.09)); }
.sitter-card:hover { background: rgba(217, 208, 196, 0.14); }
.sitter-card .who { flex: 1; min-width: 0; }
.sitter-card h3 { margin: 0.1rem 0 0; font-size: 1.12rem; line-height: 1.25; }
.sitter-card h3 a { color: var(--ink); text-decoration: none; }
.sitter-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; } /* makes the whole card the link */
.sitter-card h3 a:focus-visible { outline: none; }
.sitter-card h3 a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 2px; }
.sitter-card .sitter-affiliation { margin: 0.1rem 0 0; font-size: 0.88rem; }
.sitter-card .why {
    margin: 0.3rem 0 0; font-size: 0.84rem; line-height: 1.35; color: var(--warm-gray);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sitter-card .actions { position: relative; z-index: 1; flex: none; margin: -0.2rem -0.3rem 0 0; }
.page-head .btn-row { margin-top: 1rem; }

/* ---- More: grouped one-line rows, like a phone's settings ---- */
.more-list {
    display: block; max-width: 560px; margin: 0 0 1.1rem; overflow: hidden;
    border: 1px solid var(--tile-border); border-radius: 16px; background: var(--surface, var(--white));
}
.more-row {
    display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 3.1rem; padding: 0 1.1rem;
    color: var(--ink); font: inherit; font-size: 1rem; font-weight: 600; text-align: left; text-decoration: none;
    background: none; border: 0; cursor: pointer;
}
.more-row + .more-row { border-top: 1px solid var(--hairline-soft, rgba(45, 58, 66, 0.09)); }
.more-row:hover { background: rgba(217, 208, 196, 0.22); text-decoration: none; }
.more-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.more-row .chev { margin-left: auto; color: var(--warm-gray); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.more-count { margin-left: auto; min-width: 1.4rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: 0.75rem; text-align: center; }
.more-count + .chev { margin-left: 0; }
.more-signout { justify-content: center; color: var(--error); }
.more-icon { width: 21px; height: 21px; flex-shrink: 0; color: var(--primary); }
.more-list-signout { margin-top: 1.6rem; }
.more-remove-photo { text-align: center; margin-top: 0.4rem; }
.more-remove-photo button { background: none; border: 0; color: var(--warm-gray); cursor: pointer; font: inherit; font-size: 0.85rem; }
.more-remove-photo button:hover { color: var(--error); }
/* Who you are: centered photo with a fine blue ring, name in the display face. */
.more-me { text-align: center; margin: 0.6rem 0 1.6rem; }
.more-me h1 { margin: 0.85rem 0 0; font-size: 2.1rem; line-height: 1.1; }
.more-me .meta { margin: 0.25rem 0 0; color: var(--warm-gray); }
.more-photo { position: relative; display: inline-block; cursor: pointer; border-radius: 999px; }
.more-photo .avatar-lg { width: 104px; height: 104px; font-size: 2.4rem; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--blue); }
.more-photo-edit { position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--primary); color: #fff; box-shadow: 0 0 0 3px var(--cream); }
.more-photo-edit svg { width: 17px; height: 17px; }
.more-photo:focus-within { outline: 2px solid var(--ink); outline-offset: 4px; }
.more-list + .section-title { margin-top: 1.9rem; }

/* ---- invitations ---- */
/* app.css styles text/email/number inputs but not phone inputs; match them (16px so iOS does not zoom on focus). */
input[type="tel"] {
    width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--white);
    border: 1px solid var(--input-border, var(--taupe)); border-radius: var(--radius); padding: 0.62rem 0.8rem;
    transition: border-color var(--ease), box-shadow var(--ease);
}
input[type="tel"]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.invite-card .hint { margin-top: 0.85rem; }
.invite-ready { border-color: var(--blue); background: var(--ivory); margin-bottom: 1.5rem; }
.invite-ready h2 { margin: 0.2rem 0 0.4rem; }
.ready-row, .share-row { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; margin-top: 0.9rem; }
.ready-main, .share-main { flex: 1 1 260px; min-width: 0; }
.ready-main .btn-row, .share-main .btn-row { margin-top: 0.75rem; }
.share-card { margin-top: 1.5rem; }
.invite-sub { display: block; font-size: 0.85rem; color: var(--warm-gray); margin-top: 0.4rem; }
.two-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.invited-by { margin: 0 0 1.1rem; padding: 0.8rem 1rem; border-radius: 12px; background: var(--ivory); color: var(--ink-soft); }

/* ---- QR codes (inline SVG, painted by the text colour) ---- */
.qr {
    margin: 0; flex: none; width: 168px; padding: 0.5rem; color: var(--ink);
    background: var(--white); border: 1px solid var(--tile-border); border-radius: 12px;
}
.qr svg { display: block; width: 100%; height: auto; }
.qr figcaption { padding: 0.25rem 0 0.1rem; text-align: center; font-size: 0.72rem; color: var(--warm-gray); }
.qr.big { width: 240px; }

/* ---- a member's personal invite code (Share Village) ---- */
.invite-code {
    margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.2em;
    color: var(--ink); font-variant-numeric: lining-nums tabular-nums;
}
@media (max-width: 480px) {
    .share-card .share-row { flex-direction: column; align-items: center; }
    .share-card .share-main { width: 100%; flex-basis: auto; text-align: center; }
}

/* ---- admin: the printable sign-up QR ---- */
.qr-print .share-row { align-items: center; }
@media print {
    .site-header, .site-footer, .admin-sidebar, .tab-bar, .banner-wrap, .page-head,
    main.page > *:not(.qr-print) { display: none !important; }
    .admin-shell { display: block; padding: 0; }
    .qr-print { border: 0; box-shadow: none; background: none; }
    .qr-print .no-print { display: none !important; }
    .qr, .qr.big { border: 0; width: 320px; }
    body { background: #fff; }
}

/* Phone: the three filters share one row */
@media (max-width: 720px) {
    .pill-filters { flex-wrap: nowrap; gap: 0.4rem; }
    .pill-filters a { flex: 0 1 auto; white-space: nowrap; padding-left: 0.85rem; padding-right: 0.85rem; font-size: 0.92rem; }
}

/* More: opens with who you are, not a title banner */

/* Verified chapter chip, required marks, and the By sorority view */
.req { font-weight: 400; color: var(--warm-gray); }
.browse-form { margin: 0 0 1.1rem; }
.browse-form .field { margin: 0; }
/* Location row under the pills: pin + where you're looking; the pin opens current location or a typed zip / city. */
.near-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: -0.35rem 0 1rem; }
.near-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.2rem; border: 0; background: none; color: var(--primary); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.near-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.school-filter { display: flex; align-items: center; gap: 0.35rem; margin: 0.55rem 0 0; font-size: 0.92rem; font-weight: 600; color: var(--ink); min-width: 0; }
.school-filter span { overflow-wrap: anywhere; }
.near-clear { color: var(--warm-gray); font-size: 1.2rem; line-height: 1; padding: 0 0.3rem; text-decoration: none; }
.near-panel { flex-basis: 100%; display: grid; gap: 0.5rem; padding: 0.85rem; border: 1px solid var(--putty); border-radius: var(--radius, 12px); background: var(--surface, #fff); }
.near-panel[hidden] { display: none; }
.near-panel .near-or { margin: 0; text-align: center; }
.near-enter { display: flex; gap: 0.5rem; }
.near-enter input { flex: 1; min-width: 0; }
.near-panel [data-locate-status]:empty { display: none; }
.browse-form .label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.25rem; }
.chapter-group { margin: 1.4rem 0 0.6rem; display: flex; align-items: baseline; gap: 0.5rem; }
.chapter-group h2 { margin: 0; font-size: 1.35rem; font-weight: 500; letter-spacing: 0.01em; }
.chapter-group .num { color: var(--warm-gray); font-size: 0.9rem; }

/* ---- My Village: folded rows (title, chevron) that open in place; a small options menu per sitter ---- */
.village-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.village-head h1 { margin: 0; }
.fold-head { margin: 0; font: inherit; }
.fold-row {
    display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 3.6rem; padding: 0.4rem 0.15rem;
    background: none; border: 0; border-bottom: 1px solid var(--hairline); cursor: pointer; text-align: left; color: var(--ink);
}
.fold-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fold-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; letter-spacing: 0.05em; text-transform: lowercase; }
.fold-row .chev { margin-left: auto; color: var(--warm-gray); font-size: 1.4rem; line-height: 1; transition: transform 150ms ease-out; }
.fold-row[aria-expanded="true"] .chev { transform: rotate(90deg); }
.fold-panel { padding: 1rem 0 1.4rem; }
/* Find sitters: one wide button, held just above the tab bar while the rows scroll beneath. */
.village-find { position: sticky; bottom: 1rem; z-index: 30; margin-top: 2rem; }
.village-find-btn { display: block; width: 100%; padding: 0.95rem 1.7rem; font-size: 1.05rem; font-weight: 600; box-shadow: 0 6px 18px rgba(45, 58, 66, 0.16); }
@media (max-width: 720px) {
    .village-find {
        position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); margin: 0; padding: 0.9rem 1rem 0.6rem;
        background: linear-gradient(to bottom, transparent, var(--cream) 35%);
    }
    body:has(.village-find) { padding-bottom: calc(64px + 4.6rem + env(safe-area-inset-bottom)); }
}
.village-list { overflow: visible; }
.village-card:first-child { border-radius: 16px 16px 0 0; }
.village-card:last-child { border-radius: 0 0 16px 16px; }
.village-card:only-child { border-radius: 16px; }
.village-card .village-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.village-card .village-cta { position: relative; z-index: 1; margin-top: 0.75rem; }
.availability-offer .village-cta { margin-top: 0.9rem; }
.row-menu { position: relative; z-index: 2; }
.row-menu summary {
    list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
    color: var(--warm-gray); border-radius: var(--radius-pill);
}
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:hover, .row-menu[open] summary { background: var(--hairline-soft); color: var(--ink); }
.row-menu summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.row-menu .menu {
    position: absolute; right: 0; top: 46px; min-width: 13.5rem; padding: 0.35rem; z-index: 5;
    background: var(--surface, var(--white)); border: 1px solid var(--hairline); border-radius: var(--radius);
    box-shadow: 0 12px 32px var(--hairline);
}
.row-menu .menu form { margin: 0; }
.row-menu .menu a, .row-menu .menu button {
    display: block; width: 100%; padding: 0.65rem 0.8rem; border: 0; border-radius: var(--radius-sm); background: none;
    font: inherit; font-size: 0.95rem; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer;
}
.row-menu .menu a:hover, .row-menu .menu button:hover,
.row-menu .menu a:focus-visible, .row-menu .menu button:focus-visible { background: var(--hairline-soft); outline: none; }

/* ---- My circle on My Village: requests, connected moms, add a parent ---- */
.your-circle .circle-sub {
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 400; letter-spacing: 0.14em;
    text-transform: lowercase; color: var(--ink-soft); margin: 1.1rem 0 0.5rem;
}
.circle-waiting { padding-bottom: 0.4rem; }
.circle-waiting .circle-sub { margin-top: 0.9rem; }
.your-circle .circle-list + .circle-list { margin-top: 0.75rem; }
.your-circle .circle-link .chev { margin-left: auto; color: var(--warm-gray); font-size: 1.4rem; line-height: 1; }
.circle-requests li { flex-wrap: wrap; }
.circle-requests .circle-actions { flex-basis: 100%; margin: 0; padding-left: calc(32px + 0.8rem); gap: 0.4rem; }
.circle-requests .circle-actions form { margin: 0; }
.circle-requests .circle-report { color: var(--warm-gray); }
.circle-show-all { margin-top: 0.5rem; }
.circle-add { margin-top: 1rem; }
.circle-add > summary { list-style: none; display: inline-flex; cursor: pointer; }
.circle-add > summary::-webkit-details-marker { display: none; }
.circle-add[open] > summary { margin-bottom: 0.75rem; }
.circle-add .invite-ready { margin-bottom: 0.75rem; }
.village-folds + .village-empty { padding-top: 2.5rem; }

/* ---- My Circles: two rings, one lit; a quiet move menu per person ---- */
.circles-waiting { margin-bottom: 1.6rem; }
.circles-waiting .circle-sub, .circles-add .circle-sub {
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 400; letter-spacing: 0.14em;
    text-transform: lowercase; color: var(--ink-soft); margin: 1.1rem 0 0.5rem;
}
.circles-level { margin-bottom: 1.8rem; }
.circles-title {
    display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--hairline); font-family: var(--font-display); font-size: 1.45rem; font-weight: 500;
    letter-spacing: 0.05em; text-transform: lowercase;
}
.circles-mark { flex-shrink: 0; color: var(--primary); }
.circles-count { font-family: var(--font-body, inherit); font-size: 0.9rem; letter-spacing: 0; color: var(--warm-gray); }
.circles-none { margin: 0; }
.circles-list { overflow: visible; }
.circles-list li { gap: 0.5rem; }
.circles-list .heart-form { margin: 0; }
.circles-folds { margin-bottom: 0.5rem; }
.circle-requests .circle-level { margin-bottom: 0.1rem; }
.level-pick .trait-chip span { padding: 0.32rem 0.8rem; font-size: 0.84rem; }
.circles-add { margin-top: 1.2rem; }

/* ---- A friend's sitters: a checklist with Select all, Request selected, Add to favorites ---- */
.friend-pick { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.friend-pick .select-all { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; margin-right: auto; cursor: pointer; }
.friend-sitters li { gap: 0.7rem; }
.friend-sitters .pick { width: 1.15rem; height: 1.15rem; flex-shrink: 0; accent-color: var(--primary); margin: 0; }
.friend-sitters .pick-spacer { width: 1.15rem; flex-shrink: 0; }
.friend-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }
.friend-actions .btn[disabled] { opacity: 0.45; cursor: default; }
.friend-remove { margin-top: 2rem; text-align: center; }

/* Find sitters: My circle | Favorites | By sorority, one row of equal widths (Tim, Oct 29: never a wrap of tags). */
.pill-filters.even { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
.pill-filters.even a { justify-content: center; min-width: 0; padding-left: 0.4rem; padding-right: 0.4rem; white-space: nowrap; }
/* By sorority: a search box over the sororities (hers starred, first); the star tags one as hers. */
.chapter-search-row { display: flex; align-items: center; gap: 0.25rem; }
.chapter-search { position: relative; flex: 1; min-width: 0; }
.chapter-search-box { position: relative; }
.chapter-search-box > svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--warm-gray); pointer-events: none; }
.chapter-search-box input[type="text"] { padding-left: 2.4rem; padding-right: 2.2rem; }
.chapter-search-box .near-clear { position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%); }
.chapter-options {
    --row: 2.6rem;
    position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 0.3rem);
    max-height: calc(6 * var(--row) + 0.6rem); overflow-y: auto; overscroll-behavior: contain; padding: 0.3rem;
    border: 1px solid var(--putty); border-radius: var(--radius, 14px); background: var(--surface, #fff);
    box-shadow: 0 10px 30px rgba(45, 58, 66, 0.12);
}
.chapter-options[hidden], .chapter-options .chapter-option[hidden] { display: none; }
.chapter-options .chapter-option { scroll-snap-align: none; }
.chapter-none { margin: 0.6rem 0.85rem; }
.mine-mark { color: var(--primary); }
.chapter-option.active .mine-mark { color: inherit; }
.star-form { display: inline-flex; margin: 0; }
.chapter-group .star-form { margin-left: auto; align-self: center; }
.star-btn { flex: none; border: 0; background: none; padding: 0.35rem; cursor: pointer; color: var(--warm-gray); border-radius: 999px; line-height: 0; }
.star-btn:hover, .star-btn.on { color: var(--primary); }
.star-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Search (people to add to her network). */
.people-search { margin: 0.4rem 0 1.25rem; }
.search-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0 1rem; min-height: 3.1rem; border: 1px solid var(--putty, #D8CFBE); border-radius: 999px; background: var(--surface, #FFFDF8); color: var(--warm-gray, #6B7479); cursor: text; }
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(71, 111, 161, 0.15); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.7rem 0; font: inherit; font-size: 1.05rem; color: var(--ink); outline: none; box-shadow: none; }
.filter-chips { display: flex; gap: 0.4rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip-toggle, .chip-select { flex: none; display: inline-flex; align-items: center; border: 1px solid var(--putty, #D8CFBE); border-radius: 999px; color: var(--ink-soft, #45525A); font-size: 0.9rem; cursor: pointer; white-space: nowrap; }
.chip-toggle { padding: 0.4rem 0.85rem; }
.chip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip-toggle.on, .chip-select.on { border-color: var(--primary); background: rgba(142, 167, 199, 0.18); color: var(--primary-deep, #2F4F78); }
.chip-toggle:focus-within, .chip-select:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.chip-select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; color: inherit; padding: 0.4rem 1.7rem 0.4rem 0.85rem; cursor: pointer; margin: 0; min-height: 0; width: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2345525A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.7rem center; }
.chip-clear { flex: none; align-self: center; padding: 0.4rem 0.5rem; font-size: 0.9rem; }
.people-results .circle-name a { color: var(--ink); text-decoration: none; }
.people-results li > form { margin: 0; flex-shrink: 0; }
.people-results .chip { flex-shrink: 0; }
.people-pages { display: flex; justify-content: space-between; margin-top: 1rem; }
.people-pages a:only-child { margin-left: auto; }

.people-invite { text-align: center; margin: 1.5rem 0 0; }
