:root {
    --blue: #007AC5;
    --blue-deep: #08324F;
    --blue-ink: #005A94;
    --green: #7BC242;
    --green-ink: #10210A;
    --ink: #1C2430;
    --muted: #3E4C59;
    --paper: #F4F7F8;
    --white: #FFFFFF;
    --line: #D5DEE6;
    --focus: #08324F;
    --shadow: 0 16px 40px rgba(8, 50, 79, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Aptos, "Trebuchet MS", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-ink); }

a:hover { text-decoration: none; }

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
    overflow-wrap: anywhere;
}

.card, .campaign, .search-panel, .film-frame, .record, .confirm-panel { min-width: 0; }

p { margin: 0 0 0.8rem; }

.wrap {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    background: var(--white);
    color: var(--blue-deep);
    padding: 0.6rem 1rem;
    z-index: 20;
    border-radius: 8px;
    font-weight: 700;
}

.skip-link:focus { top: 0.75rem; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.site-header {
    background: var(--white);
    border-top: 6px solid var(--blue);
    border-bottom: 6px solid var(--green);
    position: sticky;
    top: 0;
    z-index: 5;
}

.header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 0.75rem 0;
}

.brand { display: inline-flex; }

.brand img { width: min(220px, 64vw); height: auto; }

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--blue-deep);
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: var(--blue);
    color: var(--white);
}

.mast {
    background: linear-gradient(165deg, #007AC5 0%, #006EAE 55%, #08324F 100%);
    color: var(--white);
    padding: 1.5rem 0 2rem;
}

.mast h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    max-width: 16ch;
    margin-bottom: 0.4rem;
}

.lede { font-size: 1.125rem; max-width: 42rem; color: var(--white); }

.brand-pill {
    display: inline-block;
    background: #7BC242;
    color: #10210A;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin: 0 0 0.9rem;
}

.search-panel h2,
.section-head h2,
.film h2,
.page-intro h1,
.campaign-band h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.campaign-list {
    display: grid;
    gap: 0.8rem;
}

.campaign {
    background: var(--white);
    color: var(--ink);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.campaign img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.campaign div { padding: 1rem 1rem 0.35rem; }

.campaign h3 { font-size: 1.25rem; color: var(--blue-deep); }

.search-panel {
    background: var(--white);
    color: var(--ink);
    border-radius: 22px;
    padding: 1.1rem;
    box-shadow: var(--shadow);
    margin-top: 1.25rem;
}

.search-panel h2 { color: var(--blue-deep); }

.course-search label,
.filters label,
.form-grid label,
.book-form label {
    display: block;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.course-search input[type="search"],
.filters input,
.filters select,
.form-grid input,
.form-grid textarea,
.form-grid select,
.book-form input,
.book-form select {
    width: 100%;
    min-height: 48px;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}

.course-search input[type="search"] { font-size: 1.15rem; }

.form-grid textarea { min-height: 8rem; }

.search-row,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.8rem;
}

.button,
button {
    appearance: none;
    border: 0;
    background: #007AC5;
    color: var(--white);
    font: inherit;
    font-weight: 700;
    min-height: 48px;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.button.secondary,
button.secondary {
    background: var(--white);
    color: var(--blue-deep);
    border: 2px solid var(--blue);
}

.button.green {
    background: #7BC242;
    color: #10210A;
}

.section {
    padding: 2rem 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.section-head a { font-weight: 700; }

.photo-grid,
.card-grid,
.choice-grid {
    display: grid;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.photo-grid li {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--blue-deep);
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.photo-grid span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.7rem 0.8rem;
    color: var(--white);
    background: linear-gradient(transparent, rgba(8, 50, 79, 0.88));
    font-weight: 700;
}

.subject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.subject-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.3rem 0.8rem;
    background: var(--white);
    border-radius: 999px;
    text-decoration: none;
    color: var(--blue-deep);
    font-weight: 700;
    border: 2px solid transparent;
    box-shadow: 0 1px 0 rgba(8, 50, 79, 0.05);
}

.subject-list a:hover { border-color: var(--blue); }

.film-frame {
    background: var(--blue-deep);
    border-radius: 22px;
    overflow: hidden;
    color: var(--white);
}

.film-frame img,
.film-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #08324f;
}

.form-grid .hint {
    margin: -0.35rem 0 0;
    color: var(--ink);
}

.film-frame figcaption {
    padding: 1rem 1.1rem 1.2rem;
}

.film-kicker {
    display: inline-block;
    background: #7BC242;
    color: #10210A;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.45rem;
}

.page-intro { padding: 1.5rem 0 0.5rem; }

.page-intro h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--blue-deep); max-width: 18ch; }

.filters {
    display: grid;
    gap: 0.8rem;
    background: var(--white);
    border-radius: 18px;
    padding: 1rem;
    margin: 1rem 0 1.25rem;
}

.card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(8, 50, 79, 0.06);
    display: flex;
    flex-direction: column;
}

.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.card-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }

.card-body > .button { margin-top: auto; }

.card h2, .card h3 { font-size: 1.2rem; }

.card h2 a, .card h3 a { color: var(--blue-deep); text-decoration: none; }

.card h2 a:hover, .card h3 a:hover { text-decoration: underline; }

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.meta li,
.tag {
    background: var(--paper);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.tag.green {
    background: #7BC242;
    color: #10210A;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0 0 0.8rem;
    padding: 0;
    color: var(--muted);
}

.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--muted); }

.detail-hero {
    display: grid;
    gap: 1rem;
}

.detail-hero img {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.8rem 0 0;
}

.jump a {
    text-decoration: none;
    background: var(--white);
    color: var(--blue-deep);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.detail-section {
    background: var(--white);
    border-radius: 18px;
    padding: 1rem 1rem 0.4rem;
    margin: 0.8rem 0;
    border-top: 6px solid #007AC5;
}

.detail-section h2 { color: var(--blue-deep); }

.prose ul, .prose ol { margin: 0 0 0.8rem; padding-left: 1.2rem; }

.prose a { font-weight: 700; }

.prose { overflow-wrap: anywhere; }

.apply-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: 1rem;
}

.notice,
.alert {
    background: var(--white);
    border-left: 8px solid #7BC242;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin: 0 0 1rem;
}

.alert { border-left-color: #9A3412; }

.choice {
    background: var(--white);
    border-radius: 18px;
    padding: 0.4rem 0.9rem;
    border: 2px solid var(--line);
}

.choice:has(input:checked) { border-color: #007AC5; box-shadow: inset 4px 0 0 #7BC242; }

.choice label {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.7rem 0;
    font-weight: 700;
}

.choice input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; }

.choice p { font-weight: 400; color: var(--muted); margin: 0.15rem 0 0.6rem 1.9rem; }

.confirm-panel {
    background: var(--white);
    border-radius: 22px;
    padding: 1.2rem;
    border-top: 10px solid #7BC242;
    box-shadow: var(--shadow);
}

.confirm-panel dt { font-weight: 800; color: var(--blue-deep); margin-top: 0.7rem; }

.confirm-panel dd { margin: 0.15rem 0 0; }

.form-grid { display: grid; gap: 0.85rem; }

.check { display: flex; gap: 0.6rem; align-items: center; font-weight: 700; }

.staff-banner {
    background: var(--blue-deep);
    color: var(--white);
    padding: 0.7rem 0;
}

.staff-banner .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; align-items: center; }

.staff-banner p { margin: 0; }

.staff-nav { display: flex; flex-wrap: wrap; gap: 0.2rem; }

.staff-nav a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
}

.staff-nav a:hover,
.staff-nav a[aria-current="page"] {
    background: var(--white);
    color: var(--blue-deep);
}

.staff-banner button.secondary { color: var(--blue-deep); }

.record-list { display: grid; gap: 0.7rem; list-style: none; margin: 0; padding: 0; }

.record {
    background: var(--white);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    align-items: center;
}

.record-copy { flex: 1 1 16rem; min-width: 0; }

.record-copy p { margin: 0.15rem 0 0; }

.record-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }

.record-actions form { margin: 0; }

.record h3 { font-size: 1.1rem; margin: 0; }

.section-head { margin-top: 1.5rem; }

button.danger {
    background: var(--white);
    color: #9A3412;
    border: 2px solid #9A3412;
}

.status {
    font-weight: 800;
    color: var(--green-ink);
    background: #7BC242;
    display: inline-block;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
}

.status.off { background: var(--line); color: var(--ink); }

.site-footer {
    background: #08324F;
    color: var(--white);
    margin-top: 2rem;
    padding: 2rem 0 1rem;
}

.site-footer h2 { font-size: 1.1rem; }

.site-footer a { color: var(--white); }

.footer-grid { display: grid; gap: 1.25rem; }

.footer-grid ul { list-style: none; margin: 0; padding: 0; }

.footer-grid li { margin: 0.25rem 0; }

.footer-base {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1.25rem;
    padding-top: 0.8rem;
    color: var(--white);
    font-size: 0.95rem;
}

.empty {
    background: var(--white);
    border-radius: 16px;
    padding: 1rem;
}

.assistant-hero {
    background: var(--blue-deep);
    color: var(--white);
    padding: 2.5rem 0 4.5rem;
}
.assistant-hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); letter-spacing: -0.045em; }
.assistant-hero .wrap > p:last-child { max-width: 42rem; font-size: 1.15rem; }
.assistant-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: -2rem; position: relative; }
.assistant-chat { padding: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); min-width: 0; }
.assistant-chat-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.assistant-chat-head h2 { font-size: 1.4rem; }
.assistant-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 800; color: var(--blue-ink); margin-bottom: 0.4rem; }
.assistant-badge { flex-shrink: 0; background: #E7F2DA; color: var(--green-ink); border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.8rem; font-weight: 700; }
.assistant-prompts { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.assistant-prompts button { font-size: 0.85rem; padding: 0.45rem 0.7rem; }
.assistant-transcript { min-height: 15rem; max-height: 30rem; overflow-y: auto; padding: 1rem; background: var(--paper); border-radius: 12px; display: flex; flex-direction: column; gap: 1rem; }
.assistant-message { max-width: 94%; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.assistant-message p:last-child { margin: 0; white-space: pre-wrap; }
.assistant-message-guide { background: var(--white); align-self: flex-start; }
.assistant-message-visitor { background: var(--blue-deep); color: var(--white); align-self: flex-end; border-color: var(--blue-deep); }
.assistant-speaker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.03em; margin-bottom: 0.3rem; }
.assistant-status { min-height: 1.6rem; margin: 1rem 0 0.6rem; font-size: 0.9rem; color: var(--muted); }
.assistant-compose label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.assistant-compose textarea { width: 100%; resize: vertical; font: inherit; border: 1px solid #64788B; border-radius: 10px; padding: 0.7rem; }
.assistant-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.assistant-controls button { flex: 1 1 auto; }
.assistant-chat button:disabled { opacity: 0.6; cursor: not-allowed; }
.assistant-chat [hidden] { display: none; }
.assistant-chat audio { width: 100%; margin-top: 1rem; }
.assistant-aside { display: grid; align-content: start; gap: 1.5rem; min-width: 0; }
.assistant-reference { background: #E7F2DA; border-radius: 20px; padding: 1.5rem; }
.assistant-reference h2 { font-size: 1.7rem; max-width: 14ch; }
.assistant-reference p { font-size: 1rem; }
.assistant-sources { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.assistant-sources a { display: flex; justify-content: space-between; gap: 0.5rem; min-height: 44px; align-items: center; padding: 0.7rem; border-radius: 8px; background: var(--white); font-weight: 700; text-decoration: none; }
.assistant-sources a:hover { text-decoration: underline; }
.assistant-reassurance { padding: 0 0.5rem; font-size: 0.9rem; color: var(--muted); }
.assistant-reassurance h2 { color: var(--ink); font-size: 1.2rem; }

@media (min-width: 720px) {
    .photo-grid { grid-template-columns: 1fr 1fr; }
    .campaign-list { grid-template-columns: 1fr 1fr; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .filters { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .detail-hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
    .choice-grid { grid-template-columns: 1fr; }
}

@media (min-width: 980px) {
    .assistant-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; }
    .assistant-chat { padding: 1.7rem; }
    .card-grid.events { grid-template-columns: 1fr 1fr 1fr; }
    .photo-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .photo-grid li:first-child { grid-row: span 2; }
    .photo-grid li:first-child img { height: 100%; aspect-ratio: auto; }
    .card-grid.courses { grid-template-columns: 1fr 1fr 1fr; }
    .filters { grid-template-columns: 1.4fr 1fr 1fr 1fr auto; align-items: end; }
    .filters .button-row { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.payment-summary { margin: 1rem 0 1.5rem; }
.payment-summary dt { font-weight: 800; color: var(--blue-deep); margin-top: 0.7rem; }
.payment-summary dd { margin: 0.2rem 0 0; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
.data-table caption { text-align: left; font-weight: 800; padding: 0.5rem 0; }
.data-table th,
.data-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--blue-deep); }
