:root {
    color-scheme: light;
    --news-ink: #002f36;
    --news-muted: #4f6d71;
    --news-line: #e2e5e7;
    --news-accent: #008296;
    --news-paper: #fff;
    --news-canvas: #fff;
    --news-heading-font: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.blog-page {
    background: var(--news-canvas);
    color: var(--news-ink);
    font-family: Arial, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    margin: 0;
}

.blog-page a { color: inherit; text-decoration: none; }
.blog-page a:hover { color: var(--news-accent); }
.visually-hidden { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.news-header { background: var(--news-paper); }
.news-masthead { border-bottom: 1px solid var(--news-line); }
.news-masthead-inner {
    align-items: center;
    display: flex;
    gap: 24px;
    margin: 0 auto;
    max-width: 1440px;
    min-height: 84px;
    padding: 12px 24px;
}

.news-brand { align-items: center; border-right: 1px solid var(--news-line); display: flex; flex: 0 0 190px; min-height: 50px; padding-right: 20px; }
.news-brand:hover { color: inherit !important; }
.news-brand img { display: block; height: 23px; object-fit: contain; width: 131px; }
.news-date { border-right: 1px solid var(--news-line); color: #646a6f; flex: 0 0 auto; font-size: 14px; padding: 8px 24px 8px 0; }
.news-utility-links { align-items: center; display: flex; flex: 1 1 auto; gap: 0; justify-content: flex-end; min-width: 0; }
.news-utility-links a { border-right: 1px solid var(--news-line); color: #5d6368; font-size: 14px; line-height: 1; padding: 2px 14px; white-space: nowrap; }
.news-utility-links a:last-child { border: 0; }
.news-search { align-items: center; border: 1px solid #d5d9dc; border-radius: 3px; display: flex; height: 38px; min-width: 164px; }
.news-search input { background: transparent; border: 0; color: var(--news-ink); font: inherit; min-width: 0; outline: none; padding: 8px 10px; width: 100%; }
.news-search input::placeholder { color: #969ba0; }
.news-search button { align-items: center; background: transparent; border: 0; color: #868c90; cursor: pointer; display: inline-flex; flex: 0 0 36px; height: 36px; justify-content: center; padding: 8px; }
.news-search button:hover { color: var(--news-accent); }
.news-search svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; width: 20px; }
.news-login { color: #34383b; font-size: 14px; white-space: nowrap; }

.news-navigation { border-bottom: 1px solid var(--news-line); }
.news-navigation-inner { align-items: center; display: flex; gap: 0; margin: 0 auto; max-width: 1440px; min-height: 54px; overflow-x: auto; padding: 0 24px; scrollbar-width: none; }
.news-navigation-inner::-webkit-scrollbar { display: none; }
.news-navigation-inner > a:not(.news-nav-more) { color: #303437; flex: 0 0 auto; font-size: 15px; padding: 16px 12px 14px; position: relative; white-space: nowrap; }
.news-navigation-inner > a:not(.news-nav-more):hover { color: var(--news-accent); }
.news-navigation-inner > .news-nav-current { font-weight: 700; }
.news-navigation-inner > .news-nav-current::after { background: var(--news-accent); bottom: 0; content: ""; height: 3px; left: 12px; position: absolute; right: 12px; }
.news-subnavigation { background: var(--news-paper); border-bottom: 1px solid var(--news-line); }
.news-subnavigation-inner { align-items: center; display: flex; gap: 0; margin: 0 auto; max-width: 1440px; min-height: 54px; overflow-x: auto; padding: 0 24px; scrollbar-width: none; }
.news-subnavigation-inner::-webkit-scrollbar { display: none; }
.news-subnavigation-inner a { color: #303437; flex: 0 0 auto; font-size: 15px; padding: 16px 12px 14px; position: relative; white-space: nowrap; }
.news-subnavigation-inner a:hover { color: var(--news-accent); }
.news-subnavigation-inner .news-subnav-current { font-weight: 700; }
.news-subnavigation-inner .news-subnav-current::after { background: var(--news-accent); bottom: 0; content: ""; height: 3px; left: 12px; position: absolute; right: 12px; }
.news-subnavigation-inner span { color: #8a9699; font-size: 10px; margin-left: 4px; }
.news-subnavigation-inner .news-subnav-current span { color: var(--news-accent); }
.news-nav-more { align-items: center; background: #f1f2f3; border-radius: 50%; color: #71777b; display: inline-flex; flex: 0 0 36px; height: 36px; justify-content: center; margin-right: 6px; width: 36px; }
.news-nav-more { border: 0; margin: 0 0 0 auto; }
.news-nav-more svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 18px; }

.news-main { margin: 0 auto; max-width: 1440px; padding: 28px 24px 64px; }
.search-result-heading { align-items: baseline; border-bottom: 1px solid var(--news-line); color: var(--news-muted); display: flex; flex-wrap: wrap; font-size: 14px; gap: 8px; margin-bottom: 20px; padding: 0 0 16px; }
.search-result-heading strong { color: var(--news-ink); }
.search-result-heading a { color: var(--news-accent); font-size: 12px; margin-left: auto; }

.lead-story { align-items: start; display: grid; gap: 30px; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .82fr); }
.lead-story-no-image { background: #f7f9f9; border-top: 3px solid var(--news-accent); grid-template-columns: minmax(0, 1fr); padding: 22px 26px; }
.lead-story-no-image .lead-story-copy { max-width: 900px; }
.lead-story-image { background: #e9eff0; display: block; overflow: hidden; position: relative; }
.lead-story-image img { aspect-ratio: 1.66 / 1; display: block; height: auto; object-fit: cover; width: 100%; }
.lead-story-image::after { background: linear-gradient(0deg, rgba(0,0,0,.36), transparent 34%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.image-caption { bottom: 13px; color: #fff; font-size: 11px; left: 15px; position: absolute; z-index: 1; }
.lead-story-copy { padding: 3px 0 0; }
.story-category { color: var(--news-accent) !important; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .01em; margin-bottom: 8px; }
.lead-story-copy h1 { color: #111820; font: 700 clamp(28px, 2.35vw, 38px)/1.2 var(--news-heading-font); margin: 0 0 14px; }
.lead-story-summary { color: #4e555a; font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
.story-meta { align-items: center; color: #81878b; display: flex; flex-wrap: wrap; font-size: 12px; gap: 8px; }
.meta-separator { color: #bcc0c3; }
.read-story-link { align-items: center; border-top: 1px solid var(--news-line); color: #30363a !important; display: flex; font-size: 13px; font-weight: 700; justify-content: space-between; margin-top: 20px; padding-top: 13px; }
.read-story-link span { color: var(--news-accent); font-size: 18px; }

.empty-search { align-items: center; background: #f8f9f9; display: flex; flex-direction: column; margin-bottom: 28px; min-height: 290px; padding: 45px 20px; text-align: center; }
.empty-search-icon { color: var(--news-accent); font-size: 34px; line-height: 1; }
.empty-search h1 { color: #252a2e; font: 700 27px/1.25 var(--news-heading-font); margin: 13px 0 8px; }
.empty-search p { color: var(--news-muted); font-size: 14px; margin: 0 0 17px; }
.empty-search > a { color: var(--news-accent); font-size: 13px; font-weight: 700; }
.welcome-empty { min-height: 230px; }

.latest-stories { border-top: 1px solid var(--news-line); margin-top: 28px; padding-top: 24px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 16px; }
.section-kicker { color: var(--news-accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h1 { color: #111820; font: 700 26px/1.2 var(--news-heading-font); margin: 4px 0 0; }
.section-count { color: #899095; font-size: 12px; padding-bottom: 3px; }
.story-grid { align-content: start; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.story-card { align-items: stretch; background: #fff; border: 1px solid #d5e2e4; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 47, 54, .045); display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 190px; height: 208px; min-width: 0; overflow: hidden; padding: 18px 20px; }
.story-grid-spacer { height: 208px; pointer-events: none; visibility: hidden; }
.story-card-no-image { grid-template-columns: minmax(0, 1fr); }
.story-card-image { align-self: center; background: #edf1f2; display: block; grid-column: 2; grid-row: 1; overflow: hidden; position: relative; }
.story-card-image img { aspect-ratio: 1.76 / 1; display: block; object-fit: cover; transition: transform .35s ease; width: 100%; }
.story-card-image:hover img { transform: scale(1.025); }
.story-card-copy { display: flex; flex-direction: column; grid-column: 1; grid-row: 1; min-height: 0; min-width: 0; overflow: hidden; }
.story-card-no-image .story-card-copy { grid-column: 1; }
.story-card-copy .story-category { font-size: 11px; margin: 3px 0 7px; }
.story-card-copy h3 { color: #171b1f; display: -webkit-box; font: 700 21px/1.32 var(--news-heading-font); -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 0 0 7px; overflow: hidden; }
.story-card-copy h3 a { color: inherit; }
.story-card-copy h3 a:hover { color: var(--news-accent); }
.story-card-copy p { -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #5d6469; display: -webkit-box; font-size: 15px; line-height: 1.55; margin: 0 0 9px; max-width: 820px; overflow: hidden; }
.story-card-copy .story-preview-mobile { display: none; }
.story-inline-more { color: var(--news-accent); font-weight: 700; white-space: nowrap; }
.story-card-footer { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: auto; padding-top: 16px; }
.story-tags { align-items: center; display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.story-tag { background: #e7f3f5; border: 1px solid #cce5e9; border-radius: 4px; color: var(--news-accent); font-size: 11px; font-weight: 600; line-height: 1.2; padding: 5px 8px; }
.story-card-footer .story-meta { font-size: 12px; margin-left: auto; }
.pagination { align-items: center; border-top: 1px solid var(--news-line); color: #858b90; display: flex; font-size: 13px; gap: 8px; justify-content: center; margin-top: 26px; padding-top: 17px; }
.pagination-pages { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination a, .pagination-current { align-items: center; border: 1px solid #d9e1e2; border-radius: 4px; display: inline-flex; height: 36px; justify-content: center; min-width: 36px; padding: 0 10px; }
.pagination a { color: var(--news-accent); font-weight: 700; }
.pagination a:hover { background: #eff7f8; }
.pagination-current { background: var(--news-accent); border-color: var(--news-accent); color: #fff; font-weight: 700; }
.pagination-arrow { font-size: 18px; }

.footer-featured-posts { background: #f3f7f7; border-top: 1px solid #d7e1e1; padding: 34px 0; }
.footer-featured-posts > .container { margin: 0 auto; max-width: 1400px; padding: 0 40px; }
.footer-featured-groups { display: grid; gap: 42px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-featured-group h3 { color: #101820; font-size: 22px; margin: 0 0 20px; }
.footer-featured-group.is-subcategory-featured { background: #fff; border: 1px solid #c8e2df; border-left: 4px solid #008b82; border-radius: 8px; box-shadow: 0 5px 18px rgba(0, 75, 75, .08); padding: 18px; }
.footer-featured-kicker { color: #008078; font-size: 10px; font-weight: 800; letter-spacing: .1em; margin: 0 0 7px; text-transform: uppercase; }
.footer-featured-group.is-subcategory-featured h3 { margin-bottom: 15px; }
.footer-featured-list { display: grid; gap: 17px; }
.footer-featured-list a { color: #152126; font-size: 15px; line-height: 1.45; text-decoration: none; }
.footer-featured-list a:hover { color: #2865d8; text-decoration: underline; }
.blog-page .home-footer { background-color: #232f3e; color: #fff; font-size: 12px; padding: 30px 0; text-align: center; }

@media (max-width: 1100px) {
    .news-masthead-inner { gap: 14px; }
    .news-brand { flex-basis: 170px; }
    .news-date { font-size: 12px; padding-right: 14px; }
    .news-utility-links a { font-size: 12px; padding: 2px 9px; }
    .news-search { min-width: 130px; }
    .news-login { font-size: 12px; }
    .lead-story { gap: 22px; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .8fr); }
    .lead-story-copy h1 { font-size: 30px; }
    .lead-story-summary { font-size: 16px; }
}

@media (max-width: 760px) {
    .news-masthead-inner { flex-wrap: wrap; gap: 10px 16px; padding: 12px 16px; }
    .news-brand { border: 0; flex: 1 0 60%; min-height: 42px; padding: 0; }
    .news-login { margin-left: auto; }
    .news-date { border: 0; flex: 1 0 auto; font-size: 11px; order: 3; padding: 0; }
    .news-utility-links { display: none; }
    .news-search { flex: 0 1 190px; height: 34px; margin-left: auto; order: 4; }
    .news-search button { height: 32px; }
    .news-navigation-inner { min-height: 48px; padding: 0 12px; }
    .news-navigation-inner > a:not(.news-nav-more) { font-size: 13px; padding: 14px 10px 12px; }
    .news-subnavigation-inner { min-height: 48px; padding: 0 12px; }
    .news-subnavigation-inner a { font-size: 13px; padding: 14px 10px 12px; }
    .news-nav-more { flex-basis: 31px; height: 31px; width: 31px; }
    .news-main { padding: 18px 16px 42px; }
    .lead-story { gap: 16px; grid-template-columns: 1fr; }
    .lead-story-no-image { padding: 18px 16px; }
    .lead-story-image img { aspect-ratio: 1.55 / 1; }
    .lead-story-copy h1 { font-size: clamp(27px, 7vw, 34px); }
    .lead-story-summary { font-size: 16px; }
    .read-story-link { margin-top: 14px; }
    .latest-stories { margin-top: 24px; padding-top: 20px; }
    .section-heading h1 { font-size: 23px; }
    .story-grid { grid-template-columns: minmax(0, 1fr); }
    .story-card { gap: 16px; grid-template-columns: minmax(0, 1fr) 140px; height: 220px; padding: 16px; }
    .story-grid-spacer { height: 220px; }
    .story-card-copy h3 { font-size: 18px; }
    .story-card-copy p { font-size: 13px; }
    .story-card-copy .story-preview-desktop { display: none; }
    .story-card-copy .story-preview-mobile { display: -webkit-box; }
    .footer-featured-posts > .container { padding: 0 24px; }
    .footer-featured-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .news-brand { flex-basis: 55%; }
    .news-login { font-size: 11px; }
    .news-search { flex-basis: 100%; margin: 0; order: 5; }
    .news-date { font-size: 10px; }
    .story-grid { grid-template-columns: minmax(0, 1fr); }
    .story-card { gap: 12px; grid-template-columns: minmax(0, 1fr) 104px; height: 256px; padding: 14px; }
    .story-grid-spacer { height: 256px; }
    .story-card-image img { aspect-ratio: 1.75 / 1; }
    .story-card-copy h3 { font-size: 19px; }
    .story-card-copy p { -webkit-line-clamp: 4; }
    .pagination { gap: 6px; }
    .footer-featured-groups { grid-template-columns: 1fr; }
}
