/* Page Adapters for OctoberCMS Redesign (27) */

/* Center the search between the header content and news tabs, preserving their positions. */
.redesign .home--primary > .search {
    padding: 4.85rem 0 0.75rem;
}
.redesign .home--primary > .services {
    padding-top: 5.3rem;
}
@media (max-width: 767px) {
    .redesign .home--primary > .search {
        padding: 28.5px 0 4.5px;
    }
    .redesign .home--primary > .services {
        padding-top: 32px;
    }
}

/* Memory gallery: preserve the three-column portrait layout without the legacy grid. */
.gallery-memory-page-section .photoGm-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 20px;
    margin-top: 30px;
}
.gallery-memory-page-section .photoGm-item {
    position: relative;
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}
.gallery-memory-page-section .photoGm-item .absLink {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.gallery-memory-page-section .photoGm-item .absLink:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}
.gallery-memory-page-section .photoGm-img-wrap {
    position: relative;
    aspect-ratio: 100 / 138;
}
.gallery-memory-page-section .photoGm-img-wrap img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery-memory-page-section .photoGm-date {
    margin: 10px 0;
    font-size: 1.4rem;
    font-style: italic;
}
.gallery-memory-page-section .photoGm-name {
    margin: 0;
    font-size: 2rem;
    line-height: 1.25;
}
.gallery-memory-page-section .photoGm-name span {
    display: block;
}
.redesign .gallery-memory-page-section .veterans-more-button {
    width: max-content;
    max-width: 100%;
    min-height: 6rem;
    margin: 3rem auto 0;
    padding: 1.5rem 3rem;
}
.gallery-memory-page-section .veterans-more-button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}
.gallery-memory-page-section .organizers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.gallery-memory-page-section .org-card {
    min-width: 0;
    overflow-wrap: anywhere;
}
.gallery-memory-page-section .org-card-photo {
    flex-shrink: 0;
}
.gallery-memory-page-section .org-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
@media (max-width: 767px) {
    .gallery-memory-page-section .photoGm-wrap,
    .gallery-memory-page-section .organizers-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .gallery-memory-page-section .photoGm-date {
        font-size: 14px;
    }
    .gallery-memory-page-section .photoGm-name {
        font-size: 20px;
    }
    .redesign .gallery-memory-page-section .veterans-more-button {
        min-height: 46px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

.redesign .breadcrumbs__area ul {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: .6rem;
    overflow: visible;
}
.redesign .breadcrumbs__area li {
    display: flex;
    align-items: baseline;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.redesign .breadcrumbs__area li > a,
.redesign .breadcrumbs__area li > span {
    flex: 0 1 auto;
    min-width: 0;
}
.redesign .breadcrumbs__area li::after {
    flex: 0 0 auto;
}

.appeals__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: max-content;
    max-width: 100%;
    gap: 1.5rem;
    margin-top: 3rem;
}
.appeals__actions--centered {
    margin-inline: auto;
}
.redesign .appeals__actions .btn {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 6rem;
    height: auto;
    padding: 1.5rem 3rem;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}
@media (max-width: 767px) {
    .appeals__actions {
        width: 100%;
    }
    .redesign .appeals__actions .btn {
        width: 100%;
        min-height: 46px;
        padding: 12px 20px;
    }
}

.redesign .header-promo {
    display: block;
}

/* The redesign uses real buttons for both menus, rather than styled divs. */
.redesign .header__topbar-more,
.redesign .header__burger,
.redesign .gipermenu__close,
.redesign .gipermenu-main__close {
    appearance: none;
    border: 0;
    padding: 0;
    background-color: transparent;
    font: inherit;
}
.redesign .header__topbar-more-mobile {
    display: none;
}
.redesign .header__topbar-more-mobile::after {
    background: none;
    display: block;
}
.redesign .header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    display: flow-root;
    background: var(--color-bg);
}
.redesign .header--promo {
    background: linear-gradient(to bottom, transparent var(--promo-overlap, 4rem), var(--color-bg) var(--promo-overlap, 4rem));
}
.redesign .header__topbar-logo-main {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.redesign .header__topbar-logo-main img,
.redesign .header__logo img {
    display: block;
    height: auto;
}
@media (min-width: 768px) {
    .redesign .header__logo {
        max-width: 20.9rem;
    }
}
@media (max-width: 767px) {
    .redesign .header-promo {
        margin-bottom: 0;
    }
    .redesign .header--promo {
        background: var(--color-bg);
    }
    .redesign .header--promo .header__topbar {
        margin-top: 10px;
    }
    .redesign .header__topbar-logo-main img {
        width: 136px;
        max-width: 100%;
    }
    .redesign .header__topbar-more {
        margin-left: auto;
        flex-shrink: 0;
    }
}
@supports not (overflow: clip) {
    .redesign .wrapper {
        overflow: visible;
    }
}
.redesign .gipermenu-list {
    padding: 0;
}
.redesign .gipermenu-main__col ul {
    list-style: none;
    padding: 0;
}
.redesign .gipermenu-main a.gipermenu-main__row-title {
    color: #fff;
    padding: 0;
    text-decoration: none;
}
.redesign .gipermenu-main a.gipermenu-main__row-title:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.redesign .gipermenu-main a.gipermenu-main__row-title:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
.redesign div.custom-select {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}
.redesign .structure-detail .news-list,
.redesign .news-list--events {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.redesign .structure-detail .news-list-item,
.redesign .news-list--events .news-list-item {
    overflow: hidden;
    border-radius: 2rem;
    background: #f7f8f9;
}
.redesign .structure-detail .news-list-item .img-autoHeight a,
.redesign .news-list--events .news-list-item .img-autoHeight a {
    display: block;
    aspect-ratio: 492 / 320;
}
.redesign .structure-detail .news-list-item img,
.redesign .news-list--events .news-list-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.redesign .structure-detail .news-inf,
.redesign .news-list--events .news-inf {
    padding: 1.5rem;
}
.redesign .structure-detail .news-text,
.redesign .news-list--events .news-text {
    display: block;
    margin-top: .8rem;
}
.redesign .header__topbar-more:focus-visible,
.redesign .header__burger:focus-visible,
.redesign .gipermenu__close:focus-visible,
.redesign .gipermenu-main__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
@media (max-width: 767px) {
    .redesign .structure-detail .news-list,
    .redesign .news-list--events {
        grid-template-columns: 1fr;
    }
    .redesign .header__topbar-more > span:first-child {
        display: none;
    }
    .redesign .header__topbar-more .header__topbar-more-mobile {
        display: block;
    }
}

/* Flash Messages & Alerts */
.flash-message {
    padding: 14px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}
.flash-message.flash-message--success, .flash-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.flash-message.flash-message--error, .flash-message.error, .flash-message.danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Personal Office & Table Styles */
.cabinet-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.cabinet-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
.cabinet-table th {
    background: #f4f6f9;
    padding: 14px 18px;
    font-weight: 600;
    color: #1a202c;
    border-bottom: 1px solid #e2e8f0;
}
.cabinet-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    vertical-align: middle;
}
.cabinet-table tr:hover td {
    background-color: #f8fafc;
}

/* Status Badges */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge-status--pending {
    background: #fef3c7;
    color: #92400e;
}
.badge-status--in_progress {
    background: #e0f2fe;
    color: #0369a1;
}
.badge-status--completed {
    background: #dcfce7;
    color: #15803d;
}
.badge-status--rejected {
    background: #fee2e2;
    color: #b91c1c;
}

/* Worksheet Multi-step Form & Repeater Controls */
.worksheet-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    position: relative;
}
.worksheet-step-item {
    font-size: 15px;
    font-weight: 600;
    color: #a0aec0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.worksheet-step-item.active {
    color: #004b87;
}
.worksheet-step-item.completed {
    color: #2b6cb0;
}
.worksheet-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #edf2f7;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.worksheet-step-item.active .worksheet-step-num {
    background: #004b87;
    color: #fff;
}
.worksheet-step-item.completed .worksheet-step-num {
    background: #2b6cb0;
    color: #fff;
}

.repeater-group-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}
.repeater-remove-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.repeater-remove-btn:hover {
    background: #fecaca;
}
.repeater-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #edf2f7;
    color: #2d3748;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px dashed #cbd5e0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 20px;
    transition: background 0.2s;
}
.repeater-add-btn:hover {
    background: #e2e8f0;
}

/* Photo Upload & Preview */
.photo-upload-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.photo-preview-container {
    width: 120px;
    height: 150px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
}
.photo-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tabs for Stud-Events */
.stud-event-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}
.stud-event-tab-link {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    background: #f1f5f9;
    transition: all 0.2s;
}
.stud-event-tab-link:hover {
    background: #e2e8f0;
    color: #1a202c;
}
.stud-event-tab-link.active {
    background: #004b87;
    color: #ffffff;
}

/* Form Helper Utilities */
.form-help-text {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}
.field-error-text {
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
}

/* Open Data Styles */
.open-data-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.open-data-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4a5568;
}
.open-data-counter-badge strong {
    color: #004b87;
    font-size: 16px;
}
.open-data-search {
    margin-bottom: 28px;
}
.open-data-search-form {
    display: flex;
    gap: 12px;
    max-width: 650px;
}
.open-data-search-form .custom-input {
    flex: 1;
}
.open-data-search-form .custom-input input {
    width: 100%;
}
.open-data-meta-box {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 18px 24px;
    background: #f8fafc;
    border-left: 4px solid #004b87;
    border-radius: 0 8px 8px 0;
}
.open-data-meta-box p {
    margin: 6px 0;
    font-size: 14px;
    color: #4a5568;
}
.open-data-meta-box p strong {
    color: #1a202c;
}
.open-data-terms-note {
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.6;
    color: #718096;
}
.open-data-terms-note a {
    color: #004b87;
    text-decoration: underline;
}
.open-data-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.redesign .open-data-actions .btn {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 6rem;
    height: auto;
    padding: 1.5rem 3rem;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
}
@media (max-width: 767px) {
    .redesign .open-data-actions .btn {
        width: 100%;
        min-height: 46px;
        padding: 12px 20px;
    }
}
.open-data-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.open-data-table-num {
    width: 48px;
    text-align: center;
    font-weight: 600;
    color: #718096;
}
.open-data-table-prop {
    width: 35%;
    font-weight: 600;
    color: #2d3748;
}
.open-data-table-val {
    color: #1a202c;
}
.open-data-table-val a {
    color: #004b87;
    text-decoration: underline;
}
.open-data-table-val a:hover {
    color: #002b4d;
}

/* Testing pages: form components from _new3/dist/appeals-form.html. */
.redesign .testing-progress {
    color: var(--color-accent);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}
.redesign .testing-question__title {
    font-size: 2.8rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}
.testing-question__image { margin-bottom: 2rem; }
.testing-question__image img { max-width: 100%; height: auto; }
.redesign .testing-answers { padding: 0; margin: 0; }
.redesign .testing-answers legend { font-size: 1.8rem; margin-bottom: 0; }
.redesign .testing-answer label {
    align-items: flex-start;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
}
.redesign .testing-answer .checkbox-icon { margin-top: .4rem; }
.redesign .testing-answer.custom-radio .checkbox-icon { border-radius: 50%; }
.redesign .testing-answer.custom-radio .checkbox-icon::after {
    width: .8rem;
    height: .8rem;
    background: var(--color-accent);
    border-radius: 50%;
}
.redesign .testing-answer input:focus-visible ~ .checkbox-icon {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}
.redesign .testing-answer input:checked ~ .checkbox-icon { border-color: var(--color-accent); }
.testing-answer-text { margin-bottom: 2rem; }
.redesign .testing-answer-text .textarea { width: 100%; height: auto; min-height: 18rem; padding: 2.3rem; border-radius: 2.5rem; }
.testing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 2rem; }
.redesign .testing-btn { display: inline-flex; min-height: 6rem; padding: 1.5rem 3rem; width: auto; }
.redesign .testing-actions .appeal-form-btn { margin-top: 2rem; }
.testing-loader { font-size: 1.6rem; }
.redesign .testing-message > .h2, .redesign .testing-result > .h2, .redesign .testing-intro > .h2 { margin-top: 0; }
.redesign .testing-message .btn { color: #fff; text-decoration: none; }
.redesign .testing-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin: 0 0 3rem; }
.testing-results div { background: #f5f5f5; border-radius: 2.5rem; padding: 2.5rem; }
.testing-results dt { font-size: 1.5rem; font-weight: 400; }
.redesign .testing-results dd { margin: 1rem 0 0; color: var(--color-accent); font-size: 2.8rem; font-weight: 600; }
.testing-page1-form { align-items: flex-start; }
.redesign .testing-section .testing-page1-form { margin-top: 3rem; }
.redesign .testing-page1-form .h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.testing-page1-form .custom-input, .testing-page1-form .input { width: 100%; }
.testing-page1-form .start-link { margin-top: 1rem; }
@media (max-width: 767px) {
    .redesign .testing-progress { font-size: 13px; }
    .redesign .testing-question__title { font-size: 20px; margin-bottom: 20px; }
    .redesign .testing-answers legend, .redesign .testing-answer label { font-size: 14px; }
    .redesign .testing-btn { min-height: 50px; font-size: 14px; padding: 14px 25px; }
    .redesign .testing-results { grid-template-columns: 1fr; }
    .testing-results dt { font-size: 14px; }
    .redesign .testing-results dd { font-size: 26px; }
}

/* ==========================================================================
   Awards, Ceremony Photo & Anniversaries Adapters (Batch 27)
   ========================================================================== */

/* 1. Awards Navigation Tabs */
.awards-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.awards-nav-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.2rem;
    border-radius: 2.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    text-decoration: none;
    transition: all 0.25s ease;
}
.awards-nav-tab:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.awards-nav-tab.active {
    background: #00629d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 98, 157, 0.25);
}

/* 2. Awards Categories Grid (awards.htm) */
.awards-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}
.awards-cat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    text-decoration: none;
    transition: all 0.25s ease;
}
.awards-cat-card:hover {
    transform: translateY(-3px);
    border-color: #00629d;
    box-shadow: 0 8px 24px rgba(0, 98, 157, 0.1);
    background: #ffffff;
}
.awards-cat-card-title {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}
.awards-cat-card:hover .awards-cat-card-title {
    color: #00629d;
}
.awards-cat-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #00629d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* 3. Awards Photogallery Promo Banner */
.awards-gallery-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 1.4rem;
    padding: 2.5rem 3rem;
    color: #ffffff;
    margin-bottom: 3.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 2rem;
    flex-wrap: wrap;
}
.awards-gallery-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}
.awards-gallery-banner-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    color: #ffffff;
}
.awards-gallery-banner-info p {
    font-size: 1.4rem;
    color: #cbd5e1;
    margin: 0;
}

/* 4. Medals Grid (medal-page.htm) */
.medals-section {
    margin-bottom: 3.5rem;
}
.medals-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}
.medals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.5rem;
}
.medal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    padding: 2.2rem 1.6rem;
    text-decoration: none;
    transition: all 0.25s ease;
}
.medal-card:hover {
    transform: translateY(-4px);
    border-color: #00629d;
    box-shadow: 0 10px 25px rgba(0, 98, 157, 0.12);
    background: #ffffff;
}
.medal-card-img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
}
.medal-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.medal-card:hover .medal-card-img img {
    transform: scale(1.06);
}
.medal-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    transition: color 0.2s ease;
}
.medal-card:hover .medal-card-title {
    color: #00629d;
}

/* 5. Medal Detail (medal-detail.htm) */
.medal-detail-wrap {
    display: flex;
    gap: 3.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.6rem;
    padding: 3rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .medal-detail-wrap {
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
    }
}
.medal-detail-img-box {
    flex: 0 0 240px;
    max-width: 240px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.2rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.medal-detail-img-box img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}
.medal-detail-info {
    flex: 1;
    min-width: 260px;
}
.medal-detail-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 1.6rem;
}
.medal-detail-desc {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #334155;
}

/* 6. Documents in Tabs (tabs/documents.htm adapter) */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}
.document-list-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.2rem;
    padding: 2rem 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.2s ease;
}
.document-list-item:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.document-list-item .date-span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #64748b;
}
.document-list-item .document-text {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.5;
    color: #00629d;
    margin: 0;
    text-decoration: none;
}
.document-list-item a {
    text-decoration: none;
}
.document-list-item a:hover .document-text {
    color: #004b87;
    text-decoration: underline;
}
.document-download {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 0.5rem;
}
.download-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.8rem;
    padding: 0.8rem 1.4rem;
    font-size: 1.3rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}
.download-item:hover {
    background: #f1f5f9;
    border-color: #00629d;
    color: #00629d;
}
.download-item-text {
    margin: 0;
}
.download-item-text span {
    color: #94a3b8;
    font-size: 1.2rem;
}

/* 7. Ceremony Photo Gallery (ceremony-photo.htm) */
.ceremony-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}
.ceremony-album-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.ceremony-album-card:hover {
    transform: translateY(-4px);
    border-color: #00629d;
    box-shadow: 0 12px 28px rgba(0, 98, 157, 0.12);
}
.ceremony-album-thumb {
    position: relative;
    width: 100%;
    height: 190px;
    background: #1e293b;
    overflow: hidden;
}
.ceremony-album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.ceremony-album-card:hover .ceremony-album-thumb img {
    transform: scale(1.05);
}
.ceremony-photo-count-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
}
.ceremony-album-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ceremony-album-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    margin: 0;
    transition: color 0.2s ease;
}
.ceremony-album-card:hover .ceremony-album-title {
    color: #00629d;
}

/* 8. Ceremony Photo Detail Grid (ceremony-photo-detail.htm) */
.ceremony-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.8rem;
    margin: 2.5rem 0 3.5rem;
}
.ceremony-photo-card {
    position: relative;
    height: 180px;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}
.ceremony-photo-card:hover {
    transform: scale(1.02);
    border-color: #00629d;
    box-shadow: 0 8px 22px rgba(0, 98, 157, 0.18);
}
.ceremony-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.ceremony-photo-card:hover img {
    transform: scale(1.06);
}
.ceremony-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 98, 157, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #ffffff;
    font-size: 2.4rem;
}
.ceremony-photo-card:hover .ceremony-photo-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.page-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.page-lightbox-modal.open {
    display: flex;
    opacity: 1;
}
.page-lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.page-lightbox-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.8rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.page-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 3.2rem;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}
.page-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
.page-lightbox-prev, .page-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 2.4rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.page-lightbox-prev { left: 2.5rem; }
.page-lightbox-next { right: 2.5rem; }
.page-lightbox-prev:hover, .page-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* 9. Anniversaries Grid & Card (anniversaries.htm, anniversaries-2.htm, anniversary_card.htm) */
.anniversary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}
.anniversary-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.anniversary-card:hover {
    transform: translateY(-4px);
    border-color: #00629d;
    box-shadow: 0 12px 28px rgba(0, 98, 157, 0.12);
}
.anniversary-card-avatar {
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.anniversary-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.anniversary-card:hover .anniversary-card-avatar img {
    transform: scale(1.04);
}
.anniversary-card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.anniversary-card-name {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b;
    margin: 0;
    transition: color 0.2s ease;
}
.anniversary-card:hover .anniversary-card-name {
    color: #00629d;
}

.anniversary-detail-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.6rem;
    padding: 3rem;
    margin-top: 2rem;
}
.anniversary-detail-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2rem;
}
.anniversary-detail-message {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #334155;
}

/* 10. Citizens Appeals & Shared Adapters (citizens-appeal-information.htm, citizens-appeal-status.htm, etc.) */
.page-nav {
    margin-bottom: 2.5rem;
}
.page-nav-item-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-nav-item a {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    border-radius: 2rem;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.page-nav-item a:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.page-nav-item.active a {
    background: var(--color-accent, #00629d);
    color: #ffffff;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.result-list li {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.2rem;
    padding: 2rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.result-list li:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.result-list .date-span {
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 500;
}
.result-list a.fc-blue {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    color: #00629d;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.result-list a.fc-blue:hover {
    color: #004b87;
    text-decoration: underline;
}
.fc-gold {
    color: #d97706;
    font-weight: 600;
}

.news-filter-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
}
.news-filter.row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.5rem;
}
.news-filter-item {
    flex: 1 1 200px;
}
.news-filter-item:last-child {
    flex: 0 0 auto;
}
.custom-input label {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.6rem;
}
.custom-input select, .custom-select {
    width: 100%;
    height: 4.4rem;
    padding: 0 1.4rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}
.custom-input select:focus, .custom-select:focus {
    border-color: #00629d;
}

/* 11. Press Center & Media Adapters (industry-smi, interview-list, interview-page, smi-overview, specprojects) */
.industry-smi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}
.logo-list-item-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.logo-list-item-wrap:hover {
    transform: translateY(-4px);
    border-color: #00629d;
    box-shadow: 0 10px 25px rgba(0, 98, 157, 0.1);
}
.logo-list-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin-bottom: 1.5rem;
    text-decoration: none;
}
.logo-list-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.logo-list-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00629d;
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.2s ease;
}
.logo-list-link:hover {
    color: #004b87;
    text-decoration: underline;
}

/* SMI Modal Dialogs */
.modal-wrap.smi-group {
    max-width: 720px;
    width: 100%;
    background: #ffffff;
    border-radius: 1.6rem;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.smi-group-wrap {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}
.smi-left {
    flex: 0 0 140px;
}
.smi-group-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
}
.smi-right {
    flex: 1 1 auto;
}
.smi-right h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
}
.smi-right p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #334155;
    margin: 0.6rem 0;
}
.smi-right p .fw-bold {
    font-weight: 600;
    color: #0f172a;
}

/* Interview Cards & Detail */
.interview-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}
.interview-card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}
.interview-card-item:hover {
    transform: translateY(-4px);
    border-color: #00629d;
    box-shadow: 0 12px 28px rgba(0, 98, 157, 0.08);
}
.interview-card-img {
    height: 180px;
    overflow: hidden;
}
.interview-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.interview-card-item:hover .interview-card-img img {
    transform: scale(1.04);
}
.interview-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}
.interview-card-speaker {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.interview-card-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}
.interview-card-meta {
    font-size: 1.2rem;
    color: #64748b;
}
.interview-card-speaker-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
}
.interview-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.interview-card-title:hover {
    color: #00629d;
}

/* Quote Callout & Interview Q&A */
.quote-block-redesign {
    background: #f0f7ff;
    border-left: 4px solid #00629d;
    border-radius: 0 1.2rem 1.2rem 0;
    padding: 2rem 2.5rem;
    font-size: 1.6rem;
    line-height: 1.7;
    font-style: italic;
    color: #1e293b;
    margin: 2.5rem 0;
}
.interview-qa-content {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #334155;
}
.interview-qa-content p.fw-bold {
    font-weight: 700;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.interview-qa-content .line-text {
    padding-left: 1.5rem;
    border-left: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

/* Documents / SMI Overview Download List */
.documents-download-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 3.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.download-list-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.2rem;
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    transition: all 0.2s ease;
}
.download-list-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.icon-and-size {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 60px;
}
.icon-and-size .icon-doc {
    width: 3.2rem;
    height: 3.2rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.icon-and-size .fc-gray {
    font-size: 1.1rem;
    color: #64748b;
}
.download-list-item a.fc-blue {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #00629d;
    text-decoration: none;
    transition: color 0.2s ease;
}
.download-list-item a.fc-blue:hover {
    color: #004b87;
    text-decoration: underline;
}

/* Special Projects Grid */
.specprojects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}
.specprojects-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.specprojects-card:hover {
    transform: translateY(-4px);
    border-color: #00629d;
    box-shadow: 0 12px 28px rgba(0, 98, 157, 0.1);
}
.specprojects-card-img {
    height: 180px;
    overflow: hidden;
}
.specprojects-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.specprojects-card:hover .specprojects-card-img img {
    transform: scale(1.04);
}
.specprojects-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}
.specprojects-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
    line-height: 1.35;
}
.specprojects-card-link {
    font-size: 1.4rem;
    font-weight: 500;
    color: #00629d;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}
.specprojects-card-link:hover {
    color: #004b87;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .smi-group-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* 12. Polls & Voting Results Adapters (polls-page.htm) */
.poll-active-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.6rem;
    padding: 3rem;
    margin-bottom: 3.5rem;
}
.poll-active-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2rem;
}
.poll-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.custom-radio-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    padding: 1.2rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.custom-radio-card:hover {
    border-color: #00629d;
    background: #f0f7ff;
}
.custom-radio-card input[type="radio"] {
    accent-color: #00629d;
    width: 1.8rem;
    height: 1.8rem;
    cursor: pointer;
}
.custom-radio-card label {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    margin: 0;
}

.polls-result-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 4rem;
}
.polls-result-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.result-item-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2rem;
    line-height: 1.4;
}
.progress-bar {
    margin-bottom: 1.8rem;
}
.progress-bar:last-child {
    margin-bottom: 0;
}
.progress-bar-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #334155;
    margin: 0 0 0.6rem;
}
.progress-bar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #f1f5f9;
    border-radius: 2rem;
    height: 2.4rem;
    padding: 0.3rem;
    position: relative;
    overflow: hidden;
}
.progress-bar-line {
    height: 100%;
    border-radius: 2rem;
    background: linear-gradient(90deg, #00629d 0%, #38bafe 100%);
    transition: width 0.6s ease;
}
.progress-bar.violet .progress-bar-line {
    background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%);
}
.progress-bar.red .progress-bar-line {
    background: linear-gradient(90deg, #dc2626 0%, #f87171 100%);
}
.progress-bar.green .progress-bar-line {
    background: linear-gradient(90deg, #16a34a 0%, #4ade80 100%);
}
.progress-bar.yellow .progress-bar-line {
    background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%);
}
.progress-bar-value {
    position: absolute;
    right: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}


/* Photo gallery navigation */
.article-gallery-slider-wrap .swiper-button-prev,
.article-gallery-slider-wrap .swiper-button-next {
    width: 4.8rem;
    height: 4.8rem;
    color: #fff;
    background: #222;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    --swiper-navigation-size: 2rem;
}
.article-gallery-slider-wrap .swiper-button-prev:hover,
.article-gallery-slider-wrap .swiper-button-next:hover { background: #000; }
.article-gallery-slider-wrap .swiper-button-disabled { opacity: .5; }
.article-gallery-thumbnails {
    display: flex;
    gap: .8rem;
    overflow-x: auto;
    padding: .5rem 0;
    margin-top: 1rem;
}
.article-gallery-thumbnail {
    flex: 0 0 9rem;
    height: 6rem;
    padding: 2px;
    border: 2px solid transparent;
    border-radius: .5rem;
    background: transparent;
    cursor: pointer;
}
.article-gallery-thumbnail.is-active { border-color: #0056a6; }
.article-gallery-thumbnail:focus-visible,
.article-gallery-slider-wrap .swiper-button-prev:focus-visible,
.article-gallery-slider-wrap .swiper-button-next:focus-visible { outline: 3px solid #0056a6; outline-offset: 2px; }
.article-gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .2rem;
}

/* Media contacts use the same panel and typography as the contacts page. */
.press-contacts {
    min-width: 0;
}
.press-contacts__content {
    overflow-x: auto;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.press-contacts__content p {
    margin: 0 0 1.4rem;
}
.press-contacts__content p:last-child {
    margin-bottom: 0;
}
.press-contacts__content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.press-contacts__content table {
    width: 100%;
    border-collapse: collapse;
}
.press-contacts__content th,
.press-contacts__content td {
    padding: 1.1rem 1rem;
    border-bottom: 1px dashed rgba(0, 0, 0, .1);
    text-align: left;
    vertical-align: top;
}
@media (max-width: 767px) {
    .press-contacts__content {
        font-size: 14px;
    }
    .press-contacts__content th,
    .press-contacts__content td {
        padding: 10px;
    }
}

/* Содержимое деклараций и других страниц раздела «Цели и задачи». */
.targets-detail-text {
  color: var(--color-text-70);
  font-size: 1.8rem;
  line-height: 1.44444;
  overflow-x: auto;
}
.targets-detail-text h2,
.targets-detail-text h3 {
  color: var(--color-text);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.targets-detail-text table {
  width: 100%;
  min-width: 900px;
  margin: 4rem 0;
  table-layout: fixed;
  border: 1px solid #cdcdcc;
  border-radius: 3.6rem;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1.46667;
}
.targets-detail-text table th,
.targets-detail-text table td {
  min-width: 13rem;
  padding: 1.3rem;
  border: 0;
  border-right: 1px solid #cdcdcc;
  border-bottom: 1px solid #cdcdcc;
  text-align: left;
  vertical-align: top;
  font-weight: 500;
}
.targets-detail-text table th {
  background: #f5f5f5;
  font-weight: 600;
}
.targets-detail-text table td[rowspan] {
  font-weight: 600;
}
.targets-detail-text table > :first-child > tr:first-child > :first-child {
  border-top-left-radius: 3.5rem;
}
.targets-detail-text table > :first-child > tr:first-child > :last-child {
  border-top-right-radius: 3.5rem;
}
.targets-detail-text table > :last-child > tr:last-child > :last-child {
  border-bottom-right-radius: 3.5rem;
}
.targets-detail-text table tr > :last-child {
  border-right: 0;
}
.targets-detail-text table tbody tr:last-child > td,
.targets-detail-text table tfoot tr:last-child > td {
  border-bottom: 0;
}
.targets-detail-text table p {
  margin-bottom: 1.3rem;
  font-size: inherit;
}
.targets-detail-text table p:last-child {
  margin-bottom: 0;
}
.targets-detail-section .square-links {
  margin-top: 4rem;
}
@media (max-width: 767px) {
  .targets-detail-text {
    font-size: 14px;
  }
}

/* Rich text can also contain unwrapped text supplied by the CMS. */
.redesign .base-text {
    color: var(--color-text);
    font-size: 1.8rem;
    line-height: 1.44444;
}

/* CMS content can contain legacy table dimensions and alignment. */
.redesign .appeals-contacts__text,
.redesign .appeals-contacts__text p,
.redesign .appeals-contacts__text li,
.redesign .appeals-contacts__text td,
.redesign .appeals-contacts__text th {
    text-align: left !important;
    overflow-wrap: anywhere;
}
.redesign .appeals-contacts__text table {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0 0 2rem;
}
.redesign .appeals-contacts__text td,
.redesign .appeals-contacts__text th {
    width: auto !important;
    padding: 1.1rem 1.5rem;
    vertical-align: top;
}
.redesign .appeals-contacts__text td:first-child,
.redesign .appeals-contacts__text th:first-child {
    padding-left: 0;
}
.redesign .appeals-contacts__text td:last-child,
.redesign .appeals-contacts__text th:last-child {
    padding-right: 0;
}
.redesign .appeals-contacts__text td p:last-child,
.redesign .appeals-contacts__text th p:last-child {
    margin-bottom: 0;
}
@media (max-width: 767px) {
    .redesign .appeals-contacts__text table,
    .redesign .appeals-contacts__text tbody,
    .redesign .appeals-contacts__text tr,
    .redesign .appeals-contacts__text td,
    .redesign .appeals-contacts__text th {
        display: block;
    }
    .redesign .appeals-contacts__text td,
    .redesign .appeals-contacts__text th {
        padding: 0 0 1rem;
    }
    .redesign .appeals-contacts__text tr {
        margin-bottom: 1rem;
    }
}
@media (max-width: 767px) {
    .redesign .base-text {
        font-size: 14px;
        line-height: 1.35;
    }
}

/* Document lists follow the single-column cards from documents-inner. */
.documents-page-list {
    width: 100%;
    max-width: 98rem;
    min-width: 0;
}
.documents-page-list .docs__section-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}
.documents-inner .documents-page-list .docs__section-grid {
    margin-top: 0;
}
.documents-inner .documents-page-list .h2 + .docs__section-grid {
    margin-top: 4rem;
}
.documents-page-list .docs__section-item {
    box-shadow: 0 2px 73px 0 rgba(43, 48, 82, 0.04), 0 0 10px 0 rgba(0, 0, 0, 0.02);
    border-radius: 5.8rem;
    padding: 3.1rem 1.5rem 3.1rem 3.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.documents-page-list .docs__section-item-date {
    max-width: 100%;
    font-size: 1.6rem;
    text-align: center;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    border-radius: 3.5rem;
    padding: 0.7rem 2.2rem;
}
.documents-page-list .docs__section-item-title {
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.33333;
    margin-bottom: 2.5rem;
    padding-right: 2rem;
    max-width: 85%;
    overflow-wrap: anywhere;
}
.documents-page-list a.docs__section-item-title:hover {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}
.documents-page-list .docs__section-item-doc {
    padding-left: 5.1rem;
    position: relative;
    margin-top: auto;
    max-width: 75%;
    min-width: 0;
    min-height: 4.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    font-size: 1.6rem;
}
.documents-page-list .docs__section-item-doc:last-of-type {
    margin-bottom: 0;
}
.documents-page-list .docs__section-item-doc a {
    max-width: 100%;
    font-size: 1.6rem;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    overflow-wrap: anywhere;
}
.documents-page-list .docs__section-item-doc a::after {
    content: "";
    width: 3.9rem;
    height: 4.2rem;
    background: url("/images/27/doc-icon.svg") center / contain no-repeat;
    position: absolute;
    left: 0;
    top: 0.7rem;
}
.documents-page-list .docs__section-item-doc.doc--pdf a::after {
    background-image: url("/themes/mintrans/assets/images/pdf-icon.svg");
}
.documents-page-list .docs__section-item-doc.doc--xls a::after,
.documents-page-list .docs__section-item-doc.doc--xlsx a::after {
    background-image: url("/images/27/xls-icon.svg");
}
.documents-page-list .docs__section-item-doc.doc--7z a::after,
.documents-page-list .docs__section-item-doc.doc--zip a::after {
    background-image: url("/images/27/7z-icon.svg");
}
.documents-page-list .docs__empty {
    padding: 2.4rem 0;
    color: var(--color-text-70);
    font-size: 1.6rem;
}
.documents-inner .documents-page-list .pagination {
    padding: 4rem 0;
}
@media (min-width: 768px) {
    .documents-inner .documents-page-list .docs__section-item-title {
        max-width: 90%;
    }
    .documents-inner .documents-page-list .docs__section-item-doc {
        max-width: 80%;
    }
}
@media (max-width: 767px) {
    .documents-inner .documents-page-list .h2 + .docs__section-grid {
        margin-top: 20px;
    }
    .documents-page-list .docs__section-grid {
        margin-top: 20px;
        gap: 10px;
    }
    .documents-page-list .docs__section-item {
        border-radius: 20px;
        padding: 20px;
    }
    .documents-page-list .docs__section-item-date {
        font-size: 12px;
    }
    .documents-page-list .docs__section-item-title {
        font-size: 14px;
        max-width: 100%;
        margin: 15px 0;
    }
    .documents-page-list .docs__section-item-doc {
        padding-left: 45px;
        max-width: 100%;
        margin-bottom: 15px;
        font-size: 12px;
    }
    .documents-page-list .docs__section-item-doc a {
        font-size: 12px;
    }
    .documents-page-list .docs__section-item-doc a::after {
        width: 30px;
        height: 33px;
    }
    .documents-page-list .docs__empty {
        font-size: 14px;
    }
}
