:root {
    --utt-blue: #0b477f;
    --utt-blue-dark: #07335c;
    --utt-sky: #27aae1;
    --utt-surface: #f4f7fa;
    --utt-header-offset: 89px;
}

body {
    padding-top: var(--utt-header-offset);
}

.navbar-brand .logo-large,
.navbar-brand .logo-small {
    width: auto !important;
    max-width: 275px;
    max-height: 90px;
    object-fit: contain;
}

.page-header,
.home-header {
    background: #fff !important;
}

.page-header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
}

header.home-header .nav-wrapper::before {
    border-bottom-color: #e5ebf0;
}

header.home-header .navbar-nav .nav-link {
    color: #344c60;
}

header.home-header .navbar-nav .nav-link:hover,
header.home-header .navbar-nav .nav-item:hover > .nav-link {
    color: var(--utt-blue);
}

.page-header.sticky .nav-wrapper .navbar-brand img.logo-small {
    width: auto !important;
    height: auto !important;
    max-width: 250px;
    max-height: 78px;
}

.page-header .nav-top {
    display: none;
}

.page-header .nav-wrapper,
.page-header.sticky .nav-wrapper {
    padding-top: 0;
}

.page-header .nav-wrapper .navbar,
.page-header.sticky .nav-wrapper .navbar {
    padding-top: 0;
}

.page-header .nav-wrapper .navbar-brand img.logo-large,
.page-header.sticky .nav-wrapper .navbar-brand img.logo-large {
    display: none !important;
}

.page-header .nav-wrapper .navbar-brand img.logo-small,
.page-header.sticky .nav-wrapper .navbar-brand img.logo-small {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 250px;
    max-height: 78px;
}

.page-header .navbar-nav,
.page-header.sticky .navbar-nav {
    align-items: center;
}

.page-header .navbar-nav .nav-link,
.page-header.sticky .navbar-nav .nav-link {
    color: #344c60;
    font-size: 2rem;
    font-weight: 400;
}

.page-header,
.page-header.sticky,
.page-header.up,
.page-header.down,
.page-header.sticky.up,
.page-header.sticky.down {
    top: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
}

@media (max-width: 1299px) {
    .page-header .navbar-nav .nav-link,
    .page-header.sticky .navbar-nav .nav-link { font-size: 1.6rem; }
}

.section-spotlight .item > figure img {
    width: 100%;
    min-height: 640px;
    object-fit: cover;
}

.section-spotlight .item > figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2,27,52,.82), rgba(2,27,52,.24) 60%, transparent);
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--utt-header-offset));
    min-height: calc(100svh - var(--utt-header-offset));
    display: flex;
    align-items: center;
    padding: 76px 0 88px;
    background:
        linear-gradient(90deg, rgba(247,249,251,.98) 0%, rgba(247,249,251,.93) 52%, rgba(237,246,250,.72) 100%),
        url('/bg.jpg') center / cover no-repeat;
    border-bottom: 1px solid #e7edf2;
}
.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(90deg, #1596c8 0 32%, #1ca86f 32% 65%, #e7c14b 65% 100%);
    opacity: .72;
}
.home-hero-grid { position: relative; z-index: 1; }
.home-hero-copy { max-width: 900px; }
.home-hero-eyebrow, .section-kicker { display: inline-block; margin-bottom: 22px; color: var(--utt-blue); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.home-hero h1 { margin: 0 0 24px; color: #102a3d; font-size: clamp(52px, 6.2vw, 90px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.home-hero-copy > p { max-width: 680px; margin: 0; color: #526878; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.65; }
.home-hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 38px; }
.home-hero-actions .btn { padding: 15px 24px; border-radius: 4px; }
.home-hero-link { color: var(--utt-blue); font-weight: 700; }
.home-hero-link span { display: inline-block; margin-left: 7px; transition: transform .2s ease; }
.home-hero-link:hover span { transform: translateX(4px); }
.partner-feedback { padding: 88px 0; background: #fff; }
.feedback-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 38px; }
.feedback-heading .section-kicker { margin-bottom: 12px; }
.feedback-heading h2 { margin: 0; color: #102a3d; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.03em; }
.feedback-heading > p { max-width: 520px; margin: 0; color: #6a7d8c; font-size: 17px; line-height: 1.7; }
.feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.feedback-card { margin: 0; padding: 34px; border: 1px solid #e1e8ed; background: #fafcfd; }
.feedback-card > p { min-height: 86px; margin-bottom: 28px; color: #334d60; font-size: 18px; line-height: 1.7; }
.feedback-person { display: flex; align-items: center; gap: 14px; }
.feedback-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; }
.feedback-person strong, .feedback-person span { display: block; }
.feedback-person strong { color: #15364d; }
.feedback-person span { color: #7b8c98; font-size: 14px; }

.public-info-bar { background: #fff; padding: 28px 0; border-bottom: 1px solid #e7edf3; }
.public-info-grid { display: grid; grid-template-columns: 1.2fr 1.05fr 1.1fr; gap: 28px; align-items: stretch; }
.info-widget { min-height: 112px; border: 1px solid #dfe7ef; background: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 18px; }
.weather-widget { display: grid; grid-template-columns: minmax(205px, 1fr) auto auto; gap: 8px; }
.weather-widget > div { min-width: 0; }
.weather-widget select { width: 100%; min-width: 205px; max-width: none; border: 0; border-bottom: 1px solid #d7e0e8; color: #172b3a; padding: 8px 32px 8px 0; background: transparent; font-size: 15px; }
.weather-reading { margin-left: auto; color: var(--utt-sky); font-size: 34px; white-space: nowrap; }
.weather-icon { font-size: 44px; }
.year-banner { justify-content: center; text-align: center; color: #fff; border: 0; background: linear-gradient(135deg,#063a72,#0b66a6); }
.year-banner strong { font-size: 29px; display: block; font-family: Georgia,serif; }
.rates-widget { border-left: 4px solid #174895; color: #173f70; justify-content: space-between; min-width: 0; }
.rates-widget > div:first-child { min-width: 0; }
.rates-list { flex: 0 0 auto; background: #174895; color: #fff; margin: -18px -20px -18px 0; padding: 17px 18px; min-width: 185px; white-space: nowrap; font-size: 16px; }
.rates-list div + div { margin-top: 5px; }

.official-links { background: #edf0f2; padding: 48px 0; }
.official-links-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px 46px; }
.official-link { display: flex; align-items: center; gap: 18px; color: #124c86; font-weight: 700; text-transform: uppercase; line-height: 1.45; }
.official-link:hover { color: var(--utt-sky); }
.official-link-mark { width: 52px; height: 52px; border: 2px solid currentColor; display: grid; place-items: center; font-size: 25px; flex: 0 0 52px; }

.content-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.content-tabs a { padding: 12px 18px; border: 1px solid #d8e2ec; color: var(--utt-blue); font-weight: 700; background: #fff; }
.content-tabs a.active, .content-tabs a:hover { color: #fff; background: var(--utt-blue); }
.content-panel { scroll-margin-top: 110px; }
.content-panel p, .content-panel li { font-size: 17px; line-height: 1.8; }
.mission-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.mission-list li { position: relative; padding: 17px 20px 17px 54px; background: var(--utt-surface); border-left: 3px solid var(--utt-sky); }
.mission-list li::before { content: "✓"; position: absolute; left: 20px; top: 16px; color: var(--utt-sky); font-weight: 800; }
.about-page .about-message ~ section.section { display: none; }

.team-item figure img { aspect-ratio: 4/5; width: 100%; object-fit: cover; object-position: top center; }
.team-meta { color: #607282; font-size: 15px; }

.contact-reference { max-width: 1120px; margin: 0 auto; }
.contact-reference h2 { margin-bottom: 32px; text-transform: uppercase; }
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table tr:nth-child(odd) { background: #f6f8fa; }
.contact-table th, .contact-table td { padding: 18px 16px; border-bottom: 1px solid #d9e0e6; vertical-align: top; }
.contact-table th { width: 190px; color: #111; }
.contact-table a { color: var(--utt-blue); }
.contact-map { width: 100%; height: 450px; border: 0; }
.phone-stack a { display: block; margin-bottom: 5px; }
.contact-table a.btn.btn-primary,
.contact-table a.btn.btn-primary:visited,
.contact-table a.btn.btn-primary:focus,
.contact-table a.btn.btn-primary:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 198px;
    min-height: 48px;
    color: #fff !important;
    background: var(--utt-blue) !important;
    border: 1px solid var(--utt-blue) !important;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(11, 71, 127, .2) !important;
}
.contact-table a.btn.btn-primary:hover {
    color: #fff !important;
    background: var(--utt-blue-dark) !important;
    border-color: var(--utt-blue-dark) !important;
    transform: translateY(-1px);
}
.contact-table a.btn.btn-primary:focus-visible {
    outline: 3px solid rgba(39, 170, 225, .35);
    outline-offset: 3px;
}
.contacts-page .legacy-contact-form,
.contacts-page .section-map { display: none; }

.document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.document-card { display: block; height: 100%; padding: 26px; border: 1px solid #dce5ed; background: #fff; box-shadow: 0 10px 30px rgba(12,58,95,.07); color: #173f70; }
.document-card small { display: block; margin-top: 12px; color: #72808d; }
.simple-header { background: var(--utt-blue-dark); padding: 14px 0; }
.simple-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.simple-header img { width: auto; height: 68px; object-fit: contain; }
.simple-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.simple-nav a { color: #fff; font-weight: 700; }
.simple-hero { background: linear-gradient(135deg,var(--utt-blue-dark),#1477ad); padding: 72px 0; color: #fff; }
.simple-content { padding: 70px 0; min-height: 55vh; }
.source-notice { margin-top: 30px; padding: 18px 20px; background: #eef6fb; border-left: 4px solid var(--utt-sky); }

.legal-page { padding-top: var(--utt-header-offset); background: #fff; color: #243d4e; }
.legal-hero { padding: 78px 0 72px; background: #f6f9fb; border-bottom: 1px solid #e5ebef; }
.legal-eyebrow, .legal-number { display: block; color: var(--utt-blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.legal-hero h1 { max-width: 920px; margin: 14px 0 18px; color: #102a3d; font-size: clamp(40px, 5vw, 68px); line-height: 1.08; letter-spacing: -.035em; }
.legal-hero p { max-width: 760px; margin: 0; color: #657b8b; font-size: 20px; line-height: 1.65; }
.legal-content { padding: 72px 0 90px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 72px; align-items: start; }
.legal-index { position: sticky; top: calc(var(--utt-header-offset) + 24px); display: grid; padding: 22px 0; border-top: 2px solid var(--utt-blue); border-bottom: 1px solid #dfe7ec; }
.legal-index strong { margin-bottom: 12px; color: #16374e; }
.legal-index a { position: relative; padding: 9px 0 9px 15px; color: #6a7d8a; transition: color .2s ease, transform .2s ease; }
.legal-index a::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 0; width: 3px; background: var(--utt-sky); opacity: 0; transform: scaleY(.35); transition: opacity .2s ease, transform .2s ease; }
.legal-index a:hover { color: var(--utt-blue); }
.legal-index a.active { color: var(--utt-blue); font-weight: 800; transform: translateX(3px); }
.legal-index a.active::before { opacity: 1; transform: scaleY(1); }
.legal-article { max-width: 920px; }
.legal-article > section { scroll-margin-top: calc(var(--utt-header-offset) + 32px); }
.legal-article > section + section { margin-top: 76px; }
.legal-article h2, .report-aside h2 { margin: 10px 0 22px; color: #15364d; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.025em; }
.legal-article p, .report-aside p { color: #536a79; font-size: 17px; line-height: 1.85; }
.constitution-sections { display: grid; gap: 1px; margin-top: 30px; background: #dfe7ec; border: 1px solid #dfe7ec; }
.constitution-sections > div { display: grid; grid-template-columns: 66px 1fr; gap: 22px; padding: 25px 28px; background: #fff; }
.constitution-sections b { color: var(--utt-sky); font-family: Georgia,serif; font-size: 28px; }
.constitution-sections strong, .constitution-sections span { display: block; }
.constitution-sections strong { margin-bottom: 6px; color: #183a51; font-size: 18px; }
.constitution-sections span { color: #667a88; line-height: 1.65; }
.principle-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.principle-grid > div { padding: 26px; background: #f7f9fb; border: 1px solid #e4eaee; }
.principle-grid strong { color: #173b54; font-size: 18px; }
.principle-grid p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; }
.minimal-footer { padding: 25px 0; color: #c8d5de; background: #082f50; }
.minimal-footer .container { display: flex; justify-content: space-between; gap: 20px; }
.minimal-footer a { color: #fff; }

.report-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.report-aside { position: sticky; top: 28px; padding: 34px; background: #f2f7fa; border-top: 3px solid var(--utt-sky); }
.report-aside h2 { font-size: 30px; }
.report-form { padding: 38px; border: 1px solid #e0e7ec; box-shadow: 0 16px 50px rgba(19,53,75,.06); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.report-form label { color: #27475d; font-size: 14px; font-weight: 700; }
.report-form label b { color: #d24747; }
.report-form input, .report-form textarea { width: 100%; margin-top: 8px; padding: 13px 14px; color: #213c4f; background: #fbfcfd; border: 1px solid #d5dfe5; border-radius: 2px; font: inherit; font-weight: 400; }
.report-form input:focus, .report-form textarea:focus { outline: 3px solid rgba(39,170,225,.16); border-color: var(--utt-sky); background: #fff; }
.report-form textarea { resize: vertical; }
.form-wide { grid-column: 1 / -1; }

@media (max-width: 991px) {
    :root { --utt-header-offset: 89px; }
    .page-header .nav-wrapper,
    .page-header.sticky .nav-wrapper { padding-top: 10px; padding-bottom: 10px; }
    .public-info-grid, .official-links-grid { grid-template-columns: 1fr; }
    .section-spotlight .item > figure img { min-height: 560px; }
    .home-hero { min-height: calc(100vh - var(--utt-header-offset)); min-height: calc(100svh - var(--utt-header-offset)); padding: 64px 0; }
    .feedback-heading { grid-template-columns: 1fr; gap: 18px; }
    .legal-layout, .report-layout { grid-template-columns: 1fr; gap: 38px; }
    .legal-index, .report-aside { position: static; }
    .legal-index { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
    .legal-index strong { grid-column: 1 / -1; }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .public-info-grid { grid-template-columns: 1fr 1fr; }
    .rates-widget { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    .navbar-brand .logo-large, .navbar-brand .logo-small { max-width: 185px; max-height: 68px; }
    .page-header .nav-wrapper .navbar-brand img.logo-small,
    .page-header.sticky .nav-wrapper .navbar-brand img.logo-small { max-width: 185px; max-height: 62px; }
    .info-widget { flex-wrap: wrap; }
    .weather-reading { margin-left: 0; }
    .document-grid { grid-template-columns: 1fr; }
    .simple-header .container { align-items: flex-start; flex-direction: column; }
    .contact-table th, .contact-table td { display: block; width: 100%; }
    .contact-table th { padding-bottom: 4px; }
    .contact-table td { padding-top: 4px; }
    .home-hero { padding: 50px 0 58px; }
    .home-hero h1 { font-size: 48px; }
    .home-hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
    .partner-feedback { padding: 62px 0; }
    .feedback-grid { grid-template-columns: 1fr; }
    .feedback-card { padding: 26px; }
    .legal-hero { padding: 54px 0; }
    .legal-content { padding: 52px 0 64px; }
    .simple-nav { gap: 10px 16px; }
    .constitution-sections > div { grid-template-columns: 42px 1fr; padding: 22px 18px; }
    .principle-grid, .form-grid { grid-template-columns: 1fr; }
    .form-wide { grid-column: auto; }
    .report-form { padding: 24px 20px; }
    .minimal-footer .container { flex-direction: column; }
}
