/* Shared navigation and typography for Shelter Brasil. */
:root {
    --bg:rgb(var(--c-bg));
    --bg-elevated:rgb(var(--c-panel));
    --surface:rgb(var(--c-surface));
    --surface-hover:rgb(var(--c-surface2));
    --border:rgb(var(--c-line));
    --text:rgb(var(--c-text));
    --text-muted:rgb(var(--c-muted));
    --accent:rgb(var(--c-accent));
    --accent-hover:rgb(var(--c-accent-soft));
    --gold:rgb(var(--c-accent));
    --gold-hover:rgb(var(--c-accent-soft));
    --rust:rgb(var(--c-dim));
    --success:rgb(var(--c-ok));
    --radius:4px;
    --heading:var(--f-display);
    --mono:var(--f-mono);
}

html { scroll-padding-top:100px; }
body { background:var(--bg); font-family:var(--f-body); font-size:17px; line-height:1.7; }
h1, h2, h3 { font-family:var(--f-display); font-weight:700;letter-spacing:.01em;text-transform:uppercase}
.site-header {
    position:sticky;
    top:0;
    z-index:100;
    background:rgb(var(--c-bg)/.95);
    border-bottom:1px solid rgb(var(--c-line2)/.1);
    box-shadow:0 8px 32px #0002;
    backdrop-filter:blur(18px);
}
.site-header .header-inner {
    width:min(1440px, calc(100% - 96px));
    min-height:83px;
    gap:40px;
    padding:0;
}
.site-header .brand {
    gap:14px;
    color:rgb(var(--c-text));
    line-height:1;
    text-decoration:none;
}
.site-header .brand-mark { display:block; width:52px; height:42px; color:rgb(var(--c-accent)); }
.brand-mark svg { width:100%; height:100%; }
.site-header .brand-name { gap:6px; }
.brand-wordline { display:block; white-space:nowrap; }
.site-header .brand-name strong {
    font-family:var(--f-display);
    font-weight:700;
    font-size:38px;
    letter-spacing:.01em;
    text-shadow:0 1px 2px #0008;text-transform:uppercase}
.site-header .brand-name .brand-country { color:rgb(var(--c-accent)); margin-left:3px; }
.site-header .brand-name .brand-tagline {
    font-family:var(--f-display);
    font-weight:700;
    font-size:14px;
    letter-spacing:.01em;
    color:rgb(var(--c-muted));text-transform:uppercase}
.site-header .site-nav { margin-left:auto; display:flex; align-items:center; gap:28px; }
.site-header .site-nav a {
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 4px;
    color:rgb(var(--c-soft));
    font-size:16px;
    font-weight:500;
    letter-spacing:.01em;
    text-decoration:none;
}
.site-header .site-nav a + a { border-left:0; }
.site-header .site-nav a:hover,
.site-header .site-nav a[aria-current=page] { color:rgb(var(--c-accent-soft)); }
.site-header .site-nav a[aria-current=page]::after {
    content:'';
    position:absolute;
    bottom:2px;
    height:2px;
    left:50%;
    width:22px;
    transform:translateX(-50%);
    background:rgb(var(--c-accent));
}
.site-header .site-nav .nav-utility { display:none; }
.site-header .header-actions { position:relative; margin-left:16px; gap:12px; }
.account-header-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:44px;
    padding:10px 18px;
    color:rgb(var(--c-text));
    border:1px solid rgb(var(--c-line2)/.22);
    border-radius:5px;
    background:#ffffff03;
    font-size:15px;
    font-weight:500;
    text-decoration:none;
    white-space:nowrap;
}
.account-header-link:hover { color:rgb(var(--c-accent-soft)); border-color:rgb(var(--c-accent)/.6); background:rgb(var(--c-surface2)/.33); }
.account-header-icon { width:20px; height:20px; flex-shrink:0; }
.account-link-compact { display:none; }
.site-header .menu-toggle { width:44px; height:44px; border-color:rgb(var(--c-line2)/.22); border-radius:5px; }
.balance-badge { font-size:15px; }
.header-account { position:static; }
.header-account > summary { cursor:pointer; list-style:none; }
.header-account > summary::-webkit-details-marker { display:none; }
.header-account[open] > summary { border-color:rgb(var(--c-accent)/.5); background:rgb(var(--c-accent)/.03); }
.header-summary-balance { margin-left:2px; padding-left:12px; border-left:1px solid rgb(var(--c-line2)/.15); }
.account-menu-chevron { width:14px; height:14px; flex-shrink:0; color:rgb(var(--c-muted)); transition:transform .2s; }
.header-account[open] .account-menu-chevron { transform:rotate(180deg); }
.account-menu {
    position:absolute;
    top:calc(100% + 14px);
    right:0;
    z-index:105;
    width:min(320px, calc(100vw - 48px));
    padding:20px;
    border:1px solid rgb(var(--c-line2)/.18);
    border-radius:8px;
    background:linear-gradient(130deg, rgb(var(--c-panel)), rgb(var(--c-panel)));
    box-shadow:0 18px 48px #0008, inset 0 1px 0 #ffffff08;
    backdrop-filter:blur(20px);
    display:grid;
    gap:10px;
}
.header-account:not([open]) .account-menu { display:none; }
.account-menu-dashboard {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:42px;
    padding-bottom:12px;
    border-bottom:1px solid rgb(var(--c-line2)/.11);
    color:var(--text);
    font-size:16px;
    font-weight:600;
    text-decoration:none;
}
.account-menu-dashboard svg { width:20px; height:20px; color:var(--accent); }
.account-menu-balance { display:grid; gap:3px; padding:8px 0; }
.account-menu-balance small { font-size:14px; color:rgb(var(--c-muted)); }
.account-menu-balance .balance-badge { font-size:24px; line-height:1.4; }
.account-menu .account-streamer-control { justify-content:space-between; gap:20px; min-height:44px; width:100%; padding:8px 10px; border:1px solid rgb(var(--c-line2)/.11); border-radius:4px; font-size:15px; }
.account-streamer-control:hover { background:#ffffff05; }
.account-streamer-control.active { background:rgb(var(--c-accent)/.04); border-color:rgb(var(--c-accent)/.31); }
.account-streamer-icons { display:flex; align-items:center; }
.account-menu .account-add-balance { min-height:44px; width:100%; margin-top:2px; font-size:15px; }
.streamer-eye { min-width:40px; min-height:40px; justify-content:center; align-items:center; }
.btn {
    min-height:48px;
    padding:13px 23px;
    border-color:rgb(var(--c-accent)/.46);
    background:linear-gradient(105deg, rgb(var(--c-accent-soft)), rgb(var(--c-accent-soft)));
    box-shadow:inset 0 1px 0 rgb(var(--c-soft)/.4), 0 3px 12px #0003;
    color:rgb(var(--c-bg));
    font-size:16px;
    font-weight:600;
}
.btn:hover { background:linear-gradient(105deg, rgb(var(--c-accent-soft)), rgb(var(--c-accent-soft))); color:rgb(var(--c-bg)); }
.btn-outline { background:rgb(var(--c-bg)/.27); border-color:rgb(var(--c-muted)); box-shadow:inset 0 0 0 1px rgb(var(--c-soft)/.07); color:var(--text); }
.btn-outline:hover { color:rgb(var(--c-text)); background:rgb(var(--c-surface2)/.44); border-color:rgb(var(--c-accent)); }
.btn-sm { min-height:40px; padding:9px 16px; font-size:15px; }
.eyebrow, .breadcrumb { font-size:13px; }
.page-hero { background:linear-gradient(110deg, rgb(var(--c-surface2)), rgb(var(--c-bg))); border-color:rgb(var(--c-line)/.46); }
.page-hero h1 { font-size:clamp(3.2rem, 6vw, 5.8rem); line-height:1; overflow-wrap:anywhere; }
.page-hero p { font-size:18px; }
.prose p, .content-lines, .public-list { font-size:17px; line-height:1.85; }
.page-sidebar a { font-size:16px; }
.info-field dt { font-size:13px; }
.info-field dd, .notice, .copy-field code { font-size:16px; }
.card { box-shadow:inset 0 1px 0 rgb(var(--c-soft)/.02), 0 10px 30px #0002; }
/* Store styles load after the shell; scope these for consistent readable sizes. */
body .commerce-page .commerce-intro { font-size:17px; }
body .commerce-page .commerce-kicker,
body .commerce-page .shop-wallet-label,
body .commerce-page .catalog-meta,
body .commerce-page .product-category { font-size:14px; }
body .commerce-page .shop-login strong,
body .commerce-page .shop-login p,
body .commerce-page .product-description,
body .commerce-page .catalog-empty p,
body .commerce-page .shop-note { font-size:16px; }
body .commerce-page .cat-btn,
body .commerce-page .product-notice,
body .commerce-page .account-steam-id code,
body .commerce-page .account-links,
body .commerce-page .account-tabs a { font-size:15px; }
body .commerce-page .search-wrap input { font-size:16px; }
body .commerce-page .product-info h2 { font-size:26px; font-weight:700; }
body .commerce-page .product-price { font-size:20px; }
body .commerce-page .product-footer .btn { min-height:42px; padding:9px 14px; font-size:15px; }
body .commerce-page .account-section-heading p,
body .commerce-page .account-table,
body .commerce-page .account-table caption { font-size:16px; }
body .commerce-page .account-table th,
body .commerce-page .account-table .numeric,
body .commerce-page .status-label { font-size:14px; }
body .payment-page .payment-card p { font-size:16px; }
.site-footer { padding:0; background:rgb(var(--c-bg)); border-top:1px solid rgb(var(--c-line2)/.1); }
.footer-atmosphere {
    background:linear-gradient(90deg, rgb(var(--c-bg)/.96), rgb(var(--c-bg)/.91) 55%, rgb(var(--c-bg)/.96)),
        url('../../images/nasdara/landscape.webp') center 55% / cover;
}
.site-footer .footer-scene {
    width:min(1440px, calc(100% - 96px));
    min-height:132px;
    padding:24px 0;
    display:grid;
    grid-template-columns:260px 1fr 160px;
    align-items:center;
    gap:40px;
}
.footer-wordmark {
    display:flex;
    flex-direction:column;
    text-decoration:none;
    color:rgb(var(--c-text));
    font-family:var(--f-display);
    line-height:1.06;
    letter-spacing:.01em;text-transform:uppercase}
.footer-wordmark strong { font-size:22px; font-weight:700; }
.footer-wordmark strong span { color:var(--accent); }
.footer-wordmark > span { font-family:var(--f-body); font-size:13px; letter-spacing:.06em; color:rgb(var(--c-muted)); }
.footer-mantra {
    color:rgb(var(--c-muted));
    font-family:var(--f-body);
    font-weight:400;
    font-size:17px;
    letter-spacing:0;
    line-height:1.5;
    text-align:center;
}
.footer-connect {
    display:inline-flex;
    align-items:center;
    gap:15px;
    padding:10px 0;
    justify-self:end;
    color:rgb(var(--c-accent-soft));
    font-family:var(--f-body);
    font-weight:500;
    font-size:15px;
    line-height:1.5;
    text-decoration:none;
}
.footer-connect svg { width:20px; height:20px; transition:transform .2s; }
.footer-connect:hover svg { transform:translateX(4px); }
.admin-nav-sticky { top:84px !important; }

@media (max-width: 1300px) {
    .site-header .header-inner { gap:28px; }
    .site-header .brand { gap:12px; }
    .site-header .brand-mark { width:48px; }
    .site-header .site-nav { gap:23px; }
    .site-header .header-actions { margin-left:0; }
    .site-footer .footer-scene { grid-template-columns:230px 1fr 135px; gap:28px; }
}
@media (max-width: 1100px) {
    .site-header .header-inner { flex-wrap:wrap; min-height:79px; gap:0 24px; }
    .site-header .header-actions { margin-left:auto; }
    .site-header .menu-toggle { display:inline-flex; }
    .site-header .site-nav {
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:3px;
        order:3;
        margin:0;
        width:100%;
        padding:12px 0 20px;
        border-top:1px solid rgb(var(--c-line2)/.1);
    }
    .site-header .site-nav.is-open { display:flex; }
    .site-header .site-nav a { justify-content:flex-start; border:0; font-size:17px; min-height:46px; padding:11px 6px; }
    .site-header .site-nav a[aria-current=page]::after { left:6px; width:22px; transform:none; bottom:4px; }
    .site-header .site-nav .nav-utility { display:inline-flex; color:rgb(var(--c-muted)); }
    .header-account .header-summary-balance { display:none; }
}
@media (max-width: 850px) {
    .site-header .brand-mark { width:44px; height:38px; }
    .site-header .brand-name strong { font-size:30px; }
    .site-header .brand-name .brand-tagline { font-size:11px; letter-spacing:.075em; }
    .site-footer .footer-scene { grid-template-columns:1fr 150px; padding:32px 0; gap:28px 24px; }
    .footer-mantra { grid-column:1/-1; grid-row:2; font-size:16px; text-align:left; }
    .admin-nav-sticky { top:80px !important; }
}
@media (max-width: 700px) {
    .site-header .header-inner, .site-footer .footer-scene { width:calc(100% - 48px); }
    .header-account .account-link-desktop { display:none; }
    .header-account .account-link-compact { display:inline; }
}
@media (max-width: 580px) {
    body { font-size:16px; }
    .site-header .header-inner { min-height:71px; gap:0 12px; }
    .site-header .brand { gap:9px; }
    .site-header .brand-mark { width:34px; height:34px; }
    .site-header .brand-name strong { font-size:27px; letter-spacing:.02em; }
    .site-header .brand-name .brand-country { margin-left:1px; }
    .site-header .brand-name .brand-tagline { display:none; }
    .site-header .header-actions { gap:8px; }
    .site-header .menu-toggle { width:40px; height:40px; }
    .account-header-link { min-height:40px; padding:8px 10px; font-size:14px; }
    .account-header-icon { display:none; }
    .account-link-desktop { display:none; }
    .account-link-compact { display:inline; }
    .header-account > .account-header-link { padding:8px; gap:6px; }
    .account-menu-chevron { width:12px; height:12px; }
    .site-footer .footer-scene { grid-template-columns:1fr 115px; padding:28px 0; gap:22px 16px; }
    .footer-wordmark strong { font-size:20px; }
    .footer-wordmark > span { font-size:12px; letter-spacing:0; }
    .footer-connect { gap:8px; font-size:14px; }
    .footer-mantra { font-size:16px; }
    .page-hero h1 { font-size:clamp(2.8rem, 11vw, 3.4rem); }
    .page-hero p, .prose p, .content-lines, .public-list { font-size:16px; }
    .interior-main h1 { font-size:clamp(2.2rem, 10.5vw, 3rem); overflow-wrap:anywhere; }
    .admin-nav-sticky { top:72px !important; }
}
@media (max-width: 400px) {
    .site-header .header-inner { gap:0 6px; }
    .site-header .brand-mark { width:28px; }
    .site-header .brand-name strong { font-size:26px; }
    .site-header .header-actions { gap:6px; }
    .header-account .account-menu-chevron { display:none; }
}
@media (max-width: 360px) {
    .site-header .header-inner { gap:0 6px; }
    .site-header .brand-mark { width:24px; }
    .site-header .brand { gap:6px; }
    .site-header .brand-name strong { font-size:21px; }
    .account-header-link { padding-right:8px; padding-left:8px; }
    .site-header .header-actions { gap:6px; }
    .header-account .account-menu-chevron { display:none; }
}
