/* Sacramento SSNDA — NDA-aligned identity, November 2026. */
:root{color-scheme:light;--navy:#0b2447;--blue:#023a71;--ice:#eaf3fe;--burgundy:#8b1538;--line:#dce5ef}
body{background:#f5f8fc;color:var(--navy);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
h1,h2,h3{font-family:inherit;font-weight:750;letter-spacing:-.035em;color:var(--navy)}
h2{font-size:clamp(1.45rem,3vw,1.85rem);line-height:1.2}
header{background:#fff;color:var(--navy);border-bottom:1px solid var(--line)}
header>div{padding-top:18px;padding-bottom:18px}
.brand{gap:20px}.brand small{color:#52657c;margin-top:2px}
.seal{width:144px;height:48px;object-fit:contain;border-radius:0;background:#fff;flex-shrink:0}
.profile.btn{background:var(--blue);border-color:var(--blue);color:#fff;border-radius:999px;padding:11px 20px}
.hero{background:var(--ice);color:var(--navy);border:1px solid #d2e3f6;border-radius:22px;padding-top:42px;padding-bottom:105px}
.hero h1{font-weight:800;font-size:clamp(2rem,6vw,4rem);letter-spacing:-.045em;margin:16px 0}
.hero p{color:#36516f}.hero svg{opacity:.5;height:88px;width:min(65%,360px)}
.eyebrow{color:var(--burgundy);font-size:.7rem;letter-spacing:.15em}
.banner{background:#eaf3fe;color:#36516f;border-left:3px solid #8b1538;border-radius:0 8px 8px 0;margin:20px 0}
.card,.row,aside{border-color:var(--line);box-shadow:0 3px 12px #0b244704;border-radius:16px}
.row{min-height:78px;transition:background .15s,border-color .15s}.row:hover{background:#f7faff;border-color:#9dbbda}
button,.btn{border-radius:10px;min-height:44px}button:hover:not(:disabled),.btn:hover{filter:brightness(.96)}
button:disabled{cursor:default;opacity:.65}
a{color:var(--blue);text-underline-offset:3px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--burgundy);outline-offset:3px}
input,textarea,select{color:var(--navy);background:#fff;border-color:#9aadc3}
input[type=checkbox]{accent-color:var(--blue)}
#nav{background:var(--navy);box-shadow:0 -4px 20px #0b244712;gap:6px}
#nav :is(button,a){color:#d7e5f5;border-radius:10px;font-size:.9rem}
#nav :is(button[aria-pressed=true],a[aria-current=page]){background:#eaf3fe;color:var(--blue);box-shadow:inset 0 -3px 0 #8b1538}
#notifications{padding:22px}#notifications h2{font-size:1.45rem}#notifications p{font-size:.93rem;color:#52657c}
#enable-push:not(:disabled){background:var(--blue);color:#fff;border-color:var(--blue)}
.brand-home{display:block;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;margin:0 0 22px}
.brand-home img{display:block;width:174px;height:58px;object-fit:contain;border-radius:0;background:#fff}
.admin-page{max-width:800px}.admin-page h1{font-size:clamp(1.8rem,5vw,2.4rem);line-height:1.2}
.admin-page fieldset{padding:18px;background:#fff;border-color:var(--line);border-radius:14px}
.admin-page legend{font-weight:700}.admin-page label{font-weight:600}.admin-page input,.admin-page textarea{font-weight:400}
img[src^="snda-192.png"]{object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:12px}
@media(max-width:680px){header>div{padding:16px}.brand{gap:12px}.seal{width:105px;height:35px}.brand>span{font-size:.8rem;line-height:1.25;max-width:120px}.profile.btn{padding:9px 13px;font-size:.82rem}.hero{padding:28px 18px 85px;border-radius:18px}.hero svg{height:66px}.hero p{font-size:.95rem}.layout{gap:14px}#notifications{padding:18px}.brand-home{padding:18px}.row{gap:10px}}
@media(max-width:370px){.brand{gap:9px}.seal{width:90px;height:30px}.brand>span{max-width:95px;font-size:.74rem}.profile.btn{padding:9px 10px}}
@media(prefers-reduced-motion:reduce){.row{transition:none}}

.admin-page fieldset{min-inline-size:0}
.admin-page input,.admin-page textarea,.admin-page button{max-width:100%;min-width:0}
.admin-page input[type=checkbox]{display:inline-block;width:1.1em;height:1.1em;padding:0;vertical-align:middle}
.admin-page p,.admin-page label,#posts article,.row{overflow-wrap:anywhere}
.admin-page form,.admin-page section{margin-block:1rem}
.meeting-picker{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.meeting-picker [aria-pressed=true]{background:var(--navy);color:#fff}
@media(max-width:480px){.admin-page{padding:16px}.admin-page fieldset{padding:12px}.admin-page button{margin-block:3px}}

/* Scheduled meetings and general announcements. */
.manager-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.manager-heading h2{flex:1 1 220px;margin:0}.manager-heading button{font-size:.88rem}.record-form{background:#fbfdff;border:1px solid #b8cce2;border-top:3px solid var(--blue);border-radius:12px;padding:18px;margin-block:16px}.record-form h3{margin:0 0 12px}.record-form>label{margin-block:12px}.record-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.record-actions button{font-size:.9rem}.record-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;margin-top:14px;overflow-wrap:anywhere}.record-card h3,.meeting-card h3,.announcement-card h3{margin:8px 0;font-size:1.25rem}.record-date{font-size:.9rem;font-weight:700;color:var(--blue);margin-bottom:7px}.record-location{font-size:.95rem;color:#52657c;margin-bottom:10px}.record-description{white-space:pre-wrap}.record-form textarea{min-height:110px}.admin-page .danger{color:var(--burgundy);background:#fff;border:1px solid #d9adba}.draft-row{padding:12px;border-left:3px solid var(--burgundy);background:#fff6f9;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.draft-status,.empty-state,.section-help{color:#52657c;font-size:.93rem}.draft-status{margin-top:12px}.record-conflict{border:1px solid #d9adba;padding:14px;border-radius:10px}.admin-page .record-manager[aria-busy=true]{opacity:.8}.admin-page button:disabled{cursor:wait}.meeting-card,.announcement-card{overflow-wrap:anywhere}
@media(max-width:480px){.record-form,.record-card{padding:14px}.manager-heading{align-items:flex-start}.record-actions button{flex:1 1 auto}}
.record-form{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.record-form>*{grid-column:1/-1}.record-form>.record-short-field{grid-column:auto}@media(max-width:480px){.record-form{grid-template-columns:1fr}}

/* Member-selected chapter officers. */
.officer-fields{min-inline-size:0;margin:18px 0;padding:14px;border:1px solid #b8cce2;border-radius:10px;background:#f7faff}.officer-fields legend{font-weight:700}.officer-fields p{font-size:.92rem;margin-top:4px;color:#36516f}.officer-fields label{display:flex;align-items:center;gap:10px;min-height:36px}.officer-fields input[type=checkbox]{width:1.1em;height:1.1em;flex:none}.officer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:14px;margin-bottom:24px}.officer-card{display:flex;align-items:center;gap:16px;margin:0;min-width:0;overflow-wrap:anywhere}.officer-card img{width:88px;height:88px;flex:none;object-fit:cover;border-radius:50%;background:#fff}.officer-card img[src^="snda-192.png"]{object-fit:contain}.officer-card h3{margin:6px 0 0}.officer-badge{color:var(--blue);font-size:.88rem;font-weight:700;margin:0}.officer-card>div{min-width:0}

/* Sacramento Society identity and State Capitol illustration. */
.hero{padding:clamp(28px,5vw,42px) 18px 20px;text-align:center}
.hero h1{margin:0;line-height:normal}
.hero h1>span{display:block;white-space:nowrap;text-wrap:nowrap}
.hero .society-name{font-size:clamp(1.15rem,4.7vw,2rem);font-weight:700;letter-spacing:-.025em;line-height:1.25}
.hero .association-name{font-size:clamp(.9rem,3.8vw,1.65rem);font-weight:650;letter-spacing:-.02em;line-height:1.3;margin-top:.3em}
.hero .chapter-initials{font-size:clamp(3.6rem,13vw,6rem);font-weight:800;letter-spacing:-.055em;line-height:1.02;margin-top:.16em}
.hero .state-capitol{position:relative;display:block;inset:auto;right:auto;bottom:auto;transform:none;width:min(88%,440px);height:auto;aspect-ratio:640/300;margin:22px auto 0;opacity:.65}
@media(max-width:480px){.hero .state-capitol{width:100%;margin-top:18px}}

/* Six primary sections, with large icon targets on narrow screens. */
body:has(#nav){padding-bottom:calc(104px + env(safe-area-inset-bottom))}
#nav{position:fixed;z-index:100;inset:auto 0 0;max-width:none;margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,180px));justify-content:center;gap:6px;overflow:visible;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
#nav :is(button,a){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;min-height:70px;padding:8px 4px;font:inherit;text-decoration:none;font-weight:650;font-size:.95rem;line-height:1.2}
#nav .nav-icon{display:block;width:26px;height:26px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#nav .nav-badge{position:absolute;top:3px;left:calc(50% + 8px);min-width:20px;padding:2px 4px;border-radius:10px;background:var(--burgundy);color:#fff;font-size:.75rem;line-height:1.2;font-weight:750;border:2px solid var(--navy)}
#nav .nav-badge[hidden]{display:none}
.dues-card p{margin-block:8px}.dues-card button:disabled{opacity:1;color:#52657c;background:#edf2f7;border-color:#cddbeb;cursor:not-allowed}
#status{bottom:calc(96px + env(safe-area-inset-bottom));max-width:calc(100% - 32px)}
@media(max-width:680px){
  body:has(#nav){padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  #nav :is(button,a){min-height:56px}
  #nav .nav-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  #status{bottom:calc(82px + env(safe-area-inset-bottom))}
}

/* Structured meeting addresses and directions. */
.admin-page .meeting-location-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0 12px;margin:12px 0;padding:16px;min-width:0}
.meeting-location-fields>p,.meeting-location-fields>label{grid-column:1/-1}
.meeting-location-fields>.location-field-city{grid-column:span 3}
.meeting-location-fields>.location-field-state{grid-column:span 1}
.meeting-location-fields>.location-field-zipCode{grid-column:span 2}
.record-card .record-location{white-space:pre-line}
.meeting-directions{display:inline-flex;align-items:center;gap:8px;margin-top:14px;min-height:48px}
.meeting-directions svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
@media(max-width:480px){.meeting-location-fields>.location-field-city,.meeting-location-fields>.location-field-state,.meeting-location-fields>.location-field-zipCode{grid-column:1/-1}.admin-page .meeting-location-fields{padding:12px}}

/* Show newer contact fields on every member profile, including older records. */
.profile-contact-details{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:8px 14px;margin:16px 0}.profile-contact-details dt{font-weight:650}.profile-contact-details dd{margin:0;min-width:0;overflow-wrap:anywhere}.profile-not-provided{color:#52657c}
@media(max-width:370px){.profile-contact-details{grid-template-columns:1fr;gap:2px}.profile-contact-details dd{margin-bottom:8px}}

/* Members uses the full content width when its duplicate resource card is hidden. */
.layout:has(>aside[hidden]){grid-template-columns:1fr}

/* Account editing is separate from the member directory. */
.account-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}.account-actions .profile{margin-left:0;white-space:nowrap}
@media(max-width:680px){.brand{flex-wrap:wrap}.brand>span{flex:1;max-width:none}.account-actions{width:100%;margin-left:0;justify-content:flex-end}.account-actions .profile.btn{font-size:.9rem;padding:10px 16px}}

.meeting-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}.meeting-action-row .meeting-directions{margin-top:0}.meeting-action-row .rsvp-button{min-height:48px}.meeting-action-row button{margin-top:0}.rsvp-status{margin-top:10px;color:#36516f;overflow-wrap:anywhere}.rsvp-status:empty{display:none}

/* Members Benefits stays within the Members section and fixed navigation. */
.members-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-bottom:14px}.members-heading h2{margin:0}.members-heading a{font-weight:650;padding:8px 0}.benefits-list{padding-left:24px;margin:0}.benefits-list li{margin:12px 0;overflow-wrap:anywhere}.benefits-list ul{padding-left:22px}.benefits-list li li{margin:8px 0}

/* Member service links wrap together on phones. */
.member-service-links{display:flex;flex-wrap:wrap;gap:10px}
.message-picture-controls{margin:14px 0;min-width:0}.message-picture-controls .sr-only{width:1px;padding:0;border:0}.picture-preview img{display:block;max-width:100%;width:auto;max-height:220px;border-radius:10px;margin-top:12px}.picture-preview p{overflow-wrap:anywhere}.picture-error{color:#8b1538}.message-picture{display:block;max-width:100%;padding:8px;text-align:left}.message-picture img{display:block;max-width:100%;width:auto;max-height:360px;border-radius:6px}.message-picture span{display:block;font-size:.85rem;margin-top:6px}.photo-dialog{width:min(720px,94vw);max-height:90dvh;overflow:auto}.enlarged-picture{display:block;max-width:100%;max-height:65dvh;width:auto;height:auto;margin:16px auto}
