/* ==========================================================================
K-Theory Foundation - Classic Layout + Theorem Palette
========================================================================== */

:root {
/* The Theorem Palette */
--prussian-blue: #0A365D;
--academic-gold: #B8974A;
--charcoal: #2A2C2E;
--pure-white: #FFFFFF;
--surface-slate: #F4F5F7;
--border-light: #E1E4E8;

/* The Classic Print Typography */
--font-primary: "Palatino Linotype", "Book Antiqua", Palatino, serif;
--font-heading: "Georgia", "Times New Roman", serif;
--font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
font-family: var(--font-primary);
line-height: 1.6;
color: var(--charcoal);
background-color: var(--pure-white);
margin: 0;
padding: 0;
}

.container {
max-width: 850px; /* Narrower, book-style measure for better reading */
margin: 0 auto;
padding: 0 20px;
}

/* --- Typography & Links --- */
h1, h2, h3 {
font-family: var(--font-heading);
color: var(--prussian-blue);
font-weight: normal;
}

h1 {
font-size: 2.5em;
border-bottom: 3px double var(--prussian-blue); /* Restored academic double-line */
padding-bottom: 15px;
margin-top: 40px;
margin-bottom: 35px;
}

h2 {
font-size: 1.5em;
border-bottom: 1px solid var(--border-light);
padding-bottom: 5px;
margin-top: 2em;
}

a {
color: var(--prussian-blue);
text-decoration: none;
border-bottom: 1px solid var(--border-light);
transition: all 0.2s ease;
}

a:hover {
color: var(--academic-gold);
border-bottom: 1px solid var(--academic-gold);
}

/* --- Header & Navigation --- */
header {
background-color: var(--pure-white);
border-bottom: 1px solid var(--border-light);
padding: 30px 0;
}

.header-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1000px;
margin: 0 auto;
padding: 0 20px;
}

.brand-container {
display: flex;
align-items: center;
gap: 15px;
}

.logo-text {
font-family: var(--font-heading);
font-size: 1.8em;
color: var(--prussian-blue);
letter-spacing: 0.5px;
text-transform: uppercase;
}

nav {
font-family: var(--font-ui); /* UI elements remain crisp sans-serif */
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 1px;
}

nav a {
color: var(--charcoal);
margin-left: 25px;
border-bottom: none;
font-weight: 600;
}

nav a:hover, nav a.active {
color: var(--academic-gold);
}

/* --- Classic Cards / Layout --- */
p.lead {
font-size: 1.25em;
color: var(--charcoal);
margin-bottom: 40px;
}

.initiatives {
display: flex;
gap: 30px;
margin-top: 40px;
flex-wrap: wrap;
}

.initiative-card {
flex: 1;
min-width: 250px;
background: var(--surface-slate);
border: 1px solid var(--border-light);
padding: 25px;
/* Restored the rigid, architectural offset shadow instead of a bouncy hover */
box-shadow: 3px 3px 0px rgba(10, 54, 93, 0.08); 
}

.initiative-card h3 {
margin-top: 0;
font-size: 1.3em;
}

/* --- Lists & Footer --- */
ul {
padding-left: 20px;
}

li {
margin-bottom: 10px;
}

footer {
background-color: var(--pure-white);
border-top: 1px solid var(--border-light);
padding: 40px 0;
margin-top: 80px;
text-align: center;
color: #6A737D;
font-size: 0.85em;
}

/* --- Maintenance additions (2026-11) --- */
h3.year {
margin-top: 30px;
border-bottom: 1px solid var(--border-light);
padding-bottom: 5px;
}

main.container { padding-top: 40px; padding-bottom: 20px; }

nav a.active { border-bottom: 1px solid var(--academic-gold); }

ul.laureates { list-style-type: square; }
.citation { font-size: 0.95em; margin: 6px 0 0; color: var(--charcoal); }

img { max-width: 100%; height: auto; }

@media (max-width: 760px) {
.header-content { flex-direction: column; align-items: flex-start; gap: 15px; }
.logo-text { font-size: 1.3em; }
nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
nav a { margin-left: 0; }
h1 { font-size: 1.9em; }
}

/* --- Logo (current KTF logo, red K) --- */
.logo-link { border-bottom: none; display: block; line-height: 0; }
.logo-link:hover { border-bottom: none; }
.logo-img { height: 80px; width: auto; display: block; }
.fineprint { font-size: 0.9em; color: #6A737D; margin-top: 15px; }
h2.spaced { margin-top: 50px; }

/* --- Red accent from the logo --- */
:root { --ktf-red: #B2001A; }
nav a:hover, nav a.active { color: var(--ktf-red); }
nav a.active { border-bottom-color: var(--ktf-red); }
a:hover { color: var(--ktf-red); border-bottom-color: var(--ktf-red); }
h1 { border-bottom-color: var(--prussian-blue); }
header { border-bottom: 3px solid var(--ktf-red); }
.initiative-card { border-top: 3px solid var(--ktf-red); }

/* --- Prize citations --- */
details.citation { margin: 8px 0 4px; font-size: 0.95em; }
details.citation summary { cursor: pointer; color: var(--prussian-blue); font-family: var(--font-ui); font-size: 0.85em; text-transform: uppercase; letter-spacing: 1px; }
details.citation[open] summary { margin-bottom: 8px; }
details.citation p { margin: 0 0 10px; }
details.citation ol li { margin-bottom: 6px; }

p.committee { font-size: 0.95em; }
