/* Site chrome: header/nav, modal, footer. Kept separate from calendar.css,
   which only styles the calendar card itself. */

body { margin: 0; }

/* ---- Header / nav --------------------------------------------------- */

/* Hidden at desktop widths, where the full nav already carries this. Declared
   up here because the mobile rule lives in a media query further down, and at
   equal specificity whichever comes last would win. */
/* Mobile-only header controls. The base rule must sit ABOVE the media query
   below: at equal specificity the later rule wins, and declaring display:none
   afterwards once kept the button hidden on phones entirely. */
.nav-cta-mobile, .nav-acct, .nav-acct-signin { display: none; }

/* Only the menu row pins. A sticky element is confined to its containing
   block, so the sub-bar lives OUTSIDE <header> rather than inside it —
   otherwise the row would unstick the moment the header scrolled past. */
.site-header { background: #000; position: sticky; top: 0; z-index: 30; }

/* Row two. The badge earns its own row by bringing the disclaimer with it,
   so every visitor reads "not affiliated" without opening a modal. It scrolls
   away under the pinned row above, which costs nothing after the first
   screen and keeps the menu reachable the whole way down. */
.site-subbar { background: #123a5e; }
.site-subbar-inner {
  max-width: 800px; margin: 0 auto; padding: 9px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.site-subbar-note { font-size: 12px; font-weight: 600; color: #cfe6f7; }

/* ---- Post menu ------------------------------------------------------- */

.nav-post-wrap { position: relative; }
.nav-post-wrap .nav-cta {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: inherit; font-size: 13px; border: none;
  background: #0f6fb8; color: #fff; padding: 9px 15px; border-radius: 8px; font-weight: 800;
}
.nav-post-wrap .nav-cta:hover { background: #0d5f9e; }
.nav-post-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 40;
  width: 268px; background: #fff; border: 1px solid #d6e3ec; border-radius: 10px;
  padding: 6px 0; box-shadow: 0 10px 28px rgba(10,42,71,0.18);
}
.nav-post-menu[hidden] { display: none; }
.nav-post-menu a {
  display: block; padding: 12px 16px; text-decoration: none;
  font-size: 12.5px; color: #5f7688; line-height: 1.35;
}
.nav-post-menu a strong { display: block; font-size: 13.5px; color: #0a2a47; margin-bottom: 2px; }
.nav-post-menu a:hover { background: #f1f7fb; }
.nav-post-menu a + a { border-top: 1px solid #e6eef4; }

/* ---- Desktop account control ---------------------------------------- */

.nav-acct-wrap { position: relative; display: none; }
body.nav-ready .nav-acct-wrap { display: block; }
.nav-acct-btn, .nav-signin-btn {
  display: none; align-items: center; gap: 8px; cursor: pointer;
  background: none; border: none; font-family: inherit; color: #fff;
  font-size: 13px; font-weight: 700; padding: 4px 0;
}
body.nav-ready.is-member .nav-acct-btn { display: flex; }
body.nav-ready:not(.is-member) .nav-signin-btn {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.4);
}
.nav-acct-av {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
  background: #1d5c8a; color: #cfe6f7; font-size: 11px; letter-spacing: 0.3px;
  display: flex; align-items: center; justify-content: center;
}
.nav-acct-chev {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.75);
}
.nav-acct-btn[aria-expanded="true"] .nav-acct-chev {
  border-top: none; border-bottom: 5px solid rgba(255,255,255,0.75);
}
.nav-acct-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 40;
  width: 232px; background: #fff; border: 1px solid #d6e3ec; border-radius: 10px;
  padding: 6px 0; box-shadow: 0 10px 28px rgba(10,42,71,0.18);
}
.nav-acct-menu[hidden] { display: none; }
.nav-acct-who {
  font-size: 11.5px; color: #7d94a6; padding: 7px 15px 9px;
  border-bottom: 1px solid #e6eef4; margin-bottom: 5px; line-height: 1.4;
}
.nav-acct-who strong { display: block; font-size: 13px; color: #0a2a47; }
.nav-acct-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  font-family: inherit; font-size: 13px; color: #0a2a47; padding: 10px 15px; cursor: pointer;
}
.nav-acct-menu button:hover { background: #f1f7fb; }
.nav-acct-out {
  color: #b0341c !important; border-top: 1px solid #e6eef4 !important; margin-top: 5px;
}
.site-header-inner { max-width: 800px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.site-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-title { font-size: 17px; font-weight: 800; color: white; letter-spacing: -0.2px; }
.site-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #bcdcf5; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); padding: 3px 9px; border-radius: 20px; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a, .site-nav .nav-link-btn {
  font-size: 13px; font-weight: 700; letter-spacing: 0.2px; color: rgba(255,255,255,0.88); text-decoration: none;
  background: none; border: none; padding: 4px 0; cursor: pointer; font-family: inherit;
  position: relative; text-align: left;
}
.site-nav a::after, .site-nav .nav-link-btn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: #4fa8e8;
  transform: scaleX(0); transition: transform 0.15s ease;
}
.site-nav a:hover::after, .site-nav .nav-link-btn:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 34px; height: 34px; border: none; background: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: white; border-radius: 2px; }

.site-updated-bar { max-width: 800px; margin: 10px auto 0; padding: 0 20px; text-align: right; font-size: 11px; font-weight: 600; color: #4a6a80; }

/* ---- Footer ----------------------------------------------------------- */

.site-footer { max-width: 800px; margin: 28px auto 0; padding: 18px 20px 30px; text-align: center; }
.site-footer p { font-size: 12px; color: #4a5568; line-height: 1.5; max-width: 560px; margin: 0 auto 12px; }
.site-footer p strong { color: #0a2a47; }
.site-footer-links { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.site-footer-links a, .site-footer-links .nav-link-btn {
  font-size: 12px; font-weight: 700; color: #0f6fb8; text-decoration: none;
  background: none; border: none; cursor: pointer; font-family: inherit; padding: 0;
}
.site-footer-links a:hover, .site-footer-links .nav-link-btn:hover { text-decoration: underline; }

/* ---- Modal -------------------------------------------------------------- */

.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(10,26,40,0.55);
  z-index: 100; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
body.modal-open { overflow: hidden; }

.modal-box {
  background: white; border-radius: 16px; width: 560px; max-width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 30px 28px 26px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #eef3f8; color: #0a2a47; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #dde8f0; }

.modal-back { background: none; border: none; padding: 0; margin-bottom: 10px; color: #0f6fb8; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.modal-back:hover { text-decoration: underline; }
.modal-panel h2 { font-size: 20px; font-weight: 800; color: #0a2a47; margin: 0 0 8px; padding-right: 26px; }
.modal-lede { font-size: 13.5px; color: #333; line-height: 1.55; margin-bottom: 14px; }
.modal-panel h3 { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #0a2a47; margin: 16px 0 5px; }
.modal-panel h3:first-of-type { margin-top: 4px; }
.modal-panel p, .modal-panel li { font-size: 13px; color: #333; line-height: 1.6; }
.modal-panel p { margin: 0 0 8px; }
.modal-panel ul, .modal-panel ol { margin: 0 0 8px; padding-left: 20px; }
.modal-panel li { margin-bottom: 4px; }
.modal-panel a { color: #0f6fb8; }
.modal-inline-link { background: none; border: none; padding: 0; color: #0f6fb8; text-decoration: underline; font: inherit; cursor: pointer; }
.modal-fineprint { font-size: 11px; color: #888; margin-top: 14px; }
.modal-panel code { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; background: #eef3f8; color: #0a2a47; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.modal-callout { background: #fbead2; border: 1px solid #f0d9b8; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #4a3200; line-height: 1.55; margin-bottom: 10px; }
.modal-callout code { background: rgba(255,255,255,0.6); }

.btn-modal-ack {
  margin-top: 18px; width: 100%; padding: 12px; border-radius: 10px; border: none;
  background: #0a2a47; color: white; font-size: 14px; font-weight: 800; cursor: pointer;
}
.btn-modal-ack:hover { background: #123a5e; }

/* The orientation block that answers "so what do I do now?", which the
   disclaimer on its own never did. */
.modal-next {
  margin: 4px 0 20px; padding: 16px 18px 4px; border-radius: 12px;
  background: #f2f7fb; border: 1px solid #dde8f0;
}
.modal-next a { color: #0f6fb8; }
.modal-next h3 { font-size: 14px; color: #0a2a47; margin-bottom: 10px; }
.modal-steps { margin: 0; padding-left: 20px; }
.modal-steps li { font-size: 13.5px; color: #33475b; line-height: 1.6; margin-bottom: 10px; }
.btn-modal-secondary {
  display: block; margin-top: 10px; width: 100%; padding: 12px; border-radius: 10px;
  border: 1.5px solid #0f6fb8; background: white; color: #0f6fb8; font-size: 14px;
  font-weight: 800; cursor: pointer; text-align: center; text-decoration: none;
  box-sizing: border-box;
}
.btn-modal-secondary:hover { background: #f2f7fb; }

/* ---- Scam Guide slideshow ------------------------------------------------ */

.scam-carousel { border: 1.5px solid #dde8f0; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, rgba(15,111,184,0.04), transparent 40%); }
.scam-slide-viewport { overflow: hidden; }
.scam-slide-track { display: flex; align-items: stretch; transition: transform 0.32s cubic-bezier(.4,0,.2,1); }
.scam-slide { flex: 0 0 100%; padding: 22px 22px 18px; min-height: 250px; display: flex; flex-direction: column; justify-content: center; }

.slide-eyebrow { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.slide-eyebrow.flag { color: #6b3d0a; }
.slide-eyebrow.action { color: #0f6fb8; }
.slide-icon { font-size: 24px; margin-bottom: 8px; line-height: 1; }
.slide-title { font-size: 16.5px; font-weight: 800; color: #0a2a47; margin: 0 0 7px; }
.slide-body { font-size: 13px; line-height: 1.55; color: #333; margin: 0; }
.slide-body a { color: #0f6fb8; font-weight: 700; }
.slide-body code { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; background: #eef3f8; color: #0a2a47; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.slide-callout { margin-top: 9px; background: #fbead2; border: 1px solid #f0d9b8; border-radius: 8px; padding: 8px 11px; font-size: 11.5px; line-height: 1.5; color: #4a3200; }
.slide-note { margin-top: 9px; background: rgba(15,111,184,0.08); border: 1px solid rgba(15,111,184,0.2); border-radius: 8px; padding: 8px 11px; font-size: 11.5px; line-height: 1.5; color: #333; }
.slide-note strong { color: #0a2a47; }
.slide-footnote { margin-top: 8px; font-size: 10.5px; line-height: 1.5; color: #4a6a80; }
.slide-footnote a { color: #0f6fb8; font-weight: 700; }

/* Two-column paired slide: red flag next to the matching protective step.
   A callout/footnote below the pair spans the full slide width, not just
   one column, since a half-width yellow box is hard to read. */
.slide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.slide-pair-col.action { border-left: 1.5px solid #dde8f0; padding-left: 20px; }
.slide-pair .slide-title { font-size: 14.5px; margin-bottom: 6px; }
.slide-pair .slide-icon { font-size: 20px; margin-bottom: 6px; }
.slide-pair .slide-body { font-size: 12px; line-height: 1.5; }
.scam-slide-pair-wrap .slide-callout, .scam-slide-pair-wrap .slide-footnote { font-size: 11px; }

.scam-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 14px 14px; }
.scam-arrow {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #dde8f0; background: white;
  color: #0a2a47; font-size: 17px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.scam-arrow:hover { background: rgba(15,111,184,0.1); }
.scam-arrow:disabled { opacity: 0.3; cursor: default; }
.scam-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.scam-dot { width: 7px; height: 7px; border-radius: 50%; background: #dde8f0; border: none; cursor: pointer; padding: 0; }
.scam-dot.active { background: #0f6fb8; width: 18px; border-radius: 4px; }

.scam-quicklinks {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(15,111,184,0.07);
  border: 1px solid rgba(15,111,184,0.15);
}
.scam-quicklinks a, .scam-quicklinks .modal-inline-link {
  font-size: 12.5px; font-weight: 700; color: #0f6fb8; text-decoration: none;
  background: none; border: none; cursor: pointer; font-family: inherit; padding: 0;
}
.scam-quicklinks a:hover, .scam-quicklinks .modal-inline-link:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .slide-pair { grid-template-columns: 1fr; gap: 14px; }
  .slide-pair-col.action { border-left: none; padding-left: 0; border-top: 1.5px solid #dde8f0; padding-top: 14px; }
}

/* ---- Mobile ------------------------------------------------------------- */

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  /* The primary action escapes the hamburger. Everything else can live behind
     a menu; the one thing an owner comes back to do should not, and most of
     this audience arrives on a phone from the Facebook app. */
  .site-header-inner { gap: 8px; padding: 12px 14px; }
  .nav-acct-wrap, body.nav-ready .nav-acct-wrap { display: none; }
  .site-subbar-inner { padding: 8px 14px; gap: 9px; }
  .site-subbar-note { font-size: 11px; }
  .nav-cta-mobile {
    display: inline-block; margin-left: auto; margin-right: 0; white-space: nowrap;
    background: #0f6fb8; color: #fff; text-decoration: none;
    font-size: 12px; font-weight: 800; padding: 8px 11px; border-radius: 8px;
  }
  /* On the posting page itself the prominent blue CTA would point at the page
     you're already on, so that header gets a quiet way back instead. */
  .nav-cta-mobile.is-back {
    background: none; color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.35);
  }
  /* Four controls in a 375px row. Without this the title wraps to two lines. */
  .site-title { font-size: 15px; white-space: nowrap; }
  /* nav-ready is set once the data fetch has answered, so a signed-in member
     never watches "Sign in" flash past on a slow connection. */
  body.nav-ready.is-member .nav-acct {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border-radius: 50%;
    background: #1d5c8a; color: #cfe6f7; border: none; cursor: pointer;
    font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.3px;
  }
  body.nav-ready:not(.is-member) .nav-acct-signin {
    display: inline-block; white-space: nowrap; cursor: pointer;
    background: none; color: rgba(255,255,255,0.9); font-family: inherit;
    border: 1px solid rgba(255,255,255,0.35); border-radius: 8px;
    font-size: 12px; font-weight: 800; padding: 8px 11px;
  }
  /* static so the menu positions against .site-header-inner and can span the
     full width, rather than hanging off the button in a corner. */
  .nav-post-wrap { margin-left: auto; position: static; }
  .nav-post-wrap .nav-cta { font-size: 12px; padding: 8px 11px; }
  .nav-post-menu {
    top: calc(100% + 8px); left: 14px; right: 14px; width: auto; border-radius: 12px;
  }
  .nav-post-menu a { padding: 15px 18px; font-size: 13px; }
  .nav-post-menu a strong { font-size: 15px; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #000;
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: 4px 20px; max-height: 0; overflow: hidden; transition: max-height 0.2s ease;
  }
  /* Seven items now that the drawer keeps the links the desktop bar dropped.
     Too low a cap silently clips the last one. */
  .site-nav.open { max-height: 420px; padding: 10px 20px 16px; }
  .site-nav a, .site-nav .nav-link-btn { width: 100%; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .site-nav a::after, .site-nav .nav-link-btn::after { display: none; }
  .site-header-inner { position: relative; }
  .modal-box { padding: 24px 18px 20px; border-radius: 14px; }
}

/* ---- Sign-in modal (js/signin.js) --------------------------------------- */
#signin-modal { display: none; position: fixed; inset: 0; z-index: 200; }
#signin-modal.si-open { display: block; }
.si-backdrop { position: absolute; inset: 0; background: rgba(8, 32, 54, 0.55); }
.si-card {
  position: relative; width: 400px; max-width: calc(100vw - 32px); margin: 12vh auto 0;
  background: white; border-radius: 16px; padding: 26px 26px 22px;
  box-shadow: 0 18px 50px rgba(8, 48, 80, 0.3);
}
/* The profile panel outgrew the viewport as sections were added, and with no
   scroll of its own the bottom of it — including Sign out — simply could not
   be reached on a laptop, let alone a phone. */
#profile-modal .si-card,
#msg-modal .si-card {
  margin: 6vh auto; max-height: 88vh; overflow-y: auto;
  overscroll-behavior: contain;
}
.si-card h2 { font-size: 20px; font-weight: 800; color: #0a2a47; margin: 0 0 6px; }
.si-trust { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 4px;
  font-size: 13px; color: #1c2b36; line-height: 1.5; cursor: pointer; }
.si-trust input { width: 17px; height: 17px; accent-color: #0f6fb8; flex-shrink: 0; margin-top: 1px; }
.si-trust-hint { display: block; font-size: 12px; color: #7d94a6; margin-top: 3px; }
.si-lede { font-size: 13px; color: #4a5568; line-height: 1.55; margin: 0 0 16px; }
.si-label { display: block; font-size: 12px; font-weight: 700; color: #0a2a47; margin-bottom: 5px; }
.si-card input[type=email],
.si-card input[type=password] {
  width: 100%; font-size: 15px; padding: 10px 12px; border: 1.5px solid #dde8f0;
  border-radius: 9px; font-family: inherit; margin-bottom: 12px;
}
.si-card input[type=email]:focus,
.si-card input[type=password]:focus { outline: 2px solid #0f6fb8; outline-offset: -1px; border-color: #0f6fb8; }
.si-submit {
  width: 100%; padding: 12px; border: none; border-radius: 10px; background: #0a2a47;
  color: white; font-size: 14.5px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.si-submit:hover:not(:disabled) { background: #123a5e; }
.si-submit:disabled { opacity: 0.55; cursor: default; }
.si-msg { font-size: 13px; line-height: 1.5; margin-top: 12px; display: none; }
.si-msg.ok { display: block; color: #14532d; }
.si-msg.err { display: block; color: #8a1c10; }
.si-alt { font-size: 12.5px; color: #4a6a80; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef3f8; }
.si-alt a { color: #0f6fb8; font-weight: 700; }
.si-alt-q { margin: 0 0 9px; font-size: 14px; font-weight: 800; color: #0a2a47; }
/* A button, not a link inside a sentence. This is the whole route out of the
   dialog for someone who has never been here, and it was the quietest thing
   on the screen. */
.si-alt-btn {
  display: block; text-align: center; text-decoration: none;
  padding: 13px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 800;
  color: #0f6fb8 !important; background: #fff; border: 1.5px solid #0f6fb8;
}
.si-alt-btn:hover { background: #f1f7fb; }
.si-alt-note { margin: 9px 0 0; font-size: 12px; line-height: 1.5; }

/* Only present when the Post menu sent someone here, so it says what they
   were trying to do rather than leaving them to reconstruct it. */
.si-why {
  background: #e6f1fb; border-left: 3px solid #0f6fb8; padding: 10px 12px;
  font-size: 13px; color: #0c447c; line-height: 1.5; margin: 0 0 16px;
}
.si-why[hidden] { display: none; }

.si-pw-toggle {
  display: block; background: none; border: none; padding: 0; margin: 0 0 14px;
  font-family: inherit; font-size: 13px; font-weight: 700; color: #0f6fb8; cursor: pointer;
}
.si-pw-toggle:hover { text-decoration: underline; }

.si-sent-lede { font-size: 14px; color: #123a5e; line-height: 1.55; margin: 0 0 14px; }
.si-sent-warn {
  background: #faeeda; border-left: 3px solid #ba7517; padding: 11px 13px;
  font-size: 13px; color: #854f0b; line-height: 1.55;
}
.si-sent-warn strong { display: block; margin-bottom: 3px; }
.si-x {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  font-size: 24px; line-height: 1; color: #7d94a6; cursor: pointer; padding: 4px 8px; font-family: inherit;
}
.si-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Where an owner/requester name sits for signed-out visitors. */
.chip-locked, .req-locked { color: #0f6fb8; font-weight: 700; cursor: pointer; }

/* "Post a Week" — the one action worth making prominent in the nav. */
/* Scoped to .site-nav to outrank `.site-nav a`, which sets background:none
   and padding:4px 0. Without that this never rendered as a button at all. */
.site-nav .nav-cta {
  background: #0f6fb8; color: white !important; padding: 8px 15px; border-radius: 8px;
  font-weight: 800; text-decoration: none;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: #0d5f9e; }

/* Message-the-owner button on a chip, and its compose box. */
.chip-msg-btn {
  display: block; margin-top: 4px; padding: 3px 9px; border: none; border-radius: 6px;
  background: rgba(255,255,255,0.9); color: #0a2a47; font-family: inherit;
  font-size: 10.5px; font-weight: 800; cursor: pointer; letter-spacing: 0.2px;
}
.chip-msg-btn:hover { background: #fff; }
#msg-modal { display: none; position: fixed; inset: 0; z-index: 200; }
#msg-modal.si-open { display: block; }
#msg-modal .si-card { width: 460px; }
#msg-modal textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; line-height: 1.55; padding: 11px 13px;
  border: 1.5px solid #dde8f0; border-radius: 9px; resize: vertical; min-height: 110px;
}
#msg-modal textarea:focus { outline: 2px solid #0f6fb8; outline-offset: -1px; border-color: #0f6fb8; }
.msg-note { font-size: 11.5px; color: #7d94a6; margin: 7px 0 12px; }
.msg-guard {
  margin-top: 16px; padding: 11px 13px; background: #fdf6e8; border: 1px solid #f0dcb8;
  border-radius: 9px; font-size: 11.5px; line-height: 1.6; color: #6b4d18; text-align: left;
}
.msg-guard code { font-size: 11px; background: rgba(0,0,0,0.05); padding: 1px 4px; border-radius: 3px; }

/* One line of orientation for someone arriving from a shared link: says what
   this is and why some names are grayed out, before they have to wonder. */
.site-welcome {
  max-width: 760px; margin: 14px auto 0; padding: 0 16px;
  font-size: 13.5px; line-height: 1.55; color: #123a5e; text-align: center;
}

/* Signed-in nav state: Sign in yields to Profile / Sign out. The is-member
   class is set by the data fetch, which already knows who's asking. */
.nav-member { display: none; }
.site-welcome-member { display: none; }
body.is-member .site-welcome-guest { display: none; }
body.is-member .site-welcome-member { display: block; }
body.is-member #nav-signin { display: none; }
body.is-member .nav-member { display: inline-block; }

/* Links the desktop bar has no room for. Hidden only at desktop widths, and
   declared after the .nav-member rules above: all three tie on specificity,
   so whichever comes last wins. The hamburger keeps the full set. */
@media (min-width: 721px) {
  .site-nav .nav-menu-only,
  body.is-member .site-nav .nav-menu-only { display: none; }
  /* The nav used to end in the Post button and was pushed right by
     space-between. The button is now its own sibling, so the nav says so. */
  .site-nav { margin-left: auto; }
}

/* Profile panel */
#profile-modal { display: none; position: fixed; inset: 0; z-index: 200; }
#profile-modal.si-open { display: block; }
#profile-modal .si-card { width: 440px; }
#profile-modal input[type=text] {
  width: 100%; font-size: 15px; padding: 10px 12px; border: 1.5px solid #dde8f0;
  border-radius: 9px; font-family: inherit; margin-bottom: 12px;
}
#profile-modal input[type=text]:focus { outline: 2px solid #0f6fb8; outline-offset: -1px; border-color: #0f6fb8; }
.pf-row { display: flex; gap: 10px; }
.pf-col { flex: 1; }
.pf-hint { font-size: 11.5px; color: #7d94a6; font-weight: 500; }
.pf-sep { border-top: 1px solid #eef3f8; margin: 16px 0 14px; }

/* Live listings and requests, with the removal question folded away until
   someone actually asks to remove one. */
.pf-post { border: 1.5px solid #dde8f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.pf-post-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.pf-post-title { font-size: 13.5px; font-weight: 700; color: #0a2a47; }
.pf-post-sub { font-size: 12px; color: #7d94a6; margin-top: 2px; }
/* Shown only after a week is filled through the site — the one moment a
   member has just been given something rather than asked for something. */
.pf-share { background: #eaf5ee; border: 1px solid #b9e4c9; border-radius: 11px; padding: 14px 15px; margin-bottom: 12px; }
.pf-share-h { font-size: 13.5px; font-weight: 800; color: #14532d; margin-bottom: 6px; }
.pf-share-p { font-size: 12.5px; color: #33604a; line-height: 1.55; margin: 0 0 11px; }
.pf-share-btn { display: block; padding: 10px; border-radius: 8px; background: #1877f2; color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 800; text-align: center; margin-bottom: 9px; }
.pf-share-text { width: 100%; box-sizing: border-box; font-size: 12.5px; padding: 9px;
  border: 1.5px solid #b9e4c9; border-radius: 8px; font-family: inherit; background: #fff;
  color: #1c2b36; resize: vertical; }
.pf-share-copy { width: 100%; margin-top: 7px; padding: 8px; border: 1.5px solid #b9e4c9;
  border-radius: 8px; background: #fff; color: #14532d; font-size: 12.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; }

.pf-pw-clear { width: 100%; margin-top: 8px; padding: 8px; border: 1.5px solid #f0b8a8;
  border-radius: 8px; background: #fff; color: #b0341c; font-size: 12.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; }

/* The way back to the posting form from where owners actually manage their
   weeks. Without it the only route was a nav link, which on a phone lives
   behind an unlabelled hamburger. */
.pf-post-add {
  display: block; margin-top: 10px; padding: 11px; border-radius: 9px;
  border: 1.5px dashed #c5d8e6; background: #fff; color: #0f6fb8;
  font-size: 13px; font-weight: 800; text-align: center; text-decoration: none;
}
.pf-post-add:hover { background: #f2f7fb; }

.pf-post-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.pf-post-remove {
  flex: 0 0 auto; background: none; border: 1.5px solid #f0b8a8; color: #b0341c;
  border-radius: 8px; font-size: 12.5px; font-weight: 700; padding: 6px 12px;
  cursor: pointer; font-family: inherit;
}
.pf-post-remove:hover { background: #fdf1ee; }
.pf-post-price {
  flex: 0 0 auto; background: none; border: 1.5px solid #c5d8e6; color: #0f6fb8;
  border-radius: 8px; font-size: 12.5px; font-weight: 700; padding: 6px 12px;
  cursor: pointer; font-family: inherit;
}
.pf-post-price:hover { background: #f2f7fb; }
.pf-post-priced { margin-top: 11px; padding-top: 11px; border-top: 1px solid #f0f4f8; }
.pf-price-label { display: block; font-size: 12.5px; font-weight: 700; color: #0a2a47; margin-bottom: 6px; }
.pf-price-row { display: flex; gap: 8px; }
.pf-price-input {
  flex: 1; font-size: 15px; padding: 8px 10px; border: 1.5px solid #dde8f0;
  border-radius: 8px; font-family: inherit; min-width: 0;
}
.pf-price-input:focus { outline: 2px solid #0f6fb8; outline-offset: -1px; border-color: #0f6fb8; }
.pf-price-save {
  flex: 0 0 auto; padding: 8px 16px; border: none; border-radius: 8px; background: #0a2a47;
  color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.pf-price-save:disabled { opacity: 0.6; cursor: default; }
.pf-post-why { margin-top: 11px; padding-top: 11px; border-top: 1px solid #f0f4f8; }
.pf-post-q { font-size: 12.5px; font-weight: 700; color: #0a2a47; margin-bottom: 7px; }
.pf-why-opt { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #1c2b36;
  padding: 6px 4px; cursor: pointer; line-height: 1.4; }
.pf-why-opt input { width: 16px; height: 16px; accent-color: #0f6fb8; flex-shrink: 0; margin-top: 1px; }
.pf-why-note { width: 100%; font-size: 13px; padding: 8px 10px; border: 1.5px solid #dde8f0;
  border-radius: 8px; font-family: inherit; margin-top: 6px; box-sizing: border-box; }
.pf-why-actions { display: flex; gap: 8px; margin-top: 10px; }
.pf-why-confirm { flex: 1; padding: 9px; border: none; border-radius: 8px; background: #b0341c;
  color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit; }
.pf-why-confirm:disabled { opacity: 0.6; cursor: default; }
.pf-why-cancel { padding: 9px 14px; border: 1.5px solid #dde8f0; border-radius: 8px; background: #fff;
  color: #4a6a80; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.pf-holdings { margin-bottom: 10px; }
.pf-holding { display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; padding: 7px 10px; border: 1.5px solid #eef3f8; border-radius: 8px; margin-bottom: 6px; }
.pf-ok { font-size: 11px; font-weight: 800; color: #14532d; }
.pf-pending { font-size: 11px; font-weight: 800; color: #6b4d18; }
.pf-add { display: flex; gap: 8px; }
.pf-add select { flex: 1; font-size: 13.5px; padding: 8px 10px; border: 1.5px solid #dde8f0; border-radius: 8px; font-family: inherit; background: white; }
.pf-add-btn { padding: 8px 16px; border: none; border-radius: 8px; background: #0a2a47; color: white;
  font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit; }
.pf-signout { background: none; border: none; color: #b0341c; font-size: 13.5px; font-weight: 700;
  cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; }

/* Contact-the-admin, inside the profile panel */
.pf-contact-toggle { background: none; border: none; color: #0f6fb8; font-size: 13.5px; font-weight: 700;
  cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; }
.pf-checks { margin: 12px 0 10px; }
.pf-checks label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 5px 0; cursor: pointer; }
.pf-checks input { width: 16px; height: 16px; accent-color: #0f6fb8; }
#pf-contact textarea { width: 100%; font-family: inherit; font-size: 14px; line-height: 1.55;
  padding: 10px 12px; border: 1.5px solid #dde8f0; border-radius: 9px; resize: vertical; margin-bottom: 10px; }
#pf-contact textarea:focus { outline: 2px solid #0f6fb8; outline-offset: -1px; border-color: #0f6fb8; }

/* "How do I find my Facebook link?" fold-out under the Facebook fields. */
.fb-help { margin: 2px 0 20px; }
.fb-help summary { font-size: 12px; font-weight: 700; color: #0f6fb8; cursor: pointer; list-style: none; }
.fb-help summary::before { content: "? "; }
.fb-help summary::-webkit-details-marker { display: none; }
.fb-help-body { background: #f7fafd; border: 1px solid #dde8f0; border-radius: 9px; padding: 10px 13px; margin-top: 7px; }
.fb-help-body p { font-size: 12.5px; color: #4a5568; line-height: 1.6; margin: 0 0 8px; }
.fb-help-body p:last-child { margin-bottom: 0; }
