@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700;800;900&display=swap');

:root {
    --ink: #172332;
    --muted: #5d6978;
    --blue: #0066cc;
    --blue-dark: #174b82;
    --green: #41794d;
    --gold: #d69b2d;
    --rose: #b94e70;
    --paper: #ffffff;
    --soft: #f5f8fb;
    --line: #dce5ed;
    --shadow: 0 18px 44px rgba(23, 35, 50, .12);
    --font-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    --font-serif: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    background: var(--paper);
    text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.topbar { background: var(--blue-dark); color: #fff; font-size: 14px; }
.topbar a { color: #fff; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header__inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 220px; height: auto; }
.nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.nav a { color: var(--ink); padding: 10px 12px; border-radius: 6px; font-weight: 800; font-size: 15px; }
.nav a:hover, .nav .is-active { background: var(--soft); color: var(--blue-dark); text-decoration: none; }
.nav-dropdown { position: relative; }
.nav-dropdown > button {
    border: 0;
    border-radius: 6px;
    padding: 10px 12px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}
.nav-dropdown > button::after { content: "▾"; margin-left: 6px; font-size: 12px; }
.nav-dropdown:hover > button, .nav-dropdown > button.is-active { background: var(--soft); color: var(--blue-dark); }
.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    display: none;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.nav-dropdown:hover .nav-dropdown__menu, .nav-dropdown:focus-within .nav-dropdown__menu { display: grid; }
.nav-dropdown__menu a { padding: 11px 12px; }
.nav__external { border: 1px solid var(--line); }
.nav .nav__contact { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(0, 102, 204, .2); }
.nav .nav__contact:hover, .nav .nav__contact.is-active { background: var(--blue-dark); color: #fff; }
.hero__slide { min-height: 580px; background-size: cover; background-position: center; display: grid; align-items: center; color: #fff; }
.hero__content { max-width: 760px; margin-left: max(18px, calc((100vw - 1120px) / 2)); }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1, .page-hero h1 { margin: 0; max-width: 780px; font-family: var(--font-serif); font-weight: 700; font-size: clamp(42px, 6vw, 74px); line-height: 1.04; }
.hero p:not(.eyebrow) { max-width: 680px; font-size: 20px; }
.actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-family: var(--font-sans);
    font-size: 16px;
    cursor: pointer;
}
.button:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.button--secondary { background: var(--green); }
.button--secondary:hover { background: #2f623a; }
.button--ghost { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.6); }
.button--light { background: #fff; color: var(--blue-dark) !important; }
.button--light:hover { background: #e8f1fa; color: var(--blue-dark) !important; }
.button--danger { background: #a92735; }
.intro { padding: 72px 0; display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; align-items: center; }
h1, h2, h3 { line-height: 1.18; }
h2 { margin: 0 0 14px; font-family: var(--font-serif); font-weight: 700; font-size: clamp(30px, 4vw, 46px); }
h3 { margin: 0 0 10px; font-size: 24px; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.impact-grid article, .stat-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: #fff; box-shadow: 0 10px 24px rgba(23,35,50,.06); }
.impact-grid strong, .stat-grid strong { display: block; color: var(--blue); font-size: 28px; line-height: 1; }
.impact-grid span, .stat-grid span { color: var(--muted); font-weight: 700; }
.band { background: var(--soft); border-block: 1px solid var(--line); padding: 68px 0; }
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 54px; }
.section-head { padding: 72px 0; }
.campaign-grid, .post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 26px; }
.campaign, .post-card, .panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.campaign img, .post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.campaign > div, .post-card > div { padding: 24px; }
.image-lightbox-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: zoom-in;
    font: inherit;
    text-align: left;
    overflow: hidden;
}
.image-lightbox-trigger img {
    transition: transform .22s ease, filter .22s ease;
}
.image-lightbox-trigger span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(16, 24, 32, .82);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .2s ease, transform .2s ease;
}
.image-lightbox-trigger:hover img,
.image-lightbox-trigger:focus-visible img {
    filter: brightness(.86);
    transform: scale(1.025);
}
.image-lightbox-trigger:hover span,
.image-lightbox-trigger:focus-visible span {
    opacity: 1;
    transform: translateY(0);
}
.image-lightbox-trigger:focus-visible {
    outline: 3px solid rgba(0,102,204,.3);
    outline-offset: -3px;
}
.image-lightbox[hidden] { display: none; }
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 16px;
    place-items: center;
    padding: 22px;
    background: rgba(10, 16, 24, .92);
}
.image-lightbox img {
    max-width: min(1180px, 100%);
    max-height: calc(100vh - 130px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(0,0,0,.45);
}
.image-lightbox p {
    margin: 0;
    color: #fff;
    font-weight: 900;
    text-align: center;
}
.image-lightbox__close {
    justify-self: end;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.has-lightbox { overflow: hidden; }
.lead { color: var(--green); font-weight: 800; }
.text-link { font-weight: 800; color: var(--blue-dark); }
.post-grid--wide { grid-template-columns: repeat(3, 1fr); }
.post-card time, .meta { color: var(--muted); font-size: 14px; }
.post-card h3 a { color: var(--ink); }
.cta { padding: 72px 0; color: #fff; background: linear-gradient(120deg, var(--blue-dark), #315f70 58%, var(--green)); text-align: center; }
.cta h2 { color: #fff; }
.cta a { font-weight: 800; }
.page-hero { padding: 80px 0; color: #fff; background: linear-gradient(120deg, rgba(23,75,130,.95), rgba(65,121,77,.88)), url('https://powerofhopeontario.ca/wp-content/uploads/2022/01/How-to-help-pj-toy-drive-1024x683-1.jpg') center/cover; }
.page-copy { padding: 72px 0; }
.article__image { width: 100%; max-height: 460px; object-fit: cover; }
.article__body { max-width: 840px; padding: 54px 0 76px; }
.article h1 { margin: 14px 0 8px; font-family: var(--font-serif); font-size: clamp(36px, 5vw, 58px); }
.rich-text { font-size: 18px; }
.rich-text--compact { font-size: 16px; }
.rich-text > *:first-child { margin-top: 0; }
.rich-text > *:last-child { margin-bottom: 0; }
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    margin: 24px 0 10px;
    font-family: var(--font-serif);
}
.rich-text h2 { font-size: 30px; }
.rich-text h3 { font-size: 24px; }
.rich-text h4 { font-size: 20px; }
.rich-text ul,
.rich-text ol {
    padding-left: 24px;
}
.rich-text blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--gold);
    background: #f7fbff;
    color: var(--ink);
}
.rich-text img {
    width: 100%;
    max-height: 520px;
    margin: 18px 0;
    border-radius: 8px;
    object-fit: cover;
}
.rich-text pre {
    overflow-x: auto;
    padding: 16px;
    border-radius: 8px;
    background: #101820;
    color: #fff;
}
.rich-text code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #eef4f9;
    font-size: .92em;
}
.rich-text pre code {
    padding: 0;
    background: transparent;
}
.people-list { padding: 58px 0; display: grid; gap: 18px; }
.people-list article {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}
.people-list article:not(:has(img)) { grid-template-columns: 1fr; }
.people-list img { width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.section-intro { max-width: 780px; color: var(--muted); font-size: 19px; }
.items-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.items-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.items-card h2 { font-size: 30px; }
.items-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.items-card li { padding-left: 18px; border-left: 4px solid var(--priority-color, var(--gold)); }
.items-card em,
.priority-chip {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--priority-color, var(--gold)) 16%, white);
    color: var(--priority-color, var(--gold));
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}
.items-card strong, .items-card span { display: block; }
.items-card span { color: var(--muted); }
.featured-events {
    padding: 68px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    border-top: 1px solid var(--line);
}
.featured-events__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.featured-event {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    align-items: start;
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(23, 35, 50, .09);
}
.featured-event h3 {
    margin-bottom: 8px;
    font-size: 22px;
}
.featured-event p:not(.eyebrow) {
    margin: 0 0 8px;
    color: var(--muted);
    font-weight: 700;
}
.featured-event span {
    color: var(--green);
    font-weight: 900;
}
.event-list { display: grid; gap: 22px; margin-top: 22px; }
.event-list--featured { margin-top: 18px; }
.event-card {
    display: grid;
    grid-template-columns: 92px 220px 1fr;
    gap: 22px;
    align-items: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.event-card:not(:has(img)) { grid-template-columns: 92px 1fr; }
.event-card .image-lightbox-trigger { width: 220px; border-radius: 8px; }
.event-card img { width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.event-date {
    display: grid;
    place-items: center;
    min-height: 92px;
    border-radius: 8px;
    background: var(--blue-dark);
    color: #fff;
    text-align: center;
}
.event-date strong { font-size: 36px; line-height: 1; }
.event-date span { font-weight: 900; text-transform: uppercase; }
.calendar-section { padding: 0 0 72px; }
.calendar-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.calendar-head h2 { margin-bottom: 0; }
.calendar-head p:not(.eyebrow) { max-width: 520px; margin: 0; color: var(--muted); }
.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}
.calendar-controls .button {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 14px;
}
.calendar-note {
    max-width: 620px;
    margin: -8px 0 20px;
    color: var(--muted);
}
.event-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    box-shadow: var(--shadow);
}
.calendar-weekday {
    padding: 12px 10px;
    background: var(--blue-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}
.calendar-day {
    min-height: 132px;
    padding: 10px;
    background: #fff;
}
.calendar-day--empty { background: #f0f5fa; }
.calendar-day time {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 900;
}
.calendar-day.is-today time {
    background: var(--blue);
    color: #fff;
}
.calendar-day.has-events {
    background: linear-gradient(180deg, #fff, #f7fbff);
    box-shadow: inset 0 0 0 2px rgba(0,102,204,.12);
}
.calendar-day.has-events time {
    color: var(--blue-dark);
}
.calendar-day span,
.calendar-day small {
    display: block;
    margin-top: 7px;
    padding: 6px 7px;
    border-left: 3px solid var(--gold);
    border-radius: 5px;
    background: #fff7e7;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}
.calendar-day small {
    border-color: var(--blue);
    background: #edf5ff;
    color: var(--blue-dark);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-grid { padding: 64px 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .8fr); gap: 34px; align-items: start; }
.panel { padding: 28px; }
.form-intro { margin-top: -6px; color: var(--muted); }
label { display: grid; gap: 7px; margin-bottom: 16px; font-weight: 800; }
.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfe;
}
.check-row input { width: auto; }
input, textarea, select {
    width: 100%;
    border: 1px solid #c8d4df;
    border-radius: 6px;
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
textarea { resize: vertical; }
.notice { padding: 12px 14px; border-radius: 6px; background: #edf7ef; color: #255a30; font-weight: 800; }
.error { padding: 12px 14px; border-radius: 6px; background: #fff0f2; color: #922632; font-weight: 800; }
.footer { padding: 48px 0; background: #101820; color: #d9e1e9; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 34px; }
.footer__logo { width: 180px; background: #fff; border-radius: 8px; padding: 10px; margin-bottom: 16px; }
.footer h2 { color: #fff; font-size: 22px; font-family: inherit; }
.footer__credit {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.72);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.admin-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: 82px minmax(0, 1fr);
    background:
        radial-gradient(circle at top right, rgba(0, 102, 204, .13), transparent 34rem),
        linear-gradient(180deg, #f6f9fc, #edf3f8);
}
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 82px;
    padding: 12px 24px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(23, 35, 50, .08);
    backdrop-filter: blur(14px);
}
.admin-topbar__title {
    min-width: 0;
}
.admin-topbar__title span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.admin-topbar__title strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.admin-topbar__actions > a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 900;
}
.admin-topbar__actions > a:hover {
    background: var(--soft);
    text-decoration: none;
}
.admin-sidebar {
    position: sticky;
    top: 82px;
    height: calc(100vh - 82px);
    padding: 16px 12px;
    background: linear-gradient(180deg, #0f1a24, #13283d 54%, #174b82);
    color: #fff;
    box-shadow: 14px 0 30px rgba(16, 24, 32, .14);
    overflow-y: auto;
}
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 220px;
    padding: 8px 10px;
    border: 1px solid #d6e1eb;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f7fbff);
    box-shadow: 0 10px 24px rgba(23, 35, 50, .08);
}
.admin-brand:hover { text-decoration: none; border-color: #bfd0df; }
.admin-brand img {
    width: 132px;
    height: auto;
}
.admin-brand span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--blue-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
}
.admin-user {
    min-width: 0;
    max-width: 190px;
    padding: 6px 10px;
    border: 1px solid #cdd9e5;
    border-radius: 6px;
    background: #f8fbfe;
    color: var(--ink);
}
.admin-user span { display: block; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.admin-user strong { display: block; overflow: hidden; margin-top: 3px; font-size: 13px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar__label {
    margin: 2px 8px 10px;
    color: rgba(255,255,255,.64);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.admin-nav {
    display: grid;
    gap: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.055);
    overflow: hidden;
}
.admin-nav__home,
.admin-sidebar a {
    color: #fff;
    padding: 10px 12px;
    border-radius: 0;
    font-weight: 800;
    font-size: 15px;
}
.admin-nav__home {
    display: block;
    background: rgba(255,255,255,.075);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.admin-nav__group {
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    border-radius: 0;
    background: transparent;
    overflow: hidden;
}
.admin-nav__group:last-child { border-bottom: 0; }
.admin-nav__group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 9px 12px;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
}
.admin-nav__group summary::-webkit-details-marker { display: none; }
.admin-nav__group summary::after {
    content: "+";
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 900;
}
.admin-nav__group[open] summary {
    background: rgba(255,255,255,.11);
    box-shadow: inset 3px 0 0 var(--gold);
}
.admin-nav__group[open] summary::after { content: "-"; }
.admin-nav__group a {
    display: block;
    margin: 0;
    padding: 8px 12px 8px 24px;
    color: rgba(255,255,255,.86);
    background: rgba(0,0,0,.12);
    border-top: 1px solid rgba(255,255,255,.065);
    font-size: 14px;
    font-weight: 750;
}
.admin-sidebar a:hover,
.admin-sidebar a.is-active,
.admin-nav__home:hover,
.admin-nav__home.is-active {
    background: rgba(255,255,255,.17);
    text-decoration: none;
    box-shadow: inset 3px 0 0 var(--gold);
}
.admin-nav__group a.is-active {
    color: #fff;
    background: rgba(214,155,45,.24);
}
.admin-main {
    width: min(1260px, 100%);
    padding: 34px;
}
.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.admin-head h1, .login-panel h1 { margin: 0; font-family: var(--font-serif); font-size: 44px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-grid article {
    min-height: 126px;
    display: grid;
    align-content: center;
    background: linear-gradient(180deg, #fff, #f8fbfe);
}
.stat-grid strong { font-size: 40px; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
}
.admin-table th, .admin-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th {
    color: var(--muted);
    background: #f6f9fc;
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.admin-table tbody tr:hover { background: #f8fbfe; }
.admin-form { max-width: none; }
.markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
}
.markdown-toolbar button {
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fbfe;
    color: var(--blue-dark);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}
.markdown-toolbar button:hover {
    background: #eaf3fb;
}
.markdown-toolbar button:disabled {
    cursor: progress;
    opacity: .68;
}
.markdown-help {
    margin: -2px 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.post-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}
.editor-panel { overflow: visible; }
.preview-panel {
    position: sticky;
    top: 24px;
    padding: 0;
    overflow: hidden;
}
.preview-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 0;
}
.image-preview-frame {
    display: grid;
    place-items: center;
    min-height: 240px;
    margin: 16px 18px 0;
    border: 1px dashed #b9c7d4;
    border-radius: 8px;
    background: #f6f9fc;
    overflow: hidden;
}
.image-preview-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.image-preview-frame p {
    margin: 0;
    max-width: 240px;
    padding: 24px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}
.preview-details { padding: 20px 18px 22px; }
.preview-details h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 8px;
}
.preview-details p { margin: 0; color: var(--muted); }
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}
.status-pill--published { color: #225a2d; background: #e5f4e8; }
.status-pill--draft { color: #6a4a08; background: #fff3d8; }
.login-panel {
    max-width: 460px;
    margin: 8vh auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 36px;
}
input:focus, textarea:focus, select:focus {
    outline: 3px solid rgba(0,102,204,.16);
    border-color: var(--blue);
}

@media (max-width: 920px) {
    .header__inner, .topbar__inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
    .nav { justify-content: flex-start; }
    .hero__slide { min-height: 520px; }
    .intro, .split, .contact-grid, .footer__grid { grid-template-columns: 1fr; }
    .impact-grid, .campaign-grid, .post-grid, .post-grid--wide, .stat-grid, .items-grid, .featured-events__grid, .event-card, .event-card:not(:has(img)), .form-grid { grid-template-columns: 1fr; }
    .event-card .image-lightbox-trigger,
    .event-card img { width: 100%; }
    .calendar-head { align-items: flex-start; flex-direction: column; }
    .calendar-controls { justify-content: flex-start; width: 100%; }
    .event-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calendar-weekday { display: none; }
    .calendar-day--empty { display: none; }
    .calendar-day { min-height: 118px; }
    .nav-dropdown__menu { position: static; min-width: 100%; box-shadow: none; margin-top: 4px; }
    .admin-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto minmax(0, 1fr);
    }
    .admin-topbar {
        position: static;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 14px 18px;
    }
    .admin-topbar__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .admin-topbar__actions > a {
        justify-content: center;
    }
    .admin-sidebar {
        position: static;
        height: auto;
        padding: 18px;
    }
    .admin-brand { max-width: 200px; }
    .admin-brand img { width: 120px; }
    .admin-user { max-width: 220px; }
    .admin-nav {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
    .admin-nav__home { min-height: 46px; }
    .post-editor { grid-template-columns: 1fr; }
    .preview-panel { position: static; }
}

@media (max-width: 560px) {
    .wrap { width: min(100% - 24px, 1120px); }
    .brand img { width: 185px; }
    .nav a { width: calc(50% - 4px); text-align: center; }
    .nav-dropdown { width: calc(50% - 4px); }
    .nav-dropdown > button { width: 100%; }
    .featured-event { grid-template-columns: 74px 1fr; padding: 16px; }
    .featured-event .event-date { min-height: 74px; }
    .featured-event .event-date strong { font-size: 30px; }
    .people-list article { grid-template-columns: 1fr; }
    .hero h1, .page-hero h1 { font-size: 38px; }
    .hero p:not(.eyebrow) { font-size: 17px; }
    .event-calendar { grid-template-columns: 1fr; }
    .calendar-controls .button { width: 100%; }
    .admin-topbar {
        grid-template-columns: 1fr;
    }
    .admin-topbar__title strong { font-size: 24px; white-space: normal; }
    .admin-topbar__actions { align-items: stretch; }
    .admin-topbar__actions > a { flex: 1 1 calc(50% - 8px); }
    .admin-user { flex: 0 1 220px; }
    .admin-main { padding: 18px; }
    .admin-brand { max-width: 100%; }
    .admin-brand img { width: 126px; }
    .admin-nav { max-width: none; }
    .admin-head { align-items: flex-start; flex-direction: column; }
}
