:root {
    --navy: #10243d;
    --navy-deep: #09182b;
    --gold: #c6a46a;
    --paper: #f6f7f9;
    --ink: #18283b;
    --muted: #65748a;
    --line: #dfe5ec;
    --white: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.65 system-ui, sans-serif;
}

a { color: #245d91; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #b68b3f;
    outline-offset: 3px;
}

header {
    background: var(--navy-deep);
    color: white;
    padding: 22px 5%;
}

.brand {
    font-size: 27px;
    font-weight: 750;
    letter-spacing: 3px;
}

.brand-caption {
    color: #e2c58d;
    font-size: 11px;
    letter-spacing: 2px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 24px;
    border-top: 1px solid #34465b;
    padding-top: 16px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.hero {
    background: linear-gradient(125deg,#10243d,#214365);
    color: white;
    padding: 65px 6%;
}

.eyebrow {
    color: #e2c58d;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 700;
}

h1,h2,h3 {
    line-height: 1.25;
    margin-top: 0;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(32px,5vw,58px);
    max-width: 850px;
    margin: 20px 0;
    font-weight: 500;
}

.hero p {
    color: #e0e8f1;
    max-width: 780px;
}

main {
    max-width: 1440px;
    margin: auto;
    padding: 35px 5%;
}

.notice {
    border-left: 4px solid #b68b3f;
    padding: 14px 20px;
    background: #fff8e8;
    margin-bottom: 25px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
    gap: 15px;
    margin: 25px 0;
}

.metric {
    background: white;
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 8px;
}

.metric strong {
    display: block;
    font-size: 30px;
    color: var(--navy);
}

.metric span {
    color: var(--muted);
    font-size: 13px;
}

.searchbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 25px 0;
}

input, select, button {
    padding: 12px 14px;
    font: inherit;
    border-radius: 5px;
    border: 1px solid #aebac8;
}

input[type=search] {
    flex: 1;
    min-width: 220px;
}

button {
    background: var(--navy);
    color: white;
    cursor: pointer;
}

.workspace {
    display: grid;
    grid-template-columns: 235px minmax(0,1fr);
    gap: 25px;
}

aside, article {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 23px;
}

aside {
    align-self: start;
}

aside a {
    display: block;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

article {
    margin-bottom: 15px;
}

article h3 {
    font-family: Georgia,serif;
    font-size: 22px;
    color: var(--navy);
}

.metadata {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 4px;
    background: #eaf0f6;
    font-size: 11px;
    margin-right: 6px;
    margin-bottom: 8px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
}

.pagination {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

footer {
    background: var(--navy-deep);
    color: #dbe4ef;
    padding: 30px 5%;
    font-size: 13px;
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media(max-width:760px) {
    .workspace { grid-template-columns: 1fr; }
    .hero { padding: 40px 5%; }
    nav { gap: 15px; }
    .searchbar { flex-direction: column; }
    input, select, button { width: 100%; }
}

/* Academic release refinement */

.hero {
    padding-top: 72px;
    padding-bottom: 72px;
}

article h3 {
    overflow-wrap: anywhere;
    letter-spacing: -0.25px;
}

article {
    box-shadow: 0 2px 8px rgba(16,36,61,.035);
}

.metric {
    border-top: 3px solid #c6a46a;
}

.funding-tabs {
    padding: 15px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 15px;
}

.funding-tabs a {
    text-decoration: none;
    font-weight: 600;
}

.actions a {
    text-underline-offset: 4px;
}

.notice {
    background: #f0f5fa;
    border-left-color: #245d91;
}

@media(max-width:760px) {
    .hero {
        padding-top: 35px;
        padding-bottom: 35px;
    }
}


.digest-body {
    white-space: pre-wrap;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
