* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    color: white;
    text-align: justify;
}

p,
li {
    text-align: justify;
}

button,
input,
select,
textarea {
    font: inherit;
}

.hero {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    padding: 0;
    background-color: #0a3157;
    color: white;
    text-align: left;
}

.mobile-history-link,
.mobile-government-link,
.mobile-heritage-link,
.mobile-culture-link,
.mobile-travel-link {
    display: none !important;
}

.history-page-stage {
    width: 100%;
    height: 100vh;
    min-height: 980px;
    display: block;
    overflow: hidden;
    background-color: #0a3157;
    border-top: 3px solid #87ceeb;
}

.history-page-frame {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #0a3157;
    border: 0;
}

.hero-panel {
    position: relative;
    width: 100%;
}

.hero-title-panel {
    width: 100%;
    min-height: 94px;
    padding-right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #0a3157;
}

.hero-title-panel h1 {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
}

.hero h1 {
    position: relative;
    width: 50%;
    margin: 0;
    padding: 14.4px 4% 14.4px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #0a3157;
    color: white;
    font-size: clamp(24px, 2.8vw, 43.2px);
    line-height: 1;
    letter-spacing: -2px;
}

.title-flag {
    position: static;
    display: block;
    flex: 0 0 auto;
    width: 97.2px;
    height: 64.8px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 0;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.28));
}

.hero-title-actions {
    width: clamp(432px, 34vw, 580px);
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 170px;
    align-items: stretch;
    gap: 12px;
}

.development-notice {
    margin: 0;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff5d6;
    border: 1px solid #e5c879;
    border-left: 5px solid #a51d2d;
    color: #001f3f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.development-notice strong,
.development-notice span {
    display: block;
}

.development-notice strong {
    color: #a51d2d;
    font-size: 17px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.heading-stats-tab {
    width: 170px;
    height: 78px;
    padding: 6px 10px;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 4px;
    align-self: center;
    background: linear-gradient(145deg, #f7fcfe, #d9edf5);
    border: 2px solid #87ceeb;
    border-radius: 6px;
    box-shadow: 0 5px 0 #438eaa, 0 8px 13px rgba(0, 31, 63, 0.2);
    color: #001f3f;
}

.heading-stats-tab div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12px 24px;
    align-items: center;
    gap: 3px;
    border-bottom: 1px solid rgba(67, 142, 170, 0.35);
}

.heading-stats-tab div:last-child {
    border-bottom: 0;
}

.heading-stats-tab strong {
    color: #a51d2d;
    font-size: 15px;
    line-height: 1;
    text-align: center;
}

.heading-stats-tab i {
    color: #52636b;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.heading-stats-tab span {
    overflow: hidden;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 0 24px;
    background-color: white;
    border-top: 2px solid #87ceeb;
    border-bottom: 2px solid #87ceeb;
}

.primary-navigation-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-left: -16px;
}

.hero-navigation a {
    flex: 0 0 auto;
    height: 46px;
    margin: 8px 0 15px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #bfe7f6;
    border: 2px solid #87ceeb;
    border-radius: 4px;
    box-shadow: 0 7px 0 #438eaa, 0 9px 12px rgba(0, 31, 63, 0.18);
    color: #001f3f;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.primary-navigation-links > a {
    width: 132px;
    flex: 0 0 132px;
    padding-right: 12px;
    padding-left: 12px;
}

.chief-minister-tab {
    width: 132px;
    height: 46px;
    margin: 8px 0 15px;
    padding: 4px 8px;
    display: flex;
    flex: 0 0 132px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: #bfe7f6;
    border: 2px solid #87ceeb;
    border-radius: 4px;
    box-shadow: 0 7px 0 #438eaa, 0 9px 12px rgba(0, 31, 63, 0.18);
    color: #001f3f;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.chief-minister-tab img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: cover;
    object-position: center 20%;
    border: 1px solid #ffffff;
    border-radius: 50%;
}

.chief-minister-tab span {
    min-width: 0;
    display: grid;
    gap: 2px;
    text-align: left;
}

.chief-minister-tab strong,
.chief-minister-tab small {
    overflow: hidden;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chief-minister-tab strong {
    font-size: 10px;
    text-transform: uppercase;
}

.chief-minister-tab small {
    color: #7f1622;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.chief-minister-tab:hover,
.chief-minister-tab:focus-visible {
    background-color: #d9edf5;
    transform: translateY(2px);
    box-shadow: 0 5px 0 #438eaa, 0 7px 10px rgba(0, 31, 63, 0.16);
}

.hero-navigation a:last-child {
    border-right: 2px solid #87ceeb;
}

.hero-navigation a:hover {
    background-color: #d9edf5;
    color: #001f3f;
    transform: translateY(2px);
    box-shadow: 0 5px 0 #438eaa, 0 7px 10px rgba(0, 31, 63, 0.16);
}

.emergency-contact {
    order: 3;
    width: clamp(352px, calc(21.5vw - 8px), 462px);
    min-height: 46px;
    margin: 8px -8px 15px 0;
    padding: 0 14px;
    display: flex;
    flex: 0 0 clamp(352px, calc(21.5vw - 8px), 462px);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: #fff4f4;
    border: 2px solid #a51d2d;
    border-radius: 4px;
    box-shadow: 0 7px 0 #7f1622, 0 9px 12px rgba(0, 31, 63, 0.18);
    color: #001f3f;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.emergency-contact > span {
    color: #a51d2d;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-navigation .emergency-contact a,
.hero-navigation .emergency-contact a:last-child {
    height: auto;
    margin: 0;
    padding: 0;
    display: inline;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #001f3f;
    font-size: 13px;
    text-decoration: none;
    text-transform: none;
}

.hero-navigation .emergency-contact a:hover,
.hero-navigation .emergency-contact a:focus-visible {
    background: transparent;
    color: #a51d2d;
    outline: 2px solid #a51d2d;
    outline-offset: 2px;
    box-shadow: none;
    transform: none;
}

.emergency-contact strong {
    color: #a51d2d;
    font-size: 16px;
}

.emergency-icon {
    display: inline-block;
    margin-right: 2px;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    font-size: 18px;
    line-height: 1;
    vertical-align: -2px;
}

.navigation-search {
    order: 2;
    width: clamp(352px, calc(21.5vw - 8px), 462px);
    max-width: 462px;
    flex: 0 0 clamp(352px, calc(21.5vw - 8px), 462px);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 69px;
    background-color: white;
}

.header-member-control {
    position: relative;
    width: 100%;
    align-self: center;
}

.header-member-login {
    width: 100%;
    height: 54px;
    padding: 5px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #87ceeb;
    border: 2px solid #a51d2d;
    border-radius: 4px;
    box-shadow: 0 7px 0 #a51d2d, 0 9px 12px rgba(0, 31, 63, 0.2);
    color: #001f3f;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.header-member-login small {
    margin-top: 4px;
    color: #7f1622;
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.header-member-login:hover,
.header-member-login:focus-visible {
    background-color: #b9e3f3;
    transform: translateY(2px);
    box-shadow: 0 5px 0 #a51d2d, 0 7px 10px rgba(0, 31, 63, 0.18);
}

.header-member-account {
    position: relative;
    width: 100%;
}

.header-member-account[hidden],
.header-member-login[hidden],
.header-member-menu[hidden] {
    display: none !important;
}

.header-member-summary {
    min-height: 54px;
    padding: 4px 6px 4px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px auto;
    align-items: center;
    gap: 7px;
    background-color: #87ceeb;
    border: 2px solid #a51d2d;
    border-radius: 4px;
    box-shadow: 0 7px 0 #a51d2d, 0 9px 12px rgba(0, 31, 63, 0.2);
    color: #001f3f;
}

.header-member-summary > span {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-member-summary img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid #87ceeb;
    border-radius: 50%;
}

.header-member-summary button,
.header-member-menu button {
    border: 1px solid #87ceeb;
    background-color: #ffffff;
    color: #001f3f;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.header-member-summary button {
    height: 38px;
    padding: 0 9px;
}

.header-member-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 9px);
    right: 0;
    width: 100%;
    padding: 8px;
    display: grid;
    gap: 7px;
    background-color: #ffffff;
    border: 2px solid #87ceeb;
    box-shadow: 0 12px 24px rgba(0, 31, 63, 0.28);
}

.header-member-menu button {
    min-height: 40px;
    padding: 8px 12px;
    text-align: left;
}

.header-member-menu button:hover,
.header-member-menu button:focus-visible {
    background-color: #d9edf5;
}

.profile-picture-row {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #eef7fa;
    border-left: 5px solid #87ceeb;
}

.profile-picture-row img {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    border: 3px solid #87ceeb;
    border-radius: 50%;
}

.profile-picture-row p {
    margin: 0;
}

.navigation-search label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    margin: 8px 0 15px;
    padding: 0 20px;
    background-color: #bfe7f6;
    border: 2px solid #87ceeb;
    border-radius: 4px;
    box-shadow: 0 7px 0 #438eaa, 0 9px 12px rgba(0, 31, 63, 0.18);
    color: #001f3f;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.navigation-search input {
    min-width: 0;
    flex: 1 1 auto;
    height: 46px;
    margin: 8px 0 15px;
    padding: 9px 14px;
    border: 2px solid #87ceeb;
    border-right: 0;
    background-color: white;
    color: #001f3f;
    font-size: 17px;
    outline: 0;
}

.navigation-search input:focus {
    border-color: #e5c879;
    box-shadow: inset 0 0 0 1px #e5c879;
}

.navigation-search button {
    width: 160px;
    flex: 0 0 160px;
    height: 46px;
    margin: 8px 0 15px;
    padding: 0 22px;
    border: 2px solid #87ceeb;
    background-color: #87ceeb;
    border-radius: 4px;
    box-shadow: 0 7px 0 #438eaa, 0 9px 12px rgba(0, 31, 63, 0.18);
    color: #001f3f;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.navigation-search button:hover,
.navigation-search button:focus-visible {
    border-color: #e5c879;
    background-color: #e5c879;
    transform: translateY(2px);
    box-shadow: 0 5px 0 #8d6b22, 0 7px 10px rgba(0, 31, 63, 0.16);
}

.contribution-navigation-cta {
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 5px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex: 0 0 auto;
    background-color: #87ceeb;
    border: 2px solid #a51d2d;
    border-radius: 4px;
    box-shadow: 0 7px 0 #a51d2d, 0 10px 16px rgba(0, 31, 63, 0.22);
    color: #001f3f;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    animation: contribution-attention 2.8s ease-in-out infinite;
}

.contribution-navigation-cta[hidden] {
    display: none !important;
}

.contribution-navigation-cta span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.contribution-navigation-cta b {
    color: #a51d2d;
    font-size: 25px;
    line-height: 0.7;
    transition: transform 0.18s ease;
}

.contribution-navigation-cta small {
    color: #7f1622;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.1px;
    line-height: 1;
    text-transform: uppercase;
}

.contribution-navigation-cta:hover,
.contribution-navigation-cta:focus-visible {
    background-color: #b9e3f3;
    border-color: #a51d2d;
    color: #001f3f;
    transform: translateY(2px);
    box-shadow: 0 5px 0 #a51d2d, 0 7px 11px rgba(0, 31, 63, 0.2);
    animation-play-state: paused;
}

.contribution-navigation-cta:hover b,
.contribution-navigation-cta:focus-visible b {
    transform: translateX(5px);
}

@keyframes contribution-attention {
    0%, 72%, 100% {
        box-shadow: 0 7px 0 #a51d2d, 0 10px 16px rgba(0, 31, 63, 0.22);
    }

    82% {
        box-shadow: 0 7px 0 #a51d2d, 0 10px 24px rgba(165, 29, 45, 0.46);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contribution-navigation-cta {
        animation: none;
    }
}

.district-quick-navigation {
    width: 100%;
    padding: 0;
    overflow: visible;
    background-color: transparent;
    border: 0;
}

.district-tab-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    gap: 9.8px;
    width: 100%;
    padding: 0 0 10px;
    overflow: visible;
}

.district-quick-tab {
    width: 100%;
    min-width: 0;
    height: 57.70px;
    justify-self: start;
    padding: 0 17.64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background-color: #bfe7f6;
    border: 2px solid #87ceeb;
    border-radius: 4px;
    box-shadow: 0 6px 0 #438eaa, 0 9px 13px rgba(0, 31, 63, 0.24);
    color: #001f3f;
    font: inherit;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.district-tab-name {
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.05;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.district-tab-detail {
    max-width: 100%;
    overflow: hidden;
    color: #52636b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.45px;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: none;
}

.headquarters-tab .district-tab-detail {
    color: #8d1726;
}

.district-quick-tab:hover {
    background-color: #d9edf5;
    box-shadow: 0 3px 0 #438eaa, 0 6px 10px rgba(0, 31, 63, 0.2);
    transform: translateY(3px);
}

.district-quick-tab:focus-visible {
    outline: 3px solid #a51d2d;
    outline-offset: 3px;
}

.district-quick-tab.headquarters-tab {
    background-color: #e5c879;
    border-color: #a51d2d;
    box-shadow: 0 6px 0 #a51d2d, 0 9px 13px rgba(0, 31, 63, 0.24);
    color: #001f3f;
}

.district-quick-tab.headquarters-tab:hover {
    background-color: #f1d98f;
    box-shadow: 0 3px 0 #a51d2d, 0 6px 10px rgba(0, 31, 63, 0.2);
}

.district-instruction-tab {
    width: 100%;
    height: 57.70px;
    justify-self: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0 17.64px;
    background-color: #ffffff;
    border: 3px solid #87ceeb;
    border-radius: 4px;
    box-shadow: 0 6px 0 #438eaa, 0 9px 14px rgba(0, 31, 63, 0.28);
    color: #001f3f;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 900;
}

.district-instruction-tab span {
    width: 150px;
    color: #001f3f;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.district-instruction-tab strong {
    display: block;
    width: 150px;
    height: 17px;
    flex: 0 0 17px;
    background-color: #a51d2d;
    clip-path: polygon(0 38%, 84% 38%, 84% 0, 100% 50%, 84% 100%, 84% 62%, 0 62%);
    font-size: 0;
}

.district-instruction-tab strong::before {
    content: none;
}

.district-instruction-tab strong::after {
    content: none;
}

.explore-section {
    min-height: 500px;
    padding: 100px 60px;

    background-color: white;
    color: #123c2d;
    text-align: center;
}

.explore-section h2 {
    margin-top: 0;
    font-size: 40px;
}
.section-label {
    margin: 0 0 10px;
    color: #9a6a1f;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-introduction {
    max-width: 600px;
    margin: 16px auto 40px;
    color: #52636b;
    line-height: 1.7;
}

.district-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.district-card {
    padding: 30px;
    background-color: #f4f8fa;
    border: 1px solid #d5e3e9;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.district-card span {
    color: #9a6a1f;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.district-card h3 {
    margin: 12px 0;
    color: #001f3f;
    font-size: 28px;
}

.district-card p {
    min-height: 72px;
    color: #52636b;
    line-height: 1.6;
}

.district-card a {
    color: #001f3f;
    font-weight: bold;
    text-decoration: none;
}

.district-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 31, 63, 0.12);
}

.heritage-section {
    padding: 100px 60px;
    background-color: #001f3f;
    color: white;
}

.heritage-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;

    max-width: 1200px;
    margin: 0 auto 40px;
}

.heritage-heading h2 {
    margin: 0;
    font-size: 40px;
}

.heritage-heading > p {
    max-width: 470px;
    margin: 0;
    color: #c7d7df;
    line-height: 1.7;
}

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    max-width: 1200px;
    margin: 0 auto;
}

.heritage-card {
    min-height: 290px;
    padding: 30px;

    display: flex;
    flex-direction: column;

    background-color: #0a3157;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.heritage-card:hover {
    transform: translateY(-5px);
    background-color: #123f67;
}

.heritage-card span {
    color: #e5c879;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heritage-card h3 {
    margin: 14px 0 6px;
    font-size: 27px;
}

.heritage-card p {
    margin: 0;
    color: #c7d7df;
}

.heritage-card a {
    margin-top: auto;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.heritage-card a:hover {
    color: #e5c879;
}

.culture-section {
    padding: 100px 60px;
    background-color: #fff8e8;
    color: #123c2d;
}

.culture-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.culture-heading h2 {
    margin: 0;
    font-size: 40px;
}

.culture-heading > p:last-child {
    margin: 18px auto 0;
    color: #52636b;
    line-height: 1.7;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.culture-card {
    min-height: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid #ead9b7;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.culture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(92, 62, 20, 0.12);
}

.culture-card span {
    color: #9a6a1f;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.culture-card h3 {
    margin: 14px 0 10px;
    color: #001f3f;
    font-size: 27px;
}

.culture-card p {
    margin: 0;
    color: #52636b;
    line-height: 1.6;
}

.culture-card a {
    margin-top: auto;
    color: #001f3f;
    font-weight: bold;
    text-decoration: none;
}

.culture-card a:hover {
    color: #9a6a1f;
}

/* A consistent navy-and-gold theme for every discovery section. */
.explore-section,
.culture-section,
.travel-section {
    padding: 100px 60px;
    background-color: #001f3f;
    color: white;
}

.explore-section,
.culture-section,
.heritage-section,
.travel-section {
    position: relative;
}

.explore-section::after,
.heritage-section::after,
.culture-section::after,
.travel-section::after {
    content: "";
    position: absolute;
    z-index: 2;
    bottom: -4px;
    left: 50%;
    width: 100%;
    height: 8px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        #a51d2d 0%,
        #a51d2d 34%,
        #e5c879 34%,
        #f1d98f 66%,
        #a51d2d 66%,
        #a51d2d 100%
    );
    box-shadow: 0 2px 8px rgba(165, 29, 45, 0.34);
    pointer-events: none;
}

.section-introduction,
.culture-heading > p:last-child {
    color: #c7d7df;
}

.district-card,
.heritage-card,
.culture-card,
.travel-card {
    height: 330px;
    min-height: 330px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background-color: #0a3157;
    border: 2px solid #87ceeb;
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.district-card:hover,
.culture-card:hover,
.travel-card:hover {
    transform: translateY(-5px);
    background-color: #123f67;
    box-shadow: none;
}

.district-card span,
.culture-card span,
.travel-card span {
    color: #e5c879;
    letter-spacing: 1px;
}

.district-card h3,
.culture-card h3,
.travel-card h3 {
    color: white;
}

.district-card p,
.culture-card p,
.travel-card p {
    color: #c7d7df;
}

.district-card a,
.culture-card a,
.travel-card a {
    margin-top: auto;
    color: white;
}

.district-card a:hover,
.culture-card a:hover,
.travel-card a:hover {
    color: #e5c879;
}

/* Use the same narrow portrait shape for every discovery card. */
.district-grid {
    grid-template-columns: repeat(auto-fill, 220px);
    gap: 14px;
}

.district-card {
    min-height: 330px;
    padding: 24px;
}

.district-card span {
    font-size: 10px;
    line-height: 1.35;
}

.district-card h3 {
    margin: 11px 0 8px;
    font-size: 20px;
    line-height: 1.15;
}

.district-card a {
    font-size: 16px;
    font-weight: 800;
}

.district-directory {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.division-group {
    padding: 24px;
    background-color: rgba(10, 49, 87, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.division-heading {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
}

.division-heading > span {
    color: #e5c879;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.division-heading h3 {
    margin: 0;
    color: white;
    font-size: 25px;
}

.division-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, 220px);
    gap: 14px;
}

.district-card.division-headquarters {
    background-color: #174b76;
    border: 2px solid #87ceeb;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.district-card.division-headquarters span {
    color: #f1d98f;
}

.district-card,
.heritage-card,
.culture-card,
.travel-card {
    position: relative;
    cursor: pointer;
}

.district-card a,
.heritage-card a,
.culture-card a,
.travel-card a {
    font-size: 16px;
    font-weight: 800;
}

.district-card a::after,
.heritage-card a::after,
.culture-card a::after,
.travel-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.district-card:focus-within,
.heritage-card:focus-within,
.culture-card:focus-within,
.travel-card:focus-within {
    outline: 3px solid white;
    outline-offset: 3px;
}

.travel-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.travel-heading h2 {
    margin: 0;
    font-size: 40px;
}

.travel-heading > p {
    max-width: 470px;
    margin: 0;
    color: #c7d7df;
    line-height: 1.7;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.travel-card span {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.travel-card h3 {
    margin: 14px 0 10px;
    font-size: 27px;
}

.travel-card p {
    margin: 0;
    line-height: 1.6;
}

.travel-card a {
    font-weight: bold;
    text-decoration: none;
}

/* Shared card typography: label, title, description, then action. */
.district-card span,
.heritage-card span,
.culture-card span,
.travel-card span {
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.district-card h3,
.heritage-card h3,
.culture-card h3,
.travel-card h3 {
    margin: 14px 0 10px;
    font-size: 24px;
    line-height: 1.15;
}

.district-card p,
.heritage-card p,
.culture-card p,
.travel-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.district-card a,
.heritage-card a,
.culture-card a,
.travel-card a {
    margin-top: auto;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
}

/* Keep section content left-aligned and leave room for future cards. */
.explore-section,
.culture-section {
    text-align: left;
}

.section-introduction,
.culture-heading,
.heritage-heading,
.travel-heading {
    margin-left: 0;
    margin-right: 0;
}

.section-introduction {
    margin-top: 16px;
    margin-bottom: 40px;
}

.culture-heading {
    text-align: left;
}

.district-grid,
.heritage-grid,
.culture-grid,
.travel-grid {
    grid-template-columns: repeat(auto-fill, 220px);
    justify-content: start;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Compact linked-information tabs beneath the Heritage, Culture and Travel menu items. */
.heritage-section,
.culture-section,
.travel-section {
    padding: 48px 60px 52px;
}

.heritage-grid,
.culture-grid,
.travel-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.heritage-section .heritage-card,
.culture-section .culture-card,
.travel-section .travel-card {
    width: 100%;
    height: 104px;
    min-height: 104px;
    padding: 12px 16px 14px;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
    background-color: #bfe7f6;
    color: #001f3f;
    border: 2px solid #87ceeb;
    border-radius: 7px;
    box-shadow:
        0 8px 0 #3b8cab,
        0 12px 18px rgba(0, 31, 63, 0.18);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.heritage-section .heritage-card:hover,
.culture-section .culture-card:hover,
.travel-section .travel-card:hover {
    transform: translateY(-3px);
    background-color: #d9edf5;
    box-shadow:
        0 11px 0 #3b8cab,
        0 15px 22px rgba(0, 31, 63, 0.2);
}

.heritage-section .heritage-card span,
.culture-section .culture-card span,
.travel-section .travel-card span {
    margin: 0;
    color: #9a6a1f;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
}

.heritage-section .heritage-card h3,
.culture-section .culture-card h3,
.travel-section .travel-card h3 {
    margin: 1px 0;
    color: #001f3f;
    font-size: 18px;
    line-height: 1.05;
    text-align: center;
}

.heritage-section .heritage-card p,
.culture-section .culture-card p,
.travel-section .travel-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #355568;
    font-size: 11px;
    line-height: 1.2;
    text-align: justify;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.heritage-section .heritage-card a,
.culture-section .culture-card a,
.travel-section .travel-card a {
    position: absolute;
    z-index: 2;
    inset: 0;
    margin: 0;
    color: transparent;
    font-size: 0;
}

.heritage-section .heritage-card:focus-within,
.culture-section .culture-card:focus-within,
.travel-section .travel-card:focus-within {
    outline: 3px solid white;
    outline-offset: 4px;
}

.home-button {
    position: fixed;
    z-index: 20;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 11px 9px 13px;
    background-color: #87ceeb;
    color: #001f3f;
    border: 1px solid rgba(0, 31, 63, 0.18);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 8px 24px rgba(0, 15, 35, 0.28);
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
    writing-mode: horizontal-tb;
    transform: translateY(-50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-button:hover {
    transform: translateY(-50%) translateX(3px);
    background-color: #a8ddf0;
}

.home-main {
    font-size: 14px;
    line-height: 1;
    writing-mode: horizontal-tb;
}

.home-page {
    font-size: 13px;
    line-height: 1;
    letter-spacing: 1px;
    text-orientation: upright;
    writing-mode: vertical-rl;
}

.homepage-home-button {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-100%);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}

.homepage-home-button.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.homepage-home-button.is-visible:hover {
    transform: translateY(-50%) translateX(3px);
}

.home-button:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

.hero-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(720px, 43vw, 940px);
    gap: 0;
    width: 100%;
    padding: 12px 16px 3.5px;
}

.hero-main-space {
    min-width: 0;
    height: auto;
    min-height: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 12px;
    overflow: visible;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: white;
}

.punjab-history-chronicle {
    position: relative;
    width: 100%;
    min-height: 190px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    padding: 11px 14px 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbfe 58%, #e1f3fa 100%);
    border: 2px solid #87ceeb;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 31, 63, 0.24);
    color: #001f3f;
    scroll-margin-top: 12px;
}

.punjab-history-chronicle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #a51d2d 0 18%, #e5c879 18% 60%, #87ceeb 60% 100%);
}

.punjab-history-heading {
    min-width: 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 0 7px;
    border-bottom: 2px solid #e5c879;
}

.punjab-history-heading > div {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.punjab-history-heading p {
    margin: 0;
    flex: 0 0 auto;
    color: #a56b08;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.punjab-history-heading p::before,
.punjab-history-heading p::after {
    color: #a51d2d;
    content: "\2726";
    font-size: 10px;
}

.punjab-history-heading p::before {
    margin-right: 6px;
}

.punjab-history-heading p::after {
    margin-left: 6px;
}

.punjab-history-heading h2 {
    margin: 0;
    color: #001f3f;
    font-size: clamp(17px, 1.35vw, 23px);
    line-height: 1;
}

.punjab-history-heading strong {
    flex: 0 0 auto;
    color: #a51d2d;
    font-size: 12px;
    letter-spacing: 0.45px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.punjab-history-timeline {
    min-height: 0;
    flex: 1 1 auto;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    list-style: none;
}

.punjab-history-timeline li {
    min-width: 0;
    min-height: 0;
    padding: 5px 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    border-left: 3px solid #e5c879;
    border-radius: 4px;
}

.punjab-history-timeline li:nth-child(3n + 2) {
    border-left-color: #87ceeb;
}

.punjab-history-timeline li:nth-child(3n) {
    border-left-color: #a51d2d;
}

.punjab-history-timeline time {
    display: block;
    color: #a51d2d;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.15px;
    line-height: 1.1;
}

.punjab-history-timeline p {
    margin: 4px 0 0;
    color: #355568;
    font-size: 13px;
    line-height: 1.22;
    text-align: left;
}

.punjab-opening-layout {
    width: 100%;
    height: 655px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: stretch;
    gap: 12px;
}

.punjab-opening {
    width: 100%;
    height: 100%;
    min-height: 228px;
    align-self: flex-start;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 10px 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbfe 55%, #e1f3fa 100%);
    border: 2px solid #87ceeb;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 31, 63, 0.24);
}

.punjab-opening.is-temporarily-hidden {
    display: none !important;
}

.punjab-opening::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #a51d2d 0 18%, #e5c879 18% 60%, #87ceeb 60% 100%);
}

.punjab-opening-copy {
    min-width: 0;
    max-width: none;
    padding-right: 0;
}

.punjab-opening-secondary {
    min-width: 0;
    height: 100%;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbfe 55%, #e1f3fa 100%);
    border: 2px solid #87ceeb;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 31, 63, 0.24);
}

.punjab-opening-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #a51d2d 0 18%, #e5c879 18% 60%, #87ceeb 60% 100%);
}

.landmark-slideshow {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 8px;
    contain: layout paint;
}

.landmark-slide-link {
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid #87ceeb;
    border-radius: 7px;
    background: #d9edf5;
    color: #ffffff;
    text-decoration: none;
}

.landmark-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transform: scale(1.001);
    transition: opacity 0.45s ease, transform 5s linear;
}

.landmark-slideshow:not(.is-paused) .landmark-slide-image {
    transform: scale(1.035);
}

.landmark-slideshow.is-changing .landmark-slide-image {
    opacity: 0;
}

.landmark-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 20, 42, 0.88) 100%);
}

.landmark-slide-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 2px;
    padding: 28px 16px 13px;
    text-align: left;
}

.landmark-slide-caption small {
    color: #f1d47d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.landmark-slide-caption strong {
    font-size: 24px;
    line-height: 1.05;
}

.landmark-slide-caption > span {
    color: #d9edf5;
    font-size: 15px;
    font-weight: 700;
}

.landmark-slideshow-toolbar {
    min-width: 0;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 2px 0;
    color: #355568;
    font-size: 11px;
}

.landmark-slideshow-controls {
    display: flex;
    gap: 4px;
}

.landmark-slideshow-controls button {
    min-width: 28px;
    height: 25px;
    padding: 0 7px;
    border: 1px solid #87ceeb;
    border-radius: 4px;
    background: #d9edf5;
    color: #001f3f;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.landmark-slideshow-controls button:hover,
.landmark-slideshow-controls button:focus-visible {
    background: #87ceeb;
}

.landmark-position {
    white-space: nowrap;
}

.landmark-credit {
    min-width: 0;
    overflow: hidden;
    color: #355568;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Consistent heading colour across every white or pale information surface. */
.punjab-opening h2,
.punjab-opening h3,
.punjab-fact-grid strong,
.community-map-card h2,
.community-card h2,
.public-posts-card h2,
.public-post-preview strong,
.member-dialog h2,
.district-card h3 {
    color: #001f3f;
}

@media (prefers-reduced-motion: reduce) {
    .landmark-slide-image {
        transition: none;
        transform: none !important;
    }
}

.punjab-opening-title-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.punjab-opening h2 {
    margin: 0;
    padding: 0 0 5px;
    background: transparent;
    border: 0;
    border-bottom: 3px solid #e5c879;
    border-radius: 0;
    box-shadow: none;
    color: #001f3f;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.25px;
    line-height: 1.2;
}

.punjab-opening-lead {
    max-width: none;
    margin: 14px 0 0;
    color: #355568;
    font-size: 17px;
    line-height: 1.35;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

.punjab-fact-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 18px;
    padding-top: 11px;
    border-top: 1px solid #b9dce8;
}

.punjab-fact-grid article {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.punjab-fact-grid strong {
    position: relative;
    display: block;
    color: #001f3f;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.15px;
    line-height: 1.15;
}

.punjab-fact-grid strong::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 2px;
    background-color: #e5c879;
}

.punjab-fact-grid p {
    margin: 5px 0 0;
    color: #355568;
    font-size: 13px;
    line-height: 1.3;
    hyphens: none;
    overflow-wrap: normal;
    text-align: justify;
    word-break: normal;
}

.punjab-opening .district-quick-navigation {
    min-height: 0;
    margin-top: 0;
    padding-right: 3px;
    overflow-y: auto;
}

.punjab-opening .district-tab-track {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 5px;
    padding: 0;
}

.punjab-opening .district-quick-tab,
.punjab-opening .district-instruction-tab {
    height: 38px;
    padding: 0 7px;
    gap: 3px;
    box-shadow: 0 4px 0 #438eaa, 0 6px 9px rgba(0, 31, 63, 0.2);
}

.punjab-opening .district-tab-name {
    font-size: 10px;
}

.punjab-opening .district-tab-detail {
    font-size: 7px;
    letter-spacing: 0.15px;
}

.punjab-opening .district-instruction-tab {
    font-size: 9px;
}

.punjab-opening .district-instruction-tab span,
.punjab-opening .district-instruction-tab strong {
    width: 78px;
}

.punjab-opening .district-instruction-tab strong {
    height: 11px;
    flex-basis: 11px;
}

.district-empty-tab {
    display: none;
    cursor: default;
    pointer-events: none;
}

.hero-navigation a[aria-current="page"] {
    background-color: #e5c879;
    border-color: #a51d2d;
    box-shadow: 0 7px 0 #a51d2d, 0 9px 12px rgba(0, 31, 63, 0.2);
}

.history-page .primary-navigation-links > a[aria-current="page"] {
    background: linear-gradient(115deg, #ecfff3 0%, #6ff0a0 32%, #17b968 54%, #88f3ae 76%, #ecfff3 100%);
    background-size: 220% 100%;
    border-color: #27d578;
    color: #003d24;
    box-shadow:
        0 7px 0 #087840,
        0 9px 12px rgba(0, 31, 63, 0.2),
        0 0 14px rgba(39, 213, 120, 0.82),
        0 0 25px rgba(39, 213, 120, 0.5);
    animation: active-page-green-glow 2.6s ease-in-out infinite;
}

@keyframes active-page-green-glow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow:
            0 7px 0 #087840,
            0 9px 12px rgba(0, 31, 63, 0.2),
            0 0 12px rgba(39, 213, 120, 0.68),
            0 0 20px rgba(39, 213, 120, 0.38);
    }

    50% {
        background-position: 100% 50%;
        box-shadow:
            0 7px 0 #087840,
            0 9px 12px rgba(0, 31, 63, 0.2),
            0 0 18px rgba(74, 238, 145, 0.98),
            0 0 32px rgba(39, 213, 120, 0.68);
    }
}

@media (prefers-reduced-motion: reduce) {
    .history-page .primary-navigation-links > a[aria-current="page"] {
        animation: none;
    }
}

.history-page .history-quick-tab:disabled {
    cursor: default;
    opacity: 1;
}

.history-page .history-quick-tab:disabled:hover {
    background-color: #bfe7f6;
    box-shadow: 0 6px 0 #438eaa, 0 9px 13px rgba(0, 31, 63, 0.24);
    transform: none;
}

.history-page .history-quick-tab.headquarters-tab:disabled:hover {
    background-color: #e5c879;
    box-shadow: 0 6px 0 #a51d2d, 0 9px 13px rgba(0, 31, 63, 0.24);
}

.history-page .history-opening-navigation .district-instruction-tab span {
    width: 100%;
    font-size: 12px;
}

.history-page .history-slideshow .landmark-slide-image {
    object-fit: contain;
    background-color: #082a49;
}

.government-page .history-slideshow .landmark-slide-image,
.government-page .government-feature-card .punjab-map img,
.heritage-page .history-slideshow .landmark-slide-image,
.heritage-page .heritage-feature-card .punjab-map img,
.culture-page .history-slideshow .landmark-slide-image,
.culture-page .culture-feature-card .punjab-map img,
.travel-page .history-slideshow .landmark-slide-image,
.travel-page .travel-feature-card .punjab-map img {
    object-fit: cover;
    object-position: center;
}

@media (min-width: 901px) {
    html {
        scroll-behavior: smooth;
        scroll-snap-type: y mandatory;
    }

    .hero,
    .history-page-stage,
    .heritage-section,
    .culture-section,
    .travel-section {
        min-height: 100vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .heritage-section,
    .culture-section,
    .travel-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body:not(.history-page) > .heritage-section {
        display: none !important;
    }

    body:not(.history-page) > .culture-section {
        display: none !important;
    }

    body:not(.history-page) > .travel-section {
        display: none !important;
    }

    .site-footer {
        scroll-snap-align: end;
        scroll-snap-stop: always;
    }

    body.history-page {
        height: 100vh;
        overflow: hidden;
    }

    body.history-page > .admin-moderation-desk,
    body.history-page > .government-section,
    body.history-page > .heritage-section,
    body.history-page > .culture-section,
    body.history-page > .travel-section,
    body.history-page > .site-footer {
        display: none !important;
    }

    .district-opening-navigation {
        height: 100%;
    }

    .district-opening-navigation .district-tab-track {
        height: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(11, minmax(0, 1fr));
        align-content: stretch;
        gap: 9px;
        padding: 0;
    }

    .district-opening-navigation .district-quick-tab,
    .district-opening-navigation .district-instruction-tab {
        height: 100%;
    }

    .district-opening-navigation .district-empty-tab {
        display: flex;
    }

    .history-page .hero-main-space {
        justify-content: flex-start;
    }

    .history-page .punjab-opening-layout {
        height: auto;
        min-height: 655px;
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.punjab-map-reference {
    margin: 12px 0 0;
    padding: 7px 9px;
    color: #355568;
    font-size: 12px;
    line-height: 1.3;
    background-color: rgba(217, 237, 245, 0.72);
    border-left: 4px solid #87ceeb;
}

.punjab-map-reference strong {
    color: #001f3f;
}

.punjab-story {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.punjab-story article {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.punjab-story article:hover {
    transform: none;
    box-shadow: none;
}

.punjab-story strong {
    display: block;
    min-height: 0;
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    color: #001f3f;
    font-size: 15px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.punjab-story p {
    margin: 0;
    color: #29495c;
    font-size: 15px;
    line-height: 1.35;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

.punjab-maps {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: start;
    align-content: stretch;
    align-self: stretch;
    gap: 6px;
    padding-left: 10px;
    border-left: 2px solid #c8e4ee;
}

.punjab-map-heading {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: #001f3f;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.punjab-map {
    min-width: 0;
    min-height: 0;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.68);
    border: 1px solid #c8e4ee;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 31, 63, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.punjab-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 31, 63, 0.14);
}

.punjab-map a {
    width: 100%;
    min-height: 0;
    flex: 1;
    display: flex;
    justify-content: center;
    transform: scale(1.768, 1.291);
    transform-origin: right top;
}

.punjab-map img {
    width: 100%;
    height: 100%;
    max-height: none;
    display: block;
    object-fit: contain;
    background-color: #eef7fa;
    border: 1px solid #87ceeb;
}

.punjab-map figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.punjab-map-note {
    grid-column: 1 / -1;
    margin: 0;
    color: #526b78;
    font-size: 9px;
    line-height: 1.35;
    text-align: center;
}

.hero-feature-image {
    width: 100%;
    height: 47%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-feature-content {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.hero-feature-content h2 {
    margin: 0;
    color: #001f3f;
    font-size: clamp(30px, 2.5vw, 46px);
    line-height: 1.05;
}

.hero-feature-introduction {
    max-width: 720px;
    margin: 14px 0 20px;
    color: #52636b;
    font-size: 16px;
    line-height: 1.6;
}

.district-search {
    max-width: 680px;
}

.district-search > label {
    display: block;
    margin-bottom: 7px;
    color: #001f3f;
    font-size: 13px;
    font-weight: 800;
}

.district-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.district-search input,
.district-search button {
    min-height: 48px;
    border: 2px solid #87ceeb;
    font: inherit;
}

.district-search input {
    min-width: 0;
    padding: 0 14px;
    border-radius: 6px 0 0 6px;
    color: #001f3f;
}

.district-search button {
    padding: 0 20px;
    background-color: #001f3f;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.district-search button:hover {
    background-color: #0a3157;
}

.district-search input:focus-visible,
.district-search button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid #e5c879;
    outline-offset: 2px;
}

.district-search-status {
    min-height: 20px;
    margin: 6px 0 0;
    color: #52636b;
    font-size: 12px;
}

.featured-destination {
    margin-top: auto;
    padding-top: 18px;
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-top: 1px solid #c8dce5;
}

.featured-destination div {
    display: flex;
    flex-direction: column;
}

.featured-destination span {
    color: #9a6a1f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-destination strong {
    margin-top: 4px;
    color: #001f3f;
    font-size: 25px;
}

.featured-destination p {
    margin: 0;
    color: #52636b;
    font-size: 13px;
    line-height: 1.45;
}

.featured-destination a {
    padding: 11px 14px;
    background-color: #87ceeb;
    border-radius: 5px;
    color: #001f3f;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.featured-destination a:hover {
    background-color: #a8ddf0;
}

.district-card.search-result-highlight {
    outline: 4px solid #87ceeb;
    outline-offset: 5px;
    box-shadow: 0 0 28px rgba(135, 206, 235, 0.7);
}

.visitor-tools {
    width: calc(100% - 4px);
    margin-left: 4px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "registration public-posts"
        "advertisement advertisement";
    grid-template-rows: 580px 198px;
    column-gap: 12px;
    row-gap: 20px;
    justify-self: stretch;
    align-self: start;
    align-items: stretch;
    transform: none;
}

.community-card {
    grid-area: post;
}

.membership-card {
    grid-area: registration;
}

.public-posts-card {
    grid-area: public-posts;
}

.advertisement-slot {
    grid-area: advertisement;
}

.public-posts-card {
    min-height: 0;
    overflow-y: auto;
}

.public-posts-heading-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(170px, 0.9fr);
    align-items: center;
    gap: 10px;
}

.public-posts-contribution-cta {
    width: 100%;
    height: 62px;
    padding: 6px 9px;
    background-color: #eef8fc;
    font-size: 13px;
}

.public-posts-contribution-cta:hover,
.public-posts-contribution-cta:focus-visible {
    background-color: #f8fcfe;
}

.public-posts-contribution-cta small {
    font-size: 7.5px;
    letter-spacing: 0.65px;
}

.embedded-community-card {
    margin-top: 18px;
    padding: 18px 0 0;
    background: transparent;
    border: 0;
    border-top: 2px solid #87ceeb;
    border-radius: 0;
    box-shadow: none;
}

.embedded-community-card h2 {
    font-size: 20px;
}

.embedded-community-card .embedded-member-control {
    width: 100%;
    margin: 14px 0 0;
}

.embedded-community-card .header-member-login {
    width: 100%;
    height: 86px;
    padding: 9px 18px;
    font-size: 20px;
}

.embedded-community-card .header-member-login small {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 0.65px;
}

.community-map-card {
    grid-area: registration;
    min-width: 0;
    min-height: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(145deg, #f7fcfe, #d9edf5);
    border: 2px solid #87ceeb;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 31, 63, 0.16);
}

.community-map-card h2 {
    margin: 0 0 7px;
    color: #001f3f;
    font-size: 22px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.community-map-card .punjab-map {
    flex: 1;
    height: auto;
    overflow: hidden;
}

.community-map-card .punjab-map a {
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: none;
}

.community-map-card .punjab-map img {
    max-height: 100%;
    object-fit: fill;
    object-position: center;
}

.membership-card,
.community-card,
.public-posts-card {
    padding: 22px;
    background-color: white;
    border: 1px solid #c8dce5;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 31, 63, 0.16);
    color: #001f3f;
}

.tool-label {
    margin: 0 0 7px;
    color: #9a6a1f;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.public-posts-heading-row > div > .tool-label,
.embedded-community-card > .tool-label {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.public-posts-heading-row > div > .tool-label::before,
.public-posts-heading-row > div > .tool-label::after,
.embedded-community-card > .tool-label::before,
.embedded-community-card > .tool-label::after {
    color: #a51d2d;
    content: "\2726";
    font-size: 10px;
}

.public-posts-heading-row > div > .tool-label::before,
.embedded-community-card > .tool-label::before {
    margin-right: 6px;
}

.public-posts-heading-row > div > .tool-label::after,
.embedded-community-card > .tool-label::after {
    margin-left: 6px;
}

.membership-card h2,
.community-card h2,
.public-posts-card h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
}

.membership-card > p:not(.tool-label),
.community-card > p:not(.tool-label),
.member-signed-out-state > p:not(.tool-label),
.member-signed-in-state > p:not(.tool-label) {
    margin: 8px 0 18px;
    color: #52636b;
    font-size: 14px;
}

.public-post-preview {
    margin-top: 14px;
    padding: 14px;
    background-color: #eef7fa;
    border-radius: 6px;
    color: #001f3f;
}

.public-post-preview strong {
    font-size: 13px;
}

.public-post-preview p {
    margin: 7px 0 0;
    color: #52636b;
    font-size: 12px;
    line-height: 1.45;
}

.muted-preview {
    opacity: 0.7;
}

.membership-form {
    display: grid;
    gap: 11px;
}

.membership-form[hidden] {
    display: none !important;
}

.membership-form label {
    color: #52636b;
    font-size: 12px;
    font-weight: bold;
}

.membership-form input,
.registration-form input,
.registration-form select,
.verification-placeholder input,
.community-card textarea {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #c8dce5;
    border-radius: 5px;
    font: inherit;
}

.community-card textarea {
    resize: none;
}

.upload-placeholder {
    display: block;
    margin: 10px 0;
    padding: 11px;
    background-color: #eef7fa;
    border: 1px dashed #9eb7c2;
    border-radius: 5px;
    color: #52636b;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.upload-placeholder input {
    display: none;
}

.membership-card button,
.community-card > button {
    width: 100%;
    padding: 11px;
    background-color: #d9e5ea;
    border: 0;
    border-radius: 5px;
    color: #52636b;
    font-weight: bold;
    cursor: pointer;
}

.membership-card button:disabled,
.community-card > button:disabled,
.verification-placeholder button:disabled {
    cursor: not-allowed;
}

.member-primary-button {
    background-color: #001f3f !important;
    color: white !important;
}

.member-primary-button:hover,
.member-primary-button:focus-visible {
    background-color: #0a4675 !important;
}

.member-secondary-button {
    background-color: #bfe7f6 !important;
    color: #001f3f !important;
}

.member-secondary-button:hover,
.member-secondary-button:focus-visible {
    background-color: #87ceeb !important;
}

.member-placeholder-note,
.member-lock-status {
    padding: 9px 11px;
    background-color: #eef7fa;
    border-left: 4px solid #87ceeb;
    color: #52636b;
    font-size: 11px !important;
    line-height: 1.35;
}

.member-lock-status {
    margin-bottom: 10px !important;
    border-left-color: #a51d2d;
}

.member-dialog {
    width: min(760px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    padding: 24px;
    overflow: auto;
    background-color: white;
    border: 2px solid #87ceeb;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 31, 63, 0.42);
    color: #001f3f;
}

.member-login-dialog {
    width: min(620px, calc(100% - 32px));
}

.chief-minister-dialog {
    width: min(760px, calc(100% - 32px));
}

.chief-minister-profile {
    margin: 18px 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    background: linear-gradient(145deg, #f7fcfe, #d9edf5);
    border: 1px solid #87ceeb;
    border-radius: 8px;
}

.chief-minister-profile figure {
    margin: 0;
}

.chief-minister-profile img {
    width: 110px;
    height: 138px;
    display: block;
    object-fit: cover;
    object-position: center 20%;
    border: 3px solid #ffffff;
    border-radius: 7px;
    box-shadow: 0 5px 12px rgba(0, 31, 63, 0.2);
}

.chief-minister-profile > div > strong,
.chief-minister-profile > div > span {
    display: block;
}

.chief-minister-profile > div > strong {
    margin: 0;
    padding: 0 0 5px;
    background: transparent;
    border-bottom: 3px solid #e5c879;
    color: #001f3f;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.25px;
    line-height: 1.2;
}

.chief-minister-profile > div > span {
    margin-top: 3px;
    color: #a51d2d;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.chief-minister-profile > div > p {
    margin: 14px 0 0;
    color: #355568;
    font-size: 17px;
    line-height: 1.35;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

.chief-minister-contact-form {
    display: grid;
    gap: 12px;
}

.chief-minister-contact-form label {
    color: #001f3f;
    font-size: 12px;
    font-weight: 800;
}

.chief-minister-contact-form input,
.chief-minister-contact-form select,
.chief-minister-contact-form textarea {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #c8dce5;
    border-radius: 5px;
    background-color: #ffffff;
    color: #001f3f;
    font: inherit;
}

.chief-minister-contact-form textarea {
    resize: vertical;
}

.chief-minister-contact-form > button {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 5px;
    font-weight: 900;
    cursor: pointer;
}

.official-contact-note {
    margin: 0;
    padding: 10px 12px;
    background-color: #fff5d6;
    border-left: 4px solid #a51d2d;
    color: #52636b;
    font-size: 11px;
    line-height: 1.4;
}

.member-login-guidance {
    max-width: 520px;
    margin: 7px 0 0;
    color: #52636b;
    line-height: 1.45;
}

.member-dialog::backdrop {
    background-color: rgba(0, 31, 63, 0.72);
    backdrop-filter: blur(3px);
}

.member-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #d9edf5;
}

.member-dialog-header h2 {
    margin: 0;
    font-size: 28px;
}

.dialog-close-button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    background-color: #eef7fa;
    border: 1px solid #c8dce5;
    border-radius: 4px;
    color: #001f3f;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.registration-form {
    display: grid;
    gap: 14px;
}

.registration-form[hidden],
.verification-placeholder[hidden] {
    display: none;
}

.registration-form label,
.verification-placeholder label {
    display: grid;
    gap: 5px;
    color: #52636b;
    font-size: 13px;
    font-weight: 800;
}

.registration-form input,
.registration-form select,
.verification-placeholder input {
    width: 100%;
    margin: 0;
    padding: 11px;
    background-color: white;
    border: 1px solid #b8d3de;
    border-radius: 5px;
    color: #001f3f;
    font: inherit;
}

.registration-name-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.registration-phone-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
}

.dialog-action-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1.45fr);
    gap: 12px;
}

.dialog-action-row button,
.verification-placeholder button {
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 5px;
    font-weight: 800;
    cursor: pointer;
}

.verification-placeholder {
    padding: 18px;
    background-color: #eef7fa;
    border: 1px solid #c8dce5;
    border-left: 5px solid #e5c879;
}

.verification-placeholder h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.verification-placeholder p:not(.tool-label) {
    color: #52636b;
}

.verification-placeholder .member-primary-button {
    background-color: #001f3f;
    color: white;
}

.verification-placeholder .member-primary-button:hover,
.verification-placeholder .member-primary-button:focus-visible {
    background-color: #0a3157;
}

.verification-placeholder button {
    width: 100%;
    margin-top: 12px;
    background-color: #d9e5ea;
    color: #52636b;
}

.contribution-dialog {
    width: min(980px, calc(100% - 32px));
}

.contribution-placeholder-warning {
    max-width: 700px;
    margin: 7px 0 0;
    color: #52636b;
    font-size: 12px;
    line-height: 1.4;
}

.contribution-demo-button {
    min-height: 38px;
    margin-top: 10px;
    padding: 8px 14px;
    background-color: #e5c879;
    border: 2px solid #a51d2d;
    border-radius: 4px;
    box-shadow: 0 4px 0 #a51d2d;
    color: #001f3f;
    font-weight: 900;
    cursor: pointer;
}

.contribution-demo-button:hover,
.contribution-demo-button:focus-visible {
    background-color: #f1d98e;
    transform: translateY(1px);
    box-shadow: 0 3px 0 #a51d2d;
}

.contribution-demo-status {
    min-height: 18px;
    margin: 9px 0 0;
    color: #2f7d4a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.contribution-progress {
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
    counter-reset: contribution-progress;
}

.contribution-progress li {
    counter-increment: contribution-progress;
    padding: 9px 6px;
    background-color: #eef7fa;
    border: 1px solid #c8dce5;
    border-radius: 4px;
    color: #52636b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.contribution-progress li::before {
    content: counter(contribution-progress) ". ";
}

.contribution-progress li.is-complete {
    background-color: #d9edf5;
    border-color: #87ceeb;
    color: #001f3f;
}

.contribution-progress li.is-current {
    background-color: #e5c879;
    border-color: #a51d2d;
    box-shadow: 0 3px 0 #a51d2d;
    color: #001f3f;
}

.contribution-step {
    padding: 4px 2px 2px;
    color: #001f3f;
}

.contribution-step[hidden] {
    display: none;
}

.contribution-step h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.contribution-step > p:not(.tool-label) {
    margin: 0 0 18px;
    color: #52636b;
    line-height: 1.5;
}

.contribution-form,
.contribution-policy-form {
    display: grid;
    gap: 14px;
}

.contribution-form label,
.contribution-form legend,
.contribution-media-fieldset legend {
    color: #355568;
    font-size: 13px;
    font-weight: 800;
}

.contribution-form input,
.contribution-form select,
.contribution-form textarea {
    width: 100%;
    margin-top: 5px;
    padding: 11px;
    background-color: white;
    border: 1px solid #b8d3de;
    border-radius: 5px;
    color: #001f3f;
    font: inherit;
}

.contribution-form textarea {
    resize: vertical;
}

.contribution-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.verification-methods,
.contribution-media-fieldset {
    margin: 0;
    padding: 14px;
    border: 1px solid #c8dce5;
    border-radius: 6px;
}

.verification-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    background-color: #f7fbfd;
}

.verification-methods label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.verification-methods input,
.contribution-policy-form input {
    width: auto;
    margin: 0;
    accent-color: #a51d2d;
}

.contribution-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.contribution-actions button,
.contribution-confirmation button,
#send-placeholder-code {
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 5px;
    font-weight: 800;
    cursor: pointer;
}

.contribution-actions button:disabled,
.contribution-confirmation button:disabled {
    background-color: #d9e5ea !important;
    color: #7b8b93 !important;
    cursor: not-allowed;
}

.contribution-media-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contribution-media-options label {
    padding: 12px;
    display: grid;
    gap: 8px;
    background-color: #eef7fa;
    border: 1px dashed #87b8cc;
    border-radius: 5px;
    color: #001f3f;
    text-align: center;
}

.contribution-media-options input {
    margin: 0;
    padding: 7px;
    background-color: white;
    font-size: 11px;
}

.contribution-media-preview {
    margin-top: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    background-color: #f7fbfd;
    border-radius: 5px;
}

.contribution-media-preview > p {
    grid-column: 1 / -1;
    margin: 0;
    color: #52636b;
    font-size: 12px;
}

.contribution-media-item {
    min-width: 0;
    margin: 0;
    padding: 7px;
    background-color: white;
    border: 1px solid #c8dce5;
    border-radius: 4px;
}

.contribution-media-item img,
.contribution-media-item video {
    width: 100%;
    height: 100px;
    display: block;
    object-fit: cover;
    background-color: #d9e5ea;
}

.contribution-demo-media {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(135, 206, 235, 0.76), rgba(229, 200, 121, 0.8)),
        #d9edf5;
    border: 1px dashed #438eaa;
    color: #001f3f;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.contribution-media-item figcaption {
    margin-top: 6px;
    overflow: hidden;
    color: #52636b;
    font-size: 10px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contribution-review {
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1.65fr);
    border: 1px solid #c8dce5;
    border-radius: 6px;
    overflow: hidden;
}

.contribution-review dt,
.contribution-review dd {
    margin: 0;
    padding: 11px 13px;
    border-bottom: 1px solid #d9e5ea;
}

.contribution-review dt {
    background-color: #eef7fa;
    color: #001f3f;
    font-weight: 900;
}

.contribution-review dd {
    color: #52636b;
    white-space: pre-wrap;
}

.contribution-review dt:last-of-type,
.contribution-review dd:last-of-type {
    border-bottom: 0;
}

.contribution-policy-form label {
    padding: 11px 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: #f7fbfd;
    border: 1px solid #d9e5ea;
    border-left: 4px solid #87ceeb;
    border-radius: 4px;
    color: #355568;
    font-size: 13px;
    line-height: 1.4;
}

.contribution-policy-form label:has(input:checked) {
    background-color: #eef8ef;
    border-left-color: #2f7d4a;
}

.contribution-confirmation {
    padding: 28px;
    background-color: #eef7fa;
    border: 1px solid #87ceeb;
    border-left: 6px solid #2f7d4a;
    border-radius: 7px;
    text-align: center;
}

.contribution-confirmation p {
    text-align: center;
}

.contribution-confirmation button {
    min-width: 180px;
    margin-top: 8px;
}

.admin-moderation-desk {
    padding: 54px 4%;
    background-color: #eef8fb;
    border-top: 7px solid #a51d2d;
    border-bottom: 7px solid #e5c879;
    color: #001f3f;
}

.admin-moderation-desk[hidden],
.government-section[hidden],
.approved-contributions[hidden] {
    display: none;
}

.admin-moderation-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.admin-moderation-heading h2,
.section-publication-heading h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 48px);
}

.admin-moderation-heading > p {
    max-width: 620px;
    margin: 0;
    color: #52636b;
}

.admin-moderation-list {
    display: grid;
    gap: 22px;
}

.admin-review-card {
    padding: 24px;
    background-color: white;
    border: 2px solid #87ceeb;
    border-left: 8px solid #e5c879;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 31, 63, 0.14);
}

.admin-review-card.is-approved {
    border-left-color: #2f7d4a;
}

.admin-review-card.is-rejected {
    border-left-color: #a51d2d;
    background-color: #fff7f7;
}

.admin-review-card.is-information-requested {
    border-left-color: #438eaa;
}

.admin-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.admin-review-header h3 {
    margin: 5px 0;
    font-size: 28px;
}

.admin-review-status {
    padding: 8px 12px;
    background-color: #e5c879;
    border: 1px solid #a51d2d;
    color: #001f3f;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-review-meta {
    margin: 14px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-review-meta span {
    padding: 6px 9px;
    background-color: #d9edf5;
    border: 1px solid #87ceeb;
    color: #001f3f;
    font-size: 12px;
    font-weight: 800;
}

.admin-review-content {
    padding: 16px;
    background-color: #f7fbfd;
    border-left: 4px solid #87ceeb;
}

.admin-review-content p {
    margin: 0 0 10px;
    color: #355568;
}

.admin-review-content p:last-child {
    margin-bottom: 0;
}

.admin-message-composer {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.admin-message-composer > label {
    color: #001f3f;
    font-weight: 900;
}

.admin-message-composer textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #b8d3de;
    border-radius: 5px;
    resize: vertical;
}

.admin-message-templates,
.admin-decision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-message-templates button,
.admin-decision-actions button {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 4px;
    font-weight: 900;
    cursor: pointer;
}

.admin-message-templates button {
    background-color: #d9edf5;
    border: 1px solid #87ceeb;
    color: #001f3f;
}

.admin-approve-button {
    background-color: #2f7d4a;
    border: 2px solid #245f39;
    color: white;
}

.admin-reject-button {
    background-color: #a51d2d;
    border: 2px solid #7f1622;
    color: white;
}

.admin-request-button {
    background-color: #87ceeb;
    border: 2px solid #438eaa;
    color: #001f3f;
}

.admin-email-preview {
    margin: 16px 0 0;
    padding: 14px;
    background-color: #eef7fa;
    border: 1px solid #c8dce5;
    border-left: 5px solid #438eaa;
    color: #355568;
    white-space: pre-wrap;
}

.government-section {
    padding: 80px 6%;
    background-color: #f7fbfd;
    color: #001f3f;
}

.approved-contributions {
    margin-top: 30px;
    padding: 22px;
    background-color: rgba(238, 248, 251, 0.98);
    border: 3px solid #87ceeb;
    border-top: 7px solid #e5c879;
    border-radius: 7px;
    color: #001f3f;
}

.punjab-opening > .approved-contributions {
    grid-column: 1 / -1;
}

.district-approved-contributions {
    margin: 16px 0 0;
}

.approved-contributions h3 {
    margin: 0 0 14px;
    font-size: 25px;
}

.approved-contribution-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.approved-contribution-card {
    padding: 18px;
    background-color: white;
    border: 1px solid #c8dce5;
    border-left: 6px solid #2f7d4a;
    box-shadow: 0 7px 16px rgba(0, 31, 63, 0.1);
}

.approved-contribution-card h4 {
    margin: 6px 0 10px;
    font-size: 21px;
}

.approved-contribution-card p {
    margin: 7px 0;
    color: #355568;
}

.approved-contribution-credit {
    padding-top: 10px;
    border-top: 1px solid #d9e5ea;
    font-size: 12px;
    font-weight: 800;
}

.advertisement-slot {
    width: 100%;
    height: calc(100% + 12px);
    transform: translateY(-12px);

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    background-color: transparent;
    border: 0;
    color: #52636b;
    text-align: center;
}

.advertisement-panel {
    min-width: 0;
    height: 100%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fa 100%);
    border: 2px dashed #9eb7c2;
    border-radius: 6px;
}

.advertisement-panel > span,
.advertisement-media-stage > span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.advertisement-panel span,
.advertisement-panel strong,
.advertisement-panel small {
    margin: 0;
}

.advertisement-panel > strong {
    margin: 8px 0;
    color: #001f3f;
    font-size: 22px;
}

.advertisement-panel small {
    max-width: 360px;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}

.advertisement-text-panel {
    border-left: 5px solid #a51d2d;
}

.advertisement-media-panel {
    padding: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 27px minmax(0, 1fr);
    gap: 7px;
    align-items: stretch;
    justify-content: stretch;
    justify-items: stretch;
    background: linear-gradient(145deg, #eaf6fb 0%, #d7edf6 100%);
    border-style: solid;
    border-color: #87ceeb;
}

.advertisement-media-tabs {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.advertisement-media-tabs button {
    min-width: 0;
    height: 27px;
    padding: 0 5px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #e5f3f8 100%);
    border: 1px solid #87ceeb;
    border-radius: 4px;
    color: #355568;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.35px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.advertisement-media-tabs button[aria-selected="true"] {
    background: linear-gradient(180deg, #f7e7ad 0%, #e5c879 100%);
    border-color: #a51d2d;
    color: #001f3f;
    box-shadow: inset 0 -3px 0 #a51d2d;
}

.advertisement-media-tabs button:focus-visible,
.advertisement-slideshow-controls button:focus-visible,
.advertisement-video-view a:focus-visible {
    outline: 2px solid #a51d2d;
    outline-offset: 1px;
}

.advertisement-media-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background-color: #0a3157;
    border-radius: 5px;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.advertisement-media-view {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #0a3157;
}

.advertisement-media-view[hidden] {
    display: none;
}

.advertisement-media-view > img,
.advertisement-video-view video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.advertisement-media-view > img {
    transition: opacity 0.22s ease;
}

.advertisement-media-view.is-changing > img {
    opacity: 0.35;
}

.advertisement-media-shade {
    position: absolute;
    inset: 38% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 18, 34, 0.88) 100%);
    pointer-events: none;
}

.advertisement-media-caption {
    position: absolute;
    right: 10px;
    bottom: 9px;
    left: 10px;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.advertisement-media-caption strong {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.advertisement-media-caption small {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 8px;
    white-space: nowrap;
}

.advertisement-slideshow-controls {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 3;
    display: flex;
    gap: 4px;
}

.advertisement-slideshow-controls button {
    min-width: 24px;
    height: 23px;
    padding: 0 6px;
    background-color: rgba(244, 248, 250, 0.94);
    border: 1px solid #87ceeb;
    border-radius: 3px;
    color: #001f3f;
    font-size: 8px;
    font-weight: 900;
    cursor: pointer;
}

.advertisement-video-view {
    background-color: #001f3f;
}

.advertisement-video-view video {
    object-fit: cover;
}

.advertisement-video-view a {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    max-width: calc(100% - 12px);
    padding: 3px 6px;
    overflow: hidden;
    background-color: rgba(0, 31, 63, 0.78);
    border-radius: 3px;
    color: #ffffff;
    font-size: 7px;
    line-height: 1.1;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 901px) {
    .hero-columns {
        flex: 1 0 auto;
    }

    .visitor-tools {
        height: 100%;
        grid-template-rows: 580px minmax(198px, 1fr);
        align-self: stretch;
    }
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;

    padding: 45px 60px;
    background-color: #0a3157;
    color: white;
    border-top: 1px solid rgba(229, 200, 121, 0.45);
}

.site-footer p {
    margin: 4px 0;
}

.footer-brand {
    font-size: 22px;
    font-weight: bold;
}

.company-project-label {
    color: #e5c879;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.company-registration {
    color: #d8e5eb;
    font-size: 12px;
    line-height: 1.45;
}

.company-registration a {
    color: #e5c879;
    font-weight: 800;
    text-decoration: none;
}

.company-registration a:hover,
.company-registration a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.creator-details {
    text-align: left;
}

.footer-identity {
    text-align: right;
}

.map-attribution {
    max-width: 360px;
    color: #c7d7df;
    font-size: 10px;
}

.map-attribution a {
    color: #e5c879;
}

.creator-label {
    color: #e5c879;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Destination-page template */
.destination-page {
    background-color: #001f3f;
    color: white;
}

.destination-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 22px 8%;
    background-color: #06182d;
    border-bottom: 1px solid rgba(229, 200, 121, 0.35);
}

.destination-brand,
.destination-header nav a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.destination-brand {
    font-size: 21px;
}

.destination-header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-bottom: 7px;
}

.destination-header nav a {
    min-height: 46px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #bfe7f6;
    border: 2px solid #87ceeb;
    border-radius: 4px;
    box-shadow: 0 7px 0 #438eaa, 0 9px 12px rgba(0, 31, 63, 0.18);
    color: #001f3f;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.destination-header nav a:hover,
.destination-header nav a:focus-visible {
    background-color: #d9edf5;
    color: #001f3f;
    transform: translateY(2px);
    box-shadow: 0 5px 0 #438eaa, 0 7px 10px rgba(0, 31, 63, 0.16);
}

.destination-brand:hover {
    color: #e5c879;
}

.destination-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 90px 8%;
    background: linear-gradient(135deg, #0a3157 0%, #001f3f 70%);
}

.destination-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(58px, 9vw, 120px);
    line-height: 0.95;
    letter-spacing: -4px;
}

.destination-introduction {
    max-width: 700px;
    margin: 26px 0 0;
    color: #c7d7df;
    font-size: 21px;
    line-height: 1.7;
}

.destination-button {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 20px;
    background-color: #e5c879;
    color: #001f3f;
    border-radius: 7px;
    font-weight: bold;
    text-decoration: none;
}

.destination-button:hover {
    background-color: #f1d98f;
}

.destination-overview,
.destination-highlights,
.destination-notes {
    position: relative;
    padding: 90px 8%;
}

.destination-overview,
.destination-notes {
    background-color: #0a3157;
}

.destination-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.destination-heading h2,
.destination-notes h2 {
    margin: 0;
    font-size: 40px;
}

.destination-heading > p:last-child {
    color: #c7d7df;
    line-height: 1.7;
}

.facts-grid,
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 280px));
    gap: 20px;
}

.facts-grid article,
.highlight-card {
    min-height: 180px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    background-color: #123f67;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.facts-grid span,
.highlight-card span {
    color: #e5c879;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.facts-grid strong {
    margin-top: auto;
    font-size: 24px;
}

.highlight-card {
    min-height: 280px;
    background-color: #0a3157;
}

.highlight-card h3 {
    margin: 16px 0 10px;
    font-size: 27px;
}

.highlight-card p {
    margin: 0;
    color: #c7d7df;
    line-height: 1.65;
}

.destination-notes {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
    gap: 60px;
    align-items: end;
}

.destination-notes > p {
    max-width: 700px;
    margin: 0;
    color: #c7d7df;
    line-height: 1.8;
}

.destination-footer {
    align-items: center;
}

.destination-footer .destination-button {
    margin-top: 0;
}

/*
 * Fixed-height desktop Public Posts composition.
 * The card dimensions remain unchanged; its contents are compacted and the
 * Member Login control is promoted ahead of the disabled posting fields.
 */
@media (min-width: 901px) {
    .public-posts-card {
        padding: 16px;
        overflow-y: hidden;
    }

    .public-posts-heading-row {
        grid-template-columns: minmax(145px, 1fr) minmax(145px, 0.9fr);
        gap: 8px;
    }

    .public-posts-card h2 {
        font-size: 20px;
    }

    .public-posts-contribution-cta {
        height: 54px;
        padding: 5px 8px;
        font-size: 12px;
    }

    .public-posts-contribution-cta small {
        font-size: 7px;
        letter-spacing: 0.45px;
    }

    .public-post-preview {
        margin-top: 10px;
        padding: 10px;
    }

    .public-post-preview p {
        margin-top: 5px;
        line-height: 1.3;
    }

    .public-posts-card > .muted-preview {
        margin-top: 8px;
        padding: 8px 10px;
    }

    .embedded-community-card {
        margin-top: 10px;
        padding-top: 10px;
        display: flex;
        flex-direction: column;
    }

    .embedded-community-card > h2 {
        order: 1;
    }

    .embedded-community-card > .tool-label {
        order: 2;
    }

    .embedded-community-card > p:not(.tool-label):not(.member-lock-status) {
        order: 3;
    }

    .embedded-community-card > .member-lock-status {
        order: 4;
    }

    .embedded-community-card > .embedded-member-control {
        order: 5;
    }

    .embedded-community-card > textarea {
        order: 6;
    }

    .embedded-community-card > .upload-placeholder {
        order: 7;
    }

    .embedded-community-card > .community-publish-button {
        order: 8;
    }

    .embedded-community-card > p:not(.tool-label) {
        margin: 4px 0 8px;
        font-size: 12.5px;
        line-height: 1.25;
    }

    .embedded-community-card .member-lock-status {
        margin-bottom: 5px !important;
        padding: 7px 9px;
    }

    .embedded-community-card textarea {
        height: 60px;
        margin-top: 3px;
        padding: 7px;
    }

    .embedded-community-card .upload-placeholder {
        margin: 6px 0;
        padding: 8px;
    }

    .embedded-community-card .embedded-member-control {
        margin-top: 8px;
    }

    .embedded-community-card .header-member-login {
        height: 64px;
        padding: 7px 14px;
        font-size: 18px;
    }

    .embedded-community-card .header-member-login small {
        margin-top: 4px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }
}

/*
 * Intermediate desktop refinement.
 * This layer deliberately sits between the approved wide-desktop and mobile
 * layouts so neither existing endpoint is changed.
 */
@media (min-width: 901px) and (max-width: 1500px) {
    .primary-navigation-links {
        row-gap: 4px;
    }

    .primary-navigation-links::before {
        content: "";
        order: 1;
        width: 100%;
        height: 0;
        flex: 0 0 100%;
    }

    .navigation-search {
        order: 2;
        width: clamp(229px, calc(20.7vw - 5.4px), 305px);
        max-width: none;
        flex: 0 0 clamp(229px, calc(20.7vw - 5.4px), 305px);
        margin-left: auto;
    }

    .emergency-contact {
        order: 3;
        width: clamp(279px, calc(25.3vw - 6.6px), 373px);
        min-height: 69px;
        flex: 0 0 clamp(279px, calc(25.3vw - 6.6px), 373px);
        margin: 0 -8px 0 0;
    }

    .navigation-search button {
        width: 90px;
        flex-basis: 90px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 11px;
    }

    .hero-columns {
        grid-template-columns: minmax(0, 1fr) clamp(520px, 46vw, 690px);
    }

    .punjab-opening-layout {
        grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
    }

    .punjab-history-timeline time {
        font-size: 12px;
        line-height: 1.05;
    }

    .punjab-history-chronicle {
        min-height: 270px;
    }

    .punjab-history-timeline p {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.12;
    }

    .district-tab-track {
        column-gap: 7px;
    }

    .district-quick-tab {
        padding-right: 5px;
        padding-left: 5px;
    }

    .district-tab-name {
        font-size: 11px;
        line-height: 1;
        overflow-wrap: anywhere;
        text-overflow: clip;
        white-space: normal;
    }

    .district-tab-detail {
        font-size: 8px;
        letter-spacing: 0.2px;
        line-height: 1.05;
        text-overflow: clip;
        white-space: normal;
    }

    .visitor-tools {
        grid-template-columns: minmax(210px, 0.9fr) minmax(275px, 1.1fr);
    }

    .public-posts-card {
        padding: 14px;
        overflow-y: hidden;
    }

    .public-posts-heading-row {
        grid-template-columns: minmax(135px, 1fr) minmax(130px, 0.9fr);
        gap: 8px;
    }

    .public-posts-card h2 {
        font-size: 19px;
    }

    .public-posts-contribution-cta {
        height: 52px;
        padding: 5px 7px;
        font-size: 11px;
    }

    .public-posts-contribution-cta small {
        font-size: 6.5px;
        letter-spacing: 0.35px;
    }

    .public-post-preview {
        margin-top: 10px;
        padding: 10px;
    }

    .public-posts-card > .muted-preview {
        display: none;
    }

    .public-post-preview p {
        margin-top: 5px;
        line-height: 1.3;
    }

    .embedded-community-card {
        margin-top: 12px;
        padding-top: 12px;
        display: flex;
        flex-direction: column;
    }

    .embedded-community-card > h2 {
        order: 1;
    }

    .embedded-community-card > .tool-label {
        order: 2;
    }

    .embedded-community-card > p:not(.tool-label):not(.member-lock-status) {
        order: 3;
    }

    .embedded-community-card > .member-lock-status {
        order: 4;
    }

    .embedded-community-card > .embedded-member-control {
        order: 5;
    }

    .embedded-community-card > textarea {
        order: 6;
    }

    .embedded-community-card > .upload-placeholder {
        order: 7;
    }

    .embedded-community-card > .community-publish-button {
        order: 8;
    }

    .embedded-community-card > p:not(.tool-label) {
        margin: 5px 0 10px;
        font-size: 12px;
        line-height: 1.25;
    }

    .embedded-community-card .member-lock-status {
        margin-bottom: 6px !important;
        padding: 7px 9px;
    }

    .embedded-community-card textarea {
        height: 58px;
        margin-top: 3px;
        padding: 7px;
    }

    .embedded-community-card .upload-placeholder {
        margin: 6px 0;
        padding: 8px;
    }

    .embedded-community-card .embedded-member-control {
        margin-top: 8px;
    }

    .embedded-community-card .header-member-login {
        height: 60px;
        padding: 7px 12px;
        font-size: 17px;
    }

    .embedded-community-card .header-member-login small {
        margin-top: 4px;
        font-size: 8.5px;
    }
}

@media (max-width: 900px) {
    .desktop-travel-link,
    .desktop-culture-link,
    .desktop-heritage-link,
    .desktop-government-link,
    .desktop-history-link,
    .history-page-stage {
        display: none !important;
    }

    .mobile-travel-link,
    .mobile-culture-link,
    .mobile-heritage-link,
    .mobile-government-link,
    .mobile-history-link {
        display: flex !important;
    }

    .hero-title-panel {
        padding: 0 8px 8px;
        flex-wrap: wrap;
    }

    .hero h1 {
        width: 100%;
    }

    .hero-title-actions {
        width: 100%;
    }

    .hero-navigation {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .primary-navigation-links {
        margin-left: 0;
        padding: 0 8px;
    }

    .navigation-search {
        width: 100%;
        max-width: none;
        flex-basis: 100%;
        margin-left: 0;
        order: initial;
        border-top: 1px solid #d5e3e9;
    }

    .emergency-contact {
        width: 100%;
        flex-basis: 100%;
        margin: 8px 0 15px;
        order: initial;
    }

    .header-member-control {
        width: calc(100% - 16px);
        margin: 8px;
    }

    .contribution-navigation-cta {
        width: 100%;
        margin: 0;
    }

    .facts-grid,
    .highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .destination-header {
        align-items: flex-start;
    }

    .district-grid {
        grid-template-columns: repeat(auto-fill, 220px);
    }

    .heritage-grid,
    .culture-grid,
    .travel-grid {
        grid-template-columns: repeat(auto-fill, 220px);
        justify-content: start;
    }

    .visitor-tools {
        width: 100%;
        margin-left: 0;
        justify-self: stretch;
        transform: none;
    }

    .hero-columns {
        grid-template-columns: 1fr;
        padding: 36px 24px 14px;
    }

    .hero-main-space {
        height: auto;
        min-height: 0;
    }

    .punjab-history-chronicle {
        min-height: 0;
        flex: none;
        overflow: visible;
        padding: 14px;
    }

    .punjab-history-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .punjab-history-timeline li {
        min-height: 72px;
    }

    .punjab-opening {
        width: 100%;
        height: auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 10px;
    }

    .punjab-maps {
        align-self: center;
    }

    .punjab-map {
        height: auto;
    }

    .punjab-map a {
        flex: 0 0 auto;
        transform: none;
    }

    .punjab-map img {
        height: auto;
        max-height: 245px;
    }

    .punjab-opening-copy {
        padding-right: 0;
    }

    .punjab-opening-layout {
        height: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .punjab-opening-secondary {
        display: none;
    }

    .hero-feature-image {
        height: 340px;
    }

    .membership-card,
    .community-card,
    .public-posts-card,
    .advertisement-slot {
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .advertisement-slot {
        height: auto;
        min-height: 0;
        transform: none;
        grid-template-columns: 1fr;
    }

    .advertisement-panel {
        min-height: 180px;
    }
}

@media (max-width: 600px) {
    .hero-panel {
        overflow-x: hidden;
    }

    .punjab-history-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .punjab-history-heading > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .punjab-history-heading strong {
        white-space: normal;
    }

    .punjab-history-timeline {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-title-actions {
        grid-template-columns: 1fr;
    }

    .heading-stats-tab {
        width: 100%;
        height: auto;
        min-height: 58px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: 1fr;
    }

    .heading-stats-tab div {
        grid-template-columns: auto auto auto;
        justify-content: center;
        border-right: 1px solid rgba(67, 142, 170, 0.35);
        border-bottom: 0;
    }

    .heading-stats-tab div:last-child {
        border-right: 0;
    }

    .public-posts-heading-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .destination-header {
        flex-direction: column;
        padding: 22px 24px;
    }

    .destination-header nav {
        gap: 16px;
    }

    .destination-hero,
    .destination-overview,
    .destination-highlights,
    .destination-notes {
        padding: 70px 24px;
    }

    .destination-hero h1 {
        font-size: 58px;
        letter-spacing: -2px;
    }

    .destination-heading h2,
    .destination-notes h2 {
        font-size: 32px;
    }

    .facts-grid,
    .highlight-grid,
    .destination-notes {
        grid-template-columns: 1fr;
    }

    .destination-notes {
        gap: 24px;
    }

    .destination-footer .destination-button {
        margin-top: 28px;
    }

    .hero {
        padding: 0;
    }

    .hero h1 {
        width: 100%;
        padding: 18px 24px;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 28px;
        letter-spacing: -2px;
    }

    .hero h1 span {
        min-width: 0;
        max-width: 100%;
    }

    .title-flag {
        width: 64.8px;
        height: 43.2px;
    }

    .hero-navigation {
        padding: 0;
    }

    .hero-navigation a {
        padding: 0 18px;
        border: 2px solid #87ceeb;
        font-size: 14px;
        text-align: center;
    }

    .navigation-search {
        min-height: 69px;
        padding: 0 8px;
    }

    .navigation-search label {
        padding: 0 14px;
        font-size: 14px;
    }

    .navigation-search input {
        font-size: 15px;
    }

    .navigation-search button {
        font-size: 14px;
    }

    .navigation-search button {
        padding: 0 14px;
    }

    .district-tab-track {
        grid-template-columns: repeat(auto-fit, minmax(161px, 1fr));
        padding: 0 0 10px;
    }

    .punjab-opening {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .punjab-opening h2 {
        font-size: 22px;
    }

    .punjab-opening-title-row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .punjab-map {
        justify-content: center;
    }

    .punjab-map img {
        max-height: 430px;
    }

    .punjab-story {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .punjab-maps {
        grid-template-columns: 1fr;
        width: min(100%, 440px);
        margin: 0 auto;
        padding-left: 0;
        border-left: 0;
    }

    .district-quick-tab {
        min-width: 0;
        height: 57.70px;
        padding: 0 16px;
        font-size: 12px;
    }

    .district-instruction-tab {
        height: 57.70px;
        padding: 0 14px;
        font-size: 12px;
    }

    .district-instruction-tab span,
    .district-instruction-tab strong {
        width: 124px;
    }

    .visitor-tools {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas:
            "registration"
            "public-posts"
            "advertisement";
        justify-self: stretch;
    }

    .registration-name-grid,
    .registration-phone-grid,
    .dialog-action-row {
        grid-template-columns: 1fr;
    }

    .member-dialog {
        padding: 16px;
    }

    .contribution-progress {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .contribution-progress li {
        padding: 7px 10px;
        text-align: left;
    }

    .contribution-field-grid,
    .contribution-media-options,
    .contribution-actions {
        grid-template-columns: 1fr;
    }

    .verification-methods {
        align-items: flex-start;
        flex-direction: column;
    }

    .contribution-review {
        grid-template-columns: 1fr;
    }

    .contribution-review dt,
    .contribution-review dd {
        border-bottom: 0;
    }

    .contribution-review dt:not(:first-child) {
        border-top: 1px solid #d9e5ea;
    }

    .contribution-review dd {
        border-bottom: 1px solid #d9e5ea;
    }

    .contribution-confirmation {
        padding: 20px 14px;
    }

    .admin-moderation-desk,
    .government-section {
        padding: 42px 18px;
    }

    .admin-moderation-heading,
    .admin-review-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-review-card,
    .approved-contributions {
        padding: 16px;
    }

    .admin-message-templates,
    .admin-decision-actions {
        flex-direction: column;
    }

    .admin-message-templates button,
    .admin-decision-actions button {
        width: 100%;
    }

    .approved-contribution-list {
        grid-template-columns: 1fr;
    }

    .hero-main-space {
        min-height: 0;
    }

    .hero-feature-image {
        height: 230px;
    }

    .hero-feature-content {
        padding: 22px;
    }

    .hero-feature-content h2 {
        font-size: 34px;
    }

    .district-search-controls {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .district-search input,
    .district-search button {
        border: 2px solid #87ceeb;
        border-radius: 5px;
    }

    .featured-destination {
        grid-template-columns: 1fr;
    }

    .membership-card,
    .community-card,
    .public-posts-card,
    .advertisement-slot {
        height: auto;
    }

    .advertisement-slot {
        min-height: 0;
        gap: 12px;
    }

    .explore-section {
        padding: 70px 24px;
    }

    .explore-section h2 {
        font-size: 32px;
    }

    .district-grid {
        grid-template-columns: 1fr;
    }

    .heritage-section {
        padding: 70px 24px;
    }

    .heritage-heading {
        display: block;
    }

    .heritage-heading h2 {
        font-size: 32px;
    }

    .heritage-heading > p {
        margin-top: 18px;
    }

    .heritage-grid {
        grid-template-columns: 1fr;
    }

    .culture-section {
        padding: 70px 24px;
    }

    .culture-heading h2 {
        font-size: 32px;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .travel-section {
        padding: 70px 24px;
    }

    .travel-heading {
        display: block;
    }

    .travel-heading h2 {
        font-size: 32px;
    }

    .travel-heading > p {
        margin-top: 18px;
    }

    .travel-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        display: block;
        padding: 40px 24px;
        text-align: center;
    }

    .creator-details {
        text-align: center;
    }

    .footer-identity {
        margin-top: 28px;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .punjab-fact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .punjab-fact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile usability fixes: keep search readable and the return control unobtrusive. */
@media (max-width: 600px) {
    .navigation-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding: 10px 14px 16px;
    }

    .navigation-search input {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        margin: 0;
        border-right: 2px solid #87ceeb;
    }

    .navigation-search button {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .navigation-search button {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .homepage-home-button,
    .homepage-home-button.is-visible {
        top: auto;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: auto;
        min-width: 0;
        padding: 10px 14px;
        flex-direction: row;
        border-radius: 6px;
        transform: none;
    }

    .homepage-home-button.is-visible:hover {
        transform: translateY(-2px);
    }

    .homepage-home-button .home-main {
        display: none;
    }

    .homepage-home-button .home-page {
        font-size: 0;
        letter-spacing: 0;
        text-orientation: mixed;
        writing-mode: horizontal-tb;
    }

    .homepage-home-button .home-page::after {
        content: "\2191  Top";
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
    }
}

/*
 * Public Posts membership dock.
 * The outer card keeps its approved dimensions; the former disabled posting
 * form is replaced by a compact, front-end-only access and contribution area.
 */
.public-posts-card {
    display: flex;
    flex-direction: column;
}

.public-posts-heading-row {
    display: block;
}

.community-access-dock {
    min-height: 0;
    margin-top: 10px;
    padding: 12px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 9px;
    background: linear-gradient(145deg, #f4f7f8, #e7eef1);
    border: 1px solid #c8dce5;
    border-radius: 8px;
    color: #001f3f;
    box-shadow: inset 0 1px 0 #ffffff;
}

.community-access-heading .tool-label {
    margin-bottom: 3px;
    font-size: 10px;
}

.community-access-heading h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.05;
}

.community-access-heading > p:last-child {
    margin: 5px 0 0;
    color: #52636b;
    font-size: 11.5px;
    line-height: 1.3;
}

.community-access-actions {
    order: 3;
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.community-access-actions button {
    min-width: 0;
    min-height: 64px;
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #438eaa;
    border-radius: 5px;
    box-shadow: 0 4px 0 #438eaa;
    color: #001f3f;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.community-sign-up span {
    font-size: 16px;
    line-height: 1.05;
}

.community-sign-up {
    background-color: #eaf8ee;
    border-color: #2f7d4a !important;
    box-shadow: 0 4px 0 #2f7d4a !important;
}

.community-member-login {
    background-color: #d8f1fb;
}

.community-access-actions button small {
    margin-top: 5px;
    color: #52636b;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.community-access-actions button:hover,
.community-access-actions button:focus-visible {
    background-color: #ffffff;
    transform: translateY(1px);
    box-shadow: 0 3px 0 #438eaa;
}

.contribution-invitation {
    order: 5;
    margin-top: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    background-color: transparent;
    border: 0;
    border-radius: 0;
}

.contribution-invitation > div {
    padding: 0 10px;
}

.contribution-invitation strong {
    display: block;
    font-size: 13px;
    line-height: 1.15;
}

.contribution-invitation p {
    margin: 4px 0 0;
    color: #52636b;
    font-size: 10.5px;
    line-height: 1.3;
}

.contribution-invitation .public-posts-contribution-cta {
    width: 100%;
    height: 70px;
    padding: 7px 12px;
    font-size: 14px;
}

.contribution-invitation .public-posts-contribution-cta small {
    max-width: 100%;
    margin-top: 4px;
    font-size: 7.4px;
    letter-spacing: 0.2px;
    line-height: 1.2;
    white-space: normal;
}

.community-preview-note {
    order: 4;
    margin: 0;
    color: #6b777d;
    font-size: 8.5px;
    line-height: 1.2;
    text-align: center;
}

.public-post-access-note {
    order: 0;
    margin: 3px 0 0;
    line-height: 1.15;
    text-align: left;
}

.public-posts-contribution-cta:disabled,
.public-posts-contribution-cta:disabled:hover,
.public-posts-contribution-cta:disabled:focus-visible {
    background-color: #e4e9eb;
    border-color: #8da1aa;
    box-shadow: 0 5px 0 #8da1aa;
    color: #65767e;
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
    animation: none;
}

.public-posts-contribution-cta:disabled small {
    color: #75868e;
}

.public-posts-contribution-cta.is-enabled {
    background-color: #d8f1fb;
}

.community-member-login.is-authenticated {
    background-color: #eaf8ee;
    border-color: #2f7d4a;
    box-shadow: 0 4px 0 #2f7d4a;
}

.member-login-verification .dialog-action-row {
    margin-top: 12px;
}

.contribution-dialog > .contribution-progress,
.contribution-dialog > .contribution-step {
    display: none !important;
}

.contribution-preview-body {
    padding: 18px;
    background: linear-gradient(145deg, #f7fcfe, #e7f1f5);
    border: 1px solid #c8dce5;
    border-left: 5px solid #e5c879;
    border-radius: 7px;
}

.contribution-preview-body h3 {
    margin: 0 0 9px;
    font-size: 24px;
}

.contribution-preview-body > p:not(.tool-label) {
    color: #52636b;
    line-height: 1.45;
}

.member-contribution-form {
    display: grid;
    gap: 13px;
}

.member-contribution-form label {
    display: grid;
    gap: 5px;
    color: #001f3f;
    font-size: 13px;
    font-weight: 800;
}

.member-contribution-form input[type="text"],
.member-contribution-form textarea {
    width: 100%;
    padding: 11px;
    background-color: #ffffff;
    border: 1px solid #b8d3de;
    border-radius: 5px;
    color: #001f3f;
    font: inherit;
}

.member-contribution-form textarea {
    min-height: 150px;
    resize: vertical;
}

.member-contribution-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.member-contribution-media label {
    min-height: 74px;
    padding: 10px;
    align-content: center;
    background-color: #eef7fa;
    border: 1px dashed #438eaa;
    border-radius: 5px;
    text-align: center;
}

.member-contribution-media input {
    width: 100%;
    margin-top: 5px;
    font-size: 11px;
}

.member-contribution-media-status {
    margin: 0;
    color: #52636b;
    font-size: 11px;
    line-height: 1.35;
}

.member-contribution-review[hidden] {
    display: none;
}

.member-contribution-review h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.member-contribution-review > p:not(.tool-label) {
    white-space: pre-wrap;
}

.contribution-preview-points {
    margin: 15px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.contribution-preview-points span {
    padding: 9px 10px;
    background-color: #ffffff;
    border: 1px solid #b8d3de;
    border-radius: 4px;
    color: #001f3f;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

@media (min-width: 1501px) {
    .contribution-invitation {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 901px) and (max-width: 1500px) {
    .community-access-dock {
        margin-top: 9px;
        padding: 10px;
        gap: 7px;
    }

    .community-access-heading h3 {
        font-size: 18px;
    }

    .community-access-heading > p:last-child {
        font-size: 10.5px;
    }

    .community-access-actions button {
        min-height: 62px;
        font-size: 13px;
    }

    .contribution-invitation {
        padding: 0;
        gap: 0;
    }

    .contribution-invitation > div {
        padding: 0 8px;
    }

    .contribution-invitation p {
        font-size: 9.5px;
    }

    .contribution-invitation .public-posts-contribution-cta {
        height: 64px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .community-access-actions {
        grid-template-columns: 1fr;
    }

    .community-access-actions button {
        min-height: 60px;
    }

    .contribution-preview-points {
        grid-template-columns: 1fr;
    }

    .member-contribution-media {
        grid-template-columns: 1fr;
    }
}

/*
 * X-style public post timeline.
 * Each entry keeps member text on the left and photo/video media on the right.
 */
.public-post-feed {
    min-height: 220px;
    margin-top: 0;
    display: flex;
    flex: 1 1 260px;
    flex-direction: column;
    overflow: hidden;
    background-color: #eef7fa;
    border: 1px solid #c8dce5;
    border-radius: 7px;
}

.public-post-feed-toolbar {
    min-height: 42px;
    padding: 5px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background-color: #dfeaf0;
    border-bottom: 1px solid #c8dce5;
    color: #52636b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.public-post-feed-heading {
    min-width: 0;
}

.public-post-feed-heading h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    text-transform: none;
}

.public-post-feed-heading .public-post-access-note {
    max-width: 190px;
    margin: 3px 0 0;
    overflow: hidden;
    color: #52636b;
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.05;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.public-post-feed-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.public-post-feed-controls button {
    width: 24px;
    height: 22px;
    padding: 0;
    background-color: #ffffff;
    border: 1px solid #87ceeb;
    border-radius: 3px;
    color: #001f3f;
    font: inherit;
    cursor: pointer;
}

.public-post-feed-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.public-post-feed-counter {
    min-width: 31px;
    text-align: center;
}

.public-post-feed-window {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-color: #87ceeb #eef7fa;
    scrollbar-width: thin;
}

.public-post-feed-track {
    padding: 6px 2px;
    display: grid;
    gap: 15px;
}

.public-post-entry {
    position: relative;
    min-height: 164px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(82px, 0.65fr);
    overflow: hidden;
    scroll-snap-align: start;
    background-color: #ffffff;
    border: 1px solid #d6e4ea;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 31, 63, 0.08);
}

.public-post-entry-copy {
    min-width: 0;
    padding: 8px 8px 34px;
}

.public-post-author {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}

.public-post-member-photo {
    width: 64px;
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #438eaa, #001f3f);
    border: 2px solid #87ceeb;
    border-radius: 9px;
    box-shadow: 0 3px 7px rgba(0, 31, 63, 0.18);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
}

.member-photo-bilal {
    background: linear-gradient(145deg, #2f7d4a, #164728);
}

.member-photo-sana {
    background: linear-gradient(145deg, #a51d2d, #66101b);
}

.public-post-author span,
.public-post-author strong,
.public-post-author small {
    min-width: 0;
    display: block;
}

.public-post-author strong {
    overflow: hidden;
    color: #001f3f;
    font-size: 11px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-post-author small {
    margin-top: 2px;
    overflow: hidden;
    color: #71828a;
    font-size: 7.5px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-post-text {
    margin: 7px 0 0;
    color: #355568;
    font-size: 9.5px;
    line-height: 1.3;
}

.public-post-media {
    min-width: 0;
    min-height: 164px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-bottom: 27px;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.public-post-media.is-photo {
    background:
        linear-gradient(rgba(0, 31, 63, 0.15), rgba(0, 31, 63, 0.5)),
        linear-gradient(145deg, #87ceeb, #438eaa);
}

.public-post-media.is-video {
    background:
        radial-gradient(circle at center, rgba(135, 206, 235, 0.45), transparent 34%),
        linear-gradient(145deg, #153d5c, #001f3f);
}

.public-post-media > span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.public-post-media figcaption {
    margin-top: 5px;
    padding: 0 4px;
    font-size: 7px;
    line-height: 1.1;
}

.public-post-actions {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 28px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    background: rgba(248, 252, 254, 0.98);
    border-top: 1px solid #c8dce5;
}

.public-post-actions button {
    min-width: 0;
    padding: 2px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: 0;
    border-left: 1px solid #e1ebef;
    color: #355568;
    font-family: "Cambria Math", Cambria, "Times New Roman", serif;
    cursor: pointer;
}

.public-post-actions button:first-child {
    border-left: 0;
}

.public-post-actions button:hover,
.public-post-actions button:focus-visible {
    background-color: #dff3fb;
    color: #001f3f;
}

.public-post-actions button:disabled {
    background-color: #eef2f3;
    color: #9aa8ae;
    cursor: not-allowed;
}

.public-post-actions button > span {
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.public-post-actions button > small {
    overflow: hidden;
    font-size: 7px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-post-actions button > b {
    min-width: 9px;
    font-size: 7px;
    line-height: 1;
}

.public-post-actions .is-liked {
    color: #b21f32;
}

.public-post-actions .is-active {
    color: #00769d;
}

.public-post-actions .is-following {
    background-color: #eaf8ee;
    color: #2f7d4a;
}

.public-post-repost-label {
    margin: 0 0 3px !important;
    color: #438eaa !important;
    font-size: 7px !important;
    font-weight: 800;
    line-height: 1 !important;
}

.public-post-review-status {
    margin: 4px 0 0 !important;
    padding: 3px 5px;
    background-color: #fff5d9;
    border-left: 3px solid #b21f32;
    color: #8a1827 !important;
    font-size: 7px !important;
    font-weight: 800;
    line-height: 1.15 !important;
}

.post-edit-dialog {
    width: min(620px, calc(100vw - 28px));
}

.post-edit-guidance {
    margin: 0 0 14px;
    padding: 10px 12px;
    background-color: #eef7fa;
    border-left: 4px solid #e5c879;
    color: #355568;
    font-size: 13px;
    line-height: 1.4;
}

.post-edit-form {
    display: grid;
    gap: 12px;
}

.post-edit-form label {
    display: grid;
    gap: 6px;
    color: #001f3f;
    font-weight: 800;
}

.post-edit-form textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.community-access-dock {
    flex: 0 0 auto;
    margin-top: 8px;
    padding: 8px;
    gap: 6px;
}

.community-access-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.community-access-heading .tool-label {
    flex: 0 0 auto;
    margin: 0;
}

.community-access-heading > p:last-child {
    margin: 0;
    font-size: 9.5px;
    line-height: 1.2;
}

.community-access-actions {
    margin-top: 0;
}

@media (max-width: 900px) {
    .public-post-feed {
        height: 270px;
        flex-basis: 270px;
    }

    .public-post-entry,
    .public-post-media {
        min-height: 104px;
    }

    .public-post-entry-copy {
        padding: 6px 6px 29px;
    }

    .public-post-media {
        padding-bottom: 24px;
    }

    .public-post-actions {
        height: 25px;
    }

    .public-post-actions button {
        gap: 2px;
    }

    .public-post-actions button > span {
        font-size: 10px;
    }

    .public-post-actions button > small,
    .public-post-actions button > b {
        font-size: 6px;
    }

    .public-post-feed-track {
        gap: 6px;
    }

    .public-post-author {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .public-post-member-photo {
        width: 54px;
        height: 38px;
    }
}

@media (max-width: 600px) {
    .public-post-entry {
        grid-template-columns: minmax(0, 1.2fr) minmax(100px, 0.8fr);
    }

    .community-access-heading {
        display: grid;
        gap: 4px;
    }

    .public-post-feed-heading .public-post-access-note {
        max-width: 155px;
    }
}

@media (min-width: 901px) {
    .public-posts-card {
        padding: 6px 8px;
    }
}

/*
 * Compact one-line contribution control.
 * On desktop, the recovered height is shared equally by the two visible posts.
 */
.contribution-invitation .public-posts-contribution-cta .contribution-compact-line {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    line-height: 1;
    white-space: nowrap;
}

.contribution-invitation .public-posts-contribution-cta .contribution-compact-line strong {
    flex: 0 0 auto;
    font-size: 10.5px;
    letter-spacing: 0.15px;
}

.contribution-invitation .public-posts-contribution-cta .contribution-compact-line small {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: inherit;
    font-size: 8.5px;
    letter-spacing: 0;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1500px) {
    .contribution-invitation .public-posts-contribution-cta {
        height: 36px;
        padding: 4px 7px;
    }

    .public-post-entry,
    .public-post-media {
        min-height: 178px;
    }
}

@media (min-width: 1501px) {
    .contribution-invitation .public-posts-contribution-cta {
        height: 36px;
        padding: 4px 9px;
    }

    .public-post-entry,
    .public-post-media {
        min-height: 181px;
    }
}

/*
 * Colour-coded public-post actions.
 * Each control keeps the compact approved height while visually identifying
 * its function and giving selected states a stronger treatment.
 */
.public-post-actions {
    background: linear-gradient(180deg, #ffffff 0%, #edf4f7 100%);
    box-shadow: inset 0 1px 0 #ffffff;
}

.public-post-actions button {
    --action-colour: #355568;
    --action-soft: #eef5f8;
    position: relative;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ffffff 0%, var(--action-soft) 100%);
    color: var(--action-colour);
    box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--action-colour) 72%, transparent);
    transition:
        background-color 0.16s ease,
        box-shadow 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.public-post-actions button[data-post-action="edit"] {
    --action-colour: #1769aa;
    --action-soft: #e5f3ff;
}

.public-post-actions button[data-post-action="delete"] {
    --action-colour: #b21f32;
    --action-soft: #ffeaee;
}

.public-post-actions button[data-post-action="repost"] {
    --action-colour: #167c5a;
    --action-soft: #e3f7ef;
}

.public-post-actions button[data-post-action="like"] {
    --action-colour: #d6246e;
    --action-soft: #ffe7f1;
}

.public-post-actions button[data-post-action="follow"] {
    --action-colour: #6b3fa0;
    --action-soft: #f1e9ff;
}

.public-post-actions button > span {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    background-color: var(--action-soft);
    border: 1px solid currentColor;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 31, 63, 0.14);
    font-size: 9px;
}

.public-post-actions button > small {
    color: inherit;
}

.public-post-actions button > b {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 8px;
    padding: 0 2px;
    background-color: rgba(255, 255, 255, 0.84);
    border: 1px solid color-mix(in srgb, var(--action-colour) 28%, transparent);
    border-radius: 7px;
    color: inherit;
    font-size: 6px;
    line-height: 1.15;
}

.public-post-actions button[data-post-action="repost"],
.public-post-actions button[data-post-action="like"] {
    padding-right: 9px;
}

.public-post-actions button:hover,
.public-post-actions button:focus-visible {
    background: var(--action-soft);
    color: var(--action-colour);
    box-shadow:
        inset 0 -4px 0 var(--action-colour),
        inset 0 1px 0 #ffffff;
    transform: translateY(-1px);
}

.public-post-actions button:focus-visible {
    z-index: 1;
    outline: 2px solid var(--action-colour);
    outline-offset: -2px;
}

.public-post-actions button.is-active,
.public-post-actions button.is-liked,
.public-post-actions button.is-following {
    background: var(--action-soft);
    color: var(--action-colour);
    box-shadow:
        inset 0 -4px 0 var(--action-colour),
        inset 0 1px 0 #ffffff;
}

.public-post-actions button.is-active > span,
.public-post-actions button.is-liked > span,
.public-post-actions button.is-following > span {
    background-color: var(--action-colour);
    border-color: var(--action-colour);
    color: #ffffff;
}

.public-post-actions button:disabled {
    background: linear-gradient(180deg, #fafafa, #f0e5e7);
    color: #9c7279;
    box-shadow: inset 0 -3px 0 #c9aab0;
    opacity: 0.62;
}

.public-post-actions button:disabled > span {
    background-color: #f4e9eb;
    box-shadow: none;
}

@media (max-width: 900px) {
    .public-post-actions button > span {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
        border-radius: 4px;
        font-size: 8px;
    }
}

/*
 * Follower count sits at the media-side edge of the member identity row.
 */
.public-post-author-details {
    min-width: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    row-gap: 1px;
}

.public-post-author-details > strong {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.public-post-author-details > small {
    grid-column: 1;
    grid-row: 3;
}

.public-post-follower-count {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    color: #001f3f;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.public-post-follower-count::before {
    content: none;
}

@media (max-width: 900px) {
    .public-post-follower-count {
        font-size: 12px;
    }
}

/*
 * Reallocate 80px from the desktop advertisement row to the map/community
 * row. Keep the advertisement row flexible so it contracts on viewports where
 * a fixed lower-row minimum would push the complete desktop page below 100vh.
 * The community gain is divided evenly between its two visible posts.
 */
@media (min-width: 901px) {
    .visitor-tools {
        grid-template-rows: 660px minmax(118px, 1fr);
    }
}

@media (min-width: 901px) and (max-width: 1500px) {
    .public-post-entry,
    .public-post-media {
        min-height: 218px;
    }
}

@media (min-width: 1501px) {
    .hero-columns {
        padding-bottom: 10px;
    }

    .public-post-entry,
    .public-post-media {
        min-height: 221px;
    }
}



/* Phase 1: honor hidden state for grid-based preview and destination sections. */
.member-contribution-form[hidden],
.destination-notes[hidden] {
    display: none;
}

/* Keep directory instructions within their grid cell at every breakpoint. */
.district-instruction-tab span,
.district-instruction-tab strong {
    max-width: 100%;
}

.district-instruction-tab span {
    white-space: normal;
    line-height: 1.1;
}

@media (min-width: 901px) and (max-width: 1500px) {
    .district-instruction-tab {
        padding-right: 5px;
        padding-left: 5px;
    }
}

/* Search feedback uses the existing palette without moving the navigation row. */
.navigation-search { position: relative; }
.search-status {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 21;
    width: 100%;
    margin: 4px 0 0;
    padding: 10px;
    border: 2px solid #87ceeb;
    background: white;
    color: #001f3f;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
}
.search-status[hidden] { display: none; }
.destination-page .destination-search {
    width: min(84%, 540px);
    max-width: 540px;
    min-height: 54px;
    margin: 20px auto;
    display: flex;
    gap: 8px;
    padding: 6px;
}
.destination-search input { flex: 1; min-width: 0; width: 100%; }
.destination-search button { flex: 0 0 auto; width: auto; padding: 10px; }
html.destination-navigation { scroll-snap-type: none; }
