/* Community Board v2: tabs, post-type explainer, richer post form, badges.
   Loads after site-match.css and uses the same navy (#24345a), gold (#e6b85c) and cream palette. */

/* ---------- "What can I post?" explainer (replaces the Tools We Support box) ---------- */
.site-match .board-explainer{margin:0 0 34px;padding:24px 26px;background:#fffdf9;border:1px solid #e2dbcf;border-radius:12px}
.site-match .board-explainer .eyebrow{color:#887456;margin:0 0 14px}
.explainer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0}
.explainer-grid div{margin:0}
.explainer-grid dt{font-family:Fraunces,Georgia,serif;font-size:21px;font-weight:400;color:#202b40;margin:0 0 4px}
.explainer-grid dd{margin:0;font-size:13px;line-height:1.6;color:#626673}
.explainer-note{margin:18px 0 0;padding-top:16px;border-top:1px solid #ece5d9;font-size:13px;line-height:1.7;color:#626673}
.explainer-note strong{color:#202b40;font-weight:600}

/* ---------- Tabs ---------- */
.board-tabs{display:flex;flex-wrap:wrap;gap:4px 36px;border-bottom:1px solid #ded7ca;margin:0 0 4px}
.board-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:14px 0 12px;min-height:44px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-family:Fraunces,Georgia,serif;font-size:25px;font-weight:300;color:#626673;cursor:pointer}
.board-tabs button span{font-family:Inter,system-ui,sans-serif;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#887456}
.board-tabs button[aria-selected=true]{color:#202b40;border-bottom-color:#24345a}
.board-tabs button:hover{color:#202b40}
.site-match .board-tabs + #board-panel .board-topline{border-top:0;padding-top:26px}
.tools-guide{margin:14px 0 0;font-size:13px;color:#626673}
.tools-guide a{color:#24345a;font-weight:500}

/* ---------- Filters: bigger tap targets ---------- */
.site-match .board-categories button{min-height:40px;font-size:13px}

/* ---------- Card badges ---------- */
.card-badges{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.4;padding:4px 10px;border-radius:999px;border:1px solid #dcd8d0;color:#4c5260;background:transparent}
.badge-gold{background:#fbefd9;border-color:#fbefd9;color:#6b4e12}
.badge-gold::before{content:"";width:6px;height:6px;border-radius:50%;background:#e6b85c}
.detail-dialog .card-badges{margin:4px 0 8px}

/* ---------- Card footer ---------- */
.site-match .card-bottom .board-text-button{white-space:nowrap}

/* ---------- Empty state ---------- */
.site-match .board-empty .board-primary{margin-top:8px}

/* ---------- Post form ---------- */
.post-dialog{width:min(680px,calc(100% - 28px))!important}
.post-dialog .form-section{margin:28px 0 0;padding-top:18px;border-top:1px solid #e2dbcf;font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:#887456}
.post-dialog .form-pair.even{grid-template-columns:1fr 1fr}
.post-dialog fieldset{border:0;margin:16px 0 0;padding:0;min-width:0}
.post-dialog legend{font-size:13px;color:#6c5d74;padding:0;margin-bottom:8px}
.type-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.type-picker legend{grid-column:1/-1}
.post-dialog .type-picker label{margin:0;position:relative;display:block}
.type-picker input{position:absolute;opacity:0;width:1px;height:1px}
.type-picker span{display:block;height:100%;box-sizing:border-box;padding:14px;border:1.5px solid #e2dbcf;border-radius:10px;background:#fff;font-size:12px;line-height:1.5;color:#626673;cursor:pointer;transition:border-color .15s,background .15s}
.type-picker strong{display:block;font-family:Fraunces,Georgia,serif;font-weight:400;font-size:18px;color:#202b40;margin-bottom:4px}
.type-picker input:checked + span{border-color:#24345a;background:#fbefd9}
.type-picker input:focus-visible + span{outline:3px solid #9fb0d6;outline-offset:2px}
.pay-choice{display:flex;flex-wrap:wrap;gap:10px}
.pay-choice legend{width:100%}
.post-dialog .pay-choice label{margin:0;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 18px;border:1px solid #dcd8d0;border-radius:999px;background:#fff;font-size:13px;cursor:pointer}
.pay-choice input{accent-color:#24345a;margin:0}
.post-dialog .desc-hint{display:block;margin-top:2px}
.post-dialog .conditional{margin-top:8px}
.creator-callout{padding:4px 16px 14px;border-radius:10px;background:#fbefd9}
.creator-callout strong{color:#202b40;font-weight:600}
.post-dialog .board-consent{min-height:28px}
.post-dialog [hidden]{display:none!important}
.privacy-note{padding:10px 12px;border-radius:8px;background:#f3ede3}

/* ---------- Volunteer banner (all pages) ---------- */
.mjc-volunteer-bar{position:relative;z-index:50;background:#1b2745;color:#f3e3d0;font-family:Inter,system-ui,sans-serif;font-size:14px;line-height:1.5}
.mjc-volunteer-bar .inner{max-width:1180px;margin:0 auto;padding:8px 56px 8px 20px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 14px;text-align:center}
.mjc-volunteer-bar .dot{width:7px;height:7px;border-radius:50%;background:#e6b85c;flex:none}
.mjc-volunteer-bar strong{color:#fff;font-weight:600}
.mjc-volunteer-bar a{color:#fff;font-weight:600;text-underline-offset:3px}
.mjc-volunteer-bar button{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:transparent;color:#f3e3d0;font-size:22px;line-height:1;cursor:pointer}
.mjc-volunteer-bar button:focus-visible,.mjc-volunteer-bar a:focus-visible{outline:2px solid #e6b85c;outline-offset:2px}

@media(max-width:900px){.explainer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .explainer-grid{grid-template-columns:1fr}
  .board-tabs{gap:0 22px}.board-tabs button{font-size:21px}
  .type-picker{grid-template-columns:1fr 1fr}
  .post-dialog .form-pair.even{grid-template-columns:1fr;gap:0}
  .mjc-volunteer-bar{font-size:13px}
}

/* ---------- Volunteer page ---------- */
.volunteer-page .board-intro .board-primary{text-decoration:none;margin-bottom:25px}
.volunteer-ways{list-style:none;margin:0 0 34px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.volunteer-ways li{background:#fffdf9;border:1px solid #e2dbcf;border-radius:12px;padding:26px}
.volunteer-ways .num{display:block;font-family:Fraunces,Georgia,serif;font-weight:300;font-size:30px;color:#887456;margin-bottom:12px}
.volunteer-ways h2{font-family:Inter,system-ui,sans-serif;font-size:17px;font-weight:500;color:#202b40;margin:0 0 6px}
.volunteer-ways p{margin:0;font-size:14px;line-height:1.7;color:#626673}
.volunteer-form-card{background:#fffdf9;border:1px solid #e2dbcf;border-radius:14px;padding:38px 40px;max-width:760px;margin:0 auto}
.volunteer-form-card .eyebrow{color:#887456;margin:0}
.volunteer-form-card h2{font-family:Fraunces,Georgia,serif;font-weight:300;font-size:40px;line-height:1.1;color:#202b40;margin:12px 0 6px}
.volunteer-form-card h2 em{font-style:italic;font-weight:400}
.volunteer-form-card label{display:block;font-size:13px;line-height:1.6;margin-top:16px;color:#4c5260}
.volunteer-form-card input:not([type=checkbox]):not([type=radio]),.volunteer-form-card textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #dcd8d0;border-radius:6px;background:#fff;padding:12px;color:#202b40;margin-top:6px;font:inherit;font-size:15px}
.volunteer-form-card .form-pair.even{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.volunteer-form-card .board-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px}
.volunteer-form-card .board-consent input{margin:4px 0 0;accent-color:#24345a}
.volunteer-form-card form>.board-primary{margin-top:24px}
.chip-choice{border:0;margin:20px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px;min-width:0}
.chip-choice legend{width:100%;font-size:13px;color:#4c5260;padding:0;margin-bottom:10px}
.volunteer-form-card .chip-choice label{margin:0;position:relative}
.chip-choice input{position:absolute;opacity:0;width:1px;height:1px}
.chip-choice label>span{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;padding:0 18px;border:1px solid #dcd8d0;border-radius:999px;background:#fff;color:#4c5260;font-size:13px;cursor:pointer}
.chip-choice input:checked + span{background:#24345a;border-color:#24345a;color:#fff}
.chip-choice input[type=checkbox]:checked + span::before{content:"✓";margin-right:8px}
.chip-choice input:focus-visible + span{outline:3px solid #9fb0d6;outline-offset:2px}
.volunteer-thanks{text-align:center;padding:20px 0}
.volunteer-thanks .board-primary{text-decoration:none;margin-top:8px}
@media(max-width:760px){.volunteer-ways{grid-template-columns:1fr}.volunteer-form-card{padding:26px 22px}.volunteer-form-card .form-pair.even{grid-template-columns:1fr;gap:0}.volunteer-form-card h2{font-size:32px}}

/* Extra "Volunteer" menu link: let the main menu wrap on narrow phones instead of overflowing. */
@media(max-width:600px){.inner-header nav{flex-wrap:wrap;row-gap:2px;max-width:100%;min-width:0}.inner-header{min-width:0;max-width:100%;box-sizing:border-box}}

/* ---------- Team-recommended tools (formerly /tools.html) ---------- */
.site-match .board-card.featured-tool{border-color:#e6cf9f!important;background:linear-gradient(180deg,#fffaf0,#fffdf9)!important}
.card-tagline{margin:-4px 0 10px;font-size:14px;font-weight:500;color:#202b40}
.featured-facts{margin:8px 0 0;display:grid;gap:4px}
.featured-facts dt{font-size:12px;font-weight:600;color:#202b40;margin-top:10px}
.featured-facts dd{margin:0;font-size:14px;line-height:1.7;color:#626673}
