/* Shared reading and control rhythm across marketplace, support and staff pages. */
:root{--brand:#C8102E;--ink:#272226;--muted:#625B63;--line:#E1DCE0;--surface:#fff;--canvas:#F7F6F7;color-scheme:light}
html{font-size:16px;text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;line-height:1.6;color:var(--ink);background:var(--canvas)}
*,*::before,*::after{box-sizing:border-box}
h1,h2,h3,p,button,a,label,legend,code{overflow-wrap:anywhere}
h1{font-weight:700;letter-spacing:-.025em;line-height:1.2}
h2,h3{font-weight:650;letter-spacing:-.015em;line-height:1.35}
p{color:var(--muted)}
input,select,textarea,button{font:inherit;max-width:100%;min-width:0}
input,select,textarea{font-size:16px;line-height:1.5;border-color:var(--line);color:var(--ink);background:#fff}
input:not([type=checkbox]):not([type=radio]),select{min-height:48px}
input::placeholder,textarea::placeholder{color:#716970;opacity:1}
input[type=checkbox],input[type=radio]{width:20px;height:20px;flex:0 0 auto}
button,.button{min-height:44px;line-height:1.45;font-weight:600;white-space:normal;text-align:center;padding:12px 16px;border-radius:10px;cursor:pointer;overflow-wrap:anywhere}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #005A9C;outline-offset:3px}
button:disabled{cursor:default;opacity:.55}
button:not(:disabled):hover,.button:hover{filter:brightness(.96)}
.small,.foot,.note{font-size:13px;line-height:1.6;color:var(--muted)}
.badge{font-size:12px;line-height:1.45;white-space:normal;max-width:100%}
.price,.stat{font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.card,.record,section{min-width:0}
header{gap:16px;flex-wrap:wrap}
header .brand{flex:0 0 auto;font-weight:750;font-size:19px;letter-spacing:.075em}
header .brand small{font-size:10px;line-height:1.6;letter-spacing:.2em}
header>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
header a:not(.brand){font-size:14px;text-decoration:none;border-radius:8px;padding:10px 12px;min-height:44px;display:inline-flex;align-items:center}
header a:not(.brand):hover{background:#FFF0F2}
header select,header #language{width:120px!important;flex:0 0 120px;min-height:44px;font-size:14px;padding:9px 12px}
.intro h1{font-size:clamp(27px,3vw,36px);margin:12px 0}
.intro>p:not(.notice):not(.eyebrow){font-size:16px;line-height:1.65;max-width:70ch}
.eyebrow{font-size:11px;line-height:1.6;letter-spacing:.12em}
.notice{font-size:13px;line-height:1.6;color:#625B63;background:#FFF0F2;padding:12px 14px}
.browse-toolbar{justify-content:flex-start;gap:8px;flex-wrap:wrap;margin:14px 0}
nav.browse-toolbar a{padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:10px;text-decoration:none;font-size:14px;line-height:1.5;min-height:44px}
#content>.grid{gap:16px}
.grid .card{padding:12px;border-radius:14px}
.grid .card h2{font-size:16px;line-height:1.45;min-height:2.9em;margin:10px 0}
.grid .card p{font-size:13px;line-height:1.6;margin:8px 0}
.grid .card .small{font-size:13px;line-height:1.6}
.grid .card .price{font-size:24px;line-height:1.3;font-weight:700;overflow-wrap:anywhere}
.clock,.delivery-badge{font-size:13px;line-height:1.55}
.emptyimage{font-size:13px;text-align:center;padding:12px}
.grid .card>a{text-decoration:none}
.facts{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.qr-login{font-family:inherit;padding:24px;width:min(560px,calc(100% - 32px));max-width:calc(100% - 32px)}
.qr-login label{font-size:15px;line-height:1.5}
body.support-page header,body.directory-page header{position:static;justify-content:flex-start;padding:16px max(3vw,16px)}
body.support-page header select,body.directory-page header select{margin-left:auto}
body.support-page main{max-width:820px;padding:28px 20px}
body.support-page #intro{max-width:65ch}
body.support-page section{padding:24px;margin:24px 0;border-color:var(--line)}
body.support-page label{font-size:15px;font-weight:600;line-height:1.5}
body.support-page label input,body.support-page label textarea{font-weight:400}
body.support-page h1{font-size:32px}
body.support-page h2{font-size:22px}
body.support-page code{display:block;padding:12px;background:#F2EFF1;font-size:14px;border-radius:8px}
body.support-page input[type=file]{white-space:normal}
body.staff-page{font-size:15px}
body.staff-page nav button{color:#fff;opacity:.9;min-height:44px}
body.staff-page nav button.active{background:#9F1028;opacity:1}
body.staff-page label{font-size:14px;line-height:1.5}
body.staff-page .muted,body.staff-page th,body.staff-page .eyebrow{color:var(--muted)}
body.staff-page th{font-size:12px;letter-spacing:.03em}
body.staff-page code{font-size:12px;color:var(--muted)}
body.staff-page .split{grid-template-columns:repeat(2,minmax(0,1fr))}
body.staff-page .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
body.staff-page td button{font-size:13px;min-height:40px}
dialog{max-width:calc(100vw - 24px);border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--ink);background:var(--canvas)}
dialog::backdrop{background:#27222688}
@media(max-width:700px){
 header{position:static;padding:16px!important;align-items:flex-start}
 header>div{width:100%;gap:6px}
 header a:not(.brand){font-size:14px;padding:10px}
 header .brand{font-size:18px}
 header select,header #language{width:120px!important;flex-basis:120px}
 main{padding:24px 16px}
 .intro h1{font-size:28px;line-height:1.25}
 .grid .card h2{font-size:15px;min-height:2.9em}
 .grid .card .price{font-size:22px}
 .image,.emptyimage{height:155px}
 .small{font-size:13px}
 .list-view .card{grid-template-columns:100px minmax(0,1fr)}
 body.support-page header select,body.directory-page header select{margin-left:0}
 body.support-page main{padding:24px 16px}
 body.support-page section{padding:18px}
 body.support-page h1{font-size:28px}
 body.staff-page main{padding:24px 16px}
 body.staff-page .split{grid-template-columns:minmax(0,1fr)}
 dialog{padding:16px}
}
@media(max-width:420px){
 #filters{grid-template-columns:minmax(0,1fr)}
 #query{grid-column:1/-1}
 #filters select{width:100%}
 .grid{grid-template-columns:minmax(0,1fr)}
 .image,.emptyimage{height:210px}
 .grid .card h2{min-height:0;-webkit-line-clamp:3;font-size:17px}
 .grid .card .price{font-size:25px}
 .filter-grid{grid-template-columns:minmax(0,1fr)}
}

@media(max-width:700px){body.support-page header select,body.directory-page header select{margin-left:auto}body.support-page header a:not(.brand),body.directory-page header a:not(.brand){order:2;flex-basis:100%;min-height:32px;padding:4px 0}}

/* Beavera wordmark: rounded system typography; no third-party font asset. */
header .brand{font-family:"Trebuchet MS",ui-rounded,system-ui,sans-serif;font-size:28px;font-weight:800;letter-spacing:-.9px;color:#3D241D;line-height:1.15;text-decoration:none;text-transform:none}
header .brand small{font-family:system-ui,sans-serif;color:var(--muted);font-weight:600;letter-spacing:.16em;line-height:1.7}
@media(max-width:700px){header .brand{font-size:26px}}

body.staff-page aside .brand{font-family:Trebuchet MS,ui-rounded,system-ui,sans-serif;font-size:28px;font-weight:800;letter-spacing:-.9px;color:#3D241D;text-transform:none}

/* Approved D lettering is an image, independent of installed fonts. */
.brand-wordmark{display:block;width:160px;height:64px;object-fit:contain;object-position:left center;max-width:100%}
header .brand{display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1}
header .brand small{display:block}
@media(max-width:700px){.brand-wordmark{width:144px;height:58px}}

.brand-lockup{display:flex;align-items:center;gap:8px;max-width:100%}.brand-head{width:44px;height:44px;object-fit:contain;flex:none}.brand-lockup .brand-wordmark{width:136px;height:54px;min-width:0}.brand-lockup+small{padding-left:52px}

/* Approved B lockup: province centers beneath the whole portrait + wordmark. */
header .brand,.staff-page aside .brand{display:inline-flex;flex-direction:column;align-items:center;gap:5px;width:max-content;max-width:100%}
.brand-lockup{justify-content:center;gap:7px}
.brand-lockup .brand-head{width:52px;height:52px}
.brand-lockup .brand-wordmark{width:136px;height:52.2px}
.brand-lockup+.brand-province{display:block;padding-left:0;margin:0;text-align:center;align-self:stretch;font:600 10.5px/13px Arial,sans-serif;letter-spacing:1.4px;color:#5c5d65}
