/* Supreme Citizens Charter
   Responsive Mobile & Tablet Styles
   ---------------------------------- */

html,body{max-width:100%;overflow-x:hidden}img,svg,video{max-width:100%;height:auto}
.top-strip{background:#003B8F;color:#fff;font-size:.73rem;font-weight:800;letter-spacing:.11em;display:flex;justify-content:center;gap:34px;padding:8px 20px}
.header-inner,.site-header>.nav-wrap{width:min(1180px,calc(100% - 40px));margin-left:auto;margin-right:auto;display:flex;align-items:center;justify-content:space-between;gap:25px;min-height:88px}
.header-inner .brand{flex:0 0 auto;min-width:max-content}.header-inner .brand>span{display:block;min-width:max-content}.header-inner .brand strong,.header-inner .brand small{white-space:nowrap}.header-inner .brand small{display:block;color:#5f6c7d;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}.header-inner .main-nav{flex-wrap:wrap;justify-content:flex-end;gap:12px 18px}
.footer-inner{width:min(1180px,calc(100% - 40px));margin-left:auto;margin-right:auto;display:flex;align-items:center;gap:18px;padding-bottom:40px}
@media(max-width:900px){.wrap{width:92%;max-width:100%;margin-left:auto;margin-right:auto}.main-nav.open{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 18px}.header-inner{width:92%;max-width:100%;flex-direction:column;align-items:stretch;gap:10px;padding:12px 0}.header-inner .brand{justify-content:center;min-width:0}.header-inner .brand>span{min-width:0}.header-inner .main-nav{display:flex;position:static;box-shadow:none;padding:8px 0 4px;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 16px}.header-inner .main-nav a{width:auto;padding:5px 2px}.two-col,.feature-grid{grid-template-columns:1fr}.page-hero{padding-left:20px;padding-right:20px}}
@media(max-width:600px){body{font-size:16px}.wrap{width:auto;max-width:none;margin-left:18px;margin-right:18px}.top-strip{display:none}.header-inner{width:auto;margin-left:18px;margin-right:18px}.header-inner .brand{justify-content:flex-start}.header-inner .brand strong,.header-inner .brand small{white-space:normal}.header-inner .main-nav{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:0}.header-inner .main-nav a{width:100%;padding:9px 6px;text-align:center}.footer-inner{width:auto;margin-left:18px;margin-right:18px;align-items:flex-start}.main-nav.open{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:0}.main-nav a{display:block;width:100%;padding:11px 8px;text-align:center;box-sizing:border-box}.page-hero,.page-hero.compact{padding:32px 0}.page-hero h1{font-size:clamp(2rem,10vw,3rem);line-height:1.08;overflow-wrap:break-word}.page-lede{font-size:1.05rem;line-height:1.6}.two-col,.feature-grid{display:grid;grid-template-columns:1fr;gap:20px}.feature,.callout,.pledge,.pledge-inner{max-width:100%;box-sizing:border-box}.button{display:block;width:100%;max-width:100%;box-sizing:border-box;text-align:center;margin-bottom:10px}a{overflow-wrap:anywhere}table{display:block;width:100%;overflow-x:auto}}
@media(max-width:380px){.wrap{margin-left:14px;margin-right:14px}.header-inner,.footer-inner{margin-left:14px;margin-right:14px}.header-inner .main-nav{grid-template-columns:1fr}.page-hero h1{font-size:1.9rem}.page-lede{font-size:1rem}}
@media(max-width:768px){.charter,.charter-card,.charter-content,.charter-document,.pledge,.pledge-inner{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-wrap:anywhere}.charter img,.charter-card img,.charter-content img,.charter-document img,.pledge img{display:block;width:auto!important;max-width:100%!important;height:auto!important;margin-left:auto;margin-right:auto}.charter p,.charter li,.charter-content p,.charter-content li,.charter-document p,.charter-document li{max-width:100%;overflow-wrap:anywhere;word-break:normal}.charter-layout{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}.charter-sidebar,.charter-text{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}.charter-sidebar{margin-bottom:24px}.charter-text{overflow-wrap:anywhere;word-break:normal}.charter-sidebar img{display:block;max-width:100%!important;width:auto!important;height:auto!important;margin-left:auto;margin-right:auto}}

/* Shared navigation hierarchy */
.main-nav{flex-wrap:wrap;justify-content:flex-end;gap:10px 16px}.main-nav a[href="index.html"]{order:10}.main-nav a[href="charter.html"]{order:20}.main-nav a[href="principles.html"]{order:30}.main-nav a[href="identity.html"]{order:40}.main-nav a[href="citizens-branch.html"]{order:50}.main-nav a[href="community-consensus.html"]{order:60}.main-nav a[href="participate.html"]{order:70}.main-nav a[href="citizenship.html"]{order:80}.main-nav a[href="election-day.html"]{order:90}.main-nav a[href="voting.html"]{order:100}.main-nav a[href="january-6.html"]{order:110}.main-nav a[href="congressional-certification.html"]{order:120}.main-nav a[href="congress.html"]{order:130}.main-nav a[href="founding-documents.html"]{order:140}.main-nav a[href="about.html"]{order:150}.main-nav a[href="contact.html"]{order:160}

/* Three-row desktop header */
@media(min-width:901px){
 .site-header>.nav-wrap{display:grid;grid-template-columns:1fr;gap:0;min-height:0;padding-top:10px}
 .site-header>.nav-wrap>.brand{justify-self:start;min-height:92px;gap:18px;padding:6px 0 10px}
 .site-header>.nav-wrap>.brand img{width:92px;max-height:94px}
 .site-header>.nav-wrap>.brand strong{font-size:1.32rem;line-height:1.15;letter-spacing:.035em}
 .site-header>.nav-wrap>.brand span{font-size:.82rem;line-height:1.35;letter-spacing:.075em;margin-top:4px}
 .site-header>.nav-wrap>.menu-toggle{display:none}
 .site-header>.nav-wrap>.main-nav{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px 18px;padding:9px 0 13px;border-top:1px solid #d9dee5}
 .site-header>.nav-wrap>.main-nav a{white-space:nowrap;font-size:.86rem;line-height:1.35}
 .header-inner .main-nav{row-gap:8px}
}
@media(max-width:900px){.main-nav.open,.header-inner .main-nav{justify-content:flex-start}}
