/* Compact shared navigation. The report action stays visible on every page. */
:root { --report-height:76px; }
html { scroll-padding-top:calc(var(--report-height) + env(safe-area-inset-top) + 12px); }
.shell { max-width:980px; margin:0 auto; padding-top:calc(var(--report-height) + env(safe-area-inset-top)); border-radius:0; overflow:visible; min-height:100dvh; }
.report-access { position:fixed; z-index:25; top:0; left:50%; transform:translateX(-50%); width:100%; max-width:980px; min-height:calc(var(--report-height) + env(safe-area-inset-top)); padding:8px 22px; padding-top:calc(8px + env(safe-area-inset-top)); display:flex; align-items:center; justify-content:space-between; gap:14px; background:#0a291f; color:#fff; border-bottom:1px solid #c4ac7150; box-shadow:0 3px 16px #071f1920; }
.report-cta { display:flex; align-items:center; justify-content:center; gap:9px; min-height:46px; min-width:138px; padding:7px 16px; color:#102f23; background:#e2c78d; border-radius:11px; text-decoration:none; font-weight:800; font-size:17px; }
.report-cta:focus-visible { outline:3px solid white; outline-offset:3px; }
.report-access>div { text-align:left; }
.emergency-contact { display:flex; flex-direction:column; align-items:flex-end; gap:2px; min-width:0; }
.report-access>div>span { display:block; color:#c9d8ce; font-size:9px; line-height:1.3; }
.report-access>div>a { font-size:18px; line-height:1.25; letter-spacing:1px; font-weight:700; text-decoration:none; color:#fff; }
.top { display:block; padding:18px 24px 12px; border-radius:0 0 20px 20px; background:linear-gradient(120deg,#174934,#0d3023); }
.top::before { inset:0; transform:none; border:0; border-radius:0; box-shadow:none; opacity:.5; background:repeating-linear-gradient(135deg,transparent 0 48px,#d5bd8620 49px,transparent 50px 98px); }
.topbar { padding:0; }
.official-logo { width:66px; height:66px; box-shadow:0 0 0 3px #d8c18a13; }
.brand { gap:12px; }
.brand strong { font-size:24px; }
.brand small { font-size:10px; }
.nationality { margin-top:3px; font-size:9px; }
.hotline-actions { padding:10px 0 0; gap:8px; }
.hotline-actions a { padding:5px; min-height:33px; border-radius:8px; }
.page { padding:16px 24px 0; }
#home #member-stats { margin:0 0 8px; gap:9px; }
.stat { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:78px; padding:9px 5px; border-radius:13px; gap:0; }
.stat::before { display:none; }
.stat .num { padding:0; font-size:26px; }
.stat .caption { font-size:11px; margin-top:3px; }
.member-session { font-size:11px; margin:0 0 10px; }
.radio-strip.report-radio { display:flex; justify-content:flex-start; gap:6px; min-height:0; padding:0; margin:0; border:0; border-radius:0; background:transparent; color:#b8d5c6; font-size:9px; line-height:1.2; white-space:nowrap; }
.report-radio b { color:#e2c78d; font-size:12px; line-height:1.2; letter-spacing:.3px; }
.report-radio small { font-size:8px; }
.connection { width:100%; text-align:center; padding:0; }
.connection:not(.error) { display:none; }
.home-intro { padding:18px 20px; border:1px solid var(--line); border-right:3px solid var(--gold); border-radius:16px; background:var(--surface); }
.home-intro h1 { margin:4px 0 9px; font-size:21px; line-height:1.6; }
.home-intro p { margin:0 0 13px; color:var(--muted); font-size:13px; line-height:1.85; }
.home-intro .outline { min-height:37px; }
.visitor-home { display:block; margin-top:12px; }
.visitor-entry { padding:13px 16px; border-radius:13px; background:var(--soft); }
.visitor-entry>span { font-size:11px; color:var(--muted); }
.visitor-entry .small-actions { margin-top:7px; }
.visitor-entry button { min-height:39px; }
.site-clock { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin-top:16px; color:#e5eee8; font-size:12px; line-height:1.7; }
.site-clock-time { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
#site-time { font-variant-numeric:tabular-nums; white-space:nowrap; }
.site-clock small { color:#b5cdbf; font-size:10px; }
.news-ticker { margin-top:8px; }
.app-version { margin:8px 0 0; text-align:center; font-size:11px; line-height:1.7; color:var(--muted); }
#app-version { display:inline-block; font-variant-numeric:tabular-nums; }
.home-results { margin-top:8px; scroll-margin-top:8px; }
.titleline { margin-bottom:10px; }
.titleline h2 { font-size:22px; }
.news-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:0; margin:14px 0; overflow:visible; }
.news-subnav { display:flex; align-items:center; flex-direction:column; justify-content:center; gap:5px; min-height:76px; border:1px solid var(--line); border-radius:13px; color:var(--muted); background:var(--surface); font-size:12px; }
.news-subnav svg { width:25px; height:27px; }
.news-subnav.on { background:var(--soft); border-color:var(--teal); color:var(--teal); font-weight:700; }
.about-team { max-width:700px; margin:auto; padding:23px; background:var(--surface); border:1px solid var(--line); border-radius:18px; font-size:14px; line-height:2; }
.about-team p { margin:10px 0 18px; }
.about-team section { padding-top:12px; margin-top:25px; border-top:1px solid var(--line); }
.about-team h3 { font-size:19px; margin:8px 0; color:var(--teal); }
.about-team ul { padding-inline-start:22px; }
.about-team li { padding-inline-start:5px; margin:9px 0; }
.about-team li::marker { color:var(--gold); }
.about-intro { text-align:center; }
.about-logo { display:block; width:90px; height:90px; border-radius:50%; margin:0 auto 12px; }
.about-intro .national-symbols { justify-content:center; }
.about-year { display:block; font-size:12px; margin-top:12px; }
.about-verse { text-align:center; margin:20px 0; background:var(--soft); padding:18px 12px; border-radius:12px; color:var(--teal); }
.about-verse small { font-size:12px; }
.about-verse p { font-size:21px; margin:5px 0; }
.about-invitation { color:var(--teal); font-size:18px; font-weight:700; }
.about-closing { padding-top:20px; border-top:1px solid var(--gold); font-weight:700; color:var(--teal); }
.approved-art { display:block; position:relative; width:100%; overflow:hidden; direction:ltr; isolation:isolate; }
.approved-art>img { display:block; position:absolute; height:auto; max-width:none; margin:0; border:0; border-radius:0; }
.falcon-badge,.falcon-badge.honorary { height:auto; }
.falcon-badge>.approved-art { border-radius:0; }
.falcon-badge.honorary>.approved-art { border-radius:12px; }
.profile-hero .falcon-badge { height:auto; }
.member .falcon-badge { width:46px; height:auto; }
.rank-item .falcon-badge { width:105px; height:auto; }
.rank-item.honorary .falcon-badge { width:150px; height:auto; }
.award-graphic,.award-tile .award-graphic { height:auto; width:116px; }
.legacy-award-logo { width:100%; border-radius:50%; }
.award-catalog .approved-art { max-width:142px; border-radius:8px; }
.insignia-preview>.approved-art { width:110px; flex-shrink:0; border-radius:10px; }
.approved-references { margin-top:24px; border-top:1px solid var(--line); padding-top:14px; }
.approved-references summary { font-size:13px; cursor:pointer; color:var(--teal); margin-bottom:12px; }
.approved-references .approved-art { margin-block:12px; border-radius:10px; }
.admin-access { display:grid; grid-template-columns:35px 1fr; gap:0 12px; text-align:right; align-items:center; border:1px solid #bda574; border-radius:14px; background:var(--soft); padding:16px; color:var(--teal); }
.admin-access svg { grid-row:1/3; width:30px; height:35px; }
.admin-access small { font-size:11px; color:var(--muted); }
.permission-member { margin-top:10px; flex-wrap:wrap; }
.permission-member>span { color:var(--teal); font-size:11px; }
.member-copy { display:grid; gap:3px; min-width:0; flex:1; overflow-wrap:anywhere; }
.member-position { color:var(--teal); font-size:12px; font-weight:700; }
.profile-hero .falcon-badge { grid-row:1/6; }
.profile-hero .profile-position { color:#f1e2b6; font-size:14px; font-weight:700; overflow-wrap:anywhere; }
.position-preview strong { overflow-wrap:anywhere; }
.app-update-banner { position:fixed; top:calc(var(--report-height) + env(safe-area-inset-top) + 8px); left:50%; transform:translateX(-50%); z-index:40; width:calc(100% - 24px); max-width:600px; display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:13px 16px; border:1px solid var(--teal); border-radius:16px; background:var(--surface); color:var(--ink); box-shadow:0 5px 24px #0003; }
.app-update-banner>div { flex:1 1 180px; }
.app-update-banner strong,.app-update-banner small { display:block; }
.app-update-banner strong { font-size:14px; }
.app-update-banner small { color:var(--muted); font-size:11px; }
.membership-set { display:grid; gap:20px; margin:20px auto; width:100%; max-width:370px; }
.membership-face { width:100%; position:relative; aspect-ratio:302 / 483; border-radius:7%; overflow:hidden; background:#f2f0e8; color:#113c30; box-shadow:0 12px 28px #071c2526; container-type:inline-size; }
.membership-face>.approved-art { width:100%; height:100%; }
.member-card-data { position:absolute; top:50.7%; right:3.7%; width:59%; height:35%; margin:0; background:#efeee8; display:grid; grid-template-rows:repeat(6,1fr); border-radius:4px; padding:0 3px; }
.member-card-data>div { display:grid; grid-template-columns:35% 1fr; gap:3px; align-items:center; border-bottom:1px solid #14433520; min-width:0; }
.member-card-data>div:last-child { border-bottom:0; }
.member-card-data dt { font-size:clamp(7px,2.7cqw,10px); font-weight:700; white-space:nowrap; }
.member-card-data dd { margin:0; font-size:clamp(7px,2.8cqw,11px); font-weight:650; line-height:1.35; overflow-wrap:anywhere; }
.member-card-data>div:last-child dd { direction:ltr; font-size:clamp(7px,2.5cqw,10px); }
.card-live-portrait { position:absolute; top:51%; left:4.5%; width:30%; height:24.6%; border:1px solid #245643; border-radius:8%; overflow:hidden; background:#dbe0da; }
.card-live-portrait .membership-portrait,.card-live-portrait .portrait-placeholder { width:100%; height:100%; margin:0; border:0; border-radius:0; }
.card-live-portrait .portrait-head { width:35%; height:34%; top:14%; left:32.5%; }
.card-live-portrait .portrait-body { width:90%; height:58%; left:5%; bottom:-5%; }
.card-earned-rank { position:absolute; top:77%; left:4.5%; width:30%; text-align:center; font-weight:700; font-size:clamp(7px,2.5cqw,10px); line-height:1.5; background:#efeee8; border-radius:5px; padding:3px; }
.membership-back .member-qr { position:absolute; top:38%; left:33%; width:34%; height:auto; aspect-ratio:1; margin:0; border:2px solid #123d31; border-radius:7px; padding:4px; background:white; }
.card-rules { position:absolute; top:59.5%; right:5%; left:5%; bottom:7.8%; background:#f2efe6; border-radius:8%; padding:3% 5%; display:flex; flex-direction:column; justify-content:space-between; text-align:center; font-size:clamp(8px,2.9cqw,11px); line-height:1.55; }
.card-rules>strong { background:#104435; border-radius:30px; color:white; font-size:3.6cqw; padding:2px; }
.card-rules p { margin:4px 0 0; }
.card-rules>a { color:#103c2d; font-weight:800; direction:ltr; font-size:3.6cqw; line-height:1; }
.membership-actions { display:flex; gap:8px; flex-wrap:wrap; }
.membership-actions>* { flex:1; text-align:center; }
.sheet { max-height:calc(100dvh - var(--report-height) - env(safe-area-inset-top) - 10px); }
.bottom { max-width:760px; }
.nav-label { max-width:100%; line-height:1.5; }
#news .titleline { gap:10px; flex-wrap:wrap; }
#news-heading { min-width:0; }
.toast { z-index:40; }
.news-card .media-frame { aspect-ratio:4/3; object-fit:contain; width:100%; height:auto; }
@media(min-width:760px) {
 .page { padding:22px 38px 0; }
 .top { padding:20px 38px 12px; }
 .topbar { padding:0; }
 .hotline-actions { max-width:420px; margin-top:8px; }

 .stat { min-height:80px; }
 .membership-set { grid-template-columns:1fr 1fr; max-width:700px; align-items:start; }
 #membership-overlay .sheet { max-width:800px; }
 .home-intro { padding:22px 25px; }
 .home-intro h1 { font-size:26px; }
 .news-sections { max-width:520px; }
}
@media(max-width:380px) {
 .report-access { padding-inline:14px; gap:8px; }
 .report-cta { min-width:124px; font-size:15px; }
 .report-access>div>span { font-size:8px; }
 .report-access>div>a { font-size:16px; }
 .top,.page { padding-inline:16px; }

 .brand strong { font-size:21px; }
 .official-logo { width:58px; height:58px; }
 .brand { gap:9px; }
 .nationality { font-size:8px; }
 .about-team { padding:17px; }
}
@media print {
 .report-access { display:none!important; }
 body.printing-membership #print-membership { display:grid!important; grid-template-columns:1fr 1fr; gap:6mm; width:146mm; max-width:none; top:15mm; }
 body.printing-membership .membership-face { width:70mm; break-inside:avoid; box-shadow:none; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
/* Compact member tools above the case shortcuts. */
.header-actions{display:flex;flex-direction:column;align-items:center;gap:7px;flex-shrink:0}.header-logout{border:0;background:transparent;color:#d8eadd;font:inherit;font-size:10px;min-height:30px;padding:3px 0;white-space:nowrap}.compact-member-bar{position:relative;margin:0 0 8px;min-height:44px;gap:8px}.compact-member-bar #welcome-name{font-size:12px;line-height:1.6;min-width:0;overflow-wrap:anywhere}.member-alert-actions{display:flex;gap:5px;flex-shrink:0}.compact-action{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;min-width:44px;padding:5px 7px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--teal);font:inherit;font-size:10px}.compact-action[aria-pressed=true]{border-color:var(--teal);background:var(--soft)}.alert-radius-panel{position:absolute;top:calc(100% + 5px);left:0;width:min(290px,100%);padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 8px 24px #0003;z-index:5}.alert-radius-panel label{display:flex;justify-content:space-between;margin:0;font-size:12px}.alert-radius-panel input{padding:0;min-height:34px;accent-color:var(--teal)}.alert-radius-panel small{font-size:10px;color:var(--muted)}
.map-expand{position:absolute;bottom:28px;left:10px;z-index:2;box-shadow:0 2px 10px #0003}.map-collapse{position:absolute;top:calc(10px + env(safe-area-inset-top));left:10px;z-index:3}.field-map-wrap.map-fullscreen{position:fixed;inset:0;margin:0;width:100%;height:100dvh;z-index:100;background:var(--canvas);padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);box-sizing:border-box}.map-fullscreen .field-map{height:100%;width:100%;border:0;border-radius:0}.map-fullscreen .map-fit{top:calc(62px + env(safe-area-inset-top));left:10px}.map-fullscreen .leaflet-control-attribution{padding-bottom:4px}.map-fullscreen .leaflet-top{top:10px}.field-map:focus-visible{outline:3px solid var(--teal)}
