:root {
    --canvas: #fff8ef;
    --paper: #ffffff;
    --paper-warm: #fff1df;
    --ink: #1d2433;
    --muted: #667085;
    --line: #eadfce;
    --blue: #2442a0;
    --blue-dark: #16255f;
    --coral: #e85d3f;
    --coral-dark: #c6432b;
    --mint: #2f8f83;
    --gold: #c7922f;
    --shadow: 0 18px 36px rgba(29, 36, 51, 0.09);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.58;
}

a { color: var(--blue); }

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

.narrow { width: min(880px, calc(100% - 32px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 248, 239, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-width: 230px;
    color: var(--ink);
    text-decoration: none;
}

.site-logo {
    display: block;
    width: min(250px, 42vw);
    height: auto;
    max-height: 62px;
    object-fit: contain;
}

.site-nav ul {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
}

.header-cta,
.text-link {
    color: var(--blue);
    font-weight: 850;
    text-decoration: none;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    padding: 7px 16px;
    background: var(--paper);
}

.global-search-shell {
    background: var(--blue-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 0;
}

.global-search-shell .opportunity-search {
    grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(140px, 1fr)) auto;
    align-items: end;
}

.global-search-shell .opportunity-search label:first-of-type,
.global-search-shell .opportunity-search button {
    grid-column: auto;
}

.global-search-shell .opportunity-search label {
    color: #e1e7ff;
}

.global-search-shell .opportunity-search input,
.global-search-shell .opportunity-search select {
    min-height: 42px;
    border-radius: 10px;
}

.global-search-shell .opportunity-search button {
    min-height: 42px;
    white-space: nowrap;
}

.hero {
    padding: 68px 0 50px;
    background:
        linear-gradient(90deg, rgba(36, 66, 160, 0.09) 1px, transparent 1px),
        linear-gradient(180deg, #fff8ef 0%, #fff1df 100%);
    background-size: 54px 54px, auto;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 42px;
    align-items: center;
}

.hero-copy-block {
    padding-right: 10px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--coral-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

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

h1 {
    max-width: 820px;
    font-size: clamp(42px, 5.4vw, 74px);
}

h2 { font-size: 32px; }
h3 { font-size: 22px; }

.hero-copy {
    max-width: 700px;
    color: var(--muted);
    font-size: 19px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.quick-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.hero-panel {
    background: var(--blue-dark);
    border-radius: 18px 18px 18px 4px;
    padding: 26px;
    color: #fff;
    box-shadow: var(--shadow);
}

.hero-panel h2 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 25px;
}

.hero-panel .opportunity-search label {
    color: #e1e7ff;
}

.category-band {
    padding: 48px 0 56px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.section { padding: 50px 0 66px; }
.section-heading { margin-bottom: 24px; }

.section-heading.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.page-heading,
.single-hero {
    padding: 48px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-grid a {
    display: grid;
    align-content: space-between;
    min-height: 144px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 15px;
    background: var(--canvas);
    color: var(--ink);
    font-weight: 850;
    text-decoration: none;
}

.category-grid a span {
    color: var(--coral);
    font-size: 13px;
}

.opportunity-search {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.opportunity-search label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.opportunity-search label:first-of-type,
.opportunity-search button {
    grid-column: 1 / -1;
}

.opportunity-search input,
.opportunity-search select {
    width: 100%;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
}

.opportunity-search input:focus,
.opportunity-search select:focus {
    outline: 3px solid rgba(232, 93, 63, 0.22);
    border-color: var(--coral);
}

.opportunity-search button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--coral);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}

.opportunity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.opportunity-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 210px;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(29, 36, 51, 0.05);
}

.opportunity-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.opportunity-card p {
    margin: 0;
    color: var(--muted);
}

.card-kicker,
.card-footer {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 11px;
    background: #eef2ff;
    color: var(--blue);
}

.card-footer {
    justify-items: end;
    text-align: right;
}

.card-footer a {
    border-bottom: 2px solid var(--coral);
    color: var(--ink);
    text-decoration: none;
}

.card-org { margin-top: 6px; font-weight: 850; color: var(--blue-dark); }

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 38px 0 60px;
    align-items: start;
}

.content-body,
.details-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.content-body { padding: 30px; }

.details-panel {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 16px;
    padding: 20px;
}

.details-panel h2 { font-size: 22px; }

.opportunity-meta { display: grid; gap: 12px; margin: 0; }
.opportunity-meta div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.opportunity-meta dt { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.opportunity-meta dd { margin: 2px 0 0; }

.single-meta { color: var(--muted); font-size: 18px; }
.single-meta span::before { content: " / "; }

.post-summary { border-bottom: 1px solid var(--line); padding: 18px 0; }

.site-footer {
    background: var(--blue-dark);
    color: #fff;
}

.site-footer p { margin: 0; color: #dbe2ff; }

@media (max-width: 980px) {
    .hero-grid,
    .single-layout,
    .opportunity-card { grid-template-columns: 1fr; }
    .card-footer { justify-items: start; text-align: left; }
}

@media (max-width: 760px) {
    .header-inner,
    .footer-inner,
    .section-heading.split {
        flex-direction: column;
        align-items: flex-start;
    }

    .opportunity-search,
    .global-search-shell .opportunity-search { grid-template-columns: 1fr; }

    .global-search-shell .opportunity-search label:first-of-type,
    .global-search-shell .opportunity-search button { grid-column: 1 / -1; }
    h1 { font-size: 40px; }
    .site-nav ul,
    .quick-links { flex-wrap: wrap; }
    .header-cta { width: 100%; justify-content: center; }
}

.sample-note {
    margin: 0 0 8px;
    color: var(--muted);
    font-weight: 750;
}

.sample-opportunity-card {
    border-style: dashed;
}

.opportunity-template-body {
    display: grid;
    gap: 26px;
}

.opportunity-template-body section {
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
}

.opportunity-template-body section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.opportunity-template-body h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.content-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    border-top: 2px solid var(--blue-dark);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.content-details-grid div {
    display: grid;
    grid-template-columns: minmax(128px, 0.42fr) minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
    min-height: 54px;
    border-top: 1px solid var(--line);
    padding: 13px 16px;
}

.content-details-grid div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.content-details-grid div:nth-child(1),
.content-details-grid div:nth-child(2) {
    border-top: 0;
}

.content-details-grid dt {
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.content-details-grid dd {
    margin: 0;
    color: var(--ink);
    font-weight: 650;
}

@media (max-width: 760px) {
    .content-details-grid { grid-template-columns: 1fr; }
    .content-details-grid div:nth-child(odd) { border-right: 0; }
    .content-details-grid div:nth-child(2) { border-top: 1px solid var(--line); }
}
