/*
Theme Name: 顽浍兔资源主题
Theme URI: https://wanhuitu.com/
Author: 顽浍兔资源站
Author URI: https://wanhuitu.com/
Description: 面向资源下载、公告和支持工单的轻量 WordPress 主题，内置 CSF 主题配置。
Version: 1.0.36
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: wrt
License: GPL-2.0-or-later
*/

/* 顽浍兔资源站 · 统一界面 */
:root {
    --primary: #1468d8;
    --primary-dark: #0d4eaa;
    --ink: #172033;
    --muted: #6e788b;
    --subtle: #95a0b2;
    --line: #e5eaf1;
    --surface: #ffffff;
    --canvas: #f5f7fb;
    --blue-soft: #edf5ff;
    --mint-soft: #eafaf5;
    --orange-soft: #fff5e9;
    --violet-soft: #f4f0ff;
    --radius: 8px;
    --header-height: 72px;
    --max-width: 1180px;
    --shadow-sm: 0 6px 18px rgba(25, 46, 80, .05);
    --shadow-md: 0 14px 34px rgba(25, 46, 80, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--canvas); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.wrt-gradient-background { background-image: linear-gradient(132deg, rgba(228,241,255,.9) 0%, rgba(255,255,255,.76) 45%, rgba(247,243,255,.86) 100%), linear-gradient(28deg, rgba(255,255,255,.82) 0%, rgba(220,237,255,.36) 48%, rgba(255,255,255,.72) 100%); background-size: 135% 135%, 170% 170%; background-position: 0% 0%, 100% 100%; background-attachment: fixed; animation: wrtGradientDrift 18s ease-in-out infinite alternate; }
body.wrt-gradient-sky-mist { background-image: linear-gradient(132deg, rgba(220,242,255,.92) 0%, rgba(255,255,255,.78) 47%, rgba(232,243,255,.9) 100%), linear-gradient(26deg, rgba(255,255,255,.84) 0%, rgba(197,231,255,.38) 52%, rgba(255,255,255,.72) 100%); }
body.wrt-gradient-mint-blue { background-image: linear-gradient(132deg, rgba(225,250,244,.92) 0%, rgba(255,255,255,.8) 45%, rgba(226,241,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(194,241,229,.36) 50%, rgba(218,235,255,.68) 100%); }
body.wrt-gradient-peach-lilac { background-image: linear-gradient(132deg, rgba(255,242,235,.88) 0%, rgba(255,255,255,.8) 45%, rgba(244,235,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.82) 0%, rgba(255,222,211,.34) 48%, rgba(226,216,255,.62) 100%); }
body.wrt-gradient-gray-blue { background-image: linear-gradient(132deg, rgba(235,242,250,.94) 0%, rgba(255,255,255,.82) 46%, rgba(236,239,250,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(214,228,243,.38) 50%, rgba(233,225,247,.56) 100%); }
body.wrt-gradient-seafoam-lilac { background-image: linear-gradient(132deg, rgba(224,249,246,.92) 0%, rgba(255,255,255,.8) 45%, rgba(242,235,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(196,239,233,.36) 50%, rgba(226,213,255,.6) 100%); }
body.wrt-gradient-aurora-mint { background-image: linear-gradient(132deg, rgba(222,247,239,.92) 0%, rgba(255,255,255,.8) 45%, rgba(224,246,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(185,237,216,.36) 50%, rgba(198,230,255,.62) 100%); }
body.wrt-gradient-lavender-haze { background-image: linear-gradient(132deg, rgba(238,235,255,.92) 0%, rgba(255,255,255,.8) 45%, rgba(245,237,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(218,211,255,.38) 50%, rgba(239,218,255,.6) 100%); }
body.wrt-gradient-sunrise-peach { background-image: linear-gradient(132deg, rgba(255,239,226,.9) 0%, rgba(255,255,255,.8) 45%, rgba(255,234,242,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(255,211,187,.34) 50%, rgba(247,211,229,.6) 100%); }
body.wrt-gradient-cream-champagne { background-image: linear-gradient(132deg, rgba(255,249,224,.92) 0%, rgba(255,255,255,.82) 45%, rgba(255,242,224,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(248,232,186,.36) 50%, rgba(255,225,211,.58) 100%); }
body.wrt-gradient-ocean-sky { background-image: linear-gradient(132deg, rgba(218,241,255,.92) 0%, rgba(255,255,255,.82) 45%, rgba(222,235,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(182,222,255,.38) 50%, rgba(211,226,255,.6) 100%); }
body.wrt-gradient-rose-ivory { background-image: linear-gradient(132deg, rgba(255,237,241,.9) 0%, rgba(255,255,255,.82) 45%, rgba(255,247,225,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(255,207,219,.34) 50%, rgba(255,232,190,.58) 100%); }
body.wrt-gradient-forest-fog { background-image: linear-gradient(132deg, rgba(226,245,236,.92) 0%, rgba(255,255,255,.82) 45%, rgba(232,239,246,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(189,226,204,.36) 50%, rgba(210,222,238,.58) 100%); }
body.wrt-gradient-citrus-cream { background-image: linear-gradient(132deg, rgba(255,248,213,.92) 0%, rgba(255,255,255,.82) 45%, rgba(231,248,235,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(250,232,166,.34) 50%, rgba(206,239,218,.58) 100%); }
body.wrt-gradient-blue-steel { background-image: linear-gradient(132deg, rgba(224,237,247,.94) 0%, rgba(255,255,255,.82) 45%, rgba(226,231,244,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(192,215,232,.38) 50%, rgba(211,212,238,.56) 100%); }
body.wrt-gradient-coral-lilac { background-image: linear-gradient(132deg, rgba(255,234,226,.9) 0%, rgba(255,255,255,.82) 45%, rgba(242,233,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(255,201,183,.34) 50%, rgba(222,207,255,.6) 100%); }
body.wrt-gradient-aqua-pearl { background-image: linear-gradient(132deg, rgba(218,249,246,.92) 0%, rgba(255,255,255,.82) 45%, rgba(224,242,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(180,237,230,.36) 50%, rgba(193,225,255,.58) 100%); }
body.wrt-gradient-plum-mist { background-image: linear-gradient(132deg, rgba(237,229,249,.92) 0%, rgba(255,255,255,.82) 45%, rgba(244,236,250,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(211,193,231,.36) 50%, rgba(232,211,245,.58) 100%); }
body.wrt-gradient-sand-sky { background-image: linear-gradient(132deg, rgba(255,244,220,.9) 0%, rgba(255,255,255,.82) 45%, rgba(223,241,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(247,221,177,.34) 50%, rgba(192,226,255,.6) 100%); }
body.wrt-gradient-rosewood-blush { background-image: linear-gradient(132deg, rgba(249,231,229,.92) 0%, rgba(255,255,255,.82) 45%, rgba(242,230,244,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(225,193,196,.36) 50%, rgba(220,200,232,.58) 100%); }
body.wrt-gradient-lemon-lavender { background-image: linear-gradient(132deg, rgba(255,250,211,.92) 0%, rgba(255,255,255,.82) 45%, rgba(237,230,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(250,232,158,.34) 50%, rgba(215,204,255,.6) 100%); }
body.wrt-gradient-glacier-mint { background-image: linear-gradient(132deg, rgba(220,245,255,.92) 0%, rgba(255,255,255,.82) 45%, rgba(222,250,239,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(188,228,247,.36) 50%, rgba(193,239,216,.58) 100%); }
body.wrt-gradient-morning-sage { background-image: linear-gradient(132deg, rgba(231,244,231,.92) 0%, rgba(255,255,255,.82) 45%, rgba(231,239,248,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(200,227,201,.36) 50%, rgba(207,220,241,.58) 100%); }
body.wrt-gradient-blue-rose { background-image: linear-gradient(132deg, rgba(224,235,255,.92) 0%, rgba(255,255,255,.82) 45%, rgba(255,231,241,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(190,213,255,.36) 50%, rgba(255,204,222,.58) 100%); }
body.wrt-gradient-apricot-sky { background-image: linear-gradient(132deg, rgba(255,235,215,.9) 0%, rgba(255,255,255,.82) 45%, rgba(222,241,255,.9) 100%), linear-gradient(28deg, rgba(255,255,255,.84) 0%, rgba(255,207,165,.34) 50%, rgba(191,226,255,.6) 100%); }
body.wrt-custom-background { background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; }
@keyframes wrtGradientDrift { from { background-position: 0% 0%, 100% 100%; } to { background-position: 12% 8%, 88% 92%; } }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; height: var(--header-height); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.navbar-container { max-width: var(--max-width); height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 36px; }
.navbar-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 222px; color: var(--ink); text-decoration: none; }
.navbar-logo strong { display: block; font-size: 16px; font-weight: 750; letter-spacing: .01em; line-height: 1.15; }
.navbar-logo small { display: block; margin-top: 3px; color: var(--subtle); font-size: 11px; line-height: 1; }
.brand-image { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
.brand-mark { width: 38px; height: 38px; border: 1px solid #d9e9ff; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--blue-soft); }
.brand-mark-small { width: 28px; height: 28px; border-radius: 8px; }
.navbar-menu { flex: 1; display: flex; align-items: center; justify-content: center; gap: 28px; }
.navbar-menu-list { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.navbar-menu-list li { display: block; }
.navbar-menu a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 0; color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s ease; }
.navbar-menu a:hover, .navbar-menu a.active, .navbar-menu li.current-menu-item > a, .navbar-menu li.current-menu-ancestor > a { color: var(--primary); }
.navbar-menu a.active::after, .navbar-menu li.current-menu-item > a::after, .navbar-menu li.current-menu-ancestor > a::after { content: ""; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px; background: var(--primary); }
.navbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 222px; }
.wrt-menu-icon { width: 1em; height: 1em; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.wrt-menu-icon svg { display: block; width: 1em; height: 1em; }
.text-action { color: var(--muted); font-size: 13px; text-decoration: none; }
.text-action:hover { color: var(--primary); }
.navbar-search { display: flex; align-items: center; gap: 7px; width: 176px; height: 36px; padding: 0 11px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.navbar-search input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.navbar-search input::placeholder { color: var(--subtle); }
.navbar-account-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12px; text-decoration: none; white-space: nowrap; }
.navbar-account-btn:hover { border-color: var(--primary); color: var(--primary); }
.navbar-member { border-color: var(--primary); background: var(--primary); color: #fff; }
.navbar-member:hover { background: var(--primary-dark); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 650; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(20,104,216,.18); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: #bcd5f8; color: var(--primary); background: var(--blue-soft); }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn-white:hover { background: #f4f8ff; }
.btn-outline-white { border-color: rgba(255,255,255,.46); color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.16); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0b1220; }
.btn-compact { min-height: 36px; padding: 7px 13px; font-size: 13px; }
.btn-sm { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.btn:disabled { cursor: wait; opacity: .65; transform: none; }

/* Layout */
.main-content { padding: 42px 24px 70px; }
.container { max-width: var(--max-width); margin: 0 auto; }
.section { margin-top: 72px; }
.section-tight { margin-top: 56px; }
.section-heading-row, .section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-kicker { display: block; margin-bottom: 8px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.section-title { margin: 0; color: var(--ink); font-size: 26px; line-height: 1.25; letter-spacing: 0; }
.section-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.eyebrow-light { color: rgba(255,255,255,.9); }

/* Home hero */
.hero { position: relative; margin-bottom: 32px; padding: 48px 40px; overflow: hidden; border-radius: 18px; background: #3383f4; color: #fff; box-shadow: 0 12px 32px -4px rgba(37,99,235,.24); }
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.hero .eyebrow { display: inline-flex; gap: 6px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.15); color: rgba(255,255,255,.96); font-size: 12.5px; font-weight: 600; letter-spacing: 0; backdrop-filter: blur(10px); }
.hero h1 { margin: 20px 0 14px; font-size: 36px; line-height: 1.2; letter-spacing: 0; font-weight: 800; }
.hero-title-brand, .hero-title-sub { display: block; }
.hero-title-sub { margin-top: 2px; }
.hero-copy > p { max-width: 520px; margin: 0 0 28px; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 0; }
.hero .btn { min-height: 44px; padding: 11px 24px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.hero .btn-white { box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.hero .btn-outline-white { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.hero .btn-outline-white:hover { background: rgba(255,255,255,.2); }
@media (prefers-reduced-motion: reduce) {
    body.wrt-gradient-background { animation: none; }
}

/* Front-end refresh: a quieter resource-library surface with stronger hierarchy. */
:root {
    --ink: #132238;
    --muted: #65738a;
    --subtle: #8b98aa;
    --line: #e3e9f1;
    --canvas: #f6f8fb;
    --primary: #1769d3;
    --primary-dark: #0e4d9f;
    --shadow-sm: 0 10px 26px rgba(23, 43, 74, .06);
    --shadow-md: 0 18px 42px rgba(23, 43, 74, .12);
}

body { background-color: var(--canvas); }
.site-header { height: 76px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(23, 43, 74, .08); }
.navbar-container { max-width: 1240px; padding: 0 28px; gap: 28px; }
.navbar-logo { min-width: 250px; }
.navbar-logo strong { font-size: 15px; }
.navbar-menu-list { gap: 25px; }
.navbar-menu a { padding: 27px 0 24px; font-size: 13px; }
.navbar-menu a.active::after, .navbar-menu li.current-menu-item > a::after, .navbar-menu li.current-menu-ancestor > a::after { bottom: 17px; height: 2px; border-radius: 2px; }
.navbar-actions { min-width: 250px; gap: 16px; }
.main-content { padding: 38px 28px 78px; }
.container { max-width: 1180px; }

.hero-reworked { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: stretch; gap: 44px; min-height: 390px; margin-bottom: 24px; padding: 48px 48px 42px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: #102b45; box-shadow: 0 22px 50px rgba(18, 46, 78, .2); }
.hero-reworked::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, #000 0%, transparent 78%); }
.hero-reworked::after { display: none; }
.hero-main { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.hero-reworked .eyebrow { width: fit-content; padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 11px; letter-spacing: .02em; }
.hero-reworked h1 { margin: 20px 0 16px; font-size: 44px; line-height: 1.13; letter-spacing: 0; }
.hero-reworked .hero-title-brand { color: #fff; }
.hero-reworked .hero-title-sub { margin-top: 8px; color: #b9d7ff; }
.hero-reworked .hero-copy > p, .hero-reworked .hero-main > p { max-width: 560px; margin: 0 0 28px; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.8; }
.hero-reworked .hero-actions { margin-top: 0; }
.hero-reworked .btn { border-radius: 10px; }
.hero-proof { display: flex; align-items: center; gap: 13px; margin-top: 28px; color: rgba(255,255,255,.65); font-size: 12px; }
.hero-proof strong { color: #fff; font-size: 15px; }
.hero-proof i { width: 4px; height: 4px; border-radius: 50%; background: #6ca9f7; }
.hero-panel { position: relative; z-index: 1; align-self: center; padding: 20px; border: 1px solid rgba(20, 52, 82, .12); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 16px 34px rgba(0,0,0,.14); animation: heroPanelIn .7s ease-out .1s both; }
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 750; }
.hero-live { display: inline-flex; align-items: center; gap: 5px; color: #168364; font-size: 11px; font-weight: 650; }
.hero-live i { width: 6px; height: 6px; border-radius: 50%; background: #27b886; box-shadow: 0 0 0 4px rgba(39,184,134,.12); }
.hero-resource-list { padding: 5px 0; }
.hero-resource-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf1f5; color: var(--ink); text-decoration: none; transition: transform .2s ease; }
.hero-resource-row:last-child { border-bottom: 0; }
.hero-resource-row:hover { transform: translateX(3px); }
.hero-resource-row > svg { margin-left: auto; color: var(--subtle); }
.hero-resource-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; border-radius: 10px; background: color-mix(in srgb, var(--resource-color, var(--primary)) 12%, #fff); color: var(--resource-color, var(--primary)); }
.hero-resource-copy { min-width: 0; }
.hero-resource-copy strong, .hero-resource-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-resource-copy strong { font-size: 13px; }
.hero-resource-copy small { margin-top: 2px; color: var(--subtle); font-size: 10px; }
.hero-resource-empty { padding: 22px 0; color: var(--muted); font-size: 13px; }
.hero-panel-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; }
@keyframes heroPanelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.signal-grid-reworked { margin-top: 0; border-radius: 14px; box-shadow: 0 8px 20px rgba(23, 43, 74, .045); }
.signal-grid-reworked .signal-item { min-height: 78px; padding: 15px 20px; }
.signal-grid-reworked .signal-icon { width: 34px; height: 34px; border-radius: 10px; }
.section { margin-top: 64px; }
.section-tight { margin-top: 58px; }
.section-heading-row { margin-bottom: 20px; }
.section-kicker { margin-bottom: 7px; font-size: 10px; letter-spacing: .14em; }
.section-title { font-size: 27px; letter-spacing: 0; }
.section-subtitle { margin-top: 5px; font-size: 13px; }
.quiet-link { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.quiet-link:hover { color: var(--primary-dark); }
.info-grid { gap: 14px; }
.info-card { padding: 20px 22px; border-radius: 14px; box-shadow: 0 7px 20px rgba(23,43,74,.045); }
.info-card-header { padding-bottom: 13px; }
.info-card-title { font-size: 15px; }
.info-list li, .timeline-list li { min-height: 46px; }
.resource-grid { gap: 16px; }
.resource-card { border-radius: 14px; box-shadow: 0 8px 22px rgba(23,43,74,.055); }
.resource-card:hover { transform: translateY(-4px); }
.resource-card-image { min-height: 180px; aspect-ratio: 4 / 3; }
.resource-card-image.is-empty { background: #fff; }
.resource-category-label { top: 13px; left: 13px; }
.resource-card-content { padding: 18px 19px 19px; }
.resource-card-title { margin-bottom: 6px; font-size: 16px; }
.resource-card-desc { min-height: 42px; margin-bottom: 16px; font-size: 12px; }
.resource-card-meta { font-size: 11px; }
.support-banner-reworked { margin-top: 64px; padding: 28px 32px; border: 1px solid #dbe8f7; border-radius: 16px; background: #edf5ff; }
.support-banner-reworked .section-kicker { margin-bottom: 6px; }
.support-banner-reworked h2 { font-size: 20px; }
.support-banner-reworked p { font-size: 13px; }
.footer { margin-top: 0; padding-top: 34px; }

/* Inner resource pages use the same calmer rhythm as the home page. */
.resources-page .page-intro { min-height: 176px; padding-top: 42px; border-bottom: 0; }
.resources-page .resource-toolbar { margin-top: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 7px 20px rgba(23,43,74,.04); }
.resources-page .resource-results-head { margin-top: 18px; margin-bottom: 22px; }
.resources-page .resource-category { margin-top: 30px; }
.category-heading { margin-bottom: 14px; }
.category-heading h2 { font-size: 18px; }
.resource-view-toggle { border-radius: 8px; }

@media (max-width: 920px) {
    .hero-reworked { grid-template-columns: minmax(0, 1fr) 310px; gap: 25px; padding: 38px 32px; }
    .hero-reworked h1 { font-size: 38px; }
    .navbar-logo, .navbar-actions { min-width: auto; }
}

@media (max-width: 680px) {
    .main-content { padding: 22px 16px 45px; }
    .site-header { height: 64px; }
    .navbar-container { padding: 0 16px; justify-content: flex-start; }
    .navbar-logo strong { font-size: 14px; }
    .hero-reworked { display: block; min-height: 0; padding: 30px 23px 22px; border-radius: 18px; }
    .hero-reworked h1 { margin-top: 17px; font-size: 31px; }
    .hero-reworked .hero-title-sub { margin-top: 6px; }
    .hero-reworked .hero-main > p { margin-bottom: 22px; font-size: 13px; }
    .hero-proof { margin-top: 21px; }
    .hero-panel { margin-top: 30px; padding: 16px; }
    .hero-resource-row { padding: 11px 0; }
    .signal-grid-reworked { grid-template-columns: 1fr 1fr; }
    .signal-grid-reworked .signal-item { min-height: 72px; padding: 13px 12px; }
    .section { margin-top: 46px; }
    .section-tight { margin-top: 43px; }
    .section-title { font-size: 23px; }
    .home-updates .section-heading-row { align-items: flex-start; }
    .quiet-link { display: none; }
    .info-card { padding: 17px 18px; }
    .resource-card-image { min-height: 0; }
    .support-banner-reworked { margin-top: 45px; padding: 23px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-panel { animation: none; }
}

/* Signals and updates */
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.signal-item { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 18px 22px; border-right: 1px solid var(--line); }
.signal-item:last-child { border-right: 0; }
.signal-item strong, .signal-item small { display: block; }
.signal-item strong { color: var(--ink); font-size: 19px; line-height: 1.15; }
.signal-item small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.signal-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.signal-blue { color: var(--primary); background: var(--blue-soft); }
.signal-mint { color: #159b77; background: var(--mint-soft); }
.signal-orange { color: #c97a18; background: var(--orange-soft); }
.signal-violet { color: #7952cc; background: var(--violet-soft); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.info-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.info-card-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.info-card-title svg { color: var(--primary); }
.info-card-meta { color: var(--subtle); font-size: 12px; }
.info-list, .timeline-list { padding: 0; margin: 0; list-style: none; }
.info-list li { display: flex; align-items: center; gap: 10px; min-height: 50px; border-bottom: 1px solid var(--line); font-size: 13px; }
.info-list li:last-child, .timeline-list li:last-child { border-bottom: 0; }
.list-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--primary); }
.info-list .title { flex: 1; color: var(--ink); }
.info-list .date { color: var(--subtle); font-size: 11px; }
.badge { padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.badge-new { color: #15744f; background: #e3f8ed; }
.badge-hot { color: #b5522f; background: #fff0ea; }
.timeline-list li { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 50px; padding: 12px 0 12px 15px; border-bottom: 1px solid var(--line); }
.timeline-marker { position: absolute; top: 17px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--blue-soft); }
.timeline-list strong { display: block; color: var(--ink); font-size: 13px; font-weight: 650; }
.timeline-list small { display: block; margin-top: 3px; color: var(--subtle); font-size: 11px; }
.timeline-list .badge { margin-left: auto; }
.empty-state { margin: 18px 0 4px; color: var(--muted); font-size: 13px; }

/* Resource cards */
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resource-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.resource-card:hover { border-color: #c8dbf5; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.resource-card-image { position: relative; min-height: 154px; aspect-ratio: 16 / 7.5; padding: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--resource-color, var(--primary)); color: #fff; }
.resource-card-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.resource-card-image.is-empty { background: #fff; color: var(--muted); }
.resource-default-art { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.94); }
.resource-default-art svg { width: 58px; height: 58px; }
.resource-card-image::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: rgba(8, 28, 64, .08); }
.resource-card-image.is-empty::after { display: none; }
.resource-card-cover + .resource-category-label, .resource-default-art + .resource-category-label { z-index: 2; }
.resource-card-image .wrt-resource-image-icon, .single-resource-icon img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.resource-category-label { position: absolute; top: 14px; left: 15px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; background: rgba(10,32,72,.16); color: rgba(255,255,255,.94); font-size: 10px; }
.resource-card-image.is-empty .resource-category-label { border-color: var(--line); background: #fff; color: var(--muted); }
.resource-list-icon { display: none; }
.resource-card-content { padding: 18px; }
.resource-card-title { margin: 0 0 7px; overflow: hidden; color: var(--ink); font-size: 16px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.resource-card-title a { color: inherit; text-decoration: none; }
.resource-card-desc { min-height: 44px; margin: 0 0 17px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.resource-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.resource-card-meta { display: flex; align-items: center; gap: 9px; color: var(--subtle); font-size: 11px; }
.resource-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.resource-grid.is-list { display: flex; flex-direction: column; gap: 10px; }
.resource-grid.is-list .resource-card { display: flex; align-items: center; transform: none; }
.resource-grid.is-list .resource-card:hover { transform: translateX(2px); }
.resource-grid.is-list .resource-card-image { display: none; }
.resource-grid.is-list .resource-list-icon { width: 52px; height: 52px; flex: 0 0 52px; margin: 12px 0 12px 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(20,104,216,.10); color: var(--resource-color, var(--primary)); }
@supports (background: color-mix(in srgb, #fff 50%, #000)) { .resource-grid.is-list .resource-list-icon { background: color-mix(in srgb, var(--resource-color, var(--primary)) 12%, #fff); } }
.resource-grid.is-list .resource-list-icon.is-empty { background: #fff; color: transparent; border: 1px solid var(--line); }
.resource-grid.is-list .resource-list-icon .wrt-resource-image-icon { display: block; width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.resource-grid.is-list .resource-list-icon svg { width: 27px; height: 27px; }
.resource-grid.is-list .resource-card-content { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: center; padding: 13px 18px 13px 14px; }
.resource-grid.is-list .resource-card-title { grid-column: 1; margin-bottom: 4px; }
.resource-grid.is-list .resource-card-desc { grid-column: 1; min-height: 0; margin: 0; }
.resource-grid.is-list .resource-card-footer { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; }

/* Resource view controls */
.resource-results-tools { display: inline-flex; align-items: center; gap: 15px; }
.resource-sort-label { white-space: nowrap; }
.resource-view-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.view-mode-btn { width: 31px; height: 29px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 5px; background: transparent; color: var(--subtle); }
.view-mode-btn:hover, .view-mode-btn.is-active { background: var(--blue-soft); color: var(--primary); }
.view-mode-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.support-banner, .contact-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border-radius: 8px; background: #eaf3ff; }
.support-banner h2, .contact-cta h2 { margin: 0; font-size: 22px; }
.support-banner p, .contact-cta p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }

/* Inner pages */
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; min-height: 190px; padding: 42px 0 34px; border-bottom: 1px solid var(--line); }
.page-intro h1 { margin: 14px 0 8px; font-size: 38px; line-height: 1.15; letter-spacing: 0; }
.page-intro p { max-width: 610px; margin: 0; color: var(--muted); font-size: 15px; }
.page-intro-compact { min-height: 170px; }
.page-intro-aside { display: flex; align-items: baseline; gap: 8px; padding: 14px 0; color: var(--muted); white-space: nowrap; }
.page-intro-aside strong { color: var(--primary); font-size: 32px; }
.page-intro-aside span { font-size: 13px; }
.resource-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px 0 16px; }
.search-box { position: relative; flex: 0 1 310px; }
.search-box > svg { position: absolute; top: 12px; left: 13px; color: var(--subtle); }
.search-box input { width: 100%; height: 42px; padding: 0 38px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fff; color: var(--ink); font-size: 13px; }
.search-box input:focus { border-color: #9ec6f7; box-shadow: 0 0 0 3px rgba(20,104,216,.10); }
.search-clear { position: absolute; top: 6px; right: 7px; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: var(--subtle); }
.filter-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-btn { min-height: 35px; padding: 7px 11px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 12px; }
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); background: var(--blue-soft); color: var(--primary); }
.filter-btn span { color: inherit; opacity: .65; }
.resource-results-head { display: flex; justify-content: space-between; margin: 0 0 25px; color: var(--subtle); font-size: 12px; }
.resource-category { margin-top: 40px; }
.resource-category.is-hidden { display: none; }
.category-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.category-heading > div { display: flex; align-items: center; gap: 12px; }
.category-heading h2 { margin: 0; font-size: 19px; }
.category-heading > span { color: var(--subtle); font-size: 12px; }
.category-index { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.resource-category .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resource-card.search-hidden { display: none; }
.empty-panel { padding: 70px 20px; margin-top: 30px; text-align: center; border: 1px dashed #cbd8e8; border-radius: 8px; background: #fff; }
.empty-panel-icon { width: 54px; height: 54px; margin: 0 auto 15px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--blue-soft); color: var(--primary); }
.empty-panel h2 { margin: 0; font-size: 20px; }
.empty-panel p { margin: 8px 0 20px; color: var(--muted); font-size: 14px; }

/* Support and contact */
.response-note { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--muted); font-size: 12px; }
.status-dot-dark { color: var(--ink); }
.support-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr); gap: 44px; margin-top: 36px; }
.form-card, .contact-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.support-form-card { padding: 28px; }
.card-heading { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.card-heading h2, .aside-heading h2 { margin: 0; font-size: 20px; }
.card-heading p, .aside-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.card-icon { width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.card-icon-blue { color: var(--primary); background: var(--blue-soft); }
.support-form { padding-top: 23px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.form-label span { color: #d85d50; }
.form-input, .form-textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: #fff; color: var(--ink); font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.form-input { height: 43px; padding: 0 12px; }
.form-textarea { min-height: 145px; padding: 12px; resize: vertical; }
.form-input:focus, .form-textarea:focus { border-color: #9ec6f7; box-shadow: 0 0 0 3px rgba(20,104,216,.10); }
.form-helper { margin-top: 6px; color: var(--subtle); font-size: 11px; }
.form-actions { display: flex; align-items: center; gap: 14px; }
.form-actions > span { color: var(--subtle); font-size: 11px; }
.support-aside { padding-top: 2px; }
.aside-heading { margin-bottom: 20px; }
.contact-cards { display: flex; flex-direction: column; gap: 10px; }
.contact-card-row { display: flex; align-items: center; gap: 11px; padding: 14px; }
.contact-icon { width: 35px; height: 35px; flex: 0 0 35px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--primary); background: var(--blue-soft); }
.contact-card-copy { min-width: 0; flex: 1; }
.contact-card-copy strong, .contact-card-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-card-copy strong { font-size: 13px; }
.contact-card-copy span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 11px; }
.copy-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--blue-soft); }
.icon-only { width: 32px; height: 32px; padding: 0; }
.support-tip { display: flex; gap: 10px; margin-top: 18px; padding: 14px; border: 1px solid #f0e2c7; border-radius: 8px; background: #fffaf0; color: #946b28; }
.support-tip p { margin: 0; font-size: 12px; line-height: 1.7; }
.support-tip strong { color: #6f501d; }
.contact-section { margin-top: 46px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-card-large { padding: 20px; }
.contact-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contact-icon-large { width: 42px; height: 42px; flex-basis: 42px; border-radius: 10px; }
.contact-type { color: var(--subtle); font-size: 11px; }
.contact-card-large h3 { margin: 22px 0 6px; font-size: 16px; }
.contact-card-large p { min-height: 42px; margin: 0 0 20px; color: var(--muted); font-size: 13px; word-break: break-all; }
.copy-wide { width: 100%; }
.contact-cta { margin-top: 54px; background: #f0f4fa; }
.contact-intro-mark { width: 88px; height: 88px; display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; background: var(--blue-soft); color: var(--primary); }

/* Single resource */
.single-breadcrumb { display: flex; align-items: center; gap: 8px; padding: 10px 0 22px; color: var(--subtle); font-size: 12px; }
.single-breadcrumb a { color: var(--primary); text-decoration: none; }
.single-resource-hero { display: flex; align-items: center; gap: 22px; padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.single-resource-icon { width: 84px; height: 84px; flex: 0 0 84px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--resource-color, var(--primary)); color: #fff; }
.single-resource-copy { flex: 1; min-width: 0; }
.single-resource-copy h1 { margin: 8px 0 7px; font-size: 32px; line-height: 1.2; }
.single-resource-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.single-resource-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; margin-top: 24px; }
.single-resource-content { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.single-resource-content h2 { margin: 0 0 18px; font-size: 20px; }
.single-resource-content p { color: var(--muted); font-size: 14px; }
.single-resource-meta { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.single-resource-meta > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.single-resource-meta span { color: var(--muted); font-size: 12px; }
.single-resource-meta strong { color: var(--ink); font-size: 15px; }
.single-resource-meta p { display: flex; align-items: center; gap: 6px; margin: 17px 0 0; color: #159b77; font-size: 11px; }
.page-content { margin-top: 28px; }

/* Footer and mobile nav */
.footer { margin-top: 28px; padding: 32px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.footer-content { max-width: var(--max-width); margin: 0 auto; color: var(--muted); font-size: 12px; }
.footer-main { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 24px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.footer-main p { margin: 10px 0 0; color: var(--subtle); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; padding: 0; margin: 0; list-style: none; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--subtle); }
.mobile-nav { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 9999; max-width: calc(100vw - 32px); padding: 11px 16px; transform: translate(-50%, 12px); border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: #172033; color: #fff; box-shadow: var(--shadow-md); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Existing admin surface */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; flex: 0 0 240px; padding: 24px 0; background: #172033; color: #fff; }
.admin-sidebar-header { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-header h2 { margin: 0; font-size: 18px; }
.admin-sidebar-header p { margin: 4px 0 0; color: rgba(255,255,255,.6); font-size: 12px; }
.admin-menu { padding: 16px 0; margin: 0; list-style: none; }
.admin-menu a { display: flex; align-items: center; gap: 11px; padding: 11px 24px; color: rgba(255,255,255,.7); font-size: 14px; text-decoration: none; }
.admin-menu a:hover, .admin-menu a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { flex: 1; min-width: 0; padding: 32px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-title { margin: 0; font-size: 24px; }
.admin-card, .stat-card { margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.stat-icon.blue { color: var(--primary); background: var(--blue-soft); }
.stat-icon.green { color: #159b77; background: var(--mint-soft); }
.stat-icon.orange { color: #c97a18; background: var(--orange-soft); }
.stat-icon.purple { color: #7952cc; background: var(--violet-soft); }
.stat-info h3 { margin: 0; font-size: 22px; }
.stat-info p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.admin-table th { color: var(--muted); background: var(--canvas); font-weight: 700; }
.admin-actions { display: flex; gap: 7px; }
.btn-danger { background: #d85d50; color: #fff; }
.btn-success { background: #159b77; color: #fff; }

@media (max-width: 920px) {
    .navbar-container { gap: 18px; }
    .navbar-logo { min-width: auto; }
    .navbar-menu { gap: 18px; }
    .navbar-menu-list { gap: 18px; }
    .navbar-actions { min-width: auto; }
    .text-action { display: none; }
    .hero { padding: 42px 36px; }
    .resource-grid, .resource-category .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    :root { --header-height: 60px; }
    body { padding-bottom: 66px; }
    .site-header { height: var(--header-height); }
    .navbar-container { padding: 0 16px; justify-content: center; }
    .navbar-logo { min-width: 0; }
    .navbar-logo small, .navbar-menu, .navbar-actions { display: none; }
    .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
    .main-content { padding: 22px 16px 44px; }
    .hero { min-height: 0; padding: 32px 24px; border-radius: 14px; }
    .hero h1 { margin: 17px 0 13px; font-size: 30px; }
    .hero-copy > p { font-size: 14px; line-height: 1.8; }
    .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
    .hero-actions .btn { width: 100%; }
    .signal-grid { grid-template-columns: 1fr 1fr; margin-top: 12px; }
    .signal-item { min-height: 75px; padding: 14px 12px; gap: 9px; border-bottom: 1px solid var(--line); }
    .signal-item:nth-child(2) { border-right: 0; }
    .signal-item:nth-child(3), .signal-item:nth-child(4) { border-bottom: 0; }
    .signal-item strong { font-size: 16px; }
    .signal-item small { font-size: 10px; }
    .signal-icon { width: 32px; height: 32px; }
    .section { margin-top: 44px; }
    .section-heading-row, .section-header { align-items: flex-start; margin-bottom: 16px; }
    .section-title { font-size: 22px; }
    .section-heading-row > .btn, .section-header > .btn { display: none; }
    .info-grid { grid-template-columns: 1fr; gap: 12px; }
    .info-card { padding: 18px; }
    .info-list li { align-items: flex-start; flex-wrap: wrap; padding: 12px 0; }
    .info-list .title { flex-basis: calc(100% - 20px); order: 2; }
    .info-list .date { margin-left: 17px; order: 3; }
    .info-list .badge { order: 4; }
    .resource-grid, .resource-category .resource-grid { grid-template-columns: 1fr; gap: 12px; }
    .resource-card-image { min-height: 120px; }
    .resource-card-content { padding: 16px; }
    .resource-card-desc { min-height: 0; }
    .single-resource-hero { align-items: flex-start; flex-wrap: wrap; padding: 22px 18px; }
    .single-resource-icon { width: 58px; height: 58px; flex-basis: 58px; }
    .single-resource-copy { flex-basis: calc(100% - 80px); }
    .single-resource-copy h1 { font-size: 25px; }
    .single-resource-hero > .btn { width: 100%; }
    .single-resource-layout { grid-template-columns: 1fr; gap: 12px; }
    .single-resource-content { padding: 20px 16px; }
    .support-banner, .contact-cta { display: block; padding: 25px 20px; }
    .support-banner h2, .contact-cta h2 { font-size: 19px; }
    .support-banner .btn, .contact-cta .btn { width: 100%; margin-top: 20px; }
    .page-intro, .page-intro-compact { min-height: 0; padding: 28px 0 23px; align-items: flex-start; }
    .page-intro h1 { font-size: 30px; }
    .page-intro-aside, .contact-intro-mark { display: none; }
    .resource-toolbar { display: block; margin-top: 22px; }
    .search-box { width: 100%; }
    .filter-list { justify-content: flex-start; margin-top: 12px; overflow-x: auto; padding-bottom: 3px; flex-wrap: nowrap; }
    .filter-btn { flex: 0 0 auto; }
    .resource-results-head { margin-bottom: 20px; }
    .resource-results-tools { gap: 8px; }
    .resource-sort-label { display: none; }
    .resource-category { margin-top: 30px; }
    .category-heading h2 { font-size: 17px; }
    .support-layout { grid-template-columns: 1fr; gap: 36px; margin-top: 26px; }
    .support-form-card { padding: 20px 16px; }
    .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
    .form-actions { align-items: stretch; flex-direction: column; gap: 10px; }
    .form-actions .btn { width: 100%; }
    .response-note { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-section { margin-top: 30px; }
    .footer { padding: 24px 16px 13px; }
    .footer-main, .footer-bottom { display: block; }
    .footer-links { justify-content: flex-start; margin-top: 18px; gap: 12px 17px; }
    .footer-bottom span { display: block; margin-top: 9px; }
    .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1000; display: block; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -7px 20px rgba(25,46,80,.07); }
    .mobile-nav-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0; margin: 0; list-style: none; }
    .mobile-nav-menu li { min-width: 0; }
    .mobile-nav-menu a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--subtle); font-size: 10px; text-decoration: none; }
    .mobile-nav-menu a.active, .mobile-nav-menu li.current-menu-item > a, .mobile-nav-menu li.current-menu-ancestor > a { color: var(--primary); font-weight: 700; }
    .mobile-nav-menu svg { width: 21px; height: 21px; }
    .mobile-nav-menu .wrt-menu-icon { width: 21px; height: 21px; font-size: 21px; }
    .admin-layout { display: block; }
    .admin-sidebar { width: 100%; padding: 18px 0; }
    .admin-main { padding: 20px 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-table { min-width: 680px; }
    .admin-card { overflow-x: auto; }
}

@media (max-width: 480px) {
    .resource-grid.is-list .resource-list-icon { width: 44px; height: 44px; flex-basis: 44px; margin-left: 10px; border-radius: 10px; }
    .resource-grid.is-list .resource-card-content { display: block; padding: 12px 12px 12px 10px; }
    .resource-grid.is-list .resource-card-desc { display: none; }
    .resource-grid.is-list .resource-card-footer { margin-top: 7px; flex-direction: row; align-items: center; }
    .resource-grid.is-list .resource-list-icon .wrt-resource-image-icon { width: 30px; height: 30px; }
    .resource-grid.is-list .resource-list-icon svg { width: 24px; height: 24px; }
}

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

/* Final cascade for the refreshed front-end surface. */
.site-header { height: 76px; background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.navbar-container { max-width: 1240px; padding: 0 28px; gap: 28px; }
.navbar-logo { min-width: 250px; }
.navbar-menu-list { gap: 25px; }
.navbar-menu a { padding: 27px 0 24px; font-size: 13px; }
.navbar-menu a.active::after, .navbar-menu li.current-menu-item > a::after, .navbar-menu li.current-menu-ancestor > a::after { bottom: 17px; }
.navbar-actions { min-width: 250px; gap: 16px; }
.main-content { padding: 38px 28px 78px; }

.home-page .hero-reworked { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: stretch; gap: 44px; min-height: 390px; margin-bottom: 24px; padding: 48px 48px 42px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: #102b45; box-shadow: 0 22px 50px rgba(18,46,78,.2); }
.home-page .hero-reworked::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg,#000 0%,transparent 78%); }
.home-page .hero-reworked::after { display: none; }
.home-page .hero-main { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.home-page .hero-reworked .eyebrow { width: fit-content; padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 11px; letter-spacing: .02em; }
.home-page .hero-reworked h1 { margin: 20px 0 16px; font-size: 44px; line-height: 1.13; letter-spacing: 0; }
.home-page .hero-reworked .hero-title-brand { color: #fff; }
.home-page .hero-reworked .hero-title-sub { margin-top: 8px; color: #b9d7ff; }
.home-page .hero-reworked .hero-main > p { max-width: 560px; margin: 0 0 28px; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.8; }
.home-page .hero-reworked .hero-actions { margin-top: 0; }
.home-page .hero-reworked .btn { border-radius: 10px; }
.home-page .hero-proof { display: flex; align-items: center; gap: 13px; margin-top: 28px; color: rgba(255,255,255,.65); font-size: 12px; }
.home-page .hero-proof strong { color: #fff; font-size: 15px; }
.home-page .hero-proof i { width: 4px; height: 4px; border-radius: 50%; background: #6ca9f7; }
.home-page .hero-panel { position: relative; z-index: 1; align-self: center; padding: 20px; border: 1px solid rgba(20,52,82,.12); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 16px 34px rgba(0,0,0,.14); animation: heroPanelIn .7s ease-out .1s both; }
.home-page .hero-panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 750; }
.home-page .hero-live { display: inline-flex; align-items: center; gap: 5px; color: #168364; font-size: 11px; font-weight: 650; }
.home-page .hero-live i { width: 6px; height: 6px; border-radius: 50%; background: #27b886; box-shadow: 0 0 0 4px rgba(39,184,134,.12); }
.home-page .hero-resource-list { padding: 5px 0; }
.home-page .hero-resource-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf1f5; color: var(--ink); text-decoration: none; transition: transform .2s ease; }
.home-page .hero-resource-row:last-child { border-bottom: 0; }
.home-page .hero-resource-row:hover { transform: translateX(3px); }
.home-page .hero-resource-row > svg { margin-left: auto; color: var(--subtle); }
.home-page .hero-resource-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; border-radius: 10px; background: color-mix(in srgb,var(--resource-color,var(--primary)) 12%,#fff); color: var(--resource-color,var(--primary)); }
.home-page .hero-resource-icon { background: #edf5ff; }
@supports (background: color-mix(in srgb, #fff 50%, #000)) { .home-page .hero-resource-icon { background: color-mix(in srgb,var(--resource-color,var(--primary)) 12%,#fff); } }
.home-page .hero-resource-copy { min-width: 0; }
.home-page .hero-resource-copy strong, .home-page .hero-resource-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-page .hero-resource-copy strong { font-size: 13px; }
.home-page .hero-resource-copy small { margin-top: 2px; color: var(--subtle); font-size: 10px; }
.home-page .hero-resource-empty { padding: 22px 0; color: var(--muted); font-size: 13px; }
.home-page .hero-panel-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; }

.home-page .signal-grid-reworked { margin-top: 0; border-radius: 14px; box-shadow: 0 8px 20px rgba(23,43,74,.045); }
.home-page .signal-grid-reworked .signal-item { min-height: 78px; padding: 15px 20px; }
.home-page .signal-grid-reworked .signal-icon { width: 34px; height: 34px; border-radius: 10px; }
.home-page .section { margin-top: 64px; }
.home-page .section-tight { margin-top: 58px; }
.home-page .section-heading-row { margin-bottom: 20px; }
.home-page .section-kicker { margin-bottom: 7px; font-size: 10px; letter-spacing: .14em; }
.home-page .section-title { font-size: 27px; letter-spacing: 0; }
.home-page .section-subtitle { margin-top: 5px; font-size: 13px; }
.home-page .quiet-link { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.home-page .info-grid { gap: 14px; }
.home-page .info-card { padding: 20px 22px; border-radius: 14px; box-shadow: 0 7px 20px rgba(23,43,74,.045); }
.home-page .info-card-header { padding-bottom: 13px; }
.home-page .info-list li, .home-page .timeline-list li { min-height: 46px; }
.home-page .resource-grid { gap: 16px; }
.home-page .resource-card { border-radius: 14px; box-shadow: 0 8px 22px rgba(23,43,74,.055); }
.home-page .resource-card:hover { transform: translateY(-4px); }
.home-page .resource-card-image { min-height: 180px; aspect-ratio: 4 / 3; }
.home-page .resource-card-content { padding: 18px 19px 19px; }
.home-page .support-banner-reworked { margin-top: 64px; padding: 28px 32px; border: 1px solid #dbe8f7; border-radius: 16px; background: #edf5ff; }
.home-page .support-banner-reworked h2 { font-size: 20px; }
.home-page .support-banner-reworked p { font-size: 13px; }
.resources-page .page-intro { min-height: 176px; padding-top: 42px; border-bottom: 0; }
.resources-page .resource-toolbar { margin-top: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 7px 20px rgba(23,43,74,.04); }
.resources-page .resource-results-head { margin-top: 18px; margin-bottom: 22px; }
.resources-page .resource-category { margin-top: 30px; }

@media (max-width: 920px) {
    .home-page .hero-reworked { grid-template-columns: minmax(0,1fr) 310px; gap: 25px; padding: 38px 32px; }
    .home-page .hero-reworked h1 { font-size: 38px; }
    .navbar-logo, .navbar-actions { min-width: auto; }
}

@media (max-width: 680px) {
    .main-content { padding: 22px 16px 45px; }
    .site-header { height: 64px; }
    .navbar-container { padding: 0 16px; justify-content: flex-start; }
    .home-page .hero-reworked { display: block; min-height: 0; padding: 30px 23px 22px; border-radius: 18px; }
    .home-page .hero-reworked h1 { margin-top: 17px; font-size: 31px; }
    .home-page .hero-reworked .hero-title-sub { margin-top: 6px; }
    .home-page .hero-reworked .hero-main > p { margin-bottom: 22px; font-size: 13px; }
    .home-page .hero-proof { margin-top: 21px; }
    .home-page .hero-panel { margin-top: 30px; padding: 16px; }
    .home-page .signal-grid-reworked { grid-template-columns: 1fr 1fr; }
    .home-page .signal-grid-reworked .signal-item { min-height: 72px; padding: 13px 12px; }
    .home-page .section { margin-top: 46px; }
    .home-page .section-tight { margin-top: 43px; }
    .home-page .section-title { font-size: 23px; }
    .home-page .quiet-link { display: none; }
    .home-page .info-card { padding: 17px 18px; }
    .home-page .resource-card-image { min-height: 0; }
    .home-page .support-banner-reworked { margin-top: 45px; padding: 23px 20px; }
}

/* Full-bleed directory hero inspired by modern resource portals. */
body.wrt-home .site-header { position: absolute; top: 0; right: 0; left: 0; z-index: 1000; border-bottom-color: rgba(255,255,255,.12); background: rgba(7,18,32,.34); color: #fff; }
body.wrt-home .site-header.scrolled { position: fixed; background: rgba(16,43,69,.96); box-shadow: 0 8px 24px rgba(4,15,28,.2); }
body.wrt-home .site-header .navbar-logo, body.wrt-home .site-header .navbar-menu a, body.wrt-home .site-header .text-action { color: #fff; }
body.wrt-home .site-header .navbar-logo small { color: rgba(255,255,255,.68); }
body.wrt-home .site-header .navbar-menu a:hover, body.wrt-home .site-header .navbar-menu a.active, body.wrt-home .site-header .navbar-menu li.current-menu-item > a, body.wrt-home .site-header .navbar-menu li.current-menu-ancestor > a { color: #fff; }
body.wrt-home .site-header .brand-mark { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.12); color: #fff; }
body.wrt-home .site-header .btn-primary { background: #fff; color: #1769d3; box-shadow: 0 7px 18px rgba(0,0,0,.16); }
body.wrt-home .main-content { padding: 0 0 78px; }
body.wrt-home .home-page > .container { max-width: none; }
body.wrt-home .home-page > .container > .section { width: min(1180px, calc(100% - 56px)); margin-right: auto; margin-left: auto; }

body.wrt-home .home-page .hero-directory { position: relative; display: flex; align-items: center; justify-content: center; min-height: 640px; margin: 0; padding: 148px 24px 165px; overflow: hidden; border: 0; border-radius: 0; background-color: #0a1829; background-image: linear-gradient(180deg, rgba(4,15,28,.48) 0%, rgba(4,15,28,.3) 42%, rgba(4,15,28,.78) 100%), var(--hero-image, none); background-position: center; background-size: cover; box-shadow: none; color: #fff; }
body.wrt-home .home-page .hero-directory::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .26; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 92%); }
body.wrt-home .home-page .hero-directory::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(16,43,69,.28), transparent 50%, rgba(16,43,69,.22)); }
body.wrt-home .home-page .hero-directory.is-video .hero-background-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.wrt-home .home-page .hero-directory.is-video { background-image: linear-gradient(180deg, rgba(4,15,28,.48) 0%, rgba(4,15,28,.3) 42%, rgba(4,15,28,.78) 100%); }
body.wrt-home .home-page .hero-center { position: relative; z-index: 1; width: min(850px, 100%); text-align: center; }
body.wrt-home .home-page .hero-directory .eyebrow { display: inline-flex; padding: 7px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); font-size: 11px; letter-spacing: .02em; }
body.wrt-home .home-page .hero-directory h1 { margin: 24px 0 12px; color: #fff; font-size: 50px; line-height: 1.15; letter-spacing: 0; text-shadow: 0 3px 20px rgba(0,0,0,.22); }
body.wrt-home .home-page .hero-directory p { max-width: 680px; margin: 0 auto 30px; color: rgba(255,255,255,.82); font-size: 16px; }
body.wrt-home .home-page .hero-search { width: min(760px, 100%); margin: 0 auto; }
body.wrt-home .home-page .hero-search-field { display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 19px; border: 1px solid rgba(255,255,255,.42); border-radius: 12px; background: #fff; box-shadow: 0 16px 34px rgba(0,0,0,.2); color: #8b98aa; }
body.wrt-home .home-page .hero-search-field > svg { flex: 0 0 auto; }
body.wrt-home .home-page .hero-search-field input { width: 100%; min-width: 0; height: 46px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
body.wrt-home .home-page .hero-search-field input::placeholder { color: #9ca8b7; }
body.wrt-home .home-page .hero-search-field .btn { min-width: 100px; height: 46px; border-radius: 8px; }
body.wrt-home .home-page .hero-hot-search { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; color: rgba(255,255,255,.6); font-size: 12px; }
body.wrt-home .home-page .hero-hot-search a { color: rgba(255,255,255,.84); text-decoration: none; }
body.wrt-home .home-page .hero-hot-search a:hover { color: #fff; }
body.wrt-home .home-page .hero-status { display: inline-flex; align-items: center; gap: 12px; margin-top: 27px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); font-size: 12px; }
body.wrt-home .home-page .hero-status span { display: inline-flex; align-items: center; gap: 5px; }
body.wrt-home .home-page .hero-status strong { color: #77b2ff; font-size: 17px; }
body.wrt-home .home-page .hero-status i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.6); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body.wrt-home .home-page .hero-quick-links { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(1080px, calc(100% - 56px)); margin: -54px auto 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 16px 34px rgba(23,43,74,.12); }
body.wrt-home .home-page .hero-quick-link { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 17px 18px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .2s ease, transform .2s ease; }
body.wrt-home .home-page .hero-quick-link:first-child { border-radius: 14px 0 0 14px; }
body.wrt-home .home-page .hero-quick-link:last-child { border-right: 0; border-radius: 0 14px 14px 0; }
body.wrt-home .home-page .hero-quick-link:hover { background: #f6faff; transform: translateY(-2px); }
body.wrt-home .home-page .hero-quick-link > svg { flex: 0 0 auto; margin-left: auto; color: var(--subtle); }
body.wrt-home .home-page .hero-quick-link > span:not(.hero-quick-icon) { min-width: 0; }
body.wrt-home .home-page .hero-quick-link strong, body.wrt-home .home-page .hero-quick-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.wrt-home .home-page .hero-quick-link strong { font-size: 13px; }
body.wrt-home .home-page .hero-quick-link small { margin-top: 2px; color: var(--muted); font-size: 10px; }
body.wrt-home .home-page .hero-quick-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; border-radius: 10px; }
body.wrt-home .home-page .hero-quick-icon.is-blue { color: #1769d3; background: #eaf3ff; }
body.wrt-home .home-page .hero-quick-icon.is-violet { color: #7659c9; background: #f1edff; }
body.wrt-home .home-page .hero-quick-icon.is-green { color: #168364; background: #e8f8f1; }
body.wrt-home .home-page .hero-quick-icon.is-orange { color: #c77a1b; background: #fff3e1; }

@media (max-width: 920px) {
    body.wrt-home .home-page .hero-directory { min-height: 590px; }
    body.wrt-home .home-page .hero-directory h1 { font-size: 42px; }
    body.wrt-home .home-page .hero-quick-links { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: -34px; }
    body.wrt-home .home-page .hero-quick-link:nth-child(2) { border-right: 0; }
    body.wrt-home .home-page .hero-quick-link:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    body.wrt-home .home-page .hero-quick-link:first-child { border-radius: 14px 0 0 0; }
    body.wrt-home .home-page .hero-quick-link:nth-child(2) { border-radius: 0 14px 0 0; }
    body.wrt-home .home-page .hero-quick-link:nth-child(3) { border-radius: 0 0 0 14px; }
    body.wrt-home .home-page .hero-quick-link:last-child { border-radius: 0 0 14px 0; }
}

@media (max-width: 680px) {
    body.wrt-home .site-header { background: rgba(7,18,32,.58); }
    body.wrt-home .main-content { padding-bottom: 44px; }
    body.wrt-home .home-page .hero-directory { min-height: 590px; padding: 124px 18px 120px; }
    body.wrt-home .home-page .hero-directory h1 { margin-top: 19px; font-size: 32px; }
    body.wrt-home .home-page .hero-directory p { font-size: 13px; line-height: 1.8; }
    body.wrt-home .home-page .hero-search-field { gap: 8px; padding-left: 13px; }
    body.wrt-home .home-page .hero-search-field input { font-size: 12px; }
    body.wrt-home .home-page .hero-search-field .btn { min-width: 76px; padding-right: 11px; padding-left: 11px; font-size: 12px; }
    body.wrt-home .home-page .hero-hot-search { gap: 9px; line-height: 1.5; }
    body.wrt-home .home-page .hero-status { gap: 7px; padding: 9px 10px; font-size: 10px; }
    body.wrt-home .home-page .hero-status strong { font-size: 14px; }
    body.wrt-home .home-page .hero-quick-links { width: calc(100% - 32px); margin-top: -28px; }
    body.wrt-home .home-page .hero-quick-link { gap: 8px; padding: 13px 11px; }
    body.wrt-home .home-page .hero-quick-icon { width: 32px; height: 32px; flex-basis: 32px; }
    body.wrt-home .home-page .hero-quick-link strong { font-size: 11px; }
    body.wrt-home .home-page .hero-quick-link small { font-size: 9px; }
    body.wrt-home .home-page > .container > .section { width: calc(100% - 32px); }
}

/* The support callout is an independent content block, never part of the Hero canvas. */
body.wrt-home .home-page > .container > .support-banner-reworked { width: min(1180px, calc(100% - 56px)); margin: 64px auto 0; }
@media (max-width: 680px) {
    body.wrt-home .home-page > .container > .support-banner-reworked { width: calc(100% - 32px); margin-top: 45px; }
}

/* Theme direction: all front-end surfaces use square corners. */
*, *::before, *::after { border-radius: 0 !important; }

/* Purple portal presentation and independent white navigation. */
:root { --primary: #6547e8; --primary-dark: #4d34c8; --blue-soft: #f0edff; --line: #e6e3f2; --canvas: #f7f7fb; }
body .site-header, body .site-header.scrolled { background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); backdrop-filter: none; }
body.wrt-home .site-header { position: absolute; top: 0; right: 0; left: 0; height: 76px; background: transparent; border-bottom-color: rgba(255,255,255,.2); color: #fff; box-shadow: none; backdrop-filter: none; }
body.wrt-home .site-header.scrolled { position: fixed; top: 0; height: 76px; background: rgba(255,255,255,.98); border-bottom-color: var(--line); color: var(--ink); box-shadow: 0 8px 24px rgba(34,24,88,.12); backdrop-filter: blur(16px); }
body.wrt-home .site-header .navbar-logo, body.wrt-home .site-header .navbar-menu a, body.wrt-home .site-header .text-action { color: #fff; }
body.wrt-home .site-header .navbar-logo small { color: rgba(255,255,255,.72); }
body.wrt-home .site-header .navbar-menu a:hover, body.wrt-home .site-header .navbar-menu a.active, body.wrt-home .site-header .navbar-menu li.current-menu-item > a, body.wrt-home .site-header .navbar-menu li.current-menu-ancestor > a { color: #fff; }
body.wrt-home .site-header .navbar-menu a.active::after, body.wrt-home .site-header .navbar-menu li.current-menu-item > a::after, body.wrt-home .site-header .navbar-menu li.current-menu-ancestor > a::after { background: #fff; }
body.wrt-home .site-header .brand-mark { border-color: rgba(255,255,255,.28); background: rgba(24,13,73,.72); color: #fff; }
body.wrt-home .site-header .btn-primary { background: rgba(24,13,73,.88); border-color: rgba(255,255,255,.24); color: #fff; box-shadow: 0 7px 18px rgba(0,0,0,.2); }
body.wrt-home .site-header.scrolled .navbar-logo, body.wrt-home .site-header.scrolled .navbar-menu a, body.wrt-home .site-header.scrolled .text-action { color: var(--ink); }
body.wrt-home .site-header.scrolled .navbar-logo small { color: var(--subtle); }
body.wrt-home .site-header.scrolled .navbar-menu a:hover, body.wrt-home .site-header.scrolled .navbar-menu a.active, body.wrt-home .site-header.scrolled .navbar-menu li.current-menu-item > a, body.wrt-home .site-header.scrolled .navbar-menu li.current-menu-ancestor > a { color: var(--primary); }
body.wrt-home .site-header.scrolled .navbar-menu a.active::after, body.wrt-home .site-header.scrolled .navbar-menu li.current-menu-item > a::after, body.wrt-home .site-header.scrolled .navbar-menu li.current-menu-ancestor > a::after { background: var(--primary); }
body.wrt-home .site-header.scrolled .brand-mark { border-color: #ded9fb; background: #f3f0ff; color: var(--primary); }
body.wrt-home .site-header.scrolled .btn-primary { background: var(--primary); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(101,71,232,.2); }
body.wrt-home .site-header .navbar-menu svg, body.wrt-home .site-header .navbar-actions svg { color: inherit; }
body.wrt-home .site-header .navbar-search { display: flex; align-items: center; gap: 7px; width: 176px; height: 36px; padding: 0 11px; border: 1px solid rgba(255,255,255,.28); background: rgba(24,13,73,.72); color: rgba(255,255,255,.86); }
body.wrt-home .site-header .navbar-search input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 12px; }
body.wrt-home .site-header .navbar-search input::placeholder { color: rgba(255,255,255,.68); }
body.wrt-home .site-header .navbar-account-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.24); background: rgba(24,13,73,.88); color: #fff; font-size: 12px; text-decoration: none; white-space: nowrap; }
body.wrt-home .site-header.scrolled .navbar-search { border-color: var(--line); background: #fff; color: var(--muted); }
body.wrt-home .site-header.scrolled .navbar-search input { color: var(--ink); }
body.wrt-home .site-header.scrolled .navbar-search input::placeholder { color: var(--subtle); }
body.wrt-home .site-header.scrolled .navbar-account-btn { border-color: var(--line); background: #fff; color: var(--ink); }
body.wrt-home .site-header.scrolled .navbar-member { border-color: var(--primary); background: var(--primary); color: #fff; }
body.wrt-home .site-header.scrolled .navbar-login:hover, body.wrt-home .site-header.scrolled .navbar-account-btn:hover { border-color: var(--primary); color: var(--primary); }
body.wrt-home .site-header .navbar-account-btn:hover { border-color: #fff; color: #fff; }

body.wrt-home .main-content { padding-top: 0; }
body.wrt-home .home-page > .container { max-width: none; }
body.wrt-home .home-page .hero-portal { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; width: min(1180px, calc(100% - 56px)); min-height: 410px; margin: 0 auto; overflow: hidden; border: 1px solid #dcd7fa; background: #fff; box-shadow: 0 12px 30px rgba(64,48,135,.08); }
body.wrt-home .home-page .hero-portal .hero-background-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.wrt-home .home-page .hero-portal-main { position: relative; z-index: 1; min-width: 0; min-height: 410px; overflow: hidden; background-color: #5c3be1; background-image: linear-gradient(90deg, rgba(45,20,130,.74), rgba(91,55,224,.34)), var(--hero-image, none); background-position: center; background-size: cover; color: #fff; }
body.wrt-home .home-page .hero-portal-main::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 44px 44px; }
body.wrt-home .home-page .hero-portal-main.is-video { background: transparent; }
body.wrt-home .home-page .hero-portal-copy { position: relative; z-index: 2; max-width: 660px; padding: 74px 42px 60px; }
body.wrt-home .home-page .hero-portal-copy .eyebrow { display: inline-flex; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); font-size: 11px; }
body.wrt-home .home-page .hero-portal-copy h1 { margin: 20px 0 12px; color: #fff; font-size: 42px; line-height: 1.18; letter-spacing: 0; text-shadow: 0 2px 16px rgba(30,15,80,.18); }
body.wrt-home .home-page .hero-portal-copy p { max-width: 560px; margin: 0 0 24px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.8; }
body.wrt-home .home-page .hero-portal-copy .hero-search { max-width: 570px; }
body.wrt-home .home-page .hero-portal-copy .hero-search-field { display: flex; align-items: center; gap: 10px; padding: 6px 7px 6px 15px; border: 1px solid rgba(255,255,255,.46); background: #fff; color: #8c91a6; }
body.wrt-home .home-page .hero-portal-copy .hero-search-field input { width: 100%; min-width: 0; height: 40px; padding: 0; border: 0; outline: 0; color: var(--ink); font-size: 13px; }
body.wrt-home .home-page .hero-portal-copy .hero-search-field .btn { min-width: 70px; height: 40px; padding: 7px 14px; background: var(--primary); color: #fff; }
body.wrt-home .home-page .hero-portal-copy .hero-hot-search { justify-content: flex-start; margin-top: 13px; font-size: 11px; }
body.wrt-home .home-page .hero-portal-side { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; padding: 18px; background: #fff; color: var(--ink); }
body.wrt-home .home-page .hero-portal-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
body.wrt-home .home-page .hero-portal-stats > span { display: block; padding: 10px 5px; background: #f7f5ff; text-align: center; }
body.wrt-home .home-page .hero-portal-stats strong, body.wrt-home .home-page .hero-portal-stats small { display: block; }
body.wrt-home .home-page .hero-portal-stats strong { color: var(--primary); font-size: 16px; line-height: 1.2; }
body.wrt-home .home-page .hero-portal-stats small { margin-top: 3px; color: #8a8da1; font-size: 9px; }
body.wrt-home .home-page .hero-portal-ranking { min-height: 0; border-top: 1px solid var(--line); }
body.wrt-home .home-page .hero-portal-ranking-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 0 10px; }
body.wrt-home .home-page .hero-portal-ranking-head strong { font-size: 14px; }
body.wrt-home .home-page .hero-portal-ranking-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 10px; text-decoration: none; }
body.wrt-home .home-page .hero-portal-rank-row { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 0; border-top: 1px solid #f0eef7; color: var(--ink); text-decoration: none; }
body.wrt-home .home-page .hero-portal-rank-row > b { width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 17px; background: var(--primary); color: #fff; font-size: 9px; font-weight: 700; }
body.wrt-home .home-page .hero-portal-rank-thumb { width: 38px; height: 27px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; overflow: hidden; background: #f1eeff; color: var(--resource-color, var(--primary)); }
body.wrt-home .home-page .hero-portal-rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.wrt-home .home-page .hero-portal-rank-copy { min-width: 0; flex: 1; }
body.wrt-home .home-page .hero-portal-rank-copy strong, body.wrt-home .home-page .hero-portal-rank-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.wrt-home .home-page .hero-portal-rank-copy strong { font-size: 11px; }
body.wrt-home .home-page .hero-portal-rank-copy small { margin-top: 2px; color: #9a9cad; font-size: 9px; }
body.wrt-home .home-page .hero-portal-rank-row > svg { flex: 0 0 auto; color: #a2a0b4; }
body.wrt-home .home-page .hero-portal-empty { margin: 10px 0; color: var(--muted); font-size: 12px; }

/* Reference-style three-column horizontal resource rows. */
body.wrt-home .home-page .resource-grid.is-list, body.wrt-resources .resource-grid.is-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card, body.wrt-resources .resource-grid.is-list .resource-card { display: flex; align-items: center; min-height: 84px; transform: none; border-color: #e5e3ef; box-shadow: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-card:hover, body.wrt-resources .resource-grid.is-list .resource-card:hover { transform: translateY(-2px); border-color: #c7bff7; box-shadow: 0 8px 18px rgba(101,71,232,.1); }
body.wrt-home .home-page .resource-grid.is-list .resource-card-image, body.wrt-resources .resource-grid.is-list .resource-card-image { display: flex; width: 100px; height: 64px; min-height: 64px; flex: 0 0 100px; aspect-ratio: 16 / 9; margin: 10px 0 10px 10px; }
body.wrt-home .home-page .resource-grid.is-list .resource-list-icon, body.wrt-resources .resource-grid.is-list .resource-list-icon { display: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-content, body.wrt-resources .resource-grid.is-list .resource-card-content { display: block; min-width: 0; padding: 11px 12px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-title, body.wrt-resources .resource-grid.is-list .resource-card-title { margin-bottom: 0; font-size: 13px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-desc, body.wrt-resources .resource-grid.is-list .resource-card-desc { display: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-footer, body.wrt-resources .resource-grid.is-list .resource-card-footer { display: flex; align-items: center; margin-top: 7px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-meta, body.wrt-resources .resource-grid.is-list .resource-card-meta { font-size: 10px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-footer .btn, body.wrt-resources .resource-grid.is-list .resource-card-footer .btn { min-height: 30px; padding: 6px 10px; background: var(--primary); font-size: 11px; }

body.wrt-home .home-page .hero-portal + .hero-quick-links { width: min(1180px, calc(100% - 56px)); margin: 14px auto 0; }
@media (max-width: 980px) {
    body.wrt-home .home-page .hero-portal { grid-template-columns: minmax(0, 1fr) 310px; }
    body.wrt-home .home-page .hero-portal-copy { padding: 58px 30px 45px; }
    body.wrt-home .home-page .hero-portal-copy h1 { font-size: 34px; }
    body.wrt-home .home-page .resource-grid.is-list, body.wrt-resources .resource-grid.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    body.wrt-home .main-content { padding-top: 0; }
    body.wrt-home .site-header, body.wrt-home .site-header.scrolled { height: 64px; }
    body.wrt-home .home-page .hero-portal { display: block; width: calc(100% - 32px); min-height: 0; margin-top: 16px; }
    body.wrt-home .home-page .hero-portal-main { min-height: 430px; }
    body.wrt-home .home-page .hero-portal-copy { padding: 56px 20px 42px; }
    body.wrt-home .home-page .hero-portal-copy h1 { font-size: 30px; }
    body.wrt-home .home-page .hero-portal-copy p { font-size: 13px; }
    body.wrt-home .home-page .hero-portal-side { padding: 14px; }
    body.wrt-home .home-page .hero-portal + .hero-quick-links { width: calc(100% - 32px); margin-top: 12px; }
    body.wrt-home .home-page .resource-grid.is-list, body.wrt-resources .resource-grid.is-list { grid-template-columns: 1fr; }
    body.wrt-home .home-page .resource-grid.is-list .resource-card-image, body.wrt-resources .resource-grid.is-list .resource-card-image { width: 90px; flex-basis: 90px; }
}
/* Resource detail page: dense portal layout inspired by the reference page. */
.resource-single-page { padding-top: 24px; }
.resource-single-page .container { max-width: 1180px; }
.resource-single-page .single-breadcrumb { padding: 0 0 18px; gap: 9px; }
.resource-single-page .single-breadcrumb a { color: var(--muted); }
.resource-single-page .single-breadcrumb a:hover { color: var(--primary); }
.resource-single-page .single-breadcrumb span:last-child { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }

.resource-detail-head { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 34px; padding: 22px; border: 1px solid #e2dff0; background: #fff; box-shadow: 0 12px 30px rgba(58, 43, 127, .06); }
.resource-detail-media { min-width: 0; }
.resource-detail-media-main { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #e4e1f0; background: #f6f5fa; }
.resource-detail-media-main::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(101,71,232,.08), transparent 42%, rgba(101,71,232,.03)); }
.resource-detail-media-main > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.resource-detail-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #f8f7fc; color: var(--resource-color, var(--primary)); }
.resource-detail-placeholder.has-icon { background: linear-gradient(135deg, #f6f3ff, #fff); }
.resource-detail-placeholder svg { width: 76px; height: 76px; }
.resource-detail-media-strip { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.resource-detail-thumb { display: flex; align-items: center; justify-content: center; width: 74px; height: 48px; overflow: hidden; border: 1px solid #e1ddf2; background: #faf9ff; color: var(--primary); }
.resource-detail-thumb.is-active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.resource-detail-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.resource-detail-thumb svg { width: 22px; height: 22px; }
.resource-detail-thumb-empty { width: 24px; height: 24px; background: #f0eef8; }
.resource-detail-media-caption { color: var(--subtle); font-size: 12px; }

.resource-detail-summary { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 10px 10px 10px 0; }
.resource-detail-label-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.resource-detail-label { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; background: #f0edff; color: var(--primary); font-size: 11px; font-weight: 700; }
.resource-detail-status { color: #159b77; font-size: 11px; }
.resource-detail-summary h1 { margin: 18px 0 12px; color: #211844; font-size: 38px; line-height: 1.2; letter-spacing: 0; word-break: break-word; }
.resource-detail-excerpt { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.resource-detail-summary-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 23px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.resource-detail-summary-meta span { display: inline-flex; align-items: center; gap: 6px; }
.resource-detail-summary-meta svg { color: var(--primary); }
.resource-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.resource-detail-tags span { padding: 5px 9px; border: 1px solid #e5e2f0; color: var(--muted); font-size: 11px; }

.resource-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.resource-fact-panel { border: 1px solid #e2dff0; background: #fff; }
.resource-fact-heading { display: flex; align-items: center; gap: 10px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.resource-fact-heading h2 { margin: 0; color: #211844; font-size: 16px; }
.resource-fact-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #f0edff; color: var(--primary); }
.resource-fact-mark.is-light { background: #edf6ff; color: #407ac9; }
.resource-fact-list { margin: 0; padding: 3px 19px 7px; }
.resource-fact-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #f0eef6; }
.resource-fact-list > div:last-child { border-bottom: 0; }
.resource-fact-list dt { color: var(--muted); font-size: 12px; }
.resource-fact-list dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 650; text-align: right; }

.resource-download-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 34px; align-items: center; margin-top: 18px; padding: 26px 28px; background: #24194d; color: #fff; }
.resource-download-kicker { display: block; color: #b8aaff; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.resource-download-copy h2 { margin: 8px 0 5px; color: #fff; font-size: 24px; line-height: 1.25; }
.resource-download-copy p { margin: 0; color: rgba(255,255,255,.66); font-size: 12px; }
.resource-download-trust { display: grid; grid-template-columns: repeat(2, minmax(96px, 1fr)); gap: 8px 18px; color: rgba(255,255,255,.72); font-size: 11px; }
.resource-download-trust span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.resource-download-trust svg { color: #b9aaff; }
.resource-download-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); }
.resource-download-actions .btn { min-width: 166px; min-height: 44px; background: #7658f0; box-shadow: 0 8px 18px rgba(12, 6, 40, .22); }
.resource-download-actions .btn:hover { background: #876df5; }
.resource-download-note { color: rgba(255,255,255,.55); font-size: 11px; }

.resource-detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; margin-top: 18px; }
.resource-detail-article, .resource-detail-aside { border: 1px solid #e2dff0; background: #fff; }
.resource-detail-article { min-width: 0; padding: 28px 30px 34px; }
.resource-detail-article h2 { margin: 0 0 20px; color: #211844; font-size: 23px; }
.resource-detail-article .entry-content { color: #4f5870; font-size: 14px; line-height: 1.95; }
.resource-detail-article .entry-content > :first-child { margin-top: 0; }
.resource-detail-article .entry-content > :last-child { margin-bottom: 0; }
.resource-detail-article .entry-content h2, .resource-detail-article .entry-content h3, .resource-detail-article .entry-content h4 { margin: 26px 0 9px; color: #211844; line-height: 1.35; }
.resource-detail-article .entry-content img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.resource-detail-article .entry-content a { color: var(--primary); }
.resource-detail-article .entry-content blockquote { margin: 20px 0; padding: 13px 16px; border-left: 3px solid var(--primary); background: #f7f5ff; color: var(--muted); }
.resource-detail-aside { padding: 23px 21px; }
.resource-aside-heading { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.resource-aside-heading .section-kicker { margin-bottom: 4px; }
.resource-aside-heading h2 { margin: 0; color: #211844; font-size: 18px; }
.resource-aside-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f0eef6; }
.resource-aside-row:last-child { border-bottom: 0; }
.resource-aside-row span { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.resource-aside-row strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 12px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.resource-aside-row strong.is-safe { color: #159b77; }
.resource-detail-disclaimer { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 14px 16px; border-left: 3px solid #d7d0f8; background: #f8f7fc; color: var(--muted); }
.resource-detail-disclaimer svg { flex: 0 0 auto; margin-top: 3px; color: var(--primary); }
.resource-detail-disclaimer p { margin: 0; font-size: 11px; line-height: 1.8; }
.resource-detail-disclaimer strong { color: var(--ink); }

@media (max-width: 900px) {
    .resource-detail-head { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 22px; }
    .resource-detail-summary h1 { font-size: 32px; }
    .resource-download-panel { grid-template-columns: 1fr; gap: 17px; }
    .resource-download-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .resource-detail-body { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 680px) {
    .resource-single-page { padding-top: 16px; }
    .resource-single-page .container { width: calc(100% - 32px); }
    .resource-detail-head, .resource-detail-facts, .resource-detail-body { grid-template-columns: 1fr; }
    .resource-detail-head { gap: 22px; padding: 14px; }
    .resource-detail-summary { padding: 0; }
    .resource-detail-summary h1 { margin-top: 14px; font-size: 28px; }
    .resource-detail-summary-meta { gap: 9px 14px; }
    .resource-fact-list { padding-right: 15px; padding-left: 15px; }
    .resource-fact-heading { padding-right: 15px; padding-left: 15px; }
    .resource-download-panel { padding: 22px 18px; }
    .resource-download-copy h2 { font-size: 21px; }
    .resource-download-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resource-download-actions { align-items: flex-start; flex-direction: column; }
    .resource-download-actions .btn { width: 100%; }
    .resource-detail-article { padding: 23px 18px 27px; }
    .resource-detail-aside { padding: 20px 17px; }
}

/* Homepage repair: no gap under the white navigation and a consistent purple portal palette. */
body.wrt-home { background-color: #f7f5ff; }
body.wrt-home .main-content { padding-top: 0; }
body.wrt-home .home-page .hero-directory { background-color: #2c1a76; background-image: linear-gradient(180deg, rgba(35,18,96,.38) 0%, rgba(35,18,96,.22) 42%, rgba(18,10,52,.78) 100%), var(--hero-image, none); }
body.wrt-home .home-page .hero-directory::after { background: linear-gradient(90deg, rgba(48,23,129,.28), transparent 50%, rgba(27,14,84,.24)); }
body.wrt-home .home-page .hero-directory.is-video { background-image: linear-gradient(180deg, rgba(35,18,96,.42) 0%, rgba(35,18,96,.25) 42%, rgba(18,10,52,.78) 100%); }
body.wrt-home .home-page .hero-directory .hero-search-field .btn { min-width: 104px; white-space: nowrap; }

/* The portal must fill its frame. The generic .hero rule previously left a large white inset. */
body.wrt-home .home-page .hero-portal { padding: 0; }
body.wrt-home .home-page .hero-portal-ranking { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
body.wrt-home .home-page .hero-portal-ranking-head { grid-column: 1 / -1; }
body.wrt-home .home-page .hero-portal-rank-row { display: grid; grid-template-columns: 17px 38px minmax(0, 1fr) 13px; gap: 7px; align-items: center; min-width: 0; }
body.wrt-home .home-page .hero-portal-rank-copy { min-width: 0; }

/* Stable list mode: thumbnail, text, and action keep their own columns at every width. */
body.wrt-home .home-page .resource-grid.is-list,
body.wrt-resources .resource-grid.is-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card,
body.wrt-resources .resource-grid.is-list .resource-card { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: stretch; min-height: 96px; transform: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-card:hover,
body.wrt-resources .resource-grid.is-list .resource-card:hover { transform: translateY(-2px); }
body.wrt-home .home-page .resource-grid.is-list .resource-card-image,
body.wrt-resources .resource-grid.is-list .resource-card-image { grid-column: 1; grid-row: 1 / span 2; display: flex; width: 100px; height: 64px; min-height: 64px; margin: auto 0 auto 10px; aspect-ratio: 16 / 9; }
body.wrt-home .home-page .resource-grid.is-list .resource-list-icon,
body.wrt-resources .resource-grid.is-list .resource-list-icon { display: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-content,
body.wrt-resources .resource-grid.is-list .resource-card-content { display: contents; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-title,
body.wrt-resources .resource-grid.is-list .resource-card-title { grid-column: 2 / -1; grid-row: 1; align-self: end; min-width: 0; margin: 0; padding: 14px 12px 0; font-size: 13px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-desc,
body.wrt-resources .resource-grid.is-list .resource-card-desc { display: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-footer,
body.wrt-resources .resource-grid.is-list .resource-card-footer { grid-column: 2 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; margin: 0; padding: 7px 12px 13px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-footer .btn,
body.wrt-resources .resource-grid.is-list .resource-card-footer .btn { min-height: 30px; margin-left: auto; padding: 6px 10px; background: var(--primary); font-size: 11px; white-space: nowrap; }

@media (max-width: 980px) {
    body.wrt-home .home-page .resource-grid.is-list,
    body.wrt-resources .resource-grid.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    body.wrt-home .home-page .hero-portal-ranking { grid-template-columns: 1fr; }
    body.wrt-home .home-page .resource-grid.is-list,
    body.wrt-resources .resource-grid.is-list { grid-template-columns: 1fr; }
    body.wrt-home .home-page .resource-grid.is-list .resource-card-image,
    body.wrt-resources .resource-grid.is-list .resource-card-image { width: 90px; }
}

/* List mode: one stable row with cover, details, and action columns. */
body.wrt-home .home-page .resource-grid.is-list,
body.wrt-resources .resource-grid.is-list { display: flex; flex-direction: column; gap: 10px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card,
body.wrt-resources .resource-grid.is-list .resource-card { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; width: 100%; min-height: 86px; overflow: hidden; border-radius: 0; transform: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-card:hover,
body.wrt-resources .resource-grid.is-list .resource-card:hover { transform: translateY(-1px); }
body.wrt-home .home-page .resource-grid.is-list .resource-card-image,
body.wrt-resources .resource-grid.is-list .resource-card-image { grid-column: 1; grid-row: 1 / span 2; display: flex; align-self: stretch; width: 100px; height: auto; min-height: 60px; margin: 12px 0 12px 12px; aspect-ratio: 16 / 9; border-radius: 0; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-image .resource-category-label,
body.wrt-resources .resource-grid.is-list .resource-card-image .resource-category-label { display: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-list-icon,
body.wrt-resources .resource-grid.is-list .resource-list-icon { display: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-content,
body.wrt-resources .resource-grid.is-list .resource-card-content { display: contents; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-title,
body.wrt-resources .resource-grid.is-list .resource-card-title { grid-column: 2; grid-row: 1; align-self: end; min-width: 0; margin: 0; padding: 13px 16px 4px; color: var(--ink); font-size: 15px; line-height: 1.35; text-align: left; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-desc,
body.wrt-resources .resource-grid.is-list .resource-card-desc { display: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-list-meta,
body.wrt-resources .resource-grid.is-list .resource-card-list-meta { grid-column: 2; grid-row: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 0; min-width: 0; padding: 4px 16px 13px; color: #8a93a5; font-size: 11px; line-height: 1.4; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-list-meta > span,
body.wrt-resources .resource-grid.is-list .resource-card-list-meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-list-meta > span + span,
body.wrt-resources .resource-grid.is-list .resource-card-list-meta > span + span { margin-left: 16px; }
body.wrt-home .home-page .resource-grid.is-list .resource-category-inline,
body.wrt-resources .resource-grid.is-list .resource-category-inline { padding: 3px 9px; border: 1px solid #ded7ff; background: #f6f3ff; color: var(--primary); }
body.wrt-home .home-page .resource-grid.is-list .resource-card-footer,
body.wrt-resources .resource-grid.is-list .resource-card-footer { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: flex-end; min-width: 0; margin: 0; padding: 12px 12px 12px 8px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-meta,
body.wrt-resources .resource-grid.is-list .resource-card-meta { display: none; }
body.wrt-home .home-page .resource-grid.is-list .resource-card-footer .btn,
body.wrt-resources .resource-grid.is-list .resource-card-footer .btn { min-width: 74px; min-height: 38px; margin: 0; padding: 8px 14px; border-radius: 0; background: var(--primary); font-size: 12px; line-height: 1; white-space: nowrap; }

@media (max-width: 680px) {
    body.wrt-home .home-page .resource-grid.is-list .resource-card,
    body.wrt-resources .resource-grid.is-list .resource-card { grid-template-columns: 88px minmax(0, 1fr) auto; min-height: 78px; }
    body.wrt-home .home-page .resource-grid.is-list .resource-card-image,
    body.wrt-resources .resource-grid.is-list .resource-card-image { width: 78px; min-height: 48px; margin: 10px 0 10px 10px; }
    body.wrt-home .home-page .resource-grid.is-list .resource-card-title,
    body.wrt-resources .resource-grid.is-list .resource-card-title { padding: 10px 8px 3px; font-size: 13px; }
    body.wrt-home .home-page .resource-grid.is-list .resource-card-list-meta,
    body.wrt-resources .resource-grid.is-list .resource-card-list-meta { gap: 4px 10px; padding: 3px 8px 10px; font-size: 10px; }
    body.wrt-home .home-page .resource-grid.is-list .resource-card-list-meta > span + span,
    body.wrt-resources .resource-grid.is-list .resource-card-list-meta > span + span { margin-left: 0; }
    body.wrt-home .home-page .resource-grid.is-list .resource-card-footer,
    body.wrt-resources .resource-grid.is-list .resource-card-footer { padding: 10px 8px 10px 4px; }
    body.wrt-home .home-page .resource-grid.is-list .resource-card-footer .btn,
    body.wrt-resources .resource-grid.is-list .resource-card-footer .btn { min-width: 62px; min-height: 34px; padding: 7px 9px; font-size: 11px; }
}

/* Shared placeholder artwork for posts without a cover image. */
.resource-card-image.is-placeholder { background: #f4f4f4; }
.resource-card-cover.is-placeholder { object-fit: contain; background: #f4f4f4; }
.resource-detail-placeholder:not(.has-icon) { background-color: #f8f7fc; background-image: url("assets/images/resource-placeholder.svg"); background-position: center; background-repeat: no-repeat; background-size: contain; }
.resource-detail-thumb-empty { background-color: #f0eef8; background-image: url("assets/images/resource-placeholder.svg"); background-position: center; background-repeat: no-repeat; background-size: contain; }

/* Homepage latest resources: keep list cards compact and arrange three per row. */
body.wrt-home .home-page .resource-grid.is-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.wrt-home .home-page .resource-grid.is-list .resource-card { min-width: 0; }
@media (max-width: 980px) {
    body.wrt-home .home-page .resource-grid.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    body.wrt-home .home-page .resource-grid.is-list { grid-template-columns: 1fr; }
}

/* Hero status numbers inherit an accent from the selected global background preset. */
body.wrt-home .home-page .hero-status strong { color: var(--hero-status-accent, #d9cbff); }
body.wrt-custom-background { --hero-status-accent: #d9cbff; }
body.wrt-gradient-background { --hero-status-accent: #bfdfff; }
body.wrt-gradient-blue-purple { --hero-status-accent: #b8d8ff; }
body.wrt-gradient-sky-mist { --hero-status-accent: #9fd7ff; }
body.wrt-gradient-mint-blue { --hero-status-accent: #9de8d5; }
body.wrt-gradient-peach-lilac { --hero-status-accent: #f4c1d8; }
body.wrt-gradient-gray-blue { --hero-status-accent: #c4d6e9; }
body.wrt-gradient-seafoam-lilac { --hero-status-accent: #a8e2dc; }
body.wrt-gradient-aurora-mint { --hero-status-accent: #a8e8c7; }
body.wrt-gradient-lavender-haze { --hero-status-accent: #d9c8ff; }
body.wrt-gradient-sunrise-peach { --hero-status-accent: #ffd0b0; }
body.wrt-gradient-cream-champagne { --hero-status-accent: #ffe5a6; }
body.wrt-gradient-ocean-sky { --hero-status-accent: #a6d8ff; }
body.wrt-gradient-rose-ivory { --hero-status-accent: #ffc5d4; }
body.wrt-gradient-forest-fog { --hero-status-accent: #b6dfc3; }
body.wrt-gradient-citrus-cream { --hero-status-accent: #f4e39a; }
body.wrt-gradient-blue-steel { --hero-status-accent: #b8d0e6; }
body.wrt-gradient-coral-lilac { --hero-status-accent: #ffc1b3; }
body.wrt-gradient-aqua-pearl { --hero-status-accent: #9ee5df; }
body.wrt-gradient-plum-mist { --hero-status-accent: #d7c4f3; }
body.wrt-gradient-sand-sky { --hero-status-accent: #ffdb9e; }
body.wrt-gradient-rosewood-blush { --hero-status-accent: #eac4c8; }
body.wrt-gradient-lemon-lavender { --hero-status-accent: #eee39d; }
body.wrt-gradient-glacier-mint { --hero-status-accent: #a9e1ed; }
body.wrt-gradient-morning-sage { --hero-status-accent: #c1dfc0; }
body.wrt-gradient-blue-rose { --hero-status-accent: #b9d3ff; }
body.wrt-gradient-apricot-sky { --hero-status-accent: #ffd0a0; }
