/* Shared public layout and navigation, October 2026. */
:root {
    --page-width: 1440px;
    --page-gutter: 32px;
    --ui-border: #dce5ed;
    --ui-muted: #465d75;
}
/* One outer edge; prose keeps its own readable measure inside it. */
.wrap,
.page-hero .wrap.narrow,
.is-inner-page .section > .wrap.narrow,
.is-inner-page .section > .wrap.narrow:has(.rich-content),
.is-inner-page .section > .wrap.narrow:has(.content-card > .rich-content),
.site-footer .wrap,
.topbar .wrap {
    width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
    margin-inline: auto;
}
.social-links {
    margin-left: calc((100vw - min(var(--page-width), calc(100vw - var(--page-gutter) * 2))) / -2);
    padding-left: max(var(--page-gutter), calc((100vw - var(--page-width)) / 2));
}
.page-hero { padding: 32px 0 24px; }
.page-hero .hero-copy { max-width: 70ch; width: auto; }
.rich-content > p,
.rich-content > ul,
.rich-content > ol { max-width: 75ch; }
.is-inner-page .rich-content { overflow-wrap: anywhere; }
.is-inner-page .rich-content .table-scroll { max-width: 100%; overflow-x: auto; }
.is-inner-page .rich-content table { min-width: 0; width: 100%; }
.is-inner-page .rich-content table th,
.is-inner-page .rich-content table td {
    min-width: 0;
    overflow-wrap: anywhere;
}
.is-inner-page .rich-content table th:first-child,
.is-inner-page .rich-content table td:first-child,
.is-inner-page .rich-content table th:nth-child(2),
.is-inner-page .rich-content table td:nth-child(2),
.is-inner-page .rich-content table th:nth-child(3),
.is-inner-page .rich-content table td:nth-child(3) { min-width: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; padding: 12px 18px; background: #075f59; color: white; transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: none; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid #075f59; outline-offset: 4px; }
html { scroll-padding-top: 120px; }
body.is-inner-page { background: #f7f9fc; }
body.is-home:not([data-home-background="white"]) { background: linear-gradient(180deg, #f0f7fc, #f7faf8 65%, #fff); }
body.is-home[data-hero-theme="color"] .hero::before {
    height: 100%;
    background: radial-gradient(circle at 85% 20%, rgb(191 226 213 / 45%), transparent 40%), linear-gradient(125deg, #edf5fd, #f4f0fc 55%, #eff8f2);
}
.section.alt { background: #eef6f5; }
.content-card, .resource-card, .article-card { border: 1px solid var(--ui-border); box-shadow: 0 6px 20px rgb(17 42 87 / 5%); border-radius: 20px; }
.resource-card, .article-card { background: #fff; }
.resource-card:nth-child(3n+1) { border-top: 4px solid #93c9be; }
.resource-card:nth-child(3n+2) { border-top: 4px solid #b5a6de; }
.resource-card:nth-child(3n) { border-top: 4px solid #a2c5e6; }
.button.button-primary { background: #075f59; color: #fff; box-shadow: 0 6px 14px rgb(7 95 89 / 14%); }
.button.button-primary:hover { background: #064b46; }
.button { min-height: 46px; }
.site-header .nav-row { grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 20px; }
.site-header .site-nav { flex-wrap: nowrap; gap: clamp(10px, 1.25vw, 22px); }
.site-header .site-nav-link { font-size: .875rem; white-space: nowrap; }
@media (min-width: 1200px) { .site-header .site-nav-link { min-height: 46px; } }
.site-header .nav-dropdown,
.site-header .nav-group:hover .nav-dropdown,
.site-header .nav-group:focus-within .nav-dropdown { display: none !important; }
.site-header .nav-group.is-open > .nav-dropdown { display: grid !important; gap: 4px; }
.site-header .nav-dropdown { background: #fff; max-height: min(65vh, 560px); overflow-y: auto; }
.site-header .nav-group:nth-last-of-type(-n+2) .nav-dropdown { left: auto; right: 0; }
.site-header .nav-dropdown-link { min-height: 44px; display: flex; align-items: center; }
.site-header [aria-current="page"],
.site-header .is-current-group > button { color: #075f59; font-weight: 800; }
.site-header [aria-current="page"] { background: #e6f3ee; border-radius: 8px; padding-inline: 12px; }
.site-header .is-current-group > button::before { transform: scaleX(1); background: #075f59; height: 3px; }
.mobile-priority-links { display: none; }
.task-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.task-shortcuts a { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 72px; padding: 12px; border: 1px solid #c8ddd8; border-radius: 14px; color: #143d4c; background: #eff8f4; font-size: .88rem; font-weight: 700; }
.task-shortcuts a:nth-child(2) { background: #f1edfa; border-color: #ded5ee; }
.task-shortcuts a:nth-child(3) { background: #edf4fc; border-color: #d4e2f0; }
.task-shortcuts a:nth-child(4) { background: #fff5de; border-color: #ebdfbe; }
.task-shortcuts a:hover { border-color: #075f59; transform: translateY(-2px); }
.task-shortcuts span { font-size: .72rem; color: #516277; }
.is-home .hero { padding: 24px 0 32px; }
.is-home .hero-copy-block { padding-top: 0; }
.is-home .hero h1 { font-size: clamp(2.2rem, 4.2vw, 4rem); max-width: 18ch; }
.is-home .hero-grid { align-items: center; gap: 32px; }
.is-home .hero-shortcuts { gap: 8px; }
.is-home .shortcut-pill { min-height: 44px; height: auto; padding: 8px 12px; line-height: 1.35; white-space: normal; }
.is-home .hero-stage { min-width: 0; }
.is-home .hero-stage { min-height: 450px; box-shadow: 0 12px 30px rgb(17 42 87 / 8%); }
.breaking-ticker { background: #fff2d8; border: 1px solid #e8d5ab; color: #624216; box-shadow: none; }
.breaking-ticker-label { background: #f1ddaf; color: #624216; }
.breaking-ticker-link { color: #624216; }
.resource-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto; gap: 16px; align-items: end; padding: 24px; margin-bottom: 20px; background: #fff; border: 1px solid var(--ui-border); border-radius: 18px; }
.resource-search label { display: grid; gap: 8px; color: var(--ink); font-weight: 700; }
.resource-search input, .resource-search select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #a6b6c4; background: #fff; color: var(--ink); border-radius: 8px; font: inherit; }
.resource-search .filter-reset { display: inline-flex; align-items: center; min-height: 46px; text-decoration: underline; }
.resource-results-count { color: var(--ui-muted); margin: 0 0 24px; }
.resource-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.resource-pagination a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 16px; background: #fff; border: 1px solid var(--ui-border); border-radius: 10px; }
@media (min-width: 768px) and (max-width: 1199px) {
    :root { --page-gutter: 24px; }
    .article-grid, .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
    .site-header .topbar { display: none; }
    .site-header .nav-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 76px; padding: 10px 0; gap: 0 12px; }
    .site-header .brand { width: auto; min-width: 0; padding: 0; }
    .site-header .brand-copy { min-width: 0; max-width: none; }
    .site-header .brand strong { white-space: normal; overflow: visible; line-height: 1.25; }
    .site-header .menu-toggle { display: inline-flex; position: relative; align-items: center; justify-content: flex-end; min-width: 92px; width: 92px; min-height: 44px; padding: 0 10px 0 36px; grid-column: 2; border: 1px solid var(--ui-border); border-radius: 12px; background: white; }
    .site-header .menu-toggle-label { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; font-size: .85rem; }
    .site-header .menu-toggle-line { position: absolute; left: 12px; width: 18px; height: 2px; margin: 0; background: currentColor; }
    .site-header .menu-toggle-line:nth-child(1) { top: 14px; }
    .site-header .menu-toggle-line:nth-child(2) { top: 21px; }
    .site-header .menu-toggle-line:nth-child(3) { top: 28px; }
    .site-header.is-menu-open .menu-toggle-line:nth-child(1) { top: 21px; transform: rotate(45deg); }
    .site-header.is-menu-open .menu-toggle-line:nth-child(2) { opacity: 0; }
    .site-header.is-menu-open .menu-toggle-line:nth-child(3) { top: 21px; transform: rotate(-45deg); }
    .site-header .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; margin: 0; border: 1px solid var(--ui-border); border-radius: 16px; background: #f7fafc; box-shadow: 0 12px 28px rgb(17 42 87 / 12%); }
    .site-header.is-menu-open .site-nav { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; max-height: var(--menu-space, calc(100dvh - 96px)); padding: 12px; margin: 0; overflow: auto; visibility: visible; opacity: 1; transform: none; overscroll-behavior: contain; }
    .site-header .site-nav > * { flex: 0 0 auto; }
    .site-header .nav-group { width: 100%; }
    .site-header .site-nav-link { width: 100%; min-height: 46px; height: auto; padding: 10px 14px; justify-content: space-between; white-space: normal; line-height: 1.4; border: 1px solid var(--ui-border); border-radius: 10px; background: #fff; box-shadow: none; }
    .site-header .site-nav-link::before { display: none; }
    .site-header .nav-dropdown { position: static; min-width: 0; width: auto; max-height: none; margin: 6px 0 0 10px; padding: 4px; border: 0; border-left: 2px solid #b8d7ce; border-radius: 0; background: #fff; box-shadow: none; visibility: visible; opacity: 1; transform: none; }
    .site-header .nav-dropdown-link { padding: 10px 12px; }
    .site-header .mobile-priority-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
    .mobile-priority-links a { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 10px; background: #e7f3ee; border: 1px solid #c8ddd8; border-radius: 10px; }
    .mobile-priority-links .mobile-priority-login { grid-column: 1 / -1; background: #075f59; color: white; }
    .site-header .mobile-menu-utility { display: grid; gap: 14px; padding: 16px; margin-top: 8px; border: 1px solid var(--ui-border); border-radius: 12px; background: #eef3fa; }
    .site-header .mobile-menu-login { display: none; }
    .site-header .mobile-menu-quick-links a { min-height: 44px; display: inline-flex; align-items: center; }
    .resource-search { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
@media (max-width: 767px) {
    :root { --page-gutter: 16px; }
    .site-header .brand strong { font-size: .75rem; }
    .site-header .brand small { font-size: .48rem; }
    .page-hero { padding: 24px 0 16px; }
    .page-hero h1 { overflow-wrap: anywhere; }
    .is-inner-page .section > .wrap.narrow .content-card { padding: 20px; }
    .article-grid, .resource-grid { grid-template-columns: 1fr; }
    .is-home .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
    .is-home .hero-grid { gap: 24px; }
    .is-home .hero-stage { min-height: 300px; }
    .task-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .task-shortcuts a { min-height: 64px; }
    .resource-search { grid-template-columns: 1fr; padding: 18px; }
    .resource-search .button { width: 100%; }
    .is-inner-page .rich-content table { display: block; overflow-x: auto; }
    .is-inner-page .rich-content table th, .is-inner-page .rich-content table td { min-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Public presentation: clear institutional hierarchy with welcoming colour. */
.site-header { border-bottom: 1px solid var(--ui-border); }
.is-home .hero h1 { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.12; }
.hero-organiser { max-width: 65ch; margin: 14px 0 20px; color: #465d75; font-size: .84rem; line-height: 1.6; }
.is-home .hero-slide { opacity: 1; transform: none; animation: none !important; }
.is-home .hero-slideshow::after { background: linear-gradient(180deg, transparent 65%, rgb(17 42 67 / 12%)); }
.is-home .hero-stage-shape { display: none; }
.is-home .hero-stage { border: 1px solid #d6e4e9; border-radius: 22px; overflow: hidden; }
.is-home .hero-stage-main { inset: 0; width: auto; }
.is-home .hero-visual-shell { border-radius: 20px; }
.is-home .section { padding: clamp(28px, 3.4vw, 46px) 0; }
.is-home .section-heading { display: block; max-width: 850px; margin-bottom: 24px; }
.is-home .section-heading h2 { max-width: 30ch; margin: 6px 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.22; }
.is-home .section-heading p { max-width: 70ch; }
.is-home .section-heading .eyebrow { margin: 0 0 8px; color: #075f59; font-size: .76rem; }
.is-home .feature-card, .is-home .notice-card, .is-home .resource-card { border: 1px solid var(--ui-border); border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgb(17 42 67 / 4%); }
.is-home .feature-card:nth-child(4n+1), .is-home .resource-card:nth-child(3n+1) { border-top: 4px solid #91c6ba; }
.is-home .feature-card:nth-child(4n+2), .is-home .resource-card:nth-child(3n+2) { border-top: 4px solid #a3bfdf; }
.is-home .feature-card:nth-child(4n+3), .is-home .resource-card:nth-child(3n) { border-top: 4px solid #b9abda; }
.is-home .feature-card:nth-child(4n) { border-top: 4px solid #e3c98d; }
.is-home .home-card-visual { width: 40px; height: 40px; margin: 18px 18px 10px; border-radius: 10px; color: #075f59; background: #e7f3ef; box-shadow: none; font-size: 1rem; }
.home-section-registration-steps .home-card-visual, .home-section-public-notices .home-card-visual { display: none; }
.is-home .home-section-registration-steps .card-grid,
.is-home .home-section-important-dates .notice-grid,
.is-home .home-section-public-notices .notice-grid,
.is-home .home-section-resources-and-pages .resource-grid,
.is-home .winner-grid-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-section-registration-steps { background: #eef6f5; }
.home-section-public-notices { border-top: 1px solid var(--ui-border); }
.is-home .section-actions { margin-top: 22px; }
.date-status { display: inline-flex; align-items: center; width: fit-content; padding: 5px 10px; border: 1px solid #b9d9cd; border-radius: 6px; color: #075549; background: #eaf5ef; font-size: .78rem; font-weight: 700; }
.date-status-past { color: #526072; background: #eef1f5; border-color: #d6dde5; }
.calendar-date { display: block; margin: 12px 0; font-size: 1.1rem; font-weight: 700; color: #183953; }
.notice-card > .date-status { margin-bottom: 12px; }
.calendar-empty { padding: 24px; max-width: 850px; }
.calendar-empty h3 { margin-top: 0; }
.site-footer { padding-top: 36px; background: #152c40; }
.footer-organiser { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid #385064; }
.site-footer .footer-kicker { margin: 0 0 6px; color: #a8d9cf; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-footer .footer-organiser-name { max-width: 58ch; margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.5; }
.footer-organiser p { max-width: 75ch; margin: 0; }
.footer-organiser > .button { flex-shrink: 0; color: #fff; border: 1px solid #8aafb9; background: transparent; }
.site-footer .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(230px, 1.25fr); gap: 30px; }
.site-footer .footer-column h2 { max-width: none; margin: 0 0 14px; color: #fff; font-size: 1rem; line-height: 1.4; letter-spacing: 0; }
.site-footer a, .site-footer p, .site-footer li { font-size: .88rem; }
.site-footer li + li { margin-top: 2px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer :where(a, button, input):focus-visible { outline-color: #a8d9cf; }
.site-footer .footer-newsletter { padding: 0; min-width: 0; }
.footer-newsletter p { margin: 0 0 14px; }
.footer-newsletter .newsletter-form { display: grid; gap: 8px; }
.footer-newsletter label { font-size: .82rem; }
.footer-newsletter .newsletter-input { min-height: 46px; padding: 10px 12px; border: 1px solid #7893a9; border-radius: 8px; background: #fff; color: #152c40; font: inherit; }
.footer-newsletter .newsletter-link { margin: 4px 0 0; min-height: 44px; justify-content: center; padding: 10px 16px; border: 1px solid #b2d8ce; border-radius: 8px; background: #d9eee7; color: #123e3b; font: inherit; font-weight: 700; cursor: pointer; }
.footer-newsletter .footer-privacy { margin-top: 12px; font-size: .78rem; }
.footer-privacy a { text-decoration: underline; }
.site-footer .footer-bottom { margin-top: 30px; padding-block: 18px; border-top: 1px solid #385064; }
@media (min-width: 768px) and (max-width: 1199px) {
    .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .is-home .home-section-public-notices .notice-grid,
    .is-home .home-section-important-dates .notice-grid,
    .is-home .home-section-resources-and-pages .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .is-home .home-section-registration-steps .card-grid,
    .is-home .home-section-important-dates .notice-grid,
    .is-home .home-section-public-notices .notice-grid,
    .is-home .home-section-resources-and-pages .resource-grid,
    .is-home .winner-grid-featured,
    .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-organiser { flex-direction: column; align-items: flex-start; gap: 18px; }
    .site-footer li a { min-height: 44px; }
    .site-footer .footer-bottom { flex-wrap: wrap; gap: 8px; padding-right: 56px; }
}
