:root {
    --portal-ink: #152033;
    --portal-muted: #627086;
    --portal-line: #e2e8f0;
    --portal-primary: #0f766e;
    --portal-bg: #f4f7fb;
}

.portal-header {
    border-color: var(--portal-brand-primary, #0f766e);
}

.portal-brand strong,
.portal-nav a:hover,
.portal-dropdown button:hover {
    color: var(--portal-brand-primary, #0f766e);
}

.portal-white-label-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 24px 5vw;
    color: #cbd5e1;
    background: var(--portal-brand-secondary, #0f172a);
    font-size: 16px;
    text-align: center;
}

.portal-white-label-footer small::before {
    content: "·";
    margin-right: 8px;
}

@media (max-width: 640px) {
    .portal-white-label-footer small {
        flex-basis: 100%;
    }

    .portal-white-label-footer small::before {
        content: "";
        margin: 0;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.portal-body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 0, rgba(20, 184, 166, 0.18), transparent 330px),
        radial-gradient(circle at 85% 4%, rgba(37, 99, 235, 0.16), transparent 360px),
        var(--portal-bg);
    color: var(--portal-ink);
    font-family: Cambria, "Times New Roman", Georgia, serif;
    font-size: 14px;
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    padding: 16px clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
}

.portal-brand,
.portal-nav,
.portal-actions,
.portal-footer,
.section-head {
    display: flex;
    align-items: center;
}

.portal-brand {
    gap: 12px;
    min-width: 230px;
    color: var(--portal-ink);
    font-weight: 900;
    text-decoration: none;
}

.portal-brand-logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    flex: 0 0 auto;
    overflow: hidden;
}

.portal-brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    padding: 4px;
    background: #fff;
    object-fit: contain;
}

.portal-brand strong {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.portal-nav a,
.portal-dropdown button,
.portal-footer a {
    color: var(--portal-muted);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.portal-nav > a,
.portal-dropdown button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    background: transparent;
    cursor: pointer;
}

.portal-nav > a:hover,
.portal-dropdown:hover button,
.portal-dropdown:focus-within button {
    background: rgba(15, 118, 110, 0.08);
    color: var(--portal-primary);
}

.portal-nav a:last-child {
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
    color: var(--portal-primary);
}

.portal-dropdown {
    position: relative;
}

.portal-dropdown button::after {
    margin-left: 8px;
    content: "v";
    font-size: 10px;
    line-height: 1;
}

.portal-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    width: 230px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.portal-dropdown-menu.wide {
    width: 270px;
}

.portal-dropdown:hover .portal-dropdown-menu,
.portal-dropdown:focus-within .portal-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.portal-dropdown-menu a,
.portal-dropdown-menu strong {
    min-height: 38px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 12px;
}

.portal-dropdown-menu a {
    color: var(--portal-ink);
}

.portal-dropdown-menu a:hover {
    background: #ecfeff;
    color: var(--portal-primary);
}

.portal-dropdown-menu strong {
    color: var(--portal-primary);
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.portal-subdropdown {
    position: relative;
}

.portal-subdropdown > button {
    width: 100%;
    min-height: 40px;
    justify-content: space-between;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    background: transparent;
    color: var(--portal-primary);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.portal-subdropdown > button::after {
    margin-left: 12px;
    content: ">";
    font-size: 11px;
}

.portal-subdropdown:hover > button,
.portal-subdropdown:focus-within > button {
    background: #ecfeff;
}

.portal-subdropdown-menu {
    position: absolute;
    top: 0;
    right: calc(100% + 10px);
    width: 260px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.portal-subdropdown:hover .portal-subdropdown-menu,
.portal-subdropdown:focus-within .portal-subdropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.portal-hero,
.portal-section,
.portal-stats,
.portal-footer {
    width: min(1180px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.portal-hero {
    position: relative;
    width: 100%;
    min-height: min(680px, calc(100vh - 74px));
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(48px, 7vw, 96px) clamp(22px, 6vw, 86px) 180px;
    background:
        linear-gradient(90deg, rgba(5, 24, 39, 0.9) 0%, rgba(5, 24, 39, 0.72) 42%, rgba(15, 118, 110, 0.28) 100%),
        linear-gradient(180deg, rgba(5, 24, 39, 0.12), rgba(5, 24, 39, 0.62)),
        url("../img/portal-hero.png") center / cover no-repeat;
    color: #fff;
}

.portal-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 150px;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(244, 247, 251, 0.96));
}

.portal-hero-copy {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    transform: translateY(-34px);
}

.portal-hero-photos {
    position: absolute;
    right: clamp(14px, 3vw, 46px);
    bottom: 176px;
    z-index: 1;
    width: min(46vw, 640px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.portal-hero-photos figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.portal-hero-photos figure:nth-child(2) {
    transform: translateY(34px);
}

.portal-hero-photos img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.portal-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--portal-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.portal-hero .portal-eyebrow {
    color: #99f6e4;
}

.portal-hero h1 {
    max-width: 620px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(38px, 5.35vw, 62px);
    line-height: 0.98;
}

.portal-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.7;
}

.portal-actions {
    gap: 12px;
    margin-top: 28px;
}

.portal-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--portal-primary);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.portal-button.secondary {
    border: 1px solid var(--portal-line);
    background: #fff;
    color: var(--portal-ink);
}

.portal-hero .portal-button.secondary {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(10px);
}

.portal-direction {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: -70px auto 18px;
}

.portal-direction a {
    min-height: 148px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--portal-ink);
    text-decoration: none;
    box-shadow: 0 18px 48px rgba(21, 32, 51, 0.12);
    backdrop-filter: blur(16px);
}

.portal-direction span,
.portal-direction small,
.portal-direction strong {
    display: block;
}

.portal-direction span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #ecfeff;
    color: var(--portal-primary);
    font-weight: 900;
}

.portal-direction strong {
    margin-bottom: 7px;
    font-size: 18px;
}

.portal-direction small {
    color: var(--portal-muted);
    line-height: 1.6;
}

.portal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.portal-stats article,
.portal-section,
.portal-footer {
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 38px rgba(21, 32, 51, 0.06);
}

.portal-stats article {
    padding: 20px;
}

.portal-stats span,
.document-category-grid span,
.evidence-grid span {
    display: block;
    color: var(--portal-muted);
    font-weight: 800;
}

.portal-stats strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
}

.portal-section {
    margin-top: 18px;
    padding: 30px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: start;
}

.portal-section h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.portal-section p {
    color: var(--portal-muted);
    line-height: 1.7;
}

.ppepp-list,
.document-category-grid,
.evidence-grid,
.news-grid {
    display: grid;
    gap: 12px;
}

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

.ppepp-list article,
.document-category-grid article,
.portal-document-list article,
.evidence-grid article,
.news-grid article {
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.ppepp-list b {
    color: var(--portal-primary);
}

.ppepp-list strong,
.ppepp-list span {
    display: block;
}

.ppepp-list strong {
    margin: 6px 0 4px;
}

.ppepp-list span {
    color: var(--portal-muted);
}

.section-head {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-head p {
    max-width: 430px;
    margin: 0;
}

.document-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 18px;
}

.document-category-grid strong,
.evidence-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
}

.portal-document-list {
    display: grid;
    gap: 12px;
}

.portal-document-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0;
}

.portal-document-list span {
    color: var(--portal-primary);
    font-weight: 900;
}

.portal-document-list strong {
    display: block;
    margin-top: 5px;
    font-size: 18px;
}

.portal-document-list p {
    margin: 6px 0 0;
}

.portal-document-list a {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 13px 16px;
    background: #fff;
    color: var(--portal-primary);
    font-weight: 900;
    text-decoration: none;
}

.portal-document-list a:hover {
    background: #ecfeff;
}

.document-read-link.disabled {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 13px 16px;
    color: var(--portal-muted);
}

.portal-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 22px;
    color: var(--portal-muted);
    text-align: center;
}

.portal-profile-section {
    width: min(1180px, calc(100% - 40px));
    margin: 18px auto 0;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(21, 32, 51, 0.06);
}

.portal-profile-head {
    max-width: 760px;
    margin-bottom: 22px;
}

.portal-profile-head h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.portal-profile-head p {
    margin: 0;
    color: var(--portal-muted);
    line-height: 1.7;
}

.portal-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.portal-profile-grid article {
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    height: 100%;
}

.portal-profile-grid article.wide {
    grid-column: 1 / -1;
}

.portal-profile-grid span {
    display: block;
    margin-bottom: 10px;
    color: var(--portal-primary);
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.portal-profile-grid p,
.portal-profile-grid ul {
    margin: 0;
    color: var(--portal-muted);
    line-height: 1.75;
}

.portal-profile-grid ul {
    list-style: none;
    padding-left: 0;
}

.portal-profile-grid li + li {
    margin-top: 8px;
}

.portal-profile-grid li {
    text-align: left;
}

.portal-page-hero {
    width: min(1260px, calc(100% - 40px));
    margin: 28px auto 18px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 8px;
    padding: clamp(42px, 7vw, 76px);
    background:
        linear-gradient(90deg, rgba(5, 24, 39, 0.88), rgba(15, 118, 110, 0.68)),
        url("../img/portal-hero.png") center / cover no-repeat;
    color: #fff;
    box-shadow: 0 20px 52px rgba(21, 32, 51, 0.12);
}

.portal-page-hero .portal-eyebrow {
    color: #99f6e4;
}

.portal-page-hero h1 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.portal-page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.7;
}

.portal-page-content {
    width: min(1260px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    margin: 0 auto 18px;
}

.portal-page-content.single {
    grid-template-columns: 1fr;
}

.portal-page-content.vision-mission-page {
    width: min(1260px, calc(100% - 40px));
}

.portal-page-hero:has(+ .vision-mission-page) {
    width: min(1260px, calc(100% - 40px));
}

.portal-page-hero.vision-hero {
    width: min(1260px, calc(100% - 40px));
}

.portal-page-main,
.portal-page-side {
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(21, 32, 51, 0.06);
}

.portal-page-main h2,
.portal-page-side h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.portal-page-main p,
.portal-page-side p {
    color: var(--portal-muted);
    line-height: 1.7;
}

.vision-mission-page .portal-page-main > p {
    text-align: justify;
}

.portal-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
}

.portal-feature-grid div {
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.portal-feature-grid.vision-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.portal-feature-grid.vision-grid div {
    padding: 18px;
}

.portal-feature-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--portal-primary);
    font-weight: 900;
}

.portal-feature-grid strong {
    display: block;
}

.portal-feature-grid p,
.portal-feature-grid ul,
.portal-feature-grid ol {
    margin: 10px 0 0;
    color: var(--portal-muted);
    line-height: 1.7;
}

.portal-feature-grid ul,
.portal-feature-grid ol {
    list-style: none;
    padding-left: 0;
}

.portal-number-list {
    counter-reset: profile-list;
}

.portal-number-list li {
    counter-increment: profile-list;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    text-align: justify;
}

.portal-number-list li::before {
    content: counter(profile-list);
    color: var(--portal-muted);
    font-weight: 800;
    text-align: right;
}

.portal-number-list li + li {
    margin-top: 10px;
}

.portal-structure-card {
    margin-top: 22px;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.portal-structure-card img {
    width: 100%;
    max-height: 680px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
}

.portal-rtm {
    width: 100%;
    margin: 18px 0 0;
    padding: 34px clamp(24px, 5vw, 72px) 58px;
    background:
        linear-gradient(135deg, rgba(7, 21, 39, 0.96), rgba(9, 34, 59, 0.96)),
        url("../img/portal-hero.png") center / cover no-repeat;
}

.portal-rtm-head {
    max-width: 760px;
    margin: 0 auto 36px;
    color: #fff;
    text-align: center;
}

.portal-rtm-head h2 {
    margin: 0;
    font-size: clamp(30px, 4.2vw, 44px);
    line-height: 1.1;
    text-transform: uppercase;
}

.portal-rtm-head::after {
    width: min(520px, 72vw);
    height: 3px;
    display: block;
    margin: 22px auto 0;
    content: "";
    background: rgba(255, 255, 255, 0.9);
}

.portal-rtm-grid {
    width: min(720px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    justify-content: center;
    gap: 22px;
    margin: 0 auto;
}

.portal-rtm-grid article {
    max-width: 320px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.portal-rtm-grid img {
    width: 100%;
    height: 145px;
    display: block;
    object-fit: cover;
}

.portal-rtm-grid div {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 18px;
}

.portal-rtm-grid strong,
.portal-rtm-grid a,
.portal-rtm-grid span {
    display: block;
}

.portal-rtm-grid strong {
    margin-bottom: 12px;
    color: #034d7d;
    font-size: 18px;
    line-height: 1.35;
    text-transform: uppercase;
}

.portal-rtm-grid a {
    color: #f59e0b;
    font-weight: 800;
    text-decoration: none;
}

.portal-rtm-grid span {
    margin-top: auto;
    color: var(--portal-muted);
    text-align: right;
}

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

.news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-grid span {
    color: var(--portal-primary);
    font-weight: 900;
}

.news-grid h3 {
    margin: 10px 0 8px;
}

.news-grid b {
    color: var(--portal-muted);
}

.portal-footer {
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin: 44px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 26px clamp(20px, 5vw, 72px);
    background: #071527;
    color: #fff;
    box-shadow: none;
}

.portal-footer strong,
.portal-footer span {
    display: block;
}

.portal-footer span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.62);
}

.portal-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.portal-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.portal-footer a:hover {
    color: #fff;
}

@media (max-width: 980px) {
    .portal-header,
    .portal-footer,
    .section-head,
    .portal-document-list article {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-nav {
        justify-content: flex-start;
    }

    .portal-dropdown {
        width: 100%;
    }

    .portal-dropdown button {
        width: 100%;
        justify-content: space-between;
    }

    .portal-dropdown-menu,
    .portal-dropdown-menu.wide {
        position: static;
        width: 100%;
        margin-top: 6px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .portal-subdropdown-menu {
        position: static;
        width: 100%;
        margin-top: 6px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
    }

    .portal-subdropdown > button::after {
        content: "v";
    }

    .portal-hero,
    .two-column,
    .portal-page-content,
    .portal-direction,
    .portal-stats,
    .portal-feature-grid.vision-grid,
    .portal-profile-grid,
    .document-category-grid,
    .portal-rtm-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .portal-hero {
        min-height: 620px;
        padding-bottom: 108px;
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-hero-copy {
        width: min(680px, 100%);
        transform: translateY(0);
    }

    .portal-hero-photos {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(100%, 560px);
        margin-top: 28px;
    }
}

@media (max-width: 640px) {
    .portal-section,
    .portal-stats,
    .portal-direction,
    .portal-profile-section,
    .portal-page-hero,
    .portal-page-content {
        width: min(100% - 28px, 1180px);
    }

    .portal-footer {
        width: 100%;
    }

    .portal-hero {
        min-height: 570px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .portal-hero-photos figure:nth-child(2) {
        transform: none;
    }

    .portal-hero h1 {
        font-size: 40px;
    }

    .portal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-direction {
        margin-top: -58px;
    }

    .portal-section {
        padding: 22px;
    }

    .portal-profile-section {
        padding: 22px;
    }

    .portal-rtm {
        padding: 28px 14px 42px;
    }

    .portal-rtm-grid img {
        height: 145px;
    }

    .ppepp-list,
    .portal-feature-grid,
    .evidence-grid {
        grid-template-columns: 1fr;
    }
}

.survey-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.survey-card-grid .survey-card {
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    padding: 18px;
    min-height: 118px;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(21, 32, 51, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.survey-card-grid .survey-card:hover,
.survey-card-grid .survey-card.active {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.42);
    box-shadow: 0 18px 42px rgba(15, 118, 110, 0.12);
}

.survey-card-grid .survey-card span {
    color: var(--portal-primary);
    font-weight: 900;
}

.survey-card-grid .survey-card strong {
    margin-top: 8px;
    color: var(--portal-text);
    line-height: 1.45;
}

.survey-card-grid .survey-card small {
    display: block;
    margin-top: 12px;
    color: var(--portal-muted);
    font-weight: 700;
}

.survey-result-panel {
    margin-top: 18px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.96));
    box-shadow: 0 18px 46px rgba(21, 32, 51, 0.07);
}

.survey-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.survey-result-head h3 {
    margin: 6px 0 0;
    font-size: 24px;
}

.survey-score-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--ring-color) calc(var(--score) * 1%), #e8eef5 0);
    position: relative;
    flex: 0 0 auto;
}

.survey-score-ring::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #fff;
}

.survey-score-ring strong,
.survey-score-ring span {
    position: relative;
    z-index: 1;
}

.survey-score-ring strong {
    margin-top: 12px;
    font-size: 22px;
    line-height: 1;
}

.survey-score-ring span {
    margin-top: -22px;
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 800;
}

.survey-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 18px;
}

.survey-result-meta span {
    border: 1px solid var(--portal-line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--portal-muted);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.survey-chart-bars {
    display: grid;
    gap: 14px;
}

.survey-bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.survey-bar-label span {
    color: var(--portal-muted);
    font-weight: 900;
}

.survey-bar-track {
    height: 12px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.survey-bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    animation: surveyBarGrow 0.38s ease both;
}

@keyframes surveyBarGrow {
    from { width: 0; }
}

@media (max-width: 900px) {
    .survey-card-grid {
        grid-template-columns: 1fr;
    }

    .survey-result-head {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .survey-result-head {
        flex-direction: column;
    }
}

.survey-public-hero {
    background: linear-gradient(135deg, #072a3a, #0f766e);
}

.survey-public-card {
    display: grid;
    gap: 18px;
}

.survey-public-note,
.portal-survey-alert {
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    background: #f0fdfa;
    color: #0f3f3a;
}

.portal-survey-alert.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    font-weight: 900;
}

.portal-survey-alert.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 900;
}

.survey-public-note strong,
.survey-public-note span {
    display: block;
}

.survey-public-note span {
    margin-top: 4px;
    color: var(--portal-muted);
    line-height: 1.6;
}

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

.survey-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.survey-public-question {
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    padding: 18px;
    background: linear-gradient(145deg, #fff, #f8fbff);
}

.survey-public-question span {
    display: block;
    color: var(--portal-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.survey-public-question h2 {
    margin: 8px 0 16px;
    font-size: 18px;
    line-height: 1.5;
}

.survey-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.survey-scale input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.survey-scale label {
    display: grid;
    place-items: center;
    min-height: 72px;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.survey-scale label strong {
    font-size: 24px;
    line-height: 1;
}

.survey-scale label small {
    margin-top: 7px;
    color: var(--portal-muted);
    font-weight: 800;
}

.survey-scale input:checked + label {
    border-color: #0f766e;
    background: #ecfdf5;
    color: #0f766e;
    transform: translateY(-2px);
}

.survey-public-actions {
    display: flex;
    justify-content: flex-end;
}

.survey-public-actions button {
    border: 0;
    border-radius: 8px;
    padding: 14px 22px;
    background: #0f766e;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 720px) {
    .survey-scale {
        grid-template-columns: 1fr;
    }

    .survey-scale label {
        min-height: 58px;
        grid-template-columns: 44px 1fr;
        justify-items: start;
        padding: 0 14px;
    }

    .survey-scale label small {
        margin-top: 0;
    }
}

/* Compact public document list */
.portal-document-section {
    margin-bottom: 16px;
}

.portal-document-panel {
    padding: 22px 24px;
}

.compact-document-head {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.compact-document-head h2 {
    margin-bottom: 0;
    font-size: 24px;
}

.portal-doc-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 999px;
    padding: 7px 12px;
    background: #ecfeff;
    color: var(--portal-primary);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.portal-document-section .portal-document-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.portal-document-section .portal-document-list article {
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
}

.portal-document-section .portal-document-list a,
.portal-document-section .document-read-link.disabled {
    min-height: 42px;
    padding: 11px 13px;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 620px) {
    .compact-document-head {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* Force public document list vertical */
.portal-document-section .portal-document-list {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 720px;
}
