.public-content-page {
    padding-top: 68px;
}

/* Public error state */
.public-error-page { min-height: calc(100vh - 330px); background: radial-gradient(circle at 50% 5%, rgba(47, 111, 237, .1), transparent 34%), linear-gradient(180deg, #f8fbff 0%, #f5f8fc 100%); }
.public-error { padding: 76px 0 84px; }
.public-error__container { max-width: 920px; }
.public-error__card { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; overflow: hidden; background: #fff; border: 1px solid #dfe6ee; border-radius: 14px; box-shadow: 0 18px 48px rgba(30, 50, 80, .09); }
.public-error__visual { position: relative; display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 310px; overflow: hidden; background: linear-gradient(145deg, #edf4ff 0%, #e7effa 100%); border-right: 1px solid #dfe6ee; }
.public-error__halo { position: absolute; width: 154px; height: 154px; background: rgba(47, 111, 237, .08); border: 1px solid rgba(47, 111, 237, .12); border-radius: 50%; box-shadow: 0 0 0 22px rgba(47, 111, 237, .04); }
.public-error__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; color: #fff; background: #2f6fed; border-radius: 18px; box-shadow: 0 12px 28px rgba(47, 111, 237, .27); font-size: 31px; }
.public-error__content { padding: 44px 48px; }
.public-error__content h1 { margin: 10px 0 14px; color: #172b4d; font-size: 34px; font-weight: 700; letter-spacing: -.035em; line-height: 1.18; }
.public-error__message { max-width: 560px; margin: 0; color: #667892; font-size: 16px !important; line-height: 1.75; }
.public-error__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.public-error__actions .content-button { min-width: 132px; }
.public-error__reference { margin: 26px 0 0; color: #8795a8; font-size: 12px !important; }
.public-error__reference code { margin-left: 6px; padding: 3px 7px; color: #5d6d82; background: #f4f7fa; border: 1px solid #e3e9f0; border-radius: 4px; font-size: 11px; word-break: break-all; }
.public-error__diagnostics { overflow: hidden; margin-top: 18px; background: #fff; border: 1px solid #dfe6ee; border-radius: 10px; box-shadow: 0 6px 20px rgba(30, 50, 80, .05); }
.public-error__diagnostics summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 19px; color: #3f516b; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.public-error__diagnostics summary::-webkit-details-marker { display: none; }
.public-error__diagnostics summary .fa { margin-right: 8px; color: #2f6fed; }
.public-error__diagnostics-hint { padding: 3px 8px; color: #60738f; background: #edf3fa; border-radius: 999px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.public-error__diagnostics-body { padding: 20px; border-top: 1px solid #e5eaf0; }
.public-error__metadata { display: grid; gap: 9px; margin: 0; }
.public-error__metadata > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
.public-error__metadata dt { color: #718198; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.public-error__metadata dd { min-width: 0; margin: 0; color: #334155; word-break: break-word; }
.public-error__exception { margin-top: 18px; color: #9f2f36; }
.public-error__exception pre { max-height: 340px; overflow: auto; margin: 10px 0 0; padding: 16px; color: #d8e2f0; background: #172033; border: 0; border-radius: 7px; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.public-error__status-note { margin: 16px 0 0; color: #667892; font-size: 14px !important; }

@media (max-width: 767px) {
    .public-error { padding: 42px 0 52px; }
    .public-error__card { grid-template-columns: 1fr; }
    .public-error__visual { min-height: 150px; border-right: 0; border-bottom: 1px solid #dfe6ee; }
    .public-error__halo { width: 112px; height: 112px; }
    .public-error__icon { width: 62px; height: 62px; border-radius: 15px; font-size: 26px; }
    .public-error__content { padding: 32px 26px; text-align: center; }
    .public-error__content h1 { font-size: 28px; }
    .public-error__actions { justify-content: center; }
    .public-error__metadata > div { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 420px) {
    .public-error__actions { align-items: stretch; flex-direction: column; }
    .public-error__actions .content-button { width: 100%; }
}

.public-content-page #content-section {
    min-height: 60vh;
    background: #f8fafc;
}

.content-hero {
    padding: 82px 0 76px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(47, 111, 237, 0.11), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
    border-bottom: 1px solid #dfe6ee;
}

.content-hero__inner {
    max-width: 820px;
}

.content-hero h1 {
    margin: 0;
    color: #1e293b;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.content-hero p {
    max-width: 680px;
    margin: 18px auto 0;
    color: #62738c;
    font-size: 17px !important;
    line-height: 1.75;
}

.content-hero--government {
    background:
        radial-gradient(circle at 50% 0%, rgba(27, 67, 83, 0.12), transparent 42%),
        linear-gradient(180deg, #f8fbfc 0%, #edf3f5 100%);
}

.content-hero--oversight {
    background:
        radial-gradient(circle at 50% 0%, rgba(87, 74, 132, 0.14), transparent 42%),
        linear-gradient(180deg, #faf9fc 0%, #f0eef6 100%);
}

.oversight-capability-card .government-capability-card__visual {
    background: #f2eff8;
}

.content-hero--tour {
    padding-bottom: 68px;
}

.content-hero--media {
    background:
        radial-gradient(circle at 50% 0%, rgba(109, 174, 219, 0.16), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #eef4f8 100%);
}

.content-hero__actions {
    display: flex;
    justify-content: center;
    gap: 11px;
    margin-top: 28px;
}

.content-button {
    min-width: 155px;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.11);
}

.content-button i {
    margin-right: 7px;
}

.content-button--primary,
.content-button--primary:hover,
.content-button--primary:focus {
    color: #fff;
    background: #428bca;
    border: 1px solid #357ebd;
}

.content-button--primary:hover,
.content-button--primary:focus {
    background: #3276b1;
    border-color: #285e8e;
}

.content-button--secondary {
    color: #42546d;
    background: #fff;
    border: 1px solid #d7e0e9;
}

.resident-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.resident-benefit-card {
    position: relative;
    padding: 28px;
    text-align: left;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03), 0 10px 25px rgba(15, 23, 42, 0.04);
}

.resident-benefit-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    padding: 10px;
    background: #eaf2ff;
    border-radius: 9px;
}

.resident-benefit-card__icon img {
    max-width: 100%;
    max-height: 100%;
}

.resident-benefit-card__number {
    position: absolute;
    top: 25px;
    right: 26px;
    color: #b1bdcc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.resident-benefit-card h3 {
    margin: 0 0 10px;
    color: #25324a;
    font-size: 19px;
    font-weight: 700;
}

.resident-benefit-card p {
    margin: 0;
    color: #718198;
    font-size: 15px !important;
    line-height: 1.75;
}

.resident-callout {
    padding: 0 0 82px;
    background: #f8fafc;
}

.resident-callout__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 34px;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.resident-callout h2 {
    margin: 0;
    color: #25324a;
    font-size: 23px;
    font-weight: 700;
}

.government-capabilities__grid {
    display: grid;
    gap: 18px;
}

.government-capability-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    text-align: left;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03), 0 10px 25px rgba(15, 23, 42, 0.04);
}

.government-capability-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 170px;
    padding: 36px;
    background: #eef4f7;
    border-right: 1px solid #e2e8ee;
}

.government-capability-card__visual img {
    max-width: 72px;
    max-height: 72px;
}

.government-capability-card__content {
    padding: 28px 32px;
}

.government-capability-card h3 {
    margin: 0 0 9px;
    color: #25324a;
    font-size: 20px;
    font-weight: 700;
}

.government-capability-card p {
    max-width: 760px;
    margin: 0;
    color: #718198;
    font-size: 15px !important;
    line-height: 1.75;
}

.government-callout {
    padding-top: 0;
}

.tour-main__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
    align-items: start;
    gap: 48px;
    max-width: 1080px;
}

.tour-main__grid::before,
.tour-main__grid::after {
    display: none;
    content: none;
}

.tour-intro {
    margin-bottom: 22px;
    text-align: left;
}

.tour-intro h2,
.tour-form-card h2,
.tour-success h2 {
    margin: 0 0 10px;
    color: #25324a;
    font-size: 24px;
    font-weight: 700;
}

.tour-intro p,
.tour-form-card > p,
.tour-success p {
    margin: 0;
    color: #718198;
    font-size: 15px !important;
    line-height: 1.7;
}

.tour-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
    padding: 18px;
    text-align: left;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 9px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

.tour-benefit-card__icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: #eaf2ff;
    border-radius: 8px;
}

.tour-benefit-card__icon img {
    max-width: 100%;
    max-height: 100%;
}

.tour-benefit-card h3 {
    margin: 1px 0 5px;
    color: #25324a;
    font-size: 17px;
    font-weight: 700;
}

.tour-benefit-card p {
    margin: 0;
    color: #718198;
    font-size: 15px !important;
    line-height: 1.6;
}

.tour-form-card,
.tour-success {
    padding: 30px;
    text-align: left;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 11px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.tour-form {
    margin-top: 24px;
}

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

.tour-form .form-group {
    margin-bottom: 16px;
}

.tour-form label {
    margin-bottom: 7px;
    color: #40516a;
    font-size: 15px;
    font-weight: 700;
}

.tour-form .form-control {
    height: 42px;
    padding: 0 12px;
    color: #334155;
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 5px;
    box-shadow: none;
    font-size: 15px;
}

.tour-form .form-control:focus {
    border-color: #80aee0;
    box-shadow: 0 0 0 3px rgba(66, 139, 202, 0.1);
}

.tour-form .field-validation-error,
.tour-form__validation,
.tour-form__error {
    display: block;
    margin-top: 5px;
    color: #dc4c4c;
    font-size: 15px;
}

.tour-form__validation:empty {
    display: none;
}

.tour-recaptcha {
    overflow-x: auto;
    margin: 20px 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 6px;
}

.tour-submit {
    width: 100%;
}

.tour-terms {
    margin: 18px 0 0;
    color: #7b899d;
    font-size: 15px !important;
    line-height: 1.6;
    text-align: center;
}

.tour-terms a {
    color: #2563eb;
    font-weight: 700;
}

.tour-success {
    padding: 44px 34px;
    text-align: center;
}

.tour-success > .fa {
    margin-bottom: 18px;
    color: #16a57a;
    font-size: 42px;
}

.media-overview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 18px;
    max-width: 1080px;
}

.media-overview__grid::before,
.media-overview__grid::after {
    display: none;
    content: none;
}

.media-copy-card,
.media-channel-card,
.media-logo-card,
.media-screenshot-card {
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.media-copy-card,
.media-channel-card {
    padding: 30px;
    text-align: left;
}

.media-copy-card h2,
.media-channel-card h2 {
    margin: 0 0 13px;
    color: #25324a;
    font-size: 23px;
    font-weight: 700;
}

.media-copy-card p,
.media-channel-card > p {
    margin: 0 0 13px;
    color: #718198;
    font-size: 15px !important;
    line-height: 1.75;
}

.media-copy-card p:last-child {
    margin-bottom: 0;
}

.media-channel-links {
    display: grid;
    gap: 9px;
    margin-top: 21px;
}

.media-channel-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #405570;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 7px;
}

.media-channel-links a > .fa {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #2563eb;
    background: #eaf2ff;
    border-radius: 7px;
}

.media-channel-links strong,
.media-channel-links small {
    display: block;
}

.media-channel-links strong {
    color: #25324a;
    font-size: 15px;
}

.media-channel-links small {
    margin-top: 2px;
    color: #8291a6;
    font-size: 13px;
}

.media-brand-section {
    padding: 72px 0;
    background: #eef3f8;
    border-top: 1px solid #dfe5ec;
    border-bottom: 1px solid #dfe5ec;
}

.media-logo-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.media-logo-card__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 42px;
    background: #f8fafc;
    border-right: 1px solid #e5eaf0;
}

.media-logo-card__preview img {
    max-width: 100%;
    height: auto;
}

.media-logo-card__details {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 32px;
    text-align: left;
}

.media-logo-card__details h3 {
    margin: 0 0 9px;
    color: #25324a;
    font-size: 19px;
    font-weight: 700;
}

.media-logo-card__details p {
    margin: 0 0 20px;
    color: #718198;
    font-size: 15px !important;
    line-height: 1.7;
}

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

.media-screenshot-card {
    overflow: hidden;
    color: #25324a;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.media-screenshot-card:hover {
    color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.media-screenshot-card img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid #e5eaf0;
}

.media-screenshot-card span {
    display: block;
    padding: 15px 17px;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .public-content-page {
        padding-top: 68px;
    }

    .content-hero {
        padding: 62px 0 56px;
    }

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

    .resident-benefits__grid {
        grid-template-columns: 1fr;
    }

    .government-capability-card {
        grid-template-columns: 1fr;
    }

    .government-capability-card__visual {
        min-height: 120px;
        border-right: 0;
        border-bottom: 1px solid #e2e8ee;
    }

    .tour-main__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .media-overview__grid,
    .media-logo-card {
        grid-template-columns: 1fr;
    }

    .media-logo-card__preview {
        border-right: 0;
        border-bottom: 1px solid #e5eaf0;
    }

    .resident-callout__inner {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .content-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .content-button {
        width: 100%;
    }

    .tour-form-card,
    .tour-success {
        padding: 24px 20px;
    }

    .tour-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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