:root {
    --portal: #1a73c9;
    --portal-deep: #0f5ea8;
    --page: #d5e7f8;
    --ink: #243040;
    --muted: #5d6d7e;
    --line: #d5e0ea;
    --paper: #f4f7fb;
    --card: #ffffff;
    --navy: #0f5ea8;
    --brick: #1a73c9;
    --soft: #e7f1fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Tahoma, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: Tahoma, "Segoe UI", sans-serif; font-weight: 700; line-height: 1.3; }
a { color: var(--portal-deep); }
::selection { background: #cfe4f8; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.skip {
    position: absolute; left: 12px; top: -48px; background: white; color: var(--ink);
    padding: 8px 12px; z-index: 80;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--portal); outline-offset: 2px; }

body.portal { background: var(--page); }
.sheet {
    width: min(1040px, calc(100% - 24px));
    margin: 16px auto 28px;
    background: #f7f9fb;
    border: 1px solid #b7cfe6;
    box-shadow: 0 10px 28px rgba(16, 55, 100, 0.08);
}
.top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px 10px;
    background: #fff;
}
.head-promo {
    margin-left: auto;
    width: min(340px, 46%);
    height: 82px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    background: transparent;
    text-decoration: none;
}
.head-promo img,
.head-promo video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 82px;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}
.head-promo p {
    margin: 0;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-align: center;
    color: var(--portal-deep);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.logo {
    width: 82px;
    height: 82px;
    flex: none;
    display: grid;
    place-items: center;
    background: transparent;
}
.logo img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}
.ticker {
    height: 34px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #e3edf6;
    container-type: inline-size;
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-run 18s linear infinite;
}
.ticker-track span {
    white-space: nowrap;
    padding-right: 3rem;
    color: #c62828;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
@keyframes ticker-run {
    from { transform: translateX(0); }
    to { transform: translateX(calc(var(--ticker-shift, 12.5%) * -1)); }
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text small {
    color: var(--portal);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}
.brand-text strong {
    color: var(--portal-deep);
    font-size: 22px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.15;
}
.brand-text em {
    margin-top: 2px;
    color: #5d7090;
    font-style: normal;
    font-size: 12px;
}
.masthead {
    background: #d7e4f0;
    line-height: 0;
    overflow: hidden;
}
.masthead > img,
.masthead .banner-track > img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center;
}
.masthead .banner-viewport { aspect-ratio: 3 / 1; }
.masthead.is-slider .banner-track,
.masthead.is-slider .banner-track > img { height: 100%; }
.masthead .banner-dots { bottom: 12px; }
.nav-toggle {
    display: none;
    border: 1px solid #c5d7ea;
    background: #fff;
    color: var(--portal-deep);
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 700;
}
.menu {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: var(--portal);
}
.menu a {
    color: #fff;
    text-decoration: none;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.menu a:hover,
.menu a[aria-current="page"] { background: var(--portal-deep); }
.menu-drop { position: relative; display: flex; align-items: stretch; }
.menu-drop > a .caret { font-size: 9px; margin-left: 2px; }
.menu-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    z-index: 30;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d7e3ef;
    box-shadow: 0 10px 22px rgba(16, 55, 100, 0.14);
    padding: 4px 0;
}
.menu-drop:hover > .menu-sub,
.menu-drop:focus-within > .menu-sub { display: flex; }
.menu .menu-sub a {
    color: #1d3557;
    background: #fff;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-bottom: 1px solid #eef3f8;
    white-space: nowrap;
}
.menu .menu-sub a:hover,
.menu .menu-sub a[aria-current="page"] {
    background: #f4f8fc;
    color: var(--portal-deep);
}
.menu .menu-sub a:last-child { border-bottom: 0; }

.cols {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 230px;
    gap: 10px;
    padding: 10px;
    align-items: start;
}
.col-main { min-width: 0; }
.col-main > .wrap,
.col-main > article,
.col-main > section.contact-grid,
.col-main > section:not(.box):not(.banner):not(.headline) {
    background: #fff;
    border: 1px solid #d7e3ef;
    padding: 0 12px 16px;
    margin-bottom: 10px;
}

.box {
    background: #fff;
    border: 1px solid #d7e3ef;
    margin-bottom: 10px;
}
.box > h2,
.portal .col-main > .wrap > h1,
.portal .col-main > article > h1,
.portal .col-main > section > h1 {
    margin: 0;
    background: var(--portal);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 10px;
}
.portal .col-main > .wrap > h1,
.portal .col-main > article > h1,
.portal .col-main > section > h1 { margin: 0 -12px 12px; }
.portal .col-main h1:not(.sr-only) {
    margin: 10px 0 12px;
    background: var(--portal);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 10px;
}
.box-body { padding: 8px 10px 10px; }
.box-menu { list-style: none; margin: 0; padding: 0; }
.box-menu > li { position: relative; }
.box-menu a {
    display: block;
    position: relative;
    padding: 6px 4px 6px 16px;
    text-decoration: none;
    color: #163e6b;
    border-bottom: 1px solid #eef3f8;
}
.box-menu > li:last-child > a { border-bottom: 0; }
.menu-fold {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--portal);
    cursor: pointer;
}
.menu-fold::before {
    content: "›";
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    transform: rotate(90deg);
}
.menu-fold[aria-expanded="false"]::before { transform: none; }
.box-menu a:hover,
.box-menu a[aria-current="page"] { background: #f3f8fd; }
.box-menu ul { list-style: none; margin: 0; padding: 0 0 0 14px; }
.box-menu ul a { font-size: 12px; color: #3d5674; }
.box-menu > li.is-folded > ul { display: none; }

.side-search { display: flex; gap: 6px; }
.side-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid #c9d8e8;
    background: #fff;
    padding: 6px 8px;
}
.side-search button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    padding: 7px 12px;
}
.side-search button,
.btn-primary { background: var(--portal); color: #fff; border-color: var(--portal-deep); }
.btn-primary:hover,
.side-search button:hover { background: var(--portal-deep); }
.btn-ghost { background: #fff; border-color: #c5d4e4; color: var(--ink); }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 7px 0; border-bottom: 1px dotted #d5e1ee; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list time { display: block; color: var(--muted); font-size: 11px; }
.mini-list a { text-decoration: none; color: #163e6b; font-weight: 700; }
.mini-list a:hover { text-decoration: underline; }
.contact-side p { margin: 0 0 6px; }
.contact-side a { text-decoration: none; }
.more { margin: 8px 0 0; }
.more a { font-weight: 700; text-decoration: none; }
.mini-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-gallery img { width: 100%; height: 68px; object-fit: contain; background: #e7eef6; }

.headline, .banner { position: relative; background: #d9e6f2; margin-bottom: 10px; overflow: hidden; }
.banner img, .headline img { width: 100%; height: 250px; object-fit: cover; }
.banner-viewport { position: relative; overflow: hidden; }
.banner-track { display: flex; transition: transform 0.45s ease; touch-action: pan-y; }
.banner-track > .slide,
.banner-track > img { position: relative; flex: 0 0 100%; width: 100%; min-width: 0; max-width: none; display: block; color: #fff; text-decoration: none; }
.slide img, .banner-track img { width: 100%; max-width: none; user-select: none; }
.slide-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px 12px 10px;
    background: linear-gradient(transparent, rgba(8, 40, 84, 0.88));
    color: #fff; font-weight: 700; font-size: 15px;
}
.banner-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 32px; height: 32px; border: 0; padding: 0;
    background: rgba(255,255,255,.9); color: #163e6b; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.banner-prev { left: 8px; }
.banner-next { right: 8px; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; justify-content: center; gap: 6px; }
.banner-dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.55); cursor: pointer;
}
.banner-dots button[aria-current="true"] { background: #fff; }

.news-item { border-bottom: 1px solid #e6eef6; }
.news-item:last-of-type { border-bottom: 0; }
.news-item a {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}
.news-item img, .news-fallback { width: 96px; height: 72px; object-fit: cover; background: #e7eef6; }
.news-item.has-photo a { display: block; }
.news-item.has-photo .news-photo { width: 100%; height: 280px; margin-bottom: 8px; }
.news-item.has-photo .news-copy strong { text-align: center; }
.news-copy strong { display: block; color: #143e72; font-size: 14px; }
.news-copy time, .news-copy em { display: block; margin-top: 3px; color: var(--muted); font-style: normal; }
.more-link { display: inline-block; margin-top: 4px; color: var(--portal); font-weight: 700; }

.story, .index-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e6eef6;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.story img { width: 92px; height: 68px; object-fit: cover; flex: none; background: #e7eef6; }
.story span { min-width: 0; }
.index-item span:first-child { flex: none; width: 2.4rem; color: var(--muted); font-size: 12px; }
.story > time { flex: none; width: 7.5rem; }
.story time { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.story strong, .index-item strong { display: block; color: #143e72; font-size: 14px; }
.story em, .index-item em { display: block; margin-top: 3px; color: var(--muted); font-style: normal; }
.story small { display: block; color: var(--portal); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.story:hover strong, .index-item:hover strong, .news-item:hover strong { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips a {
    text-decoration: none;
    border: 1px solid #d0deec;
    background: #fff;
    padding: 4px 8px;
    color: #163e6b;
}
.chips a.is-active { background: var(--portal); color: #fff; border-color: var(--portal); }

.meta, .lede, .empty, .hint { color: var(--muted); }
.empty { margin: 8px 0; }
.article-cover,
.prose img {
    display: block;
    width: 100%;
    height: 280px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    margin: 8px 0 14px;
}
.prose figure { margin: 0 0 1rem; }
.prose a { color: #1a66c2; }
.prose .yt-thumb { max-width: 480px; }
.prose .yt-thumb img,
.prose .embed-photo img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    margin: 0;
}
.prose .embed-photo { max-width: 100%; margin: 8px 0 14px; }
.prose .embed-audio audio { width: min(100%, 480px); display: block; }
.prose { font-size: 14px; line-height: 1.7; }
.prose p { margin: 0 0 0.9rem; }
.prose h2, .prose h3 { margin: 1.1rem 0 0.45rem; color: var(--portal-deep); text-transform: none; letter-spacing: 0; font-size: 16px; background: none; padding: 0; }
.prose ul, .prose ol { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.prose blockquote { margin: 0 0 0.9rem; padding-left: 12px; border-left: 3px solid var(--portal); color: var(--muted); }
.text-link { color: var(--portal); font-weight: 700; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
.gallery img { width: 100%; height: 110px; object-fit: contain; background: #e7eef6; }
.contact-grid { display: block; }
.contact-info p { margin: 0 0 8px; }
.card { background: #f8fbfe; border: 1px solid var(--line); padding: 12px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-weight: 700; }
.field input, .field textarea, .field select, .setup input, .setup textarea {
    width: 100%;
    border: 1px solid #c9d8e8;
    background: #fff;
    padding: 8px 10px;
    font-weight: 400;
}
.search-page { display: flex; gap: 8px; margin: 10px 0 14px; }
.search-page input { flex: 1; border: 1px solid #c9d8e8; padding: 8px 10px; }
.pager { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.pager a { font-weight: 700; text-decoration: none; }
.flash { padding: 10px 12px; margin: 0 0 10px; }
.flash-ok { background: #e5f4ea; color: #1d4a34; border: 1px solid #b7dfc4; }
.flash-err { background: #fdecea; color: #8a2b1a; border: 1px solid #f3c2b8; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--portal);
    color: #fff;
    padding: 10px 12px;
    font-size: 12px;
}
.foot a { color: #fff; }

.lightbox { position: fixed; inset: 0; background: rgba(10, 20, 32, 0.9); display: grid; place-items: center; z-index: 60; padding: 24px; }
.lightbox img { max-width: min(1000px, 100%); max-height: 84vh; }
.lightbox button { position: absolute; top: 16px; right: 16px; border: 0; padding: 8px 14px; background: #fff; cursor: pointer; }

.setup { width: min(760px, calc(100% - 32px)); margin: 28px auto 48px; }
.setup h1 { font-size: 28px; margin: 8px 0; color: var(--portal-deep); background: none; padding: 0; text-transform: none; letter-spacing: 0; }
.setup-grid { display: grid; gap: 12px; }
fieldset { border: 1px solid var(--line); background: #fff; padding: 8px 14px 14px; }
legend { padding: 0 6px; font-weight: 700; }
.host-steps { padding-left: 18px; }
.host-steps li { margin: 8px 0; }
.kicker { color: var(--portal); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.back-row { margin: 0 0 10px; }
.back-btn {
    border: 1px solid var(--portal);
    background: #fff;
    color: var(--portal-deep);
    border-radius: 3px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}
.back-btn:hover { background: #e7f1fb; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .brand-text strong { font-size: 16px; }
    .top-bar { flex-wrap: wrap; padding: 12px 12px 4px; }
    .head-promo { order: 4; width: 100%; height: 96px; margin-left: 0; }
    .head-promo img,
    .head-promo video { height: auto; max-height: 96px; }
    .head-promo p { height: 96px; }
    .ticker { height: 30px; }
    .ticker-track span { font-size: 14px; padding-right: 2.5rem; }
    .logo, .logo img { width: 64px; height: 64px; }
    .menu-drop { flex-direction: column; width: 100%; }
    .menu.is-open .menu-sub {
        position: static;
        display: flex;
        min-width: 0;
        box-shadow: none;
        border: 0;
        padding: 0;
    }
    .menu.is-open .menu-sub a { padding-left: 22px; }
    .masthead > img,
    .masthead .banner-track > img { height: 200px; object-position: center 42%; }
    .menu { display: none; }
    .menu.is-open { display: flex; flex-direction: column; }
    .cols { display: flex; flex-direction: column; }
    .col-main { order: -1; }
    .banner img, .headline img, .slide img { height: 190px; }
    .news-item a { grid-template-columns: 72px 1fr; }
    .news-item img, .news-fallback { width: 72px; height: 56px; }
    .article-cover,
    .prose img,
    .news-item.has-photo .news-photo { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .ticker-track { transform: none; }
}
