/* Stage 2, task 3: Rubik for public FoxLand pages. */
@font-face {
    font-family: 'FoxLand UI';
    src: url('../fonts/fox-ui-regular.woff?v=stage2t3') format('woff');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'FoxLand UI';
    src: url('../fonts/fox-ui-bold.woff?v=stage2t3') format('woff');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --fox-font-ui: 'FoxLand UI', 'Segoe UI', Arial, sans-serif;
    --fox-type-body: 14px;
    --fox-type-line: 1.45;
    --fox-type-title: 1.22;
    --fox-type-h1: clamp(22px, 2.2vw, 28px);
    --fox-type-h2: clamp(18px, 1.7vw, 21px);
    --fox-type-h3: 16px;
    --fox-type-small: 11px;
}

html, body {
    font-family: var(--fox-font-ui);
}

body { font-size: var(--fox-type-body); line-height: var(--fox-type-line); }

/* The legacy GameCMS stylesheet assigns Roboto directly to these regions. */
.wapper .header .collapsible-menu > li > a,
#chat #drop_zone,
.mce-content-html,
.mce-content-body {
    font-family: var(--fox-font-ui);
}

/* Explicit font families on icon glyphs and monospace/code are untouched. */
.fox-navbar,
.fox-main,
.fox-footer,
.modal-content,
.popover,
.tooltip {
    font-family: var(--fox-font-ui);
}

.fox-main :where(h1), .modal-content :where(h1) {
    font-size: var(--fox-type-h1);
    font-weight: 700;
    line-height: var(--fox-type-title);
}

.fox-main :where(h2), .modal-content :where(h2) {
    font-size: var(--fox-type-h2);
    font-weight: 700;
    line-height: var(--fox-type-title);
}

.fox-main :where(h3), .modal-content :where(h3) {
    font-size: var(--fox-type-h3);
    font-weight: 700;
    line-height: 1.3;
}

:is(.fox-main, .fox-navbar, .fox-footer, .modal-content) :is(button, input, select, textarea):not(.fa):not(.fas):not(.far):not(.fab):not(.m-icon) {
    font-family: inherit;
}

.fox-logo-online b,
[data-fox-online-count],
.fox-ranking-row .fox-rank-value,
.fox-footer-meta,
.fox-server-strip :is(b, strong),
.fox-punishments time,
.fox-punishment-row__date {
    font-variant-numeric: tabular-nums;
}

/* This Rubik build has proportional digits; reserve space for live counters. */
.fox-logo-online b { min-width: 2ch; text-align: right; }
.fox-server-online strong { min-width: 6ch; text-align: center; }
.fox-ranking-row .fox-rank-value { min-width: 4ch; text-align: right; }

/* Preserve the compact cards while making their secondary text legible. */
.fox-widget-head p { font-size: var(--fox-type-small); }
.fox-rank-player small { font-size: var(--fox-type-small); }

@media (min-width: 1200px) {
    /* Keep the longest menu label inside the existing 124 px button. */
    .fox-navbar .fox-nav-link { gap: 8px; padding-inline: 8px; }
}
