:root {
    --navy: #081f53;
    --navy-2: #0d2b6b;
    --navy-3: #12357e;
    --paper: #ffffff;
    --muted: #f4f6fb;
    --line: #dce2ee;
    --text: #172033;
    --subtle: #62708a;
    --danger: #9c1522;
    --radius: 14px;
    --shadow: 0 16px 35px rgba(8, 31, 83, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    background: var(--paper);
}
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    background: #151515;
    color: #fff;
    height: 48px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 48px;
}
.top-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.top-links a {
    color: #fff;
}
.top-links .linkedin {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.mainnav-wrap {
    background: var(--navy);
    color: #fff;
}
.mainnav {
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
}
.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.brand img {
    max-height: 82px;
    max-width: 150px;
    background: transparent;
}
.primary-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    width: 100%;
}
.primary-menu a {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.search-link {
    font-size: 30px !important;
    line-height: 1;
    transform: translateY(-2px);
}
.nav-toggle {
    display: none;
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    background: transparent;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
}

.hero {
    min-height: 460px;
    background: linear-gradient(90deg, rgba(8,31,83,.96) 0%, rgba(8,31,83,.86) 48%, rgba(8,31,83,.45) 100%), var(--hero-image);
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    align-items: center;
}
.hero-content {
    max-width: 760px;
    padding: 80px 0;
}
.kicker {
    text-transform: uppercase;
    letter-spacing: .28em;
    font-weight: 800;
    font-size: 13px;
    opacity: .85;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    margin: 16px 0 18px;
    letter-spacing: -.04em;
}
.hero p {
    font-size: 20px;
    max-width: 670px;
    color: rgba(255,255,255,.9);
}
.hero-actions,
.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    border: 2px solid var(--navy);
    cursor: pointer;
}
.btn:hover { text-decoration: none; background: var(--navy-2); border-color: var(--navy-2); }
.btn.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn.btn-muted { background: var(--muted); color: var(--navy); border-color: var(--muted); }

.section { padding: 72px 0; }
.section.alt { background: var(--muted); }
.section-header {
    max-width: 780px;
    margin-bottom: 36px;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -.03em;
}
.section-header p {
    color: var(--subtle);
    font-size: 18px;
    margin: 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 8px 20px rgba(8,31,83,.06);
}
.card h3 { margin-top: 0; font-size: 22px; }
.card p { color: var(--subtle); }

.pub-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}
.pub-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.pub-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--subtle);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-weight: 700;
    margin-bottom: 8px;
}
.pub-title {
    margin: 0 0 10px;
    font-size: 25px;
    line-height: 1.22;
}
.pub-title a { color: var(--text); }
.pub-actions {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.pub-actions a {
    font-weight: 900;
    text-transform: uppercase;
    color: var(--navy);
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--muted);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.members-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.logo-card {
    min-height: 120px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.logo-card img {
    max-height: 74px;
    object-fit: contain;
    filter: grayscale(10%);
}
.logo-placeholder {
    color: var(--navy);
    font-weight: 900;
    text-align: center;
}

.page-hero {
    background: var(--muted);
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}
.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -.04em;
}
.page-content {
    padding: 58px 0;
}
.content-box {
    max-width: 880px;
}
.content-box p, .content-box li {
    font-size: 18px;
}
.content-box h2, .content-box h3 {
    color: var(--navy);
}

.layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}
.filters {
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: var(--radius);
    background: #fff;
    position: sticky;
    top: 18px;
}
.filters label {
    display: block;
    color: var(--navy);
    font-weight: 900;
    text-transform: uppercase;
    margin: 18px 0 8px;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 13px;
    font: inherit;
    background: #fff;
}
textarea {
    min-height: 180px;
}
.filters button {
    margin-top: 18px;
    width: 100%;
}

.detail-meta {
    color: var(--subtle);
    margin-bottom: 28px;
}
.download-panel {
    margin: 34px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--muted);
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 34px;
}
.search-form input { flex: 1; }
.search-form .btn { width: auto; }

.site-footer {
    background: var(--navy);
    color: #fff;
    padding: 54px 0;
}
.site-footer a { color: #fff; display: block; margin: 8px 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 40px;
}
.site-footer p {
    color: rgba(255,255,255,.82);
}
.small { font-size: 13px; opacity: .78; }

.notice {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--muted);
    border: 1px solid var(--line);
    margin: 16px 0;
}
.notice.error {
    background: #fff3f3;
    border-color: #ffd1d1;
    color: var(--danger);
}
.notice.success {
    background: #f1fff6;
    border-color: #c9efd7;
}

.admin-layout {
    background: var(--muted);
}
.admin-shell {
    min-height: 100vh;
}
.admin-header {
    background: var(--navy);
    color: #fff;
    padding: 18px 0;
}
.admin-header a { color: #fff; }
.admin-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.admin-main {
    padding: 34px 0;
}
.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
th {
    color: var(--navy);
    font-size: 13px;
    text-transform: uppercase;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.login-box {
    width: min(440px, calc(100% - 40px));
    margin: 70px auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

@media (max-width: 980px) {
    .mainnav { height: auto; min-height: 96px; flex-wrap: wrap; padding: 16px 0; }
    .nav-toggle { display: block; }
    .primary-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 18px 0;
    }
    .primary-menu.open { display: flex; }
    .grid-3,
    .footer-grid,
    .layout,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .members-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    .filters { position: static; }
    .search-form { flex-direction: column; }
}
@media (max-width: 640px) {
    .topbar { height: auto; }
    .topbar-inner { justify-content: flex-start; height: auto; padding: 12px 0; }
    .top-links { flex-wrap: wrap; gap: 14px; font-size: 12px; }
    .container { width: min(100% - 28px, 1180px); }
    .hero { min-height: 380px; }
    .section { padding: 52px 0; }
    .members-logos { grid-template-columns: 1fr; }
}
