
.hero{
    --container-padding: 32px 16px;
    --inner-gridtemplate: repeat(1, minmax(0, 1fr));
    --inner-justify-content: space-between;
    --inner-background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, var(--teal) 100%);
    --inner-border-radius: 18px;
    --inner-padding: 44px 48px;
    --inner-justify-items: start;
    --main-title-font-size: var(--h1font-size);
    --main-title-color: var(--white);
    --main-title-text-align: left;
    --text-span-font-size: var(--h1font-size);
    --text-span-color: var(--green);

    --card-gap: 8px;
    --card-align-items: end;

    --inner-position: relative;
    --inner-overflow: hidden;

    --day-font-size: 58px;
    --dyy-font-weight: 700;
    --day-color: var(--white);
    --month-font-size: var(--pfont-size);
    --month-color: var(--green);
    --year-font-size: var(--pfont-size);
    --year-color: var(--white);

    @media screen and (width > 550px) {
        --inner-gridtemplate: 1fr auto;
    }
}

.hero .inner-new::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -140px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(116, 188, 74, 0.35), rgba(116, 188, 74, 0) 70%);
    pointer-events: none;
}

.quick-links {
    --container-padding: 0 16px 32px 16px;
    --container-gap: 8px;
    --inner-gap: 24px;
    --main-title-color: var(--navy-deep);
    --main-title-font-size: var(--h2font-size);
    --main-title-line-height: var(--h2font-line-height);
    --main-title-text-align: left;
}

.quick-links .text-block {
    justify-items: start;
}

.quick-links .inner-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
}

/* Pillar-style tile (matches testhome training pillars) */
.quick-links .textpod {
    position: relative;
    flex: 1 1 0;
    min-width: 180px;
    max-width: 260px;
    height: 160px;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s;
}

.quick-links .textpod:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.quick-links .textpod::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.85);
    transition: transform 0.6s, filter 0.4s;
}

.quick-links .textpod:hover::before {
    transform: scale(1.06);
    filter: saturate(1);
}

.quick-links .textpod::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.3s;
}

.quick-links .textpod a {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #ffffff;
    text-decoration: none;
}

.quick-links .textpod a:hover {
    color: #ffffff;
    text-decoration: none;
}

.quick-links .textpod .inner {
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.04em;
    line-height: 1.3;
    padding: 0;
}

.quick-links .textpod .inner i {
    color: #ffffff;
    display: block;
    margin: 0 auto 10px auto;
    font-size: 2.2em !important;
    line-height: 1;
}

/* Four-colour cycle to match the pillars */
.quick-links .textpod:nth-child(4n+1)::before {
    background:
        radial-gradient(circle at 80% 20%, rgba(116, 188, 74, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        #014373;
}
.quick-links .textpod:nth-child(4n+1)::after {
    background: linear-gradient(160deg, rgba(0, 86, 149, 0.55) 0%, rgba(0, 86, 149, 0.85) 60%, rgba(10, 48, 80, 0.95) 100%);
}

.quick-links .textpod:nth-child(4n+2)::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 86, 149, 0.4) 0%, transparent 50%),
        #5fa238;
}
.quick-links .textpod:nth-child(4n+2)::after {
    background: linear-gradient(160deg, rgba(116, 188, 74, 0.4) 0%, rgba(95, 162, 56, 0.85) 60%, rgba(60, 110, 32, 0.95) 100%);
}

.quick-links .textpod:nth-child(4n+3)::before {
    background:
        radial-gradient(circle at 70% 30%, rgba(116, 188, 74, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        #1d6f73;
}
.quick-links .textpod:nth-child(4n+3)::after {
    background: linear-gradient(160deg, rgba(0, 86, 149, 0.5) 0%, rgba(29, 111, 115, 0.88) 60%, rgba(15, 70, 75, 0.95) 100%);
}

.quick-links .textpod:nth-child(4n)::before {
    background:
        radial-gradient(circle at 50% 100%, rgba(116, 188, 74, 0.45) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        #014373;
}
.quick-links .textpod:nth-child(4n)::after {
    background: linear-gradient(160deg, rgba(0, 86, 149, 0.55) 0%, rgba(116, 188, 74, 0.6) 60%, rgba(0, 86, 149, 0.95) 100%);
}

.textpod{
    width: 100%;
    margin: 0;
}

.news-home{
    --container-padding: 0 16px 32px 16px;
    --inner-gridtemplate: 200px minmax(0, 1fr) 300px;
    --card-justify-content: start;
    --card-direction: row;
    --text-block-padding: 16px 0px;
    --text-block-justify-items: start;

    --img-main-width: auto;
    --img-main-height: 200px;
    --img-main-aspect-ratio: 1/1;
    --img-main-object-fit: cover;

    --link-border-border: 1px solid var(--text-muted);
    --link-border-radius: 8px;
    --link-border-overflow: hidden;
    --link-border-border-hover: 1px solid var(--green-dark);
    --link-border-shadow-hover: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

/* Force the 3-column grid directly so it can't be undone by the custom-property cascade */
.news-home .inner-new {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 300px;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    align-items: start;
    justify-content: stretch;
    justify-items: stretch;
}

.news-home .column-new {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media screen and (max-width: 991px) {
    .news-home .inner-new {
        grid-template-columns: 1fr;
    }
}

.col-side {
    --column-new-justify-items: stretch;
    --column-new-gap: 24px;
}

.col-side .homeSideNav {
    width: 100%;
}

.col-side .homeSideNav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.col-side .homeSideNav ul + ul {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.col-side .homeSideNav ul li {
    list-style: none;
}

/* "My Links" heading (first li of the second ul has no link) */
.col-side .homeSideNav ul li:not(:has(a)) {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0 6px 4px 6px;
}

.col-side .homeSideNav ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.col-side .homeSideNav ul li a::after {
    content: '\f285';
    font-family: 'bootstrap-icons';
    color: var(--text-muted);
    font-size: 13px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.col-side .homeSideNav ul li a:hover {
    color: #ffffff;
    background: var(--navy);
    border-color: var(--navy);
    transform: translateX(2px);
}

.col-side .homeSideNav ul li a:hover::after {
    color: var(--green);
    opacity: 1;
    transform: translateX(0);
}

.col-left{
    --main-title-color: var(--navy-deep);
    --column-new-justify-items: start;
    --column-new-align-content: start;
}

/* Column header row (heading + "View all" link) */
.col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.col-header .main-title-new {
    text-align: left;
}

.col-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, gap 0.2s ease;
}

.col-header-link:hover {
    color: var(--navy-deep);
    gap: 10px;
    text-decoration: none;
}

.col-header-link i {
    font-size: 16px;
}

.col-right{
    --main-title-color: var(--navy-deep);
    --column-new-justify-items: start;
    --column-new-gap: 8px;
    --column-new-align-content: start;
}

.col-right .main-title-new {
    margin-bottom: 16px;
}

/* Event "pile" cards (What's On column) */
.event-pile {
    display: block;
    width: 100%;
    text-decoration: none;
    --link-border-border: 1px solid var(--line);
    --link-border-radius: 8px;
    --link-border-overflow: hidden;
    --link-border-border-hover: 1px solid var(--green-dark);
    --link-border-shadow-hover: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.event-pile .card-new {
    --card-direction: row;
    --card-align-items: center;
    --card-justify-content: start;
    --card-gap: 12px;
    --card-padding: 12px;
    --card-background: #fff;
}

.event-pile-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(116, 188, 74, 0.12);
    color: var(--green-dark);
    border-radius: 8px;
    font-size: 24px;
}

.event-pile .text-block {
    --text-block-padding: 0;
    --text-block-gap: 2px;
    --text-block-justify-items: start;
}

.event-pile-category {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.event-pile-name {
    font-size: var(--pfont-size);
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}

/* Kudos Corner (What's On column) */
.kudos-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 8px;
    padding: 22px 22px 20px;
    border-radius: 8px;
    background: var(--navy-deep);
    color: #fff;
}

.kudos-card::before {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(116, 188, 74, 0.3), transparent 70%);
}

.kudos-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.kudos-head {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kudos-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    text-decoration: none;
    white-space: nowrap;
}

.kudos-more:hover {
    color: #fff;
    gap: 10px;
}

.kudos-more i { font-size: 14px; }

.kudos-sub {
    position: relative;
    z-index: 2;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
    margin-top: 4px;
    margin-bottom: 16px;
}

.kudos-message {
    position: relative;
    z-index: 2;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 18px;
}

.kudos-message,
.kudos-message p,
.kudos-message span,
.kudos-message li { color: #fff; }
.kudos-message p { margin: 0 0 12px; font-size: 14px; line-height: 1.3; }
.kudos-message p:last-child { margin-bottom: 0; }
.kudos-message a { color: var(--green); }

.kudos-who {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kudos-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    letter-spacing: 0.04em;
}

.kudos-who-name {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    letter-spacing: 0.02em;
}

.kudos-who-role {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin-top: 1px;
}

/* Kudos listing page cards (equal height, author pinned to bottom) */
.kudos-list-card {
    margin-top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.kudos-list-card .kudos-who { margin-top: auto; }

/* Page hero (used for listing/detail page titles) */
.page-hero {
    --container-padding: 32px 16px 16px 16px;
    --inner-gridtemplate: 1fr;
    --inner-justify-items: start;
    --inner-padding: 28px 36px;
    --inner-border-radius: 14px;
    --inner-background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 60%, var(--teal) 100%);
    --inner-text-color: #ffffff;
    --inner-gap: 10px;
    --main-title-font-size: var(--h1font-size);
    --main-title-line-height: var(--h1font-line-height);
    --main-title-color: #ffffff;
    --main-title-text-align: left;
}

.page-hero .inner-new {
    min-height: 200px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.breadcrumb-new {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
}

.breadcrumb-new li {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
}

.breadcrumb-new li + li::before {
    content: '/';
    margin-right: 8px;
    color: #ffffff;
}

.breadcrumb-new a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb-new a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Events listing grid (card per event, image on top) */
.events-grid {
    --container-padding: 0 16px 64px 16px;
    --inner-gap: 24px;

    --card-direction: column;
    --card-align-items: stretch;
    --card-justify-content: start;
    --card-gap: 0;

    --img-main-width: 100%;
    --img-main-height: 200px;
    --img-main-object-fit: cover;

    --text-block-padding: 16px;
    --text-block-justify-items: start;
    --text-block-gap: 8px;

    --link-border-border: 1px solid var(--line);
    --link-border-radius: 8px;
    --link-border-overflow: hidden;
    --link-border-border-hover: 1px solid var(--green-dark);
    --link-border-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.events-grid .inner-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    align-items: start;
}

.events-grid .link-border {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
}

/* Event detail: main article + latest events sidebar */
.event-detail {
    --container-padding: 0 16px 64px 16px;
}

.event-detail .inner-new {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    align-items: start;
}

.event-detail .column-new {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media screen and (max-width: 991px) {
    .event-detail .inner-new {
        grid-template-columns: 1fr;
    }
}

.article-body {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.article-body ul {
    margin-bottom: 0;
}

.article-body img.img-main {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
    object-fit: cover;
}

/* Page-hero meta row (date + action button) */
.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 8px;
}

.page-hero-btn {
    width: auto;
    max-width: none;
    padding: 10px 20px;
    height: auto;
    background-color: var(--green);
}

.page-hero-btn:hover {
    background-color: var(--green-dark);
    color: #ffffff;
}

/* Resource listing: topic filter sidebar + card grid */
.resource-list {
    --container-padding: 0 16px 64px 16px;

    --card-direction: column;
    --card-align-items: stretch;
    --card-justify-content: start;
    --card-gap: 0;

    --img-main-width: 100%;
    --img-main-height: 200px;
    --img-main-object-fit: cover;

    --text-block-padding: 16px;
    --text-block-justify-items: start;
    --text-block-gap: 8px;

    --link-border-border: 1px solid var(--line);
    --link-border-radius: 8px;
    --link-border-overflow: hidden;
    --link-border-border-hover: 1px solid var(--green-dark);
    --link-border-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resource-list .inner-new {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    align-items: start;
}

.resource-list .col-main {
    --column-new-gridtemplate: repeat(auto-fill, minmax(280px, 1fr));
    --column-new-gap: 24px;
    --column-new-align-content: start;
    min-width: 0;
}

.resource-list .link-border {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
}

@media screen and (max-width: 991px) {
    .resource-list .inner-new {
        grid-template-columns: 1fr;
    }
}

/* Topic tiles: clickable tiles with circular icon (matches testhome quicklinks) */
.topic-tiles {
    --container-padding: 0 16px 64px 16px;
}

.topic-tiles .inner-new {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 1400px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .topic-tiles .inner-new {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .topic-tiles .inner-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

.topic-tile {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 18px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--navy-deep);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.topic-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -10px rgba(0, 86, 149, 0.2);
    border-color: transparent;
    color: var(--navy-deep);
    text-decoration: none;
}

.topic-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 86, 149, 0.08), rgba(116, 188, 74, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--navy);
    font-size: 20px;
    transition: background 0.25s, color 0.25s;
}

.topic-tile:hover .topic-tile-icon {
    background: var(--navy);
    color: var(--green);
}

.topic-tile-label {
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: var(--navy-deep);
    text-transform: uppercase;
}

/* Single-column variant of .event-detail (no sidebar) */
.event-detail.single-col .inner-new {
    grid-template-columns: 1fr;
}

/* Policies detail: PDF embed, metadata table, read confirm form */
.policy-embed {
    margin: 24px 0;
    text-align: center;
}

.policy-embed embed {
    width: 100%;
    max-width: 100%;
    height: 80vh;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.policy-meta-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.policy-meta-table th,
.policy-meta-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.policy-meta-table tr:last-child th,
.policy-meta-table tr:last-child td {
    border-bottom: none;
}

.policy-meta-table th {
    width: 220px;
    background: var(--navy-deep);
    color: #ffffff;
    font-weight: 600;
}

.policy-confirm {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(116, 188, 74, 0.08);
    border: 1px solid var(--green);
    border-radius: 8px;
}

.policy-confirm label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    font-weight: 600;
    color: var(--navy-deep);
}

.policy-confirm input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Directory listing table */
.directory-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.directory-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

.directory-table thead tr {
    background: var(--green);
    color: #ffffff;
}

.directory-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--green-dark);
}

.directory-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.directory-table tbody tr:last-child td {
    border-bottom: none;
}

.directory-table tbody tr:hover {
    background: rgba(0, 86, 149, 0.04);
}

.directory-row-btn {
    width: auto;
    max-width: none;
    height: auto;
    padding: 6px 14px;
    font-size: 13px;
}

.directory-row-btn-danger {
    background-color: #d9534f;
}

.directory-row-btn-danger:hover {
    background-color: #c9302c;
    color: #ffffff;
}

.form-helper-text {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Brand sites grid (footer logos) */
.sites-grid {
    --container-padding: 32px 16px 48px 16px;
}

.sites-grid .inner-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 1400px;
}

.site-tile {
    flex: 1 1 0;
    min-width: 150px;
    max-width: 220px;
    aspect-ratio: 5 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -8px rgba(0, 86, 149, 0.2);
    border-color: transparent;
}

.site-tile img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(15%);
    opacity: 0.9;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.site-tile:hover img {
    filter: none;
    opacity: 1;
}

/* Cookie consent is styled by css/cookie-consent.css (banner + preferences
   modal, ported from TLC-2026 and loaded via $cookiehtml). */

/* 404 error page */
.error-page {
    --container-padding: 64px 16px;
}

.error-page .inner-new {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 60vh;
}

.error-card {
    width: 100%;
    max-width: 560px;
    padding: 48px 40px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 28px -10px rgba(0, 86, 149, 0.12);
    text-align: center;
}

.error-code {
    font-size: 120px;
    line-height: 1;
    font-weight: 800;
    background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.error-title {
    margin: 0 0 12px 0;
    color: var(--navy-deep);
    font-size: var(--h2font-size);
    line-height: var(--h2font-line-height);
    font-weight: 700;
}

.error-text {
    margin: 0 0 28px 0;
    color: var(--text-muted);
    font-size: var(--pfont-size);
    line-height: var(--pfont-line-height);
}

.error-btn {
    display: inline-flex;
    width: auto;
    max-width: none;
    padding: 12px 28px;
    height: auto;
    background-color: var(--green);
    gap: 8px;
}

.error-btn:hover {
    background-color: var(--green-dark);
    color: #ffffff;
}

/* Thank-you success card */
.thankyou-card {
    text-align: center;
    padding: 40px 32px;
}

.thankyou-img {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.thankyou-message {
    margin: 0 0 24px 0;
    color: var(--navy-deep);
    font-size: var(--h2font-size);
    line-height: var(--h2font-line-height);
    font-weight: 700;
}

.thankyou-btn {
    display: inline-flex;
    width: auto;
    max-width: none;
    padding: 12px 32px;
    height: auto;
    background-color: var(--green);
}

.thankyou-btn:hover {
    background-color: var(--green-dark);
    color: #ffffff;
}

/* Staff sign-in kiosk */
.stafflog-card {
    text-align: center;
    padding: 32px;
}

.stafflog-greeting {
    margin: 0 0 24px 0;
    color: var(--navy-deep);
    font-size: var(--h2font-size);
    line-height: var(--h2font-line-height);
    font-weight: 700;
}

.stafflog-btn {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 32px 16px;
    height: auto;
    font-size: 20px;
    background-color: var(--green);
}

.stafflog-btn:hover {
    background-color: var(--green-dark);
    color: #ffffff;
}

/* EPA stages list */
.epa-stages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.epa-stages li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
}

.epa-stages li.selected {
    background: var(--navy-deep);
    color: #ffffff;
    border-color: var(--navy-deep);
}

.epa-stages li i {
    font-size: 18px;
    color: var(--green);
}

.epa-stages li.selected i {
    color: var(--green);
}

/* Image grid (repository / learner resources) */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.repository-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.repository-folder-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--navy-deep);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.repository-folder-tile:hover {
    transform: translateY(-2px);
    border-color: var(--navy);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.repository-folder-icon {
    font-size: 48px;
    color: var(--navy);
    line-height: 1;
}

.repository-folder-name {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    word-break: break-word;
}

.image-grid-tile {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-grid-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

button.image-grid-tile {
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.image-modal.is-open {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 48, 80, 0.75);
}

.image-modal-content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    max-width: min(1100px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.image-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.75);
}

.image-modal-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    background: #f5f7fa;
}

.image-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.image-modal-name {
    margin: 0;
    color: var(--navy-deep);
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
    flex: 1;
}

.image-modal-download {
    flex-shrink: 0;
    width: auto;
    max-width: none;
    padding: 10px 20px;
}

/* Login page */
.login-page {
    --container-padding: 64px 16px;
}

.login-page .inner-new {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.login-card {
    width: 100%;
    max-width: 560px;
    padding: 56px 56px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 28px -10px rgba(0, 86, 149, 0.15);
}

.login-title {
    margin: 0 0 32px 0;
    color: var(--navy-deep);
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    text-align: center;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 24px 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(0, 86, 149, .08);
    border: 1px solid rgba(0, 86, 149, .2);
    color: var(--navy-deep);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.login-alert .login-alert-icon {
    font-size: 18px;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 1px;
}

.login-alert-body { flex: 1; }

.login-alert-title {
    font-weight: 700;
    margin: 0 0 2px;
    font-size: 14px;
}

.login-alert-danger {
    background: rgba(217, 83, 79, .10);
    border-color: rgba(217, 83, 79, .35);
    color: #991b1b;
}

.login-submit {
    width: auto;
    max-width: none;
    margin: 24px auto 0 auto;
    padding: 12px 40px;
}

/* Directory profile card */
.profile-card .profile-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

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

.profile-photo img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 3px solid var(--line);
    display: block;
}

.profile-heading {
    margin: 0 0 16px 0;
    color: var(--navy-deep);
    font-size: var(--h3font-size);
    line-height: var(--h3font-line-height);
    font-weight: 700;
}

.profile-field {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.08em;
}

.profile-value {
    color: var(--text);
    font-size: var(--pfont-size);
    word-break: break-word;
}

@media (max-width: 600px) {
    .profile-field {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Form pane (used by ticket create / add comment) */
.form-pane .labelstyle,
.form-pane label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--navy-deep);
    font-size: 14px;
}

.form-pane .form-control,
.form-pane input.form-control,
.form-pane input.form-control:focus {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 18px;
    line-height: 1.4;
    background: #ffffff;
    color: var(--text);
    height: auto;
}

.form-pane textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-pane .form-control:focus {
    outline: none;
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(116, 188, 74, 0.15);
}

.form-submit-btn {
    margin-top: 20px;
    width: auto;
    max-width: none;
    padding: 12px 24px;
    height: auto;
    background-color: var(--green);
}

.form-submit-btn:hover {
    background-color: var(--green-dark);
    color: #ffffff;
}

/* Support ticket view: meta grid and comments */
.ticket-title {
    margin: 0 0 16px 0;
    color: var(--navy-deep);
    font-size: var(--h2font-size);
    line-height: var(--h2font-line-height);
    font-weight: 700;
}

.ticket-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0, 86, 149, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
}

@media (max-width: 700px) {
    .ticket-meta {
        grid-template-columns: 1fr;
    }
}

.ticket-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-meta-label {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.ticket-meta-value {
    color: var(--text);
    font-size: var(--pfont-size);
}

.ticket-details {
    padding-top: 8px;
    border-top: 1px solid var(--line);
    color: var(--text);
}

/* Ticket comments column */
.ticket-comments-col {
    --column-new-justify-items: stretch;
    --column-new-gap: 12px;
    --column-new-align-content: start;
}

.ticket-comment {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #ffffff;
}

.ticket-comment-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 6px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.ticket-comment-body {
    margin: 0;
    color: var(--text);
    font-size: 14px;
}

.ticket-no-comments {
    color: var(--text-muted);
    font-style: italic;
}

.ticket-add-comment-title {
    margin: 16px 0 8px 0;
    color: var(--navy-deep);
    font-size: var(--h3font-size);
    font-weight: 700;
}

.article-intro {
    margin-bottom: 16px;
}

.article-notes {
    margin-top: 16px;
}

