/* ==========================================================================
   X-GORB Support Center — design system aligned with word.php (article page)
   DM Sans · #2563eb blue · light #ffffff / dark #000000 · 8/12/16/20 radii
   ========================================================================== */

:root {
    color-scheme: light;

    --font-sans: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui,
        -apple-system, "Segoe UI", sans-serif;
    --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

    --bg: #ffffff;
    --bg-soft: #f9fafb;
    --surface: #ffffff;
    --surface-2: #f9fafb;
    --surface-3: #f3f4f6;
    --surface-hover: #f3f4f6;
    --header-bg: #ffffff;

    --text: #111827;
    --text-2: #6b7280;
    --muted: #6b7280;
    --muted-2: #9ca3af;

    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --brand-soft: #eff6ff;
    --brand-contrast: #ffffff;
    --focus-ring: rgba(37, 99, 235, 0.22);

    --success: #16a34a;
    --success-soft: #f0fdf4;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --purple: #7c3aed;
    --purple-soft: #f5f3ff;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;
    --header-height: 56px;
    --container: 1200px;
}

html.dark {
    color-scheme: dark;

    --bg: #000000;
    --bg-soft: #0a0a0a;
    --surface: #0a0a0a;
    --surface-2: #0a0a0a;
    --surface-3: #141414;
    --surface-hover: #141414;
    --header-bg: #000000;

    --text: #ffffff;
    --text-2: #a0a0a0;
    --muted: #a0a0a0;
    --muted-2: #5a5a5a;

    --border: #222222;
    --border-strong: #333333;
    --brand: #3b82f6;
    --brand-hover: #60a5fa;
    --brand-soft: #0a1a3a;
    --brand-contrast: #ffffff;
    --focus-ring: rgba(59, 130, 246, 0.28);

    --success: #4ade80;
    --success-soft: rgba(22, 163, 74, 0.14);
    --warning: #fbbf24;
    --warning-soft: rgba(217, 119, 6, 0.16);
    --danger: #f87171;
    --danger-soft: rgba(220, 38, 38, 0.16);
    --purple: #a78bfa;
    --purple-soft: rgba(124, 58, 237, 0.16);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    padding-top: var(--header-height);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.25s ease, color 0.25s ease;
}

body.drawer-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    letter-spacing: -0.025em;
    line-height: 1.24;
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--brand);
    color: var(--brand-contrast);
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 3000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--brand-contrast);
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.muted {
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Buttons, badges, generic elements
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.16s ease, border-color 0.16s ease,
        color 0.16s ease, box-shadow 0.16s ease;
}

.btn i {
    font-size: 13px;
}

.btn:active {
    opacity: 0.9;
}

.btn-primary {
    background: var(--brand);
    color: var(--brand-contrast);
    border-color: transparent;
    box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
    background: var(--brand-hover);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: var(--surface-3);
    border-color: var(--muted-2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--surface-3);
    color: var(--text);
}

.btn-sm {
    min-height: 34px;
    padding: 6px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-2);
    font-size: 14px;
    transition: background-color 0.15s ease, color 0.15s ease,
        border-color 0.15s ease;
}

.icon-btn:hover {
    border-color: var(--border-strong);
    background: var(--bg-soft);
    color: var(--text);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    color: var(--text-2);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
}

.badge-brand {
    background: var(--brand-soft);
    color: var(--brand);
}

.badge-pinned {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-upcoming {
    background: var(--brand-soft);
    color: var(--brand);
}

.status-ongoing {
    background: var(--success-soft);
    color: var(--success);
}

.status-ended {
    background: var(--surface-3);
    color: var(--muted);
}

/* Color tones */
.tone-blue {
    --tone: var(--brand);
    --tone-soft: var(--brand-soft);
    --tone-border: rgba(37, 99, 235, 0.18);
}

.tone-teal {
    --tone: #0d9488;
    --tone-soft: #f0fdfa;
    --tone-border: rgba(13, 148, 136, 0.18);
}

.tone-purple {
    --tone: var(--purple);
    --tone-soft: var(--purple-soft);
    --tone-border: rgba(124, 58, 237, 0.18);
}

.tone-amber {
    --tone: #d97706;
    --tone-soft: #fffbeb;
    --tone-border: rgba(217, 119, 6, 0.18);
}

.tone-rose {
    --tone: #e11d48;
    --tone-soft: #fff1f2;
    --tone-border: rgba(225, 29, 72, 0.18);
}

.tone-green {
    --tone: #16a34a;
    --tone-soft: #f0fdf4;
    --tone-border: rgba(22, 163, 74, 0.18);
}

html.dark .tone-blue {
    --tone: #60a5fa;
    --tone-soft: rgba(37, 99, 235, 0.16);
    --tone-border: rgba(96, 165, 250, 0.22);
}

html.dark .tone-teal {
    --tone: #2dd4bf;
    --tone-soft: rgba(13, 148, 136, 0.16);
    --tone-border: rgba(45, 212, 191, 0.22);
}

html.dark .tone-purple {
    --tone: #a78bfa;
    --tone-soft: rgba(124, 58, 237, 0.16);
    --tone-border: rgba(167, 139, 250, 0.22);
}

html.dark .tone-amber {
    --tone: #fbbf24;
    --tone-soft: rgba(217, 119, 6, 0.18);
    --tone-border: rgba(251, 191, 36, 0.22);
}

html.dark .tone-rose {
    --tone: #fb7185;
    --tone-soft: rgba(225, 29, 72, 0.16);
    --tone-border: rgba(251, 113, 133, 0.22);
}

html.dark .tone-green {
    --tone: #4ade80;
    --tone-soft: rgba(22, 163, 74, 0.17);
    --tone-border: rgba(74, 222, 128, 0.22);
}

/* App logo */
.app-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 9px;
    background: var(--tone-soft, var(--surface-3));
    color: var(--tone, var(--brand));
}

.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    background: rgba(255, 255, 255, 0.6);
}

html.dark .app-logo img {
    background: rgba(255, 255, 255, 0.92);
}

.app-logo-letter {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 13px;
    font-weight: 700;
}

.app-logo-letter.is-visible {
    display: flex;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
}

.brand img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.nav-sep {
    width: 1px;
    height: 18px;
    margin: 0 10px;
    background: var(--border);
    flex: 0 0 auto;
}

.brand-copy {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.brand-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
    background: var(--surface-3);
    color: var(--text);
}

.nav-link.is-active {
    background: var(--surface-3);
    color: var(--text);
}

.nav-link-external i {
    font-size: 9px;
    opacity: 0.65;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.theme-toggle i {
    font-size: 14px;
}

.nav-login {
    margin-left: 0;
    border-radius: var(--radius-pill);
    padding: 6px 16px;
}

.mobile-menu-btn {
    display: none;
}

.user-menu {
    position: relative;
    margin-left: 0;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px 3px 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-pill:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-xs);
}

.user-pill img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.user-chevron {
    color: var(--muted-2);
    font-size: 8px;
    transition: transform 0.18s ease;
}

.user-menu.is-open .user-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 236px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.user-menu.is-open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.user-dropdown-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 11px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.user-dropdown-head strong {
    font-size: 13.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-head span {
    color: var(--muted);
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 7px;
    color: var(--text-2);
    font-size: 13px;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.user-dropdown a i {
    width: 15px;
    color: var(--muted);
    font-size: 12px;
}

.user-dropdown a:hover {
    background: var(--surface-3);
    color: var(--text);
}

.user-dropdown a.danger,
.user-dropdown a.danger i {
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    margin: 6px 4px;
    background: var(--border);
}

/* Mobile drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(9, 13, 18, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.drawer-backdrop.is-visible {
    opacity: 1;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    width: min(320px, 88vw);
    height: 100%;
    border-left: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.is-open {
    transform: none;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    border-bottom: 1px solid var(--border);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    padding: 14px 12px;
    overflow-y: auto;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 500;
}

.drawer-nav a i {
    width: 18px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.drawer-nav a:hover,
.drawer-nav a.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.drawer-nav a:hover i,
.drawer-nav a.is-active i {
    color: var(--brand);
}

.drawer-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 24px;
    border-top: 1px solid var(--border);
}

.drawer-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.drawer-account img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.drawer-account div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.drawer-account strong {
    font-size: 13.5px;
}

.drawer-account span {
    color: var(--muted);
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.hero-inner {
    position: relative;
    padding-top: 60px;
    padding-bottom: 48px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
}

.hero-eyebrow span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 12px;
}

.hero h1 {
    max-width: 880px;
    margin-top: 18px;
    color: var(--text);
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.hero-title-line {
    display: inline;
}

.hero h1 .hero-accent {
    color: var(--brand);
}

.hero-copy {
    max-width: 640px;
    margin-top: 16px;
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.7;
}

.hero-search-form {
    max-width: 720px;
    margin-top: 28px;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 5px 5px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.hero-search > i {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-size: 14px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.hero-search input::placeholder {
    color: var(--muted-2);
}

.hero-search button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--brand-contrast);
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.hero-search button:hover {
    background: var(--brand-hover);
}

.hero-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    font-size: 12.5px;
}

.hero-chips-label {
    color: var(--muted);
    margin-right: 2px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text-2);
    font-size: 12.5px;
    transition: border-color 0.15s ease, color 0.15s ease,
        background-color 0.15s ease;
}

.hero-chip:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 12.5px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta i {
    font-size: 12px;
    color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    padding: 48px 0;
}

.section-tight {
    padding: 32px 0 48px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: clamp(21px, 2.3vw, 26px);
    font-weight: 700;
}

.section-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13.5px;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 2px;
}

.link-more i {
    font-size: 10px;
    transition: transform 0.16s ease;
}

.link-more:hover i {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Hub cards
   -------------------------------------------------------------------------- */

.hub-section {
    padding-top: 36px;
    padding-bottom: 8px;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 370px;
    padding: 22px 18px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color 0.15s ease;
}

.hub-card:hover {
    border-color: var(--border-strong);
}

.hub-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 10px;
    background: var(--tone-soft, var(--brand-soft));
    color: var(--tone, var(--brand));
    font-size: 16px;
}

.hub-card-head h2 {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
}

.hub-card-head p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.hub-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    margin-top: 16px;
}

.hub-app,
.hub-link,
.hub-event,
.hub-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 0 -8px;
    padding: 7px 8px;
    border-radius: 9px;
    transition: background-color 0.14s ease;
}

.hub-app:hover,
.hub-link:hover,
.hub-event:hover,
.hub-notice:hover {
    background: var(--surface-3);
}

.hub-app .app-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.hub-item-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 1px;
}

.hub-item-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.hub-item-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.hub-arrow {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-size: 9px;
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.hub-app:hover .hub-arrow,
.hub-link:hover .hub-arrow,
.hub-event:hover .hub-arrow,
.hub-notice:hover .hub-arrow {
    opacity: 1;
    transform: none;
}

.hub-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--surface-3);
    color: var(--text-2);
    font-size: 12px;
}

.hub-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 38px;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 8px;
    background: var(--tone-soft, var(--brand-soft));
    color: var(--tone, var(--brand));
    line-height: 1;
}

.hub-event-date b {
    font-size: 8.5px;
    font-weight: 600;
}

.hub-event-date em {
    margin-top: 2px;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.notice-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-left: 3px;
    border-radius: 50%;
    background: var(--tone, var(--brand));
    box-shadow: 0 0 0 3px var(--tone-soft, var(--brand-soft));
}

.hub-notice.is-read .notice-dot {
    background: var(--border-strong);
    box-shadow: none;
}

.hub-item-text .inline-pin {
    margin-left: 4px;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 9px;
    font-weight: 600;
    vertical-align: 1px;
}

.hub-more {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 12px 4px 3px;
    border-top: 1px solid var(--border);
    color: var(--brand);
    font-size: 12.5px;
    font-weight: 600;
}

.hub-more .hub-more-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.hub-more i {
    font-size: 9px;
    transition: transform 0.15s ease;
}

.hub-more:hover i {
    transform: translateX(3px);
}

.hub-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 20px 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.hub-empty i {
    font-size: 18px;
    color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Topic cards
   -------------------------------------------------------------------------- */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.topic-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 82px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color 0.15s ease;
}

.topic-card:hover {
    border-color: var(--border-strong);
}

.topic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 11px;
    background: var(--tone-soft, var(--brand-soft));
    color: var(--tone, var(--brand));
    font-size: 15px;
}

.topic-body {
    min-width: 0;
    flex: 1;
}

.topic-body strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-body span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.topic-arrow {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-size: 9px;
    transition: transform 0.16s ease;
}

.topic-card:hover .topic-arrow {
    transform: translateX(3px);
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   Content layout + documents
   -------------------------------------------------------------------------- */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

.side-col {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.doc-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color 0.15s ease;
}

.doc-card:hover {
    border-color: var(--border-strong);
}

.doc-card-top {
    display: flex;
    align-items: center;
    gap: 11px;
}

.doc-media {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 10px;
    background: var(--tone-soft, var(--brand-soft));
    color: var(--tone, var(--brand));
    font-size: 14px;
}

.doc-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-top-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.doc-category {
    overflow: hidden;
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doc-date {
    color: var(--muted);
    font-size: 10.5px;
}

.doc-card h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.015em;
}

.doc-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.14s ease;
}

.doc-card h3 a:hover {
    color: var(--brand);
}

.doc-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.doc-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 10.5px;
}

.doc-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.doc-card-footer i {
    font-size: 10px;
}

.doc-card-footer .video-pill {
    margin-left: auto;
    color: var(--danger);
    font-weight: 600;
}

/* Side cards */
.side-card {
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.side-card-head h2 {
    font-size: 14px;
    font-weight: 700;
}

.side-card-head a {
    color: var(--brand);
    font-size: 11px;
    font-weight: 600;
}

.rank-list {
    display: flex;
    flex-direction: column;
}

.rank-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.rank-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rank-number {
    flex: 0 0 auto;
    width: 20px;
    padding-top: 1px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
}

.rank-item:nth-child(-n + 3) .rank-number {
    color: var(--brand);
}

.rank-body {
    min-width: 0;
}

.rank-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-title:hover {
    color: var(--brand);
}

.rank-meta {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.support-cta {
    position: relative;
    border-color: var(--border);
    background: var(--surface);
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 17px;
}

.support-cta h2 {
    font-size: 15px;
    font-weight: 700;
}

.support-cta p {
    margin: 6px 0 15px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Browse / search page
   -------------------------------------------------------------------------- */

.page-hero {
    padding: 36px 0 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs a {
    transition: color 0.14s ease;
}

.breadcrumbs a:hover {
    color: var(--brand);
}

.breadcrumbs i {
    font-size: 7px;
    color: var(--muted-2);
}

.breadcrumbs span {
    color: var(--text-2);
}

.page-hero h1 {
    max-width: 880px;
    color: var(--text);
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-hero .page-lead {
    max-width: 760px;
    margin-top: 10px;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.7;
}

.page-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.page-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
    padding-bottom: 3px;
}

.page-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 660px;
    margin-top: 24px;
    padding: 5px 5px 5px 17px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.page-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.page-search > i {
    color: var(--muted);
    font-size: 14px;
}

.page-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14.5px;
}

.page-search input::placeholder {
    color: var(--muted-2);
}

.page-search button {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 19px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: var(--brand-contrast);
    font-size: 13px;
    font-weight: 600;
}

.page-search button:hover {
    background: var(--brand-hover);
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.results-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.results-header span {
    color: var(--muted);
    font-size: 12.5px;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-row {
    display: flex;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.result-row:hover {
    border-color: var(--border-strong);
}

.result-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 80px;
    height: 70px;
    overflow: hidden;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 10px;
    background: var(--tone-soft, var(--brand-soft));
    color: var(--tone, var(--brand));
    font-size: 20px;
}

.result-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-body {
    flex: 1;
    min-width: 0;
}

.result-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10.5px;
}

.result-category {
    color: var(--brand);
    font-weight: 600;
}

.result-title {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.result-title:hover {
    color: var(--brand);
}

.result-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    color: var(--muted);
    font-size: 10px;
}

a.tag-chip:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.filter-panel {
    padding: 17px;
}

.filter-group + .filter-group {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.filter-group h2 {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.filter-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 7px;
    color: var(--text-2);
    font-size: 12.5px;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.filter-link span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.filter-link:hover {
    background: var(--surface-3);
    color: var(--text);
}

.filter-link.is-active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-cloud .tag-chip {
    padding: 3px 8px;
    font-size: 10.5px;
}

.tag-cloud .tag-chip.is-active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.14s ease, border-color 0.14s ease;
}

a.page-btn:hover {
    border-color: var(--border-strong);
    background: var(--surface-3);
    color: var(--text);
}

.page-btn.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.page-btn i {
    font-size: 8px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    border-radius: 7px;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
}

a.page-number:hover {
    background: var(--surface-3);
    color: var(--text);
}

.page-number.is-current {
    background: var(--brand);
    color: var(--brand-contrast);
    font-weight: 600;
}

.page-ellipsis {
    padding: 0 3px;
    color: var(--muted-2);
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   App directory / app help
   -------------------------------------------------------------------------- */

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 14px;
}

.app-tile {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 172px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color 0.15s ease;
}

.app-tile:hover {
    border-color: var(--border-strong);
}

.app-tile-head {
    display: flex;
    align-items: center;
    gap: 13px;
}

.app-tile-head .app-logo {
    width: 48px;
    height: 48px;
    border-radius: 13px;
}

.app-tile-title {
    min-width: 0;
}

.app-tile-title h2 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.app-tile-title h2 a:hover {
    color: var(--brand);
}

.app-tile-title span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.app-tile p {
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.65;
}

.app-tile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 2px;
}

.app-tile-actions .app-main-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
}

.app-tile-actions .app-main-link i {
    font-size: 9px;
    transition: transform 0.15s ease;
}

.app-tile-actions .app-main-link:hover i {
    transform: translateX(3px);
}

.app-open-link {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
}

.app-open-link:hover {
    color: var(--text);
}

.app-hero {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.app-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.app-hero .app-logo {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.app-hero .app-logo-letter {
    font-size: 28px;
}

.app-hero .app-logo img {
    padding: 9px;
}

.app-hero-copy {
    min-width: 0;
    flex: 1;
}

.app-hero-copy h1 {
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.app-hero-copy h1 span {
    color: var(--muted);
    font-size: 0.52em;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-left: 7px;
}

.app-hero-copy p {
    max-width: 720px;
    margin-top: 8px;
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.7;
}

.app-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}

.app-help-search {
    max-width: 680px;
    margin-top: 20px;
}

.app-help-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
}

.app-quick-card {
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.app-quick-card h2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.app-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    font-size: 12.5px;
}

.app-quick-link:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.app-quick-link i {
    width: 16px;
    color: var(--brand);
    font-size: 12px;
    text-align: center;
}

.app-quick-link span {
    flex: 1;
}

.app-quick-link .fa-chevron-right {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-size: 8px;
}

.app-quick-link:hover {
    color: var(--brand);
}

.app-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.app-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-2);
    font-size: 11.5px;
}

.app-category-chip strong {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
}

.app-category-chip:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.app-category-chip.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

.app-category-chip.is-active strong {
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   Policies
   -------------------------------------------------------------------------- */

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.policy-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color 0.15s ease;
}

.policy-card:hover {
    border-color: var(--border-strong);
}

.policy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 12px;
    background: var(--tone-soft, var(--purple-soft));
    color: var(--tone, var(--purple));
    font-size: 16px;
}

.policy-body {
    min-width: 0;
    flex: 1;
}

.policy-body h2 {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
}

.policy-body p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.policy-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 10.5px;
}

.policy-arrow {
    flex: 0 0 auto;
    margin-top: 13px;
    color: var(--muted-2);
    font-size: 9px;
    transition: transform 0.16s ease, color 0.16s ease;
}

.policy-card:hover .policy-arrow {
    transform: translateX(3px);
    color: var(--brand);
}

.policy-intro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.policy-intro-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.policy-intro-item i {
    margin-top: 2px;
    color: var(--brand);
    font-size: 15px;
}

.policy-intro-item h2 {
    font-size: 13px;
    font-weight: 600;
}

.policy-intro-item p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */

.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.filter-bar-label {
    margin-right: 4px;
    color: var(--muted);
    font-size: 12px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.14s ease, border-color 0.14s ease,
        color 0.14s ease;
}

.filter-chip:hover {
    border-color: var(--border-strong);
    background: var(--surface-3);
    color: var(--text);
}

.filter-chip.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

.filter-chip small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color 0.15s ease;
}

.event-card:hover {
    border-color: var(--border-strong);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 72px;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 14px;
    background: var(--tone-soft, var(--brand-soft));
    color: var(--tone, var(--brand));
    line-height: 1;
}

.event-date b {
    font-size: 10px;
    font-weight: 600;
}

.event-date em {
    margin: 4px 0 5px;
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.event-date span {
    font-size: 9px;
    opacity: 0.75;
}

.event-card.is-past {
    opacity: 0.78;
}

.event-card.is-past .event-date {
    --tone: var(--muted);
    --tone-soft: var(--surface-3);
    --tone-border: var(--border);
}

.event-body {
    min-width: 0;
}

.event-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.event-body h2 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.event-body h2 a:hover {
    color: var(--brand);
}

.event-summary {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.event-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.event-meta i {
    font-size: 10px;
}

.event-action {
    align-self: center;
}

.event-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 32px 0 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.event-section-title:first-child {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Notifications
   -------------------------------------------------------------------------- */

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color 0.15s ease;
}

.notice-card:hover {
    border-color: var(--border-strong);
}

.notice-card.is-read {
    background: var(--surface-2);
}

.notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 11px;
    background: var(--tone-soft, var(--brand-soft));
    color: var(--tone, var(--brand));
    font-size: 14px;
}

.notice-body {
    min-width: 0;
    flex: 1;
}

.notice-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.notice-title-row h2 {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
}

.notice-title-row h2 a:hover {
    color: var(--brand);
}

.notice-summary {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notice-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10.5px;
}

.notice-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.notice-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    align-self: center;
}

.unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
    transition: opacity 0.16s ease, background-color 0.16s ease;
}

.notice-card.is-read .unread-dot {
    opacity: 0;
}

.notice-chevron {
    color: var(--muted-2);
    font-size: 9px;
}

.notice-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.notice-toolbar .btn {
    font-size: 12px;
}

.notice-toolbar-hint {
    color: var(--muted);
    font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Detail pages
   -------------------------------------------------------------------------- */

.detail-hero {
    padding: 30px 0 26px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
    padding: 28px 0 64px;
}

.detail-card {
    padding: 34px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.detail-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 15px;
}

.detail-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--tone-border, var(--border));
    border-radius: 10px;
    background: var(--tone-soft, var(--brand-soft));
    color: var(--tone, var(--brand));
    font-size: 14px;
}

.detail-card h1 {
    max-width: 820px;
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.detail-lead {
    max-width: 780px;
    margin-top: 13px;
    color: var(--text-2);
    font-size: 15.5px;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 19px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11.5px;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-meta i {
    font-size: 11px;
}

.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.detail-side {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-info {
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.detail-info h2 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
}

.detail-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.detail-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.55;
}

.detail-info-list i {
    width: 14px;
    margin-top: 3px;
    color: var(--brand);
    font-size: 11px;
    text-align: center;
}

.side-link-list {
    display: flex;
    flex-direction: column;
}

.side-link {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.5;
}

.side-link:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.side-link i {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 9px;
}

.side-link.is-active {
    color: var(--brand);
    font-weight: 600;
}

.side-link:hover {
    color: var(--brand);
}

.side-link-meta {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}

.detail-cta {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.detail-cta h2 {
    font-size: 14px;
    font-weight: 700;
}

.detail-cta p {
    margin: 5px 0 13px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.event-register {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.event-register .event-date-large {
    display: flex;
    align-items: center;
    gap: 13px;
}

.event-register .event-date-large .event-date {
    width: 58px;
    height: 66px;
    flex: 0 0 auto;
}

.event-register .event-date-large strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.event-register .event-date-large span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.event-register .btn {
    width: 100%;
}

.detail-subscribe {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.detail-subscribe i {
    color: var(--brand);
}

/* Prose */
.prose {
    margin-top: 28px;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: break-word;
}

.prose > :first-child {
    margin-top: 0;
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin: 1.8em 0 0.65em;
    color: var(--text);
    line-height: 1.3;
}

.prose h1 {
    font-size: 26px;
}

.prose h2 {
    font-size: 21px;
}

.prose h3 {
    font-size: 17px;
}

.prose h4 {
    font-size: 15px;
}

.prose p {
    margin: 0 0 1.05em;
}

.prose ul,
.prose ol {
    margin: 0 0 1.1em;
    padding-left: 1.45em;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    margin: 0.32em 0;
    padding-left: 0.2em;
}

.prose li::marker {
    color: var(--brand);
}

.prose a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

.prose blockquote {
    margin: 1.3em 0;
    padding: 12px 18px;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-3);
    color: var(--text-2);
}

.prose blockquote p {
    margin: 0;
}

.prose code {
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--surface-3);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.88em;
}

.prose pre {
    margin: 1.25em 0;
    padding: 16px 18px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-3);
    line-height: 1.65;
}

.prose pre code {
    padding: 0;
    background: transparent;
    font-size: 12.5px;
}

.prose hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.prose table {
    width: 100%;
    margin: 1.3em 0;
    border-collapse: collapse;
    font-size: 13px;
}

.prose th,
.prose td {
    padding: 9px 11px;
    border: 1px solid var(--border);
    text-align: left;
}

.prose th {
    background: var(--surface-3);
    color: var(--text);
    font-weight: 600;
}

.prose img {
    height: auto;
    margin: 1.3em 0;
    border-radius: var(--radius-md);
}

.prose .video-embed,
.prose iframe {
    max-width: 100%;
}

/* Empty and 404 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 44px 24px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    text-align: center;
}

.empty-state .empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 20px;
}

.empty-state h2 {
    font-size: 16px;
    font-weight: 600;
}

.empty-state p {
    max-width: 430px;
    margin: 6px auto 16px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.not-found {
    padding: 84px 0 100px;
    text-align: center;
}

.not-found-code {
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.not-found h1 {
    margin-top: 9px;
    font-size: clamp(27px, 4vw, 40px);
}

.not-found p {
    max-width: 460px;
    margin: 10px auto 22px;
    color: var(--muted);
    font-size: 14px;
}

.not-found-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(0, 2fr);
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 38px;
}

.footer-brand .brand {
    width: fit-content;
}

.footer-brand > p {
    max-width: 330px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.footer-qr-group {
    display: flex;
    gap: 12px;
    margin-top: 17px;
}

.footer-qr {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 9.5px;
    text-align: center;
}

.footer-qr img {
    width: 54px;
    height: 54px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    object-fit: contain;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.footer-column h2 {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    padding: 4px 0;
    color: var(--text-2);
    font-size: 12px;
    transition: color 0.14s ease;
}

.footer-column a:hover {
    color: var(--brand);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-top: 20px;
    padding-bottom: 30px;
    border-top: 1px solid var(--border);
}

.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 15px;
    color: var(--muted);
    font-size: 10.5px;
}

.footer-legal a {
    transition: color 0.14s ease;
}

.footer-legal a:hover {
    color: var(--text);
}

.footer-compliance {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 13px;
}

.footer-compliance a {
    display: flex;
    align-items: center;
    opacity: 0.82;
    transition: opacity 0.15s ease;
}

.footer-compliance a:hover {
    opacity: 1;
}

.footer-compliance img {
    width: auto;
    max-height: 18px;
}

.footer-compliance .w3c-logo {
    filter: invert(1);
}

html.dark .footer-compliance .w3c-logo {
    filter: none;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2500;
    max-width: min(360px, calc(100vw - 32px));
    padding: 10px 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--text);
    color: var(--surface);
    box-shadow: var(--shadow-md);
    font-size: 12.5px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-inner > * {
    animation: heroRise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-inner > :nth-child(2) {
    animation-delay: 0.04s;
}

.hero-inner > :nth-child(3) {
    animation-delay: 0.08s;
}

.hero-inner > :nth-child(4) {
    animation-delay: 0.12s;
}

.hero-inner > :nth-child(5) {
    animation-delay: 0.16s;
}

.hero-inner > :nth-child(6) {
    animation-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
    .nav-shell {
        gap: 4px;
    }

    .nav-link {
        padding: 5px 8px;
    }

    .hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-card {
        min-height: 330px;
    }

    .topic-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .content-layout,
    .app-help-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 22px;
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 22px;
    }

    .footer-main {
        gap: 36px;
    }
}

@media (max-width: 960px) {
    .primary-nav,
    .nav-sep {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav-shell {
        justify-content: space-between;
    }

    .nav-actions {
        margin-left: auto;
    }

    .hero-inner {
        padding-top: 58px;
        padding-bottom: 46px;
    }

    .content-layout,
    .app-help-layout,
    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .side-col,
    .detail-side {
        position: static;
    }

    .side-col {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .detail-side > * {
        height: fit-content;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .footer-brand > p {
        max-width: 560px;
    }

    .footer-columns {
        max-width: 760px;
    }

    .policy-intro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .policy-intro-item:last-child {
        display: none;
    }
}

@media (max-width: 760px) {
    .container,
    .nav-shell {
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero h1 {
        font-size: clamp(28px, 7vw, 38px);
    }

    .hero-copy {
        font-size: 15px;
    }

    .hero-search {
        padding-left: 16px;
    }

    .hero-search input {
        font-size: 15px;
    }

    .hero-search button {
        padding: 0 18px;
    }

    .hub-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hub-card {
        min-height: 0;
    }

    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 38px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .doc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .side-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .policy-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 15px;
        padding: 17px;
    }

    .event-date {
        width: 56px;
        height: 64px;
    }

    .event-date em {
        font-size: 22px;
    }

    .event-action {
        grid-column: 2;
        justify-self: start;
    }

    .event-action .btn {
        min-height: 34px;
        padding: 6px 13px;
        font-size: 12px;
    }

    .app-hero-inner {
        flex-direction: column;
        gap: 16px;
    }

    .app-hero .app-logo {
        width: 64px;
        height: 64px;
        border-radius: 17px;
    }

    .detail-card {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .detail-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .result-media {
        width: 56px;
        height: 56px;
        font-size: 16px;
    }

    .filter-panel {
        order: 2;
    }

    .pagination {
        gap: 7px;
    }

    .page-btn span {
        display: none;
    }

    .page-btn {
        padding: 7px 10px;
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .policy-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .policy-intro-item:last-child {
        display: flex;
    }
}

@media (max-width: 540px) {
    .brand-sub {
        display: none;
    }

    .nav-search-btn {
        display: none;
    }

    .nav-login {
        margin-left: 2px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .user-name,
    .user-chevron {
        display: none;
    }

    .user-pill {
        width: 34px;
        height: 34px;
        padding: 3px;
        justify-content: center;
    }

    .hero-inner {
        padding-top: 42px;
        padding-bottom: 36px;
    }

    .hero-eyebrow {
        font-size: 11px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero-title-line {
        display: block;
    }

    .hero-search {
        align-items: stretch;
        padding: 6px;
        border-radius: var(--radius-lg);
    }

    .hero-search > i {
        display: none;
    }

    .hero-search input {
        height: 42px;
        padding-left: 10px;
        font-size: 14px;
    }

    .hero-search button {
        height: 42px;
        padding: 0 15px;
        border-radius: 10px;
    }

    .hero-chips {
        gap: 6px;
    }

    .hero-chip {
        font-size: 11.5px;
    }

    .topic-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hub-card {
        padding: 20px 16px 14px;
    }

    .page-search {
        align-items: stretch;
        padding: 6px;
        border-radius: var(--radius-md);
    }

    .page-search > i {
        display: none;
    }

    .page-search input {
        padding-left: 9px;
        font-size: 13.5px;
    }

    .page-search button {
        height: 36px;
        padding: 0 14px;
    }

    .result-row {
        padding: 15px;
        gap: 12px;
    }

    .result-media {
        display: none;
    }

    .result-excerpt {
        -webkit-line-clamp: 2;
    }

    .notice-card {
        padding: 15px;
        gap: 12px;
    }

    .notice-icon {
        width: 36px;
        height: 36px;
    }

    .notice-status .unread-dot {
        display: none;
    }

    .event-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-date {
        flex-direction: row;
        gap: 5px;
        width: fit-content;
        height: auto;
        padding: 5px 10px;
        border-radius: var(--radius-pill);
    }

    .event-date b,
    .event-date em,
    .event-date span {
        display: inline;
        margin: 0;
        font-size: 11px;
    }

    .event-action {
        grid-column: 1;
    }

    .detail-hero {
        padding-top: 24px;
    }

    .detail-card {
        padding: 22px 17px;
    }

    .detail-meta {
        gap: 7px 12px;
    }

    .footer-columns {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .footer-compliance {
        gap: 8px;
    }

    .footer-compliance img {
        max-height: 16px;
    }
}
