/* ============================================================================
   T1 Solutions — shared "Directory Lister" theme (document sites)
   In line with test1solutions.com (navy / cyan, Rubik, no borders).
   Byte-identical on both document sites; per-site texts/data live in
   site-config.php next to index.php, not in here.
   ========================================================================= */

:root {
    --t1-navy:        #1B324B;
    --t1-navy-dark:   #142434;
    --t1-cyan:        #3ABFF0;
    --t1-blue-link:   #1C59A2;
    --t1-text:        #5A5A58;
    --t1-text-dark:   #1B324B;
    --t1-bg-light:    #F2F6F9;
    --t1-bg-white:    #FFFFFF;
    --t1-shadow:      0 2px 10px rgba(27, 50, 75, 0.08);
    --t1-shadow-hover:0 6px 20px rgba(27, 50, 75, 0.14);
    --t1-radius:      10px;
    --t1-max-width:   1180px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: var(--t1-bg-light);
    color: var(--t1-text);
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

a {
    color: var(--t1-blue-link);
    text-decoration: none;
}

img {
    max-width: 100%;
}

.t1-container {
    max-width: var(--t1-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Focus visibility (accessibility) */
a:focus-visible,
input:focus-visible,
button:focus-visible {
    outline: 2px solid var(--t1-cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ----------------------------------------------------------------------- */
/* HERO (top bar + title band)                                              */
/* ----------------------------------------------------------------------- */

.t1-hero {
    background: var(--t1-navy);
    color: #fff;
}

.t1-topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.t1-topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 16px;
}

.t1-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.t1-logo {
    height: 34px;
    width: auto;
}

.t1-topbar__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.t1-lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.t1-lang-switch__link {
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 2px;
}

.t1-lang-switch__link:hover {
    color: #fff;
}

.t1-lang-switch__link.is-active {
    color: var(--t1-cyan);
}

.t1-lang-switch__sep {
    color: rgba(255, 255, 255, 0.3);
}

.t1-back-link {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.t1-back-link:hover {
    color: var(--t1-cyan);
}

.t1-hero__content {
    padding: 40px 24px 44px;
}

.t1-breadcrumb {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 18px;
}

.t1-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.t1-breadcrumb a:hover {
    color: var(--t1-cyan);
}

.t1-breadcrumb span[aria-hidden] {
    margin: 0 8px;
    opacity: 0.5;
}

.t1-breadcrumb span[aria-current] {
    color: #fff;
}

.t1-eyebrow {
    color: var(--t1-cyan);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.t1-h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #fff;
    max-width: 720px;
}

.t1-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 28px;
    max-width: 620px;
}

.t1-search {
    position: relative;
    max-width: 440px;
}

.t1-search__icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: rgba(27, 50, 75, 0.45);
    pointer-events: none;
}

.t1-search__input {
    width: 100%;
    background: #fff;
    color: var(--t1-text-dark);
    border: 0;
    border-radius: 999px;
    padding: 13px 18px 13px 44px;
    font-family: inherit;
    font-size: 14px;
    box-shadow: var(--t1-shadow);
}

.t1-search__input::placeholder {
    color: #9AA7B4;
}

.t1-search__input:focus-visible {
    outline: 2px solid var(--t1-cyan);
    outline-offset: 2px;
}

/* ----------------------------------------------------------------------- */
/* MAIN                                                                     */
/* ----------------------------------------------------------------------- */

.t1-main {
    flex: 1 0 auto;
    padding: 40px 0 64px;
}

.t1-alert {
    background: #fff;
    border-radius: var(--t1-radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: var(--t1-shadow);
    color: #B3261E;
    font-weight: 500;
}

.t1-empty-msg {
    background: #fff;
    border-radius: var(--t1-radius);
    padding: 32px;
    text-align: center;
    color: var(--t1-text);
    box-shadow: var(--t1-shadow);
}

/* ----------------------------------------------------------------------- */
/* ROOT VIEW — folder tiles                                                 */
/* ----------------------------------------------------------------------- */

.t1-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.t1-tile {
    background: var(--t1-bg-white);
    border-radius: var(--t1-radius);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--t1-shadow);
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.t1-tile,
.t1-tile:hover,
.t1-tile:focus-visible,
.t1-tile * {
    text-decoration: none;
}

.t1-tile:hover,
.t1-tile:focus-visible {
    background: var(--t1-navy);
    box-shadow: var(--t1-shadow-hover);
    transform: translateY(-2px);
}

.t1-tile:hover .t1-tile__number,
.t1-tile:focus-visible .t1-tile__number,
.t1-tile:hover .t1-tile__count,
.t1-tile:focus-visible .t1-tile__count {
    color: #B8C4D0;
}

.t1-tile__number {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1-cyan);
    letter-spacing: 0.04em;
}

.t1-tile__name {
    font-size: 19px;
    font-weight: 600;
    color: var(--t1-text-dark);
    line-height: 1.3;
    transition: color 0.18s ease;
}

.t1-tile:hover .t1-tile__name,
.t1-tile:focus-visible .t1-tile__name {
    color: #fff;
}

.t1-tile__count {
    font-size: 13px;
    color: var(--t1-text);
    margin-top: 4px;
}

.t1-grid--sub {
    margin-bottom: 28px;
}

/* ----------------------------------------------------------------------- */
/* FOLDER VIEW — document cards                                             */
/* ----------------------------------------------------------------------- */

.t1-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.t1-card {
    background: var(--t1-bg-white);
    border-radius: var(--t1-radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--t1-shadow);
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    color: inherit;
}

.t1-card,
.t1-card:hover,
.t1-card:focus-visible,
.t1-card * {
    text-decoration: none;
}

.t1-card:hover,
.t1-card:focus-visible {
    background: var(--t1-navy);
    box-shadow: var(--t1-shadow-hover);
    transform: translateY(-2px);
}

.t1-card:hover .t1-card__type,
.t1-card:focus-visible .t1-card__type,
.t1-card:hover .t1-card__size,
.t1-card:focus-visible .t1-card__size {
    color: #B8C4D0;
}

/* ----------------------------------------------------------------------- */
/* PRESS REVIEW — clipping cards (image thumbnail or PDF badge)            */
/* ----------------------------------------------------------------------- */

.t1-press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.t1-press-card {
    background: var(--t1-bg-white);
    border-radius: var(--t1-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--t1-shadow);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    color: inherit;
}

.t1-press-card,
.t1-press-card:hover,
.t1-press-card:focus-visible,
.t1-press-card * {
    text-decoration: none;
}

.t1-press-card:hover,
.t1-press-card:focus-visible {
    background: var(--t1-navy);
    box-shadow: var(--t1-shadow-hover);
    transform: translateY(-2px);
}

.t1-press-card:hover .t1-press-card__date,
.t1-press-card:focus-visible .t1-press-card__date {
    color: #B8C4D0;
}

.t1-press-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--t1-bg-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t1-press-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.t1-press-card__thumb--pdf {
    background: var(--t1-navy);
}

.t1-press-card__thumb--pdf .t1-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.t1-press-card__thumb-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(27, 50, 75, 0.82);
    color: #fff;
}

.t1-press-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
}

.t1-press-card__date {
    font-size: 12px;
    font-weight: 700;
    color: var(--t1-cyan);
    letter-spacing: 0.03em;
}

.t1-press-card__tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.t1-press-card__tag--award {
    background: #FDECC8;
    color: #8A5A00;
}

.t1-press-card__tag--certificate {
    background: #DCEEFB;
    color: var(--t1-navy);
}

.t1-press-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1-text-dark);
    line-height: 1.4;
    transition: color 0.18s ease;
}

.t1-press-card:hover .t1-press-card__title,
.t1-press-card:focus-visible .t1-press-card__title {
    color: #fff;
}

/* ----------------------------------------------------------------------- */
/* VIDEO — clip cards                                                       */
/* ----------------------------------------------------------------------- */

.t1-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.t1-video-card {
    background: var(--t1-bg-white);
    border-radius: var(--t1-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--t1-shadow);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    color: inherit;
}

.t1-video-card,
.t1-video-card:hover,
.t1-video-card:focus-visible,
.t1-video-card * {
    text-decoration: none;
}

.t1-video-card:hover,
.t1-video-card:focus-visible {
    background: var(--t1-navy);
    box-shadow: var(--t1-shadow-hover);
    transform: translateY(-2px);
}

.t1-video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--t1-navy), var(--t1-navy-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.t1-video-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.t1-video-card__thumb::after {
    /* subtle darken so the badge/play icon stay legible over any poster image */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 22, 32, 0.28);
}

.t1-video-card__thumb .t1-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

.t1-video-card__play {
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.t1-video-card__title {
    padding: 14px 16px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--t1-text-dark);
    line-height: 1.4;
    transition: color 0.18s ease;
}

.t1-video-card:hover .t1-video-card__title,
.t1-video-card:focus-visible .t1-video-card__title {
    color: #fff;
}

.t1-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--t1-navy);
}

.t1-badge--video {
    background: var(--t1-cyan);
    color: var(--t1-navy);
}

.t1-card__body {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.t1-card__code {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1-cyan);
    letter-spacing: 0.03em;
}

.t1-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--t1-text-dark);
    line-height: 1.35;
    transition: color 0.18s ease;
}

.t1-card:hover .t1-card__name,
.t1-card:focus-visible .t1-card__name {
    color: #fff;
}

.t1-card__type {
    font-size: 13px;
    color: var(--t1-text);
}

.t1-card__langs {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.t1-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--t1-bg-light);
    color: var(--t1-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.t1-card__meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.t1-card__size {
    font-size: 11px;
    color: #9AA7B4;
}

.t1-card__open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--t1-blue-link);
    white-space: nowrap;
}

.t1-card:hover .t1-card__open,
.t1-card:focus-visible .t1-card__open {
    color: var(--t1-cyan);
}

/* ----------------------------------------------------------------------- */
/* FOOTER                                                                   */
/* ----------------------------------------------------------------------- */

.t1-footer {
    flex-shrink: 0;
    background: var(--t1-navy);
    border-top: 2px solid var(--t1-cyan);
    color: rgba(255, 255, 255, 0.8);
}

.t1-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 40px 24px;
}

.t1-footer__logo-link {
    line-height: 0;
    justify-self: start;
}

.t1-footer__logo {
    height: 30px;
    width: auto;
}

.t1-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
    justify-self: center;
}

.t1-footer__links a {
    color: rgba(255, 255, 255, 0.8);
}

.t1-footer__links a:hover {
    color: var(--t1-cyan);
}

.t1-footer__social {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.t1-footer__social-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-right: 4px;
}

.t1-footer__social a {
    color: #fff;
    display: inline-flex;
}

.t1-footer__social a:hover {
    color: var(--t1-cyan);
}

.t1-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
}

.t1-footer__bottom p {
    max-width: var(--t1-max-width);
    margin: 0 auto;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------------------------- */
/* RESPONSIVE                                                               */
/* ----------------------------------------------------------------------- */

@media (max-width: 900px) {

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

    .t1-cards {
        grid-template-columns: 1fr;
    }

    .t1-h1 {
        font-size: 28px;
    }

}

@media (max-width: 600px) {

    .t1-container {
        padding: 0 16px;
    }

    .t1-topbar__row {
        padding: 14px 16px;
    }

    .t1-topbar__actions {
        gap: 12px;
    }

    .t1-back-link {
        display: none;
    }

    .t1-hero__content {
        padding: 28px 16px 32px;
    }

    .t1-h1 {
        font-size: 24px;
    }

    .t1-subtitle {
        font-size: 14px;
    }

    .t1-grid {
        grid-template-columns: 1fr;
    }

    .t1-card {
        flex-wrap: wrap;
    }

    .t1-card__meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-left: 0;
    }

    .t1-press-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .t1-video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .t1-footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
    }

    .t1-footer__logo-link,
    .t1-footer__links,
    .t1-footer__social {
        justify-self: center;
    }

}

@media (max-width: 360px) {

    .t1-h1 {
        font-size: 21px;
    }

    .t1-card__meta {
        margin-left: 0;
    }

}

/* ----------------------------------------------------------------------- */
/* LIGHTBOX (video / pdf / image modal)                                    */
/* ----------------------------------------------------------------------- */

.t1-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 18, 28, 0.78);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.t1-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.t1-lightbox__panel {
    background: #fff;
    border-radius: var(--t1-radius);
    max-width: 94vw;
    max-height: 92vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: scale(0.96) translateY(8px);
    transition: transform 0.22s ease;
}

.t1-lightbox.is-open .t1-lightbox__panel {
    transform: scale(1) translateY(0);
}

.t1-lightbox__panel--video,
.t1-lightbox__panel--pdf {
    width: min(1000px, 94vw);
}

.t1-lightbox__panel--image {
    width: auto;
}

.t1-lightbox__header {
    background: var(--t1-navy);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    flex: 0 0 auto;
}

.t1-lightbox__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t1-lightbox__action {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    padding: 4px 2px;
}

button.t1-lightbox__action {
    background: transparent;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.t1-lightbox__action:hover,
.t1-lightbox__action:focus-visible {
    color: var(--t1-cyan);
}

button.t1-lightbox__action[disabled] {
    opacity: 0.6;
    cursor: default;
}

.t1-lightbox__close {
    background: transparent;
    border: 0;
    color: #fff;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.t1-lightbox__close:hover,
.t1-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: var(--t1-cyan);
}

.t1-lightbox__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1620;
    overflow: auto;
}

.t1-lightbox__body video {
    max-width: 100%;
    max-height: 82vh;
    display: block;
}

.t1-lightbox__body iframe {
    width: min(1000px, 90vw);
    height: 82vh;
    border: 0;
    display: block;
    background: #fff;
}

.t1-lightbox__body img {
    max-width: 90vw;
    max-height: 82vh;
    display: block;
    object-fit: contain;
}

body.t1-lightbox-open {
    overflow: hidden;
}

@media (max-width: 600px) {

    .t1-lightbox {
        padding: 0;
    }

    .t1-lightbox__panel {
        max-height: 100vh;
        border-radius: 0;
    }

    .t1-lightbox__body iframe {
        width: 100vw;
        height: 100%;
    }

}
