:root {
    --ink: #0b1734;
    --ink-soft: #465876;
    --muted: #6b7b96;
    --line: #dce7f7;
    --line-strong: #bfd3f0;
    --surface: #ffffff;
    --surface-soft: #f6f9fe;
    --blue: #175cd3;
    --blue-dark: #0e3f9d;
    --blue-deep: #092a69;
    --blue-soft: #edf5ff;
    --cyan: #1ba7e1;
    --green: #079455;
    --red: #d92d20;
    --shadow-sm: 0 8px 24px rgba(28, 52, 91, .07);
    --shadow-md: 0 18px 45px rgba(21, 47, 89, .10);
    --shadow-lg: 0 30px 70px rgba(16, 42, 86, .14);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --container: min(1460px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 5% 0%, rgba(37, 99, 235, .09), transparent 28rem),
        radial-gradient(circle at 98% 12%, rgba(14, 165, 233, .08), transparent 28rem),
        linear-gradient(180deg, #f8fbff 0, #f3f7fd 58%, #f7f9fc 100%);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
button, input, select { font: inherit; }
a { color: inherit; }
svg { display: block; }

.skip-link {
    position: fixed;
    left: 16px;
    top: -70px;
    z-index: 99999;
    padding: 11px 16px;
    color: #fff;
    background: var(--blue-dark);
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-shell { width: var(--container); margin: 14px auto 34px; }
.site-header {
    position: sticky;
    top: 12px;
    z-index: 1000;
    border: 1px solid rgba(191, 211, 240, .86);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 15px 38px rgba(21, 47, 89, .13);
}
.header-inner {
    min-height: 82px;
    padding: 10px 14px 10px 16px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}
.brand-logos { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.brand-logos img { width: 48px; height: 48px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-kicker {
    color: #657796;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
    line-height: 1.2;
}
.brand-copy strong {
    margin-top: 2px;
    color: var(--blue-deep);
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -.03em;
    white-space: nowrap;
}
.brand-copy > span:last-child { margin-top: 2px; color: #7786a0; font-size: 11px; font-weight: 700; }
.desktop-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    color: #536783;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--blue-dark); background: #f2f7ff; }
.nav-link.is-active { color: var(--blue); }
.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 99px;
    background: var(--blue);
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.request-link, .account-button, .primary-button, .secondary-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.request-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #25436f;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.request-link:hover { transform: translateY(-1px); border-color: #a9c6ee; box-shadow: 0 8px 20px rgba(23, 92, 211, .10); }
.request-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.request-link b { min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; border-radius: 99px; color: #fff; background: var(--blue); font-size: 10px; }
.account-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    border: 1px solid #bfd5f6;
    border-radius: 13px;
    background: #f4f8ff;
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}
.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #2773e8, #0e4aaa); }
.account-text { max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.primary-button, .secondary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border-radius: 13px;
    border: 0;
    cursor: pointer;
    font-weight: 850;
    font-size: 13px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button { color: #fff; background: linear-gradient(135deg, #236ce0 0%, #1555c2 58%, #0e439e 100%); box-shadow: 0 10px 22px rgba(23, 92, 211, .20); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23, 92, 211, .28); }
.primary-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.primary-button:hover svg { transform: translateX(2px); }
.primary-button.compact { min-height: 42px; padding: 0 15px; }
.primary-button.full { width: 100%; }
.secondary-button { color: var(--blue-dark); background: #eef5ff; border: 1px solid #c7dcfa; }
.secondary-button:hover { transform: translateY(-1px); background: #e5f0ff; box-shadow: 0 9px 20px rgba(23, 92, 211, .10); }
.menu-button { width: 42px; height: 42px; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.menu-button span { width: 18px; height: 2px; border-radius: 99px; background: #315276; }
.mobile-menu { display: none; }

main { margin-top: 18px; }
.flash-banner {
    width: min(900px, 100%);
    margin: 0 auto 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 750;
    box-shadow: var(--shadow-sm);
}
.flash-banner.is-success { color: #05603a; background: #ecfdf3; border: 1px solid #a9efc5; }
.flash-banner.is-error { color: #a92a21; background: #fff1f0; border: 1px solid #ffc7c2; }
.flash-banner button { border: 0; background: transparent; color: currentColor; font-size: 20px; cursor: pointer; }

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 38px 38px 0;
    border: 1px solid rgba(191, 211, 240, .92);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(247,251,255,.98) 50%, rgba(238,246,255,.98) 100%);
    box-shadow: var(--shadow-md);
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image: linear-gradient(rgba(31, 94, 187, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 94, 187, .05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to right, transparent, #000 50%, #000);
    pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 999px; filter: blur(4px); pointer-events: none; }
.hero-glow-one { width: 460px; height: 460px; right: -90px; top: -210px; background: radial-gradient(circle, rgba(29, 112, 235, .18), transparent 67%); }
.hero-glow-two { width: 330px; height: 330px; left: 23%; bottom: -250px; background: radial-gradient(circle, rgba(27, 167, 225, .14), transparent 65%); }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); gap: 46px; align-items: center; }
.hero-copy { padding: 6px 0 25px; }
.eyebrow-pill, .section-kicker {
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.eyebrow-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid #c4d9f7;
    border-radius: 999px;
    background: rgba(239, 246, 255, .86);
}
.eyebrow-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hero-copy h1 { margin: 14px 0 0; max-width: 700px; font-size: clamp(34px, 4vw, 58px); line-height: .99; letter-spacing: -.055em; font-weight: 900; }
.hero-copy h1 span { color: var(--blue); }
.hero-copy p { max-width: 680px; margin: 16px 0 0; color: #53647e; font-size: 15px; line-height: 1.72; }
.hero-shortcuts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.hero-shortcuts a { color: #264a76; font-size: 12px; font-weight: 850; text-decoration: none; }
.hero-shortcuts a span { display: inline-block; margin-left: 3px; color: var(--blue); transition: transform .2s ease; }
.hero-shortcuts a:hover span { transform: translateX(3px); }

.hero-search-card {
    --spot-x: 50%; --spot-y: 50%;
    position: relative;
    padding: 21px;
    border: 1px solid #cbdcf3;
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 42px rgba(25, 61, 116, .10);
    backdrop-filter: blur(15px);
}
.hero-search-card::before, [data-spotlight]::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(450px circle at var(--spot-x) var(--spot-y), rgba(75, 141, 241, .09), transparent 45%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 0;
}
.hero-search-card:hover::before, [data-spotlight]:hover::before { opacity: 1; }
.hero-search-card > * { position: relative; z-index: 1; }
.search-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.search-card-head > div { display: flex; flex-direction: column; gap: 2px; }
.search-card-head span:first-child { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.search-card-head strong { font-size: 19px; letter-spacing: -.02em; }
.search-orb { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #2b75e7, #1aa7df); box-shadow: 0 12px 22px rgba(27, 112, 215, .20); }
.search-orb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-input-wrap { min-height: 53px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 15px; border: 1px solid #bfd1e8; border-radius: 15px; background: #fbfdff; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.search-input-wrap:focus-within { border-color: #74a7ef; background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
.search-input-wrap > svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: #527095; stroke-width: 1.8; stroke-linecap: round; }
.search-input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-input-wrap input::placeholder { color: #91a0b7; }
.clear-search { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #6b7c95; background: #edf2f9; font-size: 18px; text-decoration: none; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.filter-grid label { display: flex; flex-direction: column; gap: 5px; }
.filter-grid label > span { color: #6a7a91; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.filter-grid select { width: 100%; min-width: 0; height: 42px; padding: 0 31px 0 10px; border: 1px solid #d3dfef; border-radius: 11px; outline: 0; color: #304865; background: #f8fbff; font-size: 11px; font-weight: 700; }
.filter-grid select:focus { border-color: #7faef0; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.search-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.search-help, .text-button { color: #7b899e; font-size: 10px; font-weight: 700; }
.text-button { color: var(--blue); text-decoration: none; }

.stat-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 26px -38px 0;
    border-top: 1px solid #d9e5f5;
    background: rgba(248, 251, 255, .74);
}
.stat-card { min-height: 84px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 24px; border-right: 1px solid #d9e5f5; }
.stat-card:last-child { border-right: 0; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: #eaf3ff; }
.stat-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat-card div { display: flex; flex-direction: column; }
.stat-card strong { font-size: 21px; line-height: 1; letter-spacing: -.03em; }
.stat-card span:last-child { margin-top: 4px; color: #6e7d94; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }

.content-section { margin-top: 18px; padding: 28px; border: 1px solid rgba(194, 211, 236, .88); border-radius: 28px; background: rgba(255, 255, 255, .90); box-shadow: var(--shadow-sm); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 5px 0 0; font-size: 27px; line-height: 1.1; letter-spacing: -.04em; }
.section-heading p { max-width: 780px; margin: 7px 0 0; color: #697a93; font-size: 13px; line-height: 1.55; }
.count-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #c7dcfa; border-radius: 10px; color: var(--blue); background: #eef5ff; font-size: 11px; font-weight: 850; }

.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hub-card {
    --spot-x: 50%; --spot-y: 50%;
    position: relative;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    min-height: 244px;
    overflow: hidden;
    border: 1px solid #d8e4f3;
    border-radius: 22px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(27, 53, 94, .06);
    transform-style: preserve-3d;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.hub-card:hover { border-color: #a8c6ef; box-shadow: 0 22px 42px rgba(23, 54, 102, .13); }
.hub-image-wrap { position: relative; overflow: hidden; min-height: 244px; background: #eaf2fc; z-index: 1; }
.hub-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.hub-card:hover .hub-image-wrap img { transform: scale(1.055); filter: saturate(1.04); }
.hub-image-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,33,74,.02) 45%, rgba(6,28,67,.25) 100%); }
.hub-type-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; background: rgba(11, 57, 121, .72); backdrop-filter: blur(9px); font-size: 9px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.hub-type-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hub-body { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 19px; }
.hub-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hub-title-row > span:first-child { min-width: 0; }
.hub-title-row strong { display: block; font-size: 20px; line-height: 1.15; letter-spacing: -.03em; }
.hub-title-row small { display: flex; align-items: flex-start; gap: 5px; margin-top: 7px; color: #718199; font-size: 11px; line-height: 1.45; }
.hub-title-row small svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: #6385ad; stroke-width: 1.7; }
.hub-arrow { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #c7dbf7; border-radius: 11px; color: var(--blue); background: #f1f6fd; font-size: 15px; transition: color .2s ease, background .2s ease, transform .25s ease; }
.hub-card:hover .hub-arrow { color: #fff; background: var(--blue); transform: translate(2px, -2px); }
.hub-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 18px; }
.hub-metrics > span { padding: 10px; border: 1px solid #e0e9f5; border-radius: 12px; background: #f8fbff; }
.hub-metrics b { display: block; font-size: 16px; line-height: 1; }
.hub-metrics small { display: block; margin-top: 5px; color: #7b899e; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.explore-label { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 15px; color: var(--blue); font-size: 11px; font-weight: 850; }
.explore-label span { transition: transform .2s ease; }
.hub-card:hover .explore-label span { transform: translateX(4px); }

.pagination { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #6d7d95; font-size: 11px; font-weight: 750; }
.pagination a { padding: 8px 11px; border: 1px solid #d1dfef; border-radius: 10px; color: var(--blue); background: #fff; text-decoration: none; }

.resource-section { padding-bottom: 30px; }
.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.resource-card {
    --spot-x: 50%; --spot-y: 50%;
    position: relative;
    overflow: hidden;
    border: 1px solid #dce6f2;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(23, 48, 86, .055);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.resource-card:hover { transform: translateY(-4px); border-color: #b4cef1; box-shadow: 0 18px 34px rgba(21, 50, 96, .12); }
.resource-card > * { position: relative; z-index: 1; }
.resource-cover { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #edf3fb; }
.resource-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.resource-card:hover .resource-cover img { transform: scale(1.045); }
.new-badge { position: absolute; top: 10px; left: 10px; padding: 6px 8px; border-radius: 8px; color: #fff; background: #0b8850; box-shadow: 0 7px 14px rgba(7, 148, 85, .22); font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.cover-action { position: absolute; left: 10px; right: 10px; bottom: 10px; min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; color: #fff; background: rgba(7, 31, 70, .72); backdrop-filter: blur(10px); font-size: 9px; font-weight: 850; opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
.resource-card:hover .cover-action { opacity: 1; transform: translateY(0); }
.resource-body { padding: 14px 14px 15px; }
.availability-row { min-height: 20px; display: flex; align-items: center; }
.availability { display: inline-flex; align-items: center; gap: 5px; color: #60718b; font-size: 9px; font-weight: 800; }
.availability i { width: 6px; height: 6px; display: inline-block; border-radius: 99px; background: #98a6b9; }
.availability.available { color: #087443; }
.availability.available i { background: #12a365; box-shadow: 0 0 0 3px rgba(18,163,101,.10); }
.resource-body h3 { margin: 7px 0 0; min-height: 42px; font-size: 14px; line-height: 1.45; letter-spacing: -.015em; }
.resource-body h3 a { text-decoration: none; }
.resource-body h3 a:hover { color: var(--blue); }
.resource-author { margin: 5px 0 0; color: #718199; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.resource-meta span { max-width: 100%; padding: 5px 7px; border-radius: 7px; color: #5d718d; background: #f1f5fa; font-size: 8px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.empty-state { padding: 46px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px dashed #bfd2ec; border-radius: 18px; background: #f8fbff; }
.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 15px; color: var(--blue); background: #eaf3ff; }
.empty-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h3 { margin: 0; font-size: 18px; }
.empty-state p { max-width: 510px; margin: 7px 0 13px; color: #718099; font-size: 12px; line-height: 1.5; }

.site-footer { margin-top: 18px; overflow: hidden; border: 1px solid #c7d8ed; border-radius: 22px; background: linear-gradient(135deg, #0e326f, #0a2553); color: #fff; box-shadow: var(--shadow-md); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px 26px 17px; }
.footer-brand { min-width: 0; }
.footer-brand strong { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.footer-brand p { max-width: 680px; margin: 6px 0 0; color: #c8d7ec; font-size: 11.5px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 18px; }
.footer-links a { color: #dbe8fa; font-size: 10.5px; font-weight: 800; text-decoration: none; transition: color .18s ease, opacity .18s ease; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 26px; border-top: 1px solid rgba(255,255,255,.11); color: #b8c8df; font-size: 9.5px; font-weight: 700; }

.login-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.login-modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(6, 20, 46, .62); backdrop-filter: blur(5px); }
.login-dialog { position: relative; z-index: 1; width: min(430px, 100%); padding: 27px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: #fff; box-shadow: 0 35px 90px rgba(5, 20, 48, .35); animation: modalIn .28s cubic-bezier(.2,.8,.2,1); }
.modal-close { position: absolute; right: 13px; top: 13px; width: 34px; height: 34px; border: 1px solid #d8e3f0; border-radius: 10px; background: #f8fafc; color: #60728d; cursor: pointer; font-size: 20px; }
.login-logo { display: block; width: 72px; height: auto; margin: 0 auto 13px; object-fit: contain; }
.login-kicker { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.login-dialog h2 { margin: 4px 0 0; font-size: 26px; letter-spacing: -.04em; }
.login-dialog > p { margin: 7px 0 18px; color: #75849a; font-size: 11px; line-height: 1.5; }
.login-error { margin-bottom: 13px; padding: 10px 11px; border: 1px solid #ffc7c2; border-radius: 10px; color: #a72a21; background: #fff2f1; font-size: 10px; font-weight: 700; }
.login-form { display: grid; gap: 11px; }
.login-form label { display: grid; gap: 5px; }
.login-form label > span:first-child { color: #52657f; font-size: 10px; font-weight: 800; }
.login-form input { width: 100%; height: 45px; padding: 0 12px; border: 1px solid #cddbeb; border-radius: 11px; outline: 0; color: var(--ink); background: #fbfdff; font-size: 12px; }
.login-form input:focus { border-color: #79a9eb; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 56px; }
.password-field button { position: absolute; right: 6px; top: 6px; height: 33px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--blue); background: #edf4ff; cursor: pointer; font-size: 9px; font-weight: 850; }
.login-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.login-links a { color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }

.ripple-dot { position: absolute; z-index: -1; width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.32); transform: translate(-50%,-50%) scale(0); pointer-events: none; animation: ripple .55s ease-out forwards; }
.secondary-button .ripple-dot, .request-link .ripple-dot, .account-button .ripple-dot { background: rgba(23, 92, 211, .13); }
.reveal { opacity: 0; transform: translateY(13px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-item { opacity: 0; transform: translateY(12px); transition: opacity .45s ease var(--delay, 0ms), transform .45s cubic-bezier(.2,.8,.2,1) var(--delay, 0ms), box-shadow .28s ease, border-color .28s ease; }
.is-visible .reveal-item, .reveal-item.is-visible { opacity: 1; transform: none; }

@keyframes ripple { to { transform: translate(-50%,-50%) scale(16); opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
    .desktop-nav { display: none; }
    .header-actions { margin-left: auto; }
    .hero-content { grid-template-columns: 1fr; gap: 16px; }
    .hero-copy { padding-bottom: 4px; }
    .hero-copy h1 { max-width: 850px; }
    .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    :root { --container: min(100% - 24px, 1460px); }
    .site-shell { margin-top: 9px; }
    .site-header { top: 8px; }
    .header-inner { min-height: 70px; }
    .brand-logos img { width: 40px; height: 40px; }
    .brand-copy strong { font-size: 16px; }
    .request-link span:not(:last-child) { display: none; }
    .menu-button { display: flex; }
    .mobile-menu.is-open { display: grid; gap: 4px; padding: 4px 12px 12px; }
    .mobile-menu a, .mobile-menu button { width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; color: #375371; background: #f5f8fd; text-align: left; font-size: 12px; font-weight: 800; text-decoration: none; }
    .hero-section { padding: 28px 24px 0; }
    .stat-strip { margin-left: -24px; margin-right: -24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-card:nth-child(2) { border-right: 0; }
    .stat-card:nth-child(-n+2) { border-bottom: 1px solid #d9e5f5; }
    .hub-grid { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    html { scroll-padding-top: 90px; }
    .brand-logos img { width: 34px; height: 34px; }
    .brand-logos img + img { display: none; }
    .brand-kicker, .brand-copy > span:last-child { display: none; }
    .brand-copy strong { font-size: 14px; white-space: normal; }
    .request-link { min-width: 40px; padding: 0 9px; }
    .request-link > span { display: none; }
    .request-link b { position: absolute; right: -4px; top: -4px; }
    .account-text { display: none; }
    .account-button { padding-right: 5px; }
    .primary-button.compact { padding: 0 11px; font-size: 11px; }
    .hero-section { padding: 22px 16px 0; border-radius: 23px; }
    .hero-copy h1 { font-size: 35px; }
    .hero-copy p { font-size: 13px; }
    .hero-search-card { padding: 15px; border-radius: 18px; }
    .filter-grid { grid-template-columns: 1fr; }
    .search-actions { align-items: stretch; flex-direction: column-reverse; }
    .search-actions .primary-button { width: 100%; }
    .stat-strip { margin: 20px -16px 0; }
    .stat-card { padding: 13px 10px; justify-content: flex-start; }
    .stat-icon { width: 32px; height: 32px; }
    .stat-card strong { font-size: 18px; }
    .content-section { padding: 18px 14px; border-radius: 22px; }
    .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 15px; }
    .section-heading h2 { font-size: 23px; }
    .hub-card { grid-template-columns: 1fr; }
    .hub-image-wrap { min-height: 190px; aspect-ratio: 16 / 9; }
    .hub-body { padding: 15px; }
    .hub-metrics { margin-top: 14px; }
    .resource-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .resource-body { padding: 10px; }
    .resource-body h3 { font-size: 12px; min-height: 36px; }
    .resource-meta { display: none; }
    .cover-action { display: none; }
    .site-footer { border-radius: 20px; }
    .footer-main { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px 15px; }
    .footer-links { justify-content: flex-start; gap: 8px 14px; }
    .footer-bottom { padding: 9px 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 400px) {
    .resource-grid { grid-template-columns: 1fr; }
    .resource-cover { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
    .reveal, .reveal-item { opacity: 1 !important; transform: none !important; }
}

/* Phase 2 shared refinements */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.primary-button:disabled,
.secondary-button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none !important;
    box-shadow: none !important;
}

/* Phase 3 shared refinements */
.flash-banner.is-warning{color:#8a5200;background:#fff8e6;border:1px solid #f1d38b}.flash-banner.is-info{color:#174d8c;background:#eef6ff;border:1px solid #bfdbfe}.mobile-logout-form{margin:0}.mobile-logout-form button{width:100%;text-align:left;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:inherit}


.desktop-logout-form{margin:0}.header-logout-button{position:relative;overflow:hidden;display:grid;place-items:center;width:40px;height:40px;border:1px solid #d6e2f0;border-radius:12px;background:#fff;color:#60728d;cursor:pointer;transition:transform .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease}.header-logout-button:hover{transform:translateY(-2px);border-color:#b8ccec;color:#175cd3;box-shadow:0 9px 20px rgba(28,78,145,.11)}.header-logout-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}@media(max-width:900px){.desktop-logout-form{display:none}}

/* Phase 6 responsive hardening audit */
@media(max-width:380px){
  :root{--container:min(100% - 14px,1460px)}
  .header-inner{padding-left:9px;padding-right:9px;gap:7px}.brand-lockup{gap:7px}.brand-copy strong{font-size:13px}
  .header-actions{gap:5px}.request-link,.account-button,.primary-button.compact{min-width:38px;min-height:38px}
  .hero-copy h1{font-size:31px}.stat-strip{grid-template-columns:1fr}.stat-card{border-right:0!important;border-bottom:1px solid #d9e5f5}.stat-card:last-child{border-bottom:0}
  .resource-grid{grid-template-columns:1fr}
  .footer-links{display:grid;grid-template-columns:1fr 1fr;width:100%}
}

/* Google borrower authentication */
.google-login-dialog { width:min(480px,100%); }
.borrower-signin-pane { text-align:center; }
.borrower-signin-pane > p { max-width:390px; margin:8px auto 18px; }
.google-signin-button { min-height:50px; width:100%; display:grid; grid-template-columns:34px minmax(0,1fr) 20px; align-items:center; gap:10px; padding:7px 13px; border:1px solid #c7d8ee; border-radius:14px; color:#18375f; background:#fff; box-shadow:0 8px 22px rgba(20,55,105,.08); font-size:12px; font-weight:850; text-decoration:none; text-align:left; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.google-signin-button:hover { transform:translateY(-2px); border-color:#98bcec; box-shadow:0 13px 28px rgba(20,55,105,.12); background:#fbfdff; }
.google-signin-button svg { width:18px; height:18px; fill:none; stroke:#2b68c7; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.google-signin-button.is-disabled { cursor:not-allowed; opacity:.62; transform:none; box-shadow:none; }
.google-mark { width:32px; height:32px; display:grid; place-items:center; border:1px solid #d9e3f0; border-radius:10px; color:#245fbe; background:#f8fbff; font:900 17px/1 Arial,sans-serif; }
.deped-domain-note { margin-top:12px; display:flex; align-items:flex-start; gap:9px; padding:10px 12px; border:1px solid #d8e6f6; border-radius:12px; background:#f7fbff; color:#506781; text-align:left; }
.deped-domain-note > span { width:20px; height:20px; flex:0 0 20px; display:grid; place-items:center; border-radius:99px; color:#087443; background:#e8f8ef; font-weight:900; }
.deped-domain-note strong,.deped-domain-note small { display:block; }
.deped-domain-note strong { color:#24415f; font-size:10px; }
.deped-domain-note small { margin-top:2px; font-size:9px; line-height:1.45; }
.login-setup-note { margin-top:9px; color:#8b5e17; font-size:9.5px; line-height:1.5; }
.staff-login-divider { margin:18px 0 10px; display:flex; align-items:center; gap:10px; color:#8392a8; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.staff-login-divider::before,.staff-login-divider::after { content:""; height:1px; flex:1; background:#e2e9f2; }
.staff-login-toggle { width:100%; min-height:42px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; border:1px solid #d8e3ef; border-radius:12px; color:#516882; background:#f9fbfe; cursor:pointer; font-size:10px; font-weight:850; transition:border-color .18s ease,background .18s ease; }
.staff-login-toggle:hover { border-color:#b8cdea; background:#f4f8fe; }
.staff-login-toggle[aria-expanded="true"] span:last-child { transform:rotate(180deg); }
.staff-login-toggle span:last-child { transition:transform .18s ease; }
.staff-login-panel { max-height:0; overflow:hidden; opacity:0; transition:max-height .24s ease,opacity .2s ease,margin .2s ease; }
.staff-login-panel.is-open { max-height:430px; opacity:1; margin-top:10px; }
.staff-password-form { padding-top:2px; }
.staff-login-note { margin:8px 0 0; color:#8290a4; text-align:center; font-size:9px; }
@media (max-width:480px) { .google-login-dialog { padding:22px 18px; } .google-signin-button { font-size:11px; } }

/* AJAX request-cart feedback */
.request-link b.is-empty,
.mobile-menu [data-cart-mobile-count].is-empty { display:none; }
.request-link.is-cart-updated { animation:requestCartPulse .52s cubic-bezier(.2,.8,.2,1); }
.mobile-menu [data-cart-mobile-link] { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mobile-menu [data-cart-mobile-count] { min-width:21px; height:21px; display:grid; place-items:center; padding:0 6px; border-radius:999px; color:#fff; background:var(--blue); font-size:9px; font-weight:900; }

.request-feedback-modal { position:fixed; inset:0; z-index:10040; display:grid; place-items:center; padding:18px; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s ease,visibility .18s ease; }
.request-feedback-modal.is-open { opacity:1; visibility:visible; pointer-events:auto; }
.request-feedback-backdrop { position:absolute; inset:0; border:0; background:rgba(7,24,53,.38); backdrop-filter:blur(3px); }
.request-feedback-dialog { position:relative; z-index:1; width:min(390px,100%); padding:24px; border:1px solid rgba(255,255,255,.88); border-radius:22px; background:#fff; box-shadow:0 28px 70px rgba(8,30,67,.28); transform:translateY(12px) scale(.985); opacity:0; transition:transform .24s cubic-bezier(.2,.8,.2,1),opacity .2s ease; }
.request-feedback-modal.is-open .request-feedback-dialog { transform:none; opacity:1; }
.request-feedback-close { position:absolute; top:12px; right:12px; width:32px; height:32px; display:grid; place-items:center; border:1px solid #dbe5f1; border-radius:10px; background:#f8fafc; color:#627692; cursor:pointer; font-size:18px; line-height:1; }
.request-feedback-icon { width:48px; height:48px; display:grid; place-items:center; margin-bottom:14px; border-radius:15px; color:#08784a; background:#e9faf2; }
.request-feedback-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.request-feedback-dialog.is-error .request-feedback-icon { color:#b43a31; background:#fff0ef; }
.request-feedback-kicker { display:block; margin-bottom:5px; color:#73849c; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.09em; }
.request-feedback-message { margin:0; color:var(--ink); font-size:20px; line-height:1.25; letter-spacing:-.025em; }
.request-feedback-copy { margin:7px 0 0; color:#6f8099; font-size:11px; line-height:1.55; }
.request-feedback-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:18px; }
.request-feedback-actions a,
.request-feedback-actions button { min-height:39px; padding:0 13px; display:inline-flex; align-items:center; justify-content:center; border-radius:11px; font-size:10px; font-weight:900; text-decoration:none; cursor:pointer; }
.request-feedback-actions button { border:1px solid #d6e2f0; color:#345171; background:#fff; }
.request-feedback-actions a { border:1px solid #1559c8; color:#fff; background:#175cd3; box-shadow:0 8px 18px rgba(23,92,211,.16); }

@keyframes requestCartPulse { 0%,100%{transform:none} 42%{transform:translateY(-2px) scale(1.035)} }
@media(max-width:480px){
    .request-feedback-modal{padding:12px}.request-feedback-dialog{padding:21px 18px;border-radius:19px}.request-feedback-message{font-size:18px}.request-feedback-actions{align-items:stretch;flex-direction:column-reverse}.request-feedback-actions a,.request-feedback-actions button{width:100%;min-height:43px}
}
@media(prefers-reduced-motion:reduce){
    .request-feedback-modal,.request-feedback-dialog,.request-link.is-cart-updated{transition:none!important;animation:none!important}
}
