:root {
    --ps-red: #d9052e;
    --ps-red-dark: #a90022;
    --ps-charcoal: #262626;
    --ps-gray: #727171;
    --ps-light-gray: #f4f4f4;
    --ps-line: #dddddd;
    --ps-white: #ffffff;
}

.ps-page {
    overflow: hidden;
}

.ps-breadcrumb {
    background: #f7f7f7;
    border-bottom: 1px solid #e6e6e6;
    color: #5f5f5f;
    font-size: 0.82rem;
}

.ps-breadcrumb .site-container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-height: 48px;
}

.ps-breadcrumb a {
    color: #4d4d4d;
    text-decoration: none;
}

.ps-breadcrumb a:hover,
.ps-breadcrumb a:focus-visible {
    color: var(--ps-red);
    text-decoration: underline;
}

.ps-hero {
    background: #111111;
    color: var(--ps-white);
    min-height: clamp(500px, 63vw, 720px);
    overflow: hidden;
    position: relative;
}

.ps-hero-picture,
.ps-hero-picture img,
.ps-hero-overlay {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.ps-hero-picture img {
    object-fit: cover;
    object-position: center;
}

.ps-hero-overlay {
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.90) 0%, rgba(10, 10, 10, 0.70) 36%, rgba(10, 10, 10, 0.14) 72%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.26), transparent 48%);
}

.ps-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(500px, 63vw, 720px);
    padding-bottom: 5rem;
    padding-top: 5rem;
    position: relative;
    z-index: 1;
}

.ps-kicker,
.ps-section-label {
    color: var(--ps-red);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.ps-hero .ps-kicker {
    color: #ff718d;
}

.ps-hero h1 {
    font-size: clamp(3.5rem, 8vw, 7.25rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.9;
    margin: 0;
    max-width: 800px;
}

.ps-hero-lead {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.5;
    margin: 1.6rem 0 2rem;
    max-width: 610px;
}

.ps-button {
    align-items: center;
    border: 2px solid transparent;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 1.25rem;
    justify-content: space-between;
    min-height: 52px;
    padding: 0.85rem 1.2rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    width: fit-content;
}

.ps-button:hover {
    transform: translateY(-2px);
}

.ps-button:focus-visible,
.ps-text-link:focus-visible,
.ps-tab:focus-visible {
    outline: 3px solid #ff9daf;
    outline-offset: 3px;
}

.ps-button-primary {
    background: var(--ps-red);
    color: var(--ps-white);
    min-width: 245px;
}

.ps-button-primary:hover {
    background: var(--ps-red-dark);
    color: var(--ps-white);
}

.ps-section {
    padding: clamp(4rem, 7vw, 7rem) 0;
}

.ps-section h2,
.ps-enquiry h2 {
    color: var(--ps-charcoal);
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin: 0;
}

.ps-intro-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.ps-intro-grid > p,
.ps-colouring-copy > p,
.ps-grade-heading > p,
.ps-stewardship p,
.ps-enquiry p {
    color: #555555;
    font-size: 1.06rem;
    line-height: 1.8;
    margin: 0;
}

.ps-facts {
    border-bottom: 1px solid var(--ps-line);
    border-top: 1px solid var(--ps-line);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(3rem, 6vw, 5.5rem) 0 0;
}

.ps-facts div {
    border-right: 1px solid var(--ps-line);
    padding: 1.8rem 1.6rem;
}

.ps-facts div:first-child {
    padding-left: 0;
}

.ps-facts div:last-child {
    border-right: 0;
}

.ps-facts dt {
    color: var(--ps-gray);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.ps-facts dd {
    color: var(--ps-charcoal);
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.ps-applications {
    background: var(--ps-light-gray);
}

.ps-applications h2 {
    max-width: 760px;
}

.ps-application-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 3rem;
}

.ps-application-grid article {
    background: var(--ps-white);
    border-right: 1px solid var(--ps-line);
    min-height: 245px;
    padding: 2rem;
}

.ps-application-grid article:last-child {
    border-right: 0;
}

.ps-application-grid span {
    color: var(--ps-red);
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 3.25rem;
}

.ps-application-grid h3 {
    color: var(--ps-charcoal);
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.ps-application-grid p {
    color: #606060;
    line-height: 1.65;
    margin: 0;
}

.ps-colouring {
    background: var(--ps-white);
}

.ps-colouring-grid {
    align-items: stretch;
    display: grid;
    gap: clamp(2.5rem, 6vw, 6rem);
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
}

.ps-colouring-visual {
    background: #eeeeee;
    margin: 0;
    min-height: 540px;
    overflow: hidden;
}

.ps-colouring-visual picture,
.ps-colouring-visual img {
    display: block;
    height: 100%;
    width: 100%;
}

.ps-colouring-visual img {
    object-fit: cover;
    object-position: center;
}

.ps-colouring-copy {
    align-self: center;
}

.ps-colouring-copy h2 {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    margin-bottom: 1.5rem;
}

.ps-text-link {
    align-items: center;
    border-bottom: 2px solid var(--ps-red);
    color: var(--ps-red);
    display: inline-flex;
    font-weight: 750;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 0 0.55rem;
    text-decoration: none;
}

.ps-text-link:hover {
    border-bottom-color: var(--ps-charcoal);
    color: var(--ps-charcoal);
}

.ps-grades {
    background: #f7f7f7;
}

.ps-grade-heading {
    align-items: end;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
}

.ps-grade-heading > p {
    font-size: 0.95rem;
}

.ps-tabs {
    margin-top: 3rem;
}

.ps-tab-list {
    border-bottom: 1px solid #cfcfcf;
    display: flex;
    gap: 0;
}

.ps-tab {
    appearance: none;
    background: #e8e8e8;
    border: 0;
    border-top: 4px solid transparent;
    color: #4c4c4c;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    min-height: 60px;
    padding: 0.9rem 1.5rem;
    text-align: left;
}

.ps-tab + .ps-tab {
    border-left: 1px solid #d0d0d0;
}

.ps-tab:hover {
    background: #dedede;
    color: var(--ps-charcoal);
}

.ps-tab.is-active {
    background: var(--ps-white);
    border-top-color: var(--ps-red);
    color: var(--ps-charcoal);
}

.ps-tab-panel {
    background: var(--ps-white);
    padding: 1.25rem;
}

.ps-tab-panel[hidden] {
    display: none;
}

.ps-table-scroll {
    overflow-x: auto;
    scrollbar-color: var(--ps-red) #eeeeee;
}

.ps-table-scroll:focus-visible {
    outline: 3px solid rgba(217, 5, 46, 0.35);
    outline-offset: 3px;
}

.ps-table-scroll table {
    border-collapse: separate;
    border-spacing: 0;
    color: #3c3c3c;
    font-size: 0.82rem;
    min-width: 1120px;
    width: 100%;
}

.ps-table-scroll caption {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.ps-table-scroll th,
.ps-table-scroll td {
    background: var(--ps-white);
    border-bottom: 1px solid var(--ps-line);
    min-width: 98px;
    padding: 0.9rem 0.75rem;
    text-align: center;
    vertical-align: middle;
}

.ps-table-scroll thead th {
    background: var(--ps-charcoal);
    color: var(--ps-white);
    font-size: 0.71rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.ps-table-scroll thead th:first-child,
.ps-table-scroll tbody th {
    left: 0;
    min-width: 190px;
    position: sticky;
    text-align: left;
    z-index: 2;
}

.ps-table-scroll thead th:first-child {
    background: #171717;
    z-index: 3;
}

.ps-table-scroll tbody th {
    box-shadow: 1px 0 0 var(--ps-line);
    color: var(--ps-charcoal);
    font-weight: 700;
}

.ps-table-scroll tbody tr:hover th,
.ps-table-scroll tbody tr:hover td {
    background: #fafafa;
}

.ps-table-scroll .ps-remarks-row th,
.ps-table-scroll .ps-remarks-row td {
    background: #f2f2f2;
    font-weight: 650;
}

.ps-table-note {
    color: var(--ps-gray);
    font-size: 0.82rem;
    line-height: 1.65;
    margin: 1rem 0 0;
    max-width: 980px;
}

.ps-stewardship {
    background: var(--ps-white);
}

.ps-stewardship-grid {
    align-items: center;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ps-stewardship h2 {
    margin-bottom: 1rem;
    max-width: 900px;
}

.ps-stewardship p {
    max-width: 820px;
}

.ps-button-outline {
    border-color: var(--ps-red);
    color: var(--ps-red);
    min-width: 285px;
}

.ps-button-outline:hover {
    background: var(--ps-red);
    color: var(--ps-white);
}

.ps-enquiry {
    background: var(--ps-red);
    color: var(--ps-white);
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.ps-enquiry-inner {
    align-items: center;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ps-enquiry .ps-section-label,
.ps-enquiry h2,
.ps-enquiry p {
    color: var(--ps-white);
}

.ps-enquiry h2 {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    margin-bottom: 0.85rem;
}

.ps-enquiry p {
    opacity: 0.9;
}

.ps-button-light {
    background: var(--ps-white);
    color: var(--ps-red);
    min-width: 220px;
}

.ps-button-light:hover {
    background: var(--ps-charcoal);
    color: var(--ps-white);
}

@media (max-width: 1023px) {
    .ps-hero-overlay {
        background: linear-gradient(90deg, rgba(10, 10, 10, 0.87), rgba(10, 10, 10, 0.42) 72%, rgba(10, 10, 10, 0.12));
    }

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

    .ps-facts div:nth-child(2),
    .ps-application-grid article:nth-child(2) {
        border-right: 0;
    }

    .ps-facts div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--ps-line);
    }

    .ps-facts div:nth-child(3) {
        padding-left: 0;
    }

    .ps-application-grid article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--ps-line);
    }

    .ps-colouring-grid {
        grid-template-columns: 1fr;
    }

    .ps-colouring-visual {
        min-height: 0;
    }

    .ps-colouring-visual picture {
        aspect-ratio: 5 / 4;
    }

    .ps-grade-heading {
        align-items: start;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ps-intro-grid,
    .ps-stewardship-grid,
    .ps-enquiry-inner {
        grid-template-columns: 1fr;
    }

    .ps-intro-grid {
        gap: 1.5rem;
    }

    .ps-stewardship-grid,
    .ps-enquiry-inner {
        gap: 2rem;
    }

    .ps-button-outline,
    .ps-button-light {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 639px) {
    .ps-breadcrumb .site-container {
        min-height: 44px;
    }

    .ps-hero,
    .ps-hero-content {
        min-height: 620px;
    }

    .ps-hero-picture img {
        object-position: center top;
    }

    .ps-hero-overlay {
        background: linear-gradient(0deg, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.72) 55%, rgba(8, 8, 8, 0.16) 100%);
    }

    .ps-hero-content {
        justify-content: flex-end;
        padding-bottom: 3.25rem;
        padding-top: 3.25rem;
    }

    .ps-hero h1 {
        font-size: clamp(3.15rem, 16vw, 4.75rem);
    }

    .ps-button-primary {
        min-width: 0;
        width: 100%;
    }

    .ps-section {
        padding: 3.75rem 0;
    }

    .ps-facts,
    .ps-application-grid {
        grid-template-columns: 1fr;
    }

    .ps-facts div,
    .ps-facts div:first-child,
    .ps-facts div:nth-child(3) {
        border-bottom: 1px solid var(--ps-line);
        border-right: 0;
        padding: 1.35rem 0;
    }

    .ps-facts div:last-child {
        border-bottom: 0;
    }

    .ps-application-grid article,
    .ps-application-grid article:nth-child(2) {
        border-bottom: 1px solid var(--ps-line);
        border-right: 0;
        min-height: 0;
    }

    .ps-application-grid article:last-child {
        border-bottom: 0;
    }

    .ps-application-grid span {
        margin-bottom: 2rem;
    }

    .ps-colouring-visual picture {
        aspect-ratio: 4 / 5;
    }

    .ps-tab-list {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ps-tab + .ps-tab {
        border-left: 0;
        border-top: 1px solid #d0d0d0;
    }

    .ps-tab.is-active + .ps-tab,
    .ps-tab + .ps-tab.is-active {
        border-top-color: var(--ps-red);
    }

    .ps-tab-panel {
        padding: 0.75rem;
    }

    .ps-table-scroll table {
        font-size: 0.77rem;
        min-width: 1050px;
    }

    .ps-table-scroll thead th:first-child,
    .ps-table-scroll tbody th {
        min-width: 165px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ps-button {
        transition: none;
    }
}
