:root {
    color-scheme: light;
    font-family: Montserrat, Arial, sans-serif;
    color: #263445;
    background: #f5f7fa;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
}

a {
    color: #1265a8;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px max(24px, calc((100% - 1160px) / 2));
    background: #fff;
    border-bottom: 1px solid #dfe5ec;
}

.site-brand {
    color: #19344f;
    font-size: 1.3rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.navigation-list,
.navigation-submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.navigation-list > li {
    position: relative;
}

.navigation-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #34495e;
    text-decoration: none;
}

.navigation-list a:hover,
.navigation-list a:focus-visible {
    color: #07599a;
    background: #edf5fc;
}

.navigation-submenu {
    display: none;
    position: absolute;
    z-index: 2;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 6px;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgb(22 39 58 / 12%);
}

.navigation-list > li:hover > .navigation-submenu,
.navigation-list > li:focus-within > .navigation-submenu,
.navigation-submenu li:hover > .navigation-submenu,
.navigation-submenu li:focus-within > .navigation-submenu {
    display: block;
}

.navigation-submenu .navigation-submenu {
    top: 0;
    left: 100%;
}

.page-main {
    width: min(100% - 32px, 960px);
    min-height: calc(100vh - 160px);
    margin: 38px auto;
}

.page-article {
    padding: clamp(24px, 5vw, 56px);
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgb(22 39 58 / 5%);
}

.page-article h1 {
    margin: 0 0 28px;
    color: #19344f;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.page-content {
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.page-content img,
.page-content video,
.page-content iframe {
    max-width: 100%;
}

.home-main {
    width: min(100% - 32px, 1160px);
    margin: 38px auto;
}

.home-intro {
    margin-bottom: 42px;
}

.home-intro h1 {
    margin: 0 0 20px;
    color: #19344f;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

.home-section {
    margin: 42px 0;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.home-section-heading .eyebrow {
    margin: 0 0 7px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.home-section-heading h2 {
    margin: 0;
    color: #19344f;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.home-section-heading > a {
    flex-shrink: 0;
    margin-bottom: 4px;
    font-weight: 650;
    text-decoration: none;
}

.home-card-grid {
    display: grid;
    gap: 20px;
}

.home-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgb(22 39 58 / 5%);
}

.home-card-image {
    display: block;
    height: 190px;
    background: #e9eef4;
}

.home-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-card-body {
    display: flex;
    flex: 1;
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
}

.home-card-date {
    margin: 0 0 8px;
    color: #68778a;
    font-size: 0.82rem;
}

.home-card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
}

.home-card h3 a {
    color: #19344f;
    text-decoration: none;
}

.home-card h3 a:hover {
    color: #1265a8;
}

.home-card-subtitle {
    margin: 9px 0 0;
    color: #4a5b6d;
    line-height: 1.5;
}

.home-card-excerpt {
    margin: 12px 0 18px;
    color: #526174;
    line-height: 1.65;
}

.home-card-link {
    margin-top: auto;
    font-weight: 650;
    text-decoration: none;
}

.home-empty {
    padding: 24px;
    color: #64748b;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
}

.blog-heading {
    margin-bottom: 24px;
}

.blog-heading .eyebrow {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.blog-heading h1 {
    margin: 0;
    color: #19344f;
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.blog-list {
    display: grid;
    gap: 20px;
}

.blog-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgb(22 39 58 / 5%);
}

.blog-card.has-image {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
}

.blog-card-image {
    display: block;
    min-height: 190px;
    background: #e9eef4;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #68778a;
    font-size: 0.85rem;
}

.blog-card h2 {
    margin: 12px 0 8px;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    line-height: 1.25;
}

.blog-card h2 a {
    color: #19344f;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #1265a8;
}

.blog-excerpt {
    margin: 0;
    color: #526174;
    line-height: 1.7;
}

.blog-read-more {
    display: inline-block;
    margin-top: 18px;
    font-weight: 650;
    text-decoration: none;
}

.blog-pagination {
    margin-top: 24px;
}

.blog-article-header h1 {
    margin-bottom: 14px;
}

.blog-article-header .blog-meta {
    margin: 0 0 24px;
}

.blog-hero-image {
    display: block;
    max-width: 100%;
    max-height: 560px;
    margin: 0 auto 28px;
    object-fit: contain;
}

.blog-author {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e3e8ee;
}

.blog-author img {
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author h2 {
    margin: 0 0 8px;
    color: #19344f;
    font-size: 1.1rem;
}

.blog-author p {
    margin: 0;
    color: #526174;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e3e8ee;
}

.blog-tags a {
    padding: 5px 10px;
    border-radius: 16px;
    background: #edf5fc;
    text-decoration: none;
}

.blog-comments {
    margin-top: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
}

.news-heading {
    margin-bottom: 24px;
}

.news-heading .eyebrow {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.news-heading h1 {
    margin: 0;
    color: #19344f;
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-card {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgb(22 39 58 / 5%);
}

.news-card-image {
    display: block;
    min-height: 190px;
    background: #e9eef4;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.news-card-body {
    padding: 24px;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #68778a;
    font-size: 0.85rem;
}

.news-meta span,
.news-category {
    color: #1765a5;
    font-weight: 650;
}

.news-card h2 {
    margin: 12px 0 8px;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    line-height: 1.25;
}

.news-card h2 a {
    color: #19344f;
    text-decoration: none;
}

.news-card h2 a:hover {
    color: #1265a8;
}

.news-subtitle {
    margin: 8px 0 16px;
    color: #4a5b6d;
    font-size: 1.05rem;
}

.news-excerpt {
    margin: 0;
    color: #526174;
    line-height: 1.7;
}

.news-read-more {
    display: inline-block;
    margin-top: 18px;
    font-weight: 650;
    text-decoration: none;
}

.news-pagination {
    margin-top: 24px;
}

.content-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #68778a;
    font-size: 0.9rem;
}

.member-main {
    width: min(100% - 32px, 620px);
    min-height: calc(100vh - 160px);
    margin: 38px auto;
}

.member-card {
    padding: clamp(24px, 5vw, 42px);
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgb(22 39 58 / 5%);
}

.member-card-wide {
    max-width: 760px;
    margin: 0 auto;
}

.member-card .eyebrow {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.member-card h1 {
    margin: 0 0 24px;
    color: #19344f;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.member-form {
    display: grid;
    gap: 18px;
}

.member-form .field {
    display: grid;
    gap: 7px;
}

.member-form .field label {
    color: #34495e;
    font-size: 0.92rem;
    font-weight: 650;
}

.member-form .field label span,
.member-password-fields legend span {
    color: #64748b;
    font-weight: 400;
}

.member-form .field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5df;
    border-radius: 7px;
    background: #fff;
    color: #263445;
    font: inherit;
}

.member-form .field input:focus {
    border-color: #1265a8;
    outline: 3px solid rgb(18 101 168 / 14%);
}

.member-form .field small {
    color: #64748b;
    font-size: 0.8rem;
}

.member-form .field-error {
    color: #b42318;
    font-size: 0.85rem;
}

.member-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #34495e;
    font-size: 0.9rem;
}

.member-checkbox input {
    margin-top: 3px;
}

.member-button,
.member-secondary-button {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.member-button {
    color: #fff;
    background: #1265a8;
}

.member-button:hover {
    background: #0c548e;
}

.member-secondary-button {
    color: #34495e;
    background: #edf1f5;
}

.member-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 0;
    color: #526174;
    font-size: 0.9rem;
}

.member-status {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 7px;
    color: #176345;
    background: #eaf7f0;
}

.member-password-fields {
    display: grid;
    gap: 18px;
    margin: 4px 0 0;
    padding: 18px;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
}

.member-password-fields legend {
    padding: 0 6px;
    color: #19344f;
    font-weight: 700;
}

.member-logout {
    margin-top: 16px;
    text-align: right;
}

.content-breadcrumb a {
    text-decoration: none;
}

.news-article-header h1 {
    margin-bottom: 12px;
}

.news-article-header .news-category {
    margin: 0 0 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-article-header .news-subtitle {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.news-article-header .news-meta {
    margin: 0 0 24px;
}

.news-hero-image {
    display: block;
    max-width: min(100%, 720px);
    max-height: 480px;
    margin: 0 auto 28px;
    object-fit: contain;
}

.news-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e3e8ee;
}

.news-tags span {
    padding: 5px 10px;
    color: #3e5267;
    background: #edf2f7;
    border-radius: 999px;
    font-size: 0.85rem;
}

.reviews-heading {
    margin-bottom: 24px;
}

.reviews-heading .eyebrow {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.reviews-heading h1 {
    margin: 0;
    color: #19344f;
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.reviews-heading > p:last-child {
    color: #526174;
    line-height: 1.65;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.review-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgb(22 39 58 / 5%);
}

.review-card-image {
    display: block;
    height: 210px;
    background: #e9eef4;
}

.review-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card-body {
    padding: 20px;
}

.review-category {
    margin: 0 0 8px;
    color: #1765a5;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.review-card h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.review-card h2 a {
    color: #19344f;
    text-decoration: none;
}

.review-subtitle {
    margin: 8px 0 12px;
    color: #4a5b6d;
    line-height: 1.5;
}

.review-rating-summary {
    margin: 0 0 10px;
    color: #725510;
    font-weight: 700;
}

.review-rating-summary span {
    color: #e0a51b;
}

.review-excerpt {
    margin: 0;
    color: #526174;
    line-height: 1.65;
}

.review-article-header h1 {
    margin-bottom: 12px;
}

.review-article-header .review-subtitle {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.review-article-header .news-meta {
    margin: 0 0 24px;
}

.review-hero-image {
    display: block;
    max-width: min(100%, 720px);
    max-height: 480px;
    margin: 0 auto 28px;
    object-fit: contain;
}

.review-ratings,
.review-summary {
    margin: 24px 0;
    padding: 20px;
    background: #f5f8fb;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
}

.review-ratings h2,
.review-summary h2,
.review-author-card h2 {
    margin: 0 0 14px;
    color: #19344f;
    font-size: 1.15rem;
}

.review-rating-row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(100px, 150px) auto;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.rating-stars {
    display: inline-block;
    overflow: hidden;
    color: #d6dde5;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.rating-stars > span {
    display: block;
    overflow: hidden;
    color: #e0a51b;
    white-space: nowrap;
}

.review-overall-rating {
    margin: 14px 0 0;
    font-weight: 700;
}

.review-content {
    padding-top: 12px;
}

.review-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px solid #e3e8ee;
}

.review-pagination a {
    font-weight: 650;
    text-decoration: none;
}

.review-author-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 20px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
}

.review-author-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author-card h2 {
    margin-bottom: 6px;
}

.review-author-card p {
    margin: 0;
    color: #526174;
    line-height: 1.6;
}

.site-footer {
    padding: 18px 24px;
    color: #64748b;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .navigation-list {
        align-items: flex-start;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .blog-card.has-image {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-news-grid,
    .home-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-card-image,
    .news-card-image img,
    .blog-card-image,
    .blog-card-image img {
        max-height: 260px;
    }

    @media (max-width: 520px) {
        .reviews-grid {
            grid-template-columns: 1fr;
        }

        .home-news-grid,
        .home-review-grid {
            grid-template-columns: 1fr;
        }

        .home-section-heading {
            align-items: flex-start;
            flex-direction: column;
            gap: 10px;
        }

        .review-rating-row {
            grid-template-columns: minmax(70px, 1fr) minmax(90px, 120px);
        }

        .review-rating-row > span:last-child {
            grid-column: 2;
        }
    }

    .navigation-submenu {
        position: static;
        min-width: 0;
        margin-left: 12px;
        box-shadow: none;
    }

    .navigation-submenu .navigation-submenu {
        margin-left: 8px;
    }

    .navigation-list > li:hover > .navigation-submenu,
    .navigation-list > li:focus-within > .navigation-submenu,
    .navigation-submenu li:hover > .navigation-submenu,
    .navigation-submenu li:focus-within > .navigation-submenu {
        display: block;
    }
}
