
/* Public pages only. Keep existing map heights and gallery proportions. */
body[data-public-wide="true"] {
    --public-page-gutter: 32px;
}

body[data-public-wide="true"] .shell,
body[data-public-wide="true"] .shell.detail-main,
body[data-public-wide="true"] .hero {
    width: calc(100% - 2 * var(--public-page-gutter));
    max-width: none;
    margin-inline: auto;
    box-sizing: border-box;
}

/* The hero already has an outer container; avoid double page gutters. */
body[data-public-wide="true"] .hero .shell {
    width: calc(100% - 64px);
    max-width: none;
}

body[data-public-wide="true"] .shell > *,
body[data-public-wide="true"] .hero-grid > *,
body[data-public-wide="true"] .project-grid > * {
    min-width: 0;
}

/* Keep text readable while maps and data cards use the wider page. */
body[data-public-wide="true"] .detail-heading .lead {
    max-width: 85ch;
}

/* Preserve the existing paired gallery and its image proportions. */
body[data-public-wide="true"]
.project-image-gallery.compact-image-gallery {
    width: 100%;
    max-width: 1360px;
    margin-inline: auto;
    box-sizing: border-box;
}

/* Use additional space for more project cards on large desktops. */
@media (min-width: 1600px) {
    body[data-public-wide="true"] .project-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    body[data-public-wide="true"] {
        --public-page-gutter: 24px;
    }

    body[data-public-wide="true"] .hero .shell {
        width: calc(100% - 48px);
    }
}

@media (max-width: 900px) {
    body[data-public-wide="true"] {
        --public-page-gutter: 20px;
    }
}

@media (max-width: 620px) {
    body[data-public-wide="true"] {
        --public-page-gutter: 16px;
    }

    body[data-public-wide="true"] .hero .shell {
        width: calc(100% - 32px);
    }
}

@media (max-width: 380px) {
    body[data-public-wide="true"] {
        --public-page-gutter: 12px;
    }

    body[data-public-wide="true"] .hero .shell {
        width: calc(100% - 24px);
    }
}


/* Full-width dashboard refinements 20261030. */

/* Balance the introduction on larger screens. */
@media (min-width: 1000px) {
    body[data-public-wide="true"] .hero {
        padding-block: 26px;
    }

    body[data-public-wide="true"] .hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: clamp(28px, 3vw, 56px);
    }

    body[data-public-wide="true"] .hero .hero-aside {
        margin-top: 0;
        border-top: 0;
        border-left: 1px solid #ffffff28;
        padding: 12px 0 12px 28px;
    }
}

/* Three dashboard projects fill their row; search keeps its own grid. */
@media (min-width: 1100px) {
    body[data-public-wide="true"]
    .latest-projects-section > .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 621px) and (max-width: 1099px) {
    body[data-public-wide="true"]
    .latest-projects-section > .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    body[data-public-wide="true"]
    .latest-projects-section > .project-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Reference panels use their own content height. */
body[data-public-wide="true"] .public-reference-grid {
    align-items: start;
}

/* Remove excessive reserved space beneath stage names. */
body[data-public-wide="true"] .public-stage-stat h3 {
    min-height: 0;
    margin-bottom: 12px;
}

body[data-public-wide="true"]
.public-stage-stat .stat-stage-count {
    margin-top: 8px;
}

body[data-public-wide="true"] .public-stage-stat meter {
    margin-block: 8px;
}

/* Dashboard map only: preserve project-detail and fullscreen sizing. */
body[data-public-wide="true"]
.public-project-map:not(.project-detail-map):not(:fullscreen)
.project-location-map {
    height: 460px;
}

@media (max-width: 1199px) {
    body[data-public-wide="true"]
    .public-project-map:not(.project-detail-map):not(:fullscreen)
    .project-location-map {
        height: 380px;
    }
}

@media (max-width: 620px) {
    body[data-public-wide="true"]
    .public-project-map:not(.project-detail-map):not(:fullscreen)
    .project-location-map {
        height: 300px;
    }
}

/* Compact map information while retaining accessible status messages. */
body[data-public-wide="true"]
.public-project-map:not(.project-detail-map):not(:fullscreen)
> p.muted {
    margin-block: 4px;
}

body[data-public-wide="true"]
.public-project-map:not(.project-detail-map):not(:fullscreen)
.public-map-controls {
    margin-block: 6px;
}

/* Avoid stacking two large gaps before the footer. */
body[data-public-wide="true"] .public-all-projects-action {
    margin-top: 24px;
    margin-bottom: 0;
}

body[data-public-wide="true"] .main-stack {
    padding-bottom: 32px;
}


/* Responsive legal page presentation 20261030. */
body[data-public-wide="true"] .legal-page {
    padding-top:24px;
    padding-bottom:32px;
}

body[data-public-wide="true"] .legal-page > h1 {
    margin-bottom:18px;
}

body[data-public-wide="true"] .legal-page-content {
    padding:24px;
    border-radius:8px;
}

body[data-public-wide="true"]
.legal-page .hero-legal-heading {
    align-items:center;
    gap:12px 24px;
    padding-bottom:16px;
}

body[data-public-wide="true"]
.legal-page .hero-legal-heading h2 {
    font-size:21px;
    line-height:1.5;
}

body[data-public-wide="true"]
.legal-page .hero-legal-heading a {
    font-size:13px;
}

body[data-public-wide="true"]
.legal-page .public-legal-group {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:12px;
    margin-top:22px;
}

body[data-public-wide="true"]
.legal-page .public-legal-group h3 {
    grid-column:1 / -1;
    margin:0;
    font-size:14px;
    color:#173c6a;
}

body[data-public-wide="true"]
.legal-page .public-legal-group blockquote {
    min-width:0;
    max-width:none;
    margin:0;
    padding:14px 16px;
    border-left:3px solid #cfb16b;
    border-radius:0 5px 5px 0;
    background:#f6f8fb;
    font-size:14px;
    line-height:1.85;
}

@media(min-width:1100px) {
    body[data-public-wide="true"]
    .legal-page .public-legal-group {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px 20px;
    }

    /* Preserve the reading order of introductory provisions. */
    body[data-public-wide="true"]
    .legal-page .public-legal-group blockquote:only-of-type,
    body[data-public-wide="true"]
    .legal-page blockquote[data-legal-clause="51.7."],
    body[data-public-wide="true"]
    .legal-page blockquote[data-legal-clause="51.7"] {
        grid-column:1 / -1;
    }
}

@media(max-width:620px) {
    body[data-public-wide="true"] .legal-page {
        padding-top:20px;
        padding-bottom:24px;
    }

    body[data-public-wide="true"] .legal-page-content {
        padding:16px;
    }

    body[data-public-wide="true"]
    .legal-page .hero-legal-heading h2 {
        font-size:18px;
    }

    body[data-public-wide="true"]
    .legal-page .public-legal-group blockquote {
        padding:12px;
        font-size:13px;
        line-height:1.8;
    }
}


/* Logical legal section order and three clause columns. */
@media(min-width:1400px) {
    body[data-public-wide="true"]
    .legal-page .public-legal-group {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}


/* Notice pages and compact news filter 20261030. */
body[data-public-wide="true"] .public-notice-page {
    padding-top:24px;
    padding-bottom:32px;
}
body[data-public-wide="true"] .public-notice-page > h1 {
    font-size:30px;
    line-height:1.35;
    margin:0 0 20px;
}
body[data-public-wide="true"] .notice-sections {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
body[data-public-wide="true"] .notice-sections > section {
    margin:0;
    padding:20px;
    border-radius:8px;
    min-width:0;
}
body[data-public-wide="true"]
.notice-sections > section:first-child {
    grid-column:1 / -1;
}
body[data-public-wide="true"] .notice-icon-heading {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:18px;
    line-height:1.5;
    margin:0 0 12px;
}
.notice-heading-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 32px;
    height:32px;
    border-radius:7px;
    background:#edf2fa;
    color:#173c6a;
}
.notice-heading-icon svg {
    width:19px;
    height:19px;
}
body[data-public-wide="true"] .notice-sections > section > p {
    max-width:90ch;
    font-size:15px;
    line-height:1.75;
    margin:0 0 12px;
}
body[data-public-wide="true"] .notice-links {
    display:flex;
    flex-wrap:wrap;
    gap:8px 20px;
    margin-top:14px;
    font-size:13px;
    line-height:1.7;
}

.ppp-news-public .news-filter-toolbar {
    display:flex;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:12px 24px;
}
.ppp-news-public .news-project-filter {
    flex:0 1 820px;
    min-width:0;
    max-width:100%;
}
.ppp-news-public .news-project-filter > summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    width:fit-content;
    min-height:42px;
    padding:9px 14px;
    border:1px solid #cbd6e3;
    border-radius:5px;
    background:#fff;
    color:#173c6a;
    font-size:13px;
    font-weight:650;
    list-style:none;
    cursor:pointer;
}
.ppp-news-public
.news-project-filter > summary::-webkit-details-marker {
    display:none;
}
.ppp-news-public
.news-project-filter > summary:focus-visible {
    outline:3px solid #b08c36;
    outline-offset:3px;
}
.ppp-news-public
.news-project-filter[open] .news-filter-chevron {
    transform:rotate(180deg);
}
.ppp-news-public .news-project-filter .news-filter {
    margin-top:12px;
    padding:16px;
    background:#fff;
    border:1px solid #dce5eb;
    border-radius:7px;
}
.ppp-news-public .news-filter-reset {
    font-size:12px;
    padding:8px 0;
}
.ppp-news-public .news-results-count {
    margin:10px 0 0 auto;
    font-size:13px;
    color:#526983;
}
.ppp-news-public .news-results-count strong {
    color:#173c6a;
}
@media(max-width:900px) {
    body[data-public-wide="true"] .notice-sections {
        grid-template-columns:minmax(0,1fr);
    }
}
@media(max-width:620px) {
    body[data-public-wide="true"] .public-notice-page > h1 {
        font-size:24px;
    }
    body[data-public-wide="true"] .notice-sections > section {
        padding:16px;
    }
    body[data-public-wide="true"] .notice-icon-heading {
        font-size:17px;
    }
    .ppp-news-public .news-project-filter {
        flex-basis:100%;
    }
    .ppp-news-public .news-results-count {
        margin:0;
    }
}


/* Gold bullets for public information headings. */
body[data-public-wide="true"]
.public-notice-page .notice-heading-icon {
    flex:0 0 8px;
    width:8px;
    height:8px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#cfb16b;
}

body[data-public-wide="true"]
.public-notice-page .notice-heading-icon svg {
    display:none;
}

body[data-public-wide="true"]
.public-notice-page .notice-icon-heading {
    gap:12px;
}


/* Consistent public typography 20261030. */
body[data-public-wide="true"] {
    --public-font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
    font-family:var(--public-font-family);
}

body[data-public-wide="true"] button,
body[data-public-wide="true"] input,
body[data-public-wide="true"] select,
body[data-public-wide="true"] textarea,
body[data-public-wide="true"] .project-card {
    font-family:var(--public-font-family);
}

body[data-public-wide="true"] .brand strong {
    font-weight:700;
}

body[data-public-wide="true"] .public-page-nav a {
    font-size:14px;
    font-weight:600;
    line-height:1.5;
}

body[data-public-wide="true"] .project-card h3 {
    font-size:18px;
    font-weight:700;
    line-height:1.5;
}

body[data-public-wide="true"] .project-card dt {
    font-size:13px;
    font-weight:400;
    line-height:1.7;
}

body[data-public-wide="true"] .project-card dd {
    font-size:13px;
    font-weight:600;
    line-height:1.7;
}

body[data-public-wide="true"] .project-card dd strong,
body[data-public-wide="true"] .project-card dd b,
body[data-public-wide="true"] .project-card .card-classifications dd {
    font-weight:600;
}

body[data-public-wide="true"] .project-card .card-footer {
    font-size:12px;
    font-weight:400;
    line-height:1.6;
}

body[data-public-wide="true"] .filter-actions .button {
    font-size:14px;
    font-weight:600;
    line-height:1.5;
}

body[data-public-wide="true"] .search-filter-card input[type=search] {
    font-size:16px;
}


/* ==========================================================
   Canonical public information-page typography
   Legal basis + Usage terms + Privacy
   Keep typography centralized here; page-specific CSS should
   control layout only, not redefine these font sizes.
   ========================================================== */

body[data-public-wide="true"] .legal-page > h1,
body[data-public-wide="true"] .public-notice-page > h1 {
    font-size:30px;
    font-weight:700;
    line-height:1.35;
}

body[data-public-wide="true"] .legal-page .hero-legal-heading h2,
body[data-public-wide="true"] .public-notice-page .notice-sections h2 {
    font-size:18px;
    font-weight:700;
    line-height:1.5;
}

body[data-public-wide="true"] .legal-page .public-legal-group h3 {
    font-size:16px;
    font-weight:700;
    line-height:1.5;
}

body[data-public-wide="true"] .legal-page .public-legal-group blockquote,
body[data-public-wide="true"] .public-notice-page .notice-sections p {
    font-size:15px;
    font-weight:400;
    line-height:1.75;
}

body[data-public-wide="true"] .legal-page .legal-clause-code {
    font-size:inherit;
    font-weight:750;
}

body[data-public-wide="true"] .legal-page .hero-legal-heading a,
body[data-public-wide="true"] .public-notice-page .notice-links {
    font-size:13px;
    line-height:1.7;
}

@media(max-width:620px) {
    body[data-public-wide="true"] .legal-page > h1,
    body[data-public-wide="true"] .public-notice-page > h1 {
        font-size:25px;
    }

    body[data-public-wide="true"] .legal-page .hero-legal-heading h2,
    body[data-public-wide="true"] .public-notice-page .notice-sections h2 {
        font-size:18px;
    }

    body[data-public-wide="true"] .legal-page .public-legal-group h3 {
        font-size:16px;
    }

    body[data-public-wide="true"] .legal-page .public-legal-group blockquote,
    body[data-public-wide="true"] .public-notice-page .notice-sections p {
        font-size:15px;
        line-height:1.75;
    }
}
