/* =========================================================
   TALI PUBLIC WEBSITE
   HARMONISED PUBLIC STYLESHEET

   Primary public layouts:
   - Institutional homepage
   - News / publication cards
   - Article / content pages
   - Public media components
   - Footer

   Homepage authority:
   home.php

   Content authority:
   content.php / news.php

   Design system:
   structure -> predictability -> calm
========================================================= */


/* =========================================================
   01. GLOBAL BASE
========================================================= */

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

:root {
    --color-primary: #063c23;
    --color-primary-light: #07552f;
    --color-primary-dark: #032a19;

    --color-accent: #d76b08;
    --color-accent-dark: #c1440e;

    --color-text: #17211b;
    --color-text-muted: #526158;
    --color-text-light: #68736c;

    --color-border: #e5e8e3;

    --color-surface: #ffffff;
    --color-surface-soft: #f5f3ec;
    --color-surface-green: #f5f7f3;

    --shadow-soft:
        0 12px 35px rgba(0, 0, 0, 0.06);

    --shadow-card:
        0 16px 35px rgba(6, 60, 35, 0.08);

    --shadow-card-hover:
        0 22px 50px rgba(6, 60, 35, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-xxl: 22px;

    --content-width: 1280px;

    --page-padding:
        max(5vw, calc((100vw - var(--content-width)) / 2));

    --section-padding-y: 110px;
}


/* =========================================================
   BODY
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--color-text);
    background: #fff;

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

p {
    margin-top: 0;
}

section {
    width: 100%;
}


/* =========================================================
   02. SHARED PUBLIC CONTAINER
========================================================= */

.public-container {
    width: min(
        calc(100% - 10vw),
        var(--content-width)
    );

    margin-inline: auto;
}


/* =========================================================
   03. TOP NAVIGATION
========================================================= */

.topbar {
    position: relative;
    z-index: 100;

    min-height: 76px;

    display: flex;
    align-items: center;

    gap: 30px;

    padding-inline: var(--page-padding);

    border-bottom: 1px solid var(--color-border);

    background: #fff;
}

.brand {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;

    margin-right: auto;

    text-decoration: none;
}

.mark {width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary-light); color: #fff; font-size: 20px; font-weight: 800;}
.brand-name {color: var(--color-primary); font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -1px; white-space: nowrap;}
.topbar nav {display: flex; align-items: center; gap: 22px; white-space: nowrap;}
.topbar nav a {position: relative; color: #222; font-size: 14px; line-height: 1; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease;}
.topbar nav a:hover {color: var(--color-primary-light);}
.topbar nav .active {color: var(--color-primary-light); font-weight: 700;}
.topbar select {min-width: 80px; border: 0; padding: 6px 8px; background: #fff; color: var(--color-text); cursor: pointer; outline: none;}

/* GENERAL EYEBROW */
.eyebrow {margin-bottom: 14px; color: var(--color-accent); font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: 1.5px; text-transform: uppercase;}

/* INSTITUTIONAL HOMEPAGE HERO */
.hero.institutional-hero {position: relative; isolation: isolate; min-height: 610px; display: flex; align-items: center; padding-block: 90px; padding-inline: var(--page-padding); overflow: hidden; background: #edf5ef;}

/* HERO IMAGE WRAPPER */
.hero-image {position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;}

/* HERO MEDIA COMPONENT: The general .tali-featured-media component is used by article pages as well. These overrides therefore remain scoped strictly to .hero-image. */
.hero-image .tali-featured-media {position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: transparent;}
.hero-image .tali-featured-media img, .hero-image .tali-featured-media-image {display: block; width: 100%; height: 100%; object-fit: cover;
 object-position:
        var(--hero-image-position-x, 62%)
        var(--hero-image-position-y, 50%);
    filter:
        brightness(var(--hero-image-brightness, 0.96))
        contrast(var(--hero-image-contrast, 1.02))
        saturate(var(--hero-image-saturation, 0.85))
        sepia(var(--hero-image-sepia, 0))
        hue-rotate(var(--hero-image-hue, 0deg));
    opacity:
        var(--hero-image-opacity, 1);
    transform: scale(1.01);
    transform-origin: center;
}

/* HERO IMAGE CONTROLS: These can be changed without modifying home.php. */
.institutional-hero {
    --hero-image-brightness: 0.96;
    --hero-image-contrast: 1.02;
    --hero-image-saturation: 0.85;
    --hero-image-sepia: 0;
    --hero-image-hue: 0deg;
    --hero-image-opacity: 1;
    --hero-image-position-x: 62%;
    --hero-image-position-y: 50%;
}

/* HERO READABILITY OVERLAY */
.institutional-hero::after {content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.96) 24%,
            rgba(255, 255, 255, 0.88) 42%,
            rgba(255, 255, 255, 0.58) 58%,
            rgba(255, 255, 255, 0.18) 78%,
            rgba(255, 255, 255, 0) 100%
        );
}

/* HERO CONTENT */
.institutional-hero > .copy {position: relative; z-index: 2; width: min(100%, 760px); margin: 0; padding: 0;}
.institutional-hero-copy h1 {max-width: 760px; margin: 0 0 22px; color: var(--color-primary); font-size: clamp(44px, 5.4vw, 68px); line-height: 0.98; letter-spacing: -0.045em;}
.institutional-hero-copy p {max-width: 650px; margin: 0; color: #334139; font-size: 19px; line-height: 1.7;}

/* HERO ACTIONS */
.hero-actions {display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px;}
.hero-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 800; line-height: 1; text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;}
.hero-action:hover {transform: translateY(-2px);}
.hero-action-primary {background: var(--color-primary); color: #fff; box-shadow: 0 10px 25px rgba(6, 60, 35, 0.16);}
.hero-action-primary:hover {background: var(--color-primary-light); box-shadow: 0 14px 30px rgba(6, 60, 35, 0.20);}
.hero-action-secondary {border: 1px solid rgba(6, 60, 35, 0.20); background: rgba(255, 255, 255, 0.82); color: var(--color-primary);}
.hero-action-secondary:hover {border-color: rgba(6, 60, 35, 0.35); background: #fff;}

/* LEGACY WORD OF THE DAY: Preserved for existing public pages/components. */
.word-of-day {position: relative; z-index: 2; align-self: center; width: 100%; max-width: 360px; padding: 32px; border: 1px solid rgba(6, 60, 35, 0.12); border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.88); box-shadow: 0 18px 50px rgba(6, 60, 35, 0.10); backdrop-filter: blur(8px);}
.word-label {margin-bottom: 22px; color: #6c7b72; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;}
.word-of-day h2 {margin: 0; color: var(--color-primary); font-size: 42px; line-height: 1;}
.word-language {margin-top: 8px; color: var(--color-accent-dark); font-size: 14px; font-weight: 700;}
.word-definition {margin: 20px 0 24px; color: #35443c; font-size: 17px; line-height: 1.65;}
.word-example-label {margin-bottom: 6px; color: #6c7b72; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;}
.word-example {margin: 0 0 26px; color: #4b5a52; font-size: 15px; line-height: 1.6; font-style: italic;}
.word-more {display: inline-flex; align-items: center; gap: 10px; color: var(--color-primary); font-size: 14px; font-weight: 700; text-decoration: none;}
.word-more .arrow {transition: transform 0.2s ease;}
.word-more:hover .arrow {transform: translateX(5px);}

/* GENERAL HOMEPAGE SECTIONS */
.home-section {position: relative; padding-block: var(--section-padding-y); padding-inline: var(--page-padding);}

/* SHARED SECTION HEADING: All homepage section headings now use the same content
   alignment system as their grids. */
.home-section > .section-heading, .tools-section > .section-heading, .languages-section > .section-heading, .news-section > .section-heading {width: 100%; max-width: var(--content-width); margin-inline: auto; margin-bottom: 55px;}
.section-heading {max-width: 720px;}
.section-heading h2 {margin: 8px 0 14px; color: var(--color-primary); font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.035em;}
.section-heading p {max-width: 650px; margin: 0; color: var(--color-text-muted); font-size: 17px; line-height: 1.7;}

/* WHY TALI SECTION */
.home-why-section {background: #fff;}
.home-why-section > .section-heading {max-width: 900px; text-align: center;}
.home-why-section .section-heading p {margin-inline: auto;}
.primary-link {display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--color-primary); font-size: 15px; font-weight: 700; text-decoration: none; transition: transform 0.2s ease, opacity 0.2s ease;}
.primary-link:hover {transform: translateX(4px); color: var(--color-accent);}

/* WHAT IS TALI / ABOUT SECTION */
.home-about-section {background: linear-gradient(135deg, #f5f7f3 0%, #ffffff 100%);}


/* SHARED TWO-COLUMN HOMEPAGE LAYOUT */
.home-two-column {width: 100%; max-width: var(--content-width); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; margin-inline: auto;}
.home-two-column > * {min-width: 0;}
.home-two-column h2 {margin-top: 0; color: var(--color-primary); font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.035em;}
.home-large-copy {margin: 0; color: var(--color-text-muted); font-size: 20px; line-height: 1.8;}

/* OUR WORK SECTION */
.home-work-section {background: #fff;}
.home-work-grid {width: 100%; max-width: var(--content-width); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-inline: auto;}
.home-work-card {position: relative; min-height: 245px; padding: 32px; overflow: hidden; border: 1px solid rgba(6, 60, 35, 0.10); border-radius: var(--radius-xxl); background: #fff; box-shadow: 0 10px 30px rgba(6, 60, 35, 0.045); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;}
.home-work-card:hover {transform: translateY(-6px); border-color: rgba(6, 60, 35, 0.16); box-shadow: 0 22px 45px rgba(6, 60, 35, 0.10);}
.home-card-number {display: inline-block; margin-bottom: 55px; color: #9aa59e; font-size: 11px; font-weight: 800; letter-spacing: 0.14em;}
.home-work-card h3 {margin: 0 0 13px; color: var(--color-primary); font-size: 23px; line-height: 1.2;}
.home-work-card p {margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.7;}

/* TOOLS - EXPLORE TALI */
.tools-section {position: relative; overflow: hidden; padding-block: 110px 120px; padding-inline: var(--page-padding); background: radial-gradient(circle at 90% 10%, rgba(215, 107, 8, 0.08), transparent 30%), #fff;}
.tools {position: relative; z-index: 2; width: 100%; max-width: var(--content-width); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-inline: auto;}
.tool-card {position: relative; min-width: 0; min-height: 205px; display: flex; flex-direction: column; padding: 30px; overflow: hidden; border: 1px solid rgba(6, 60, 35, 0.10); border-radius: var(--radius-xl); background: linear-gradient(145deg, #fff 0%, #fbfcfa 100%); box-shadow: 0 8px 25px rgba(6, 60, 35, 0.045); transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;}
.tool-card::before {content: ""; position: absolute; width: 130px; height: 130px; right: -55px; top: -55px; border-radius: 50%; background: rgba(6, 60, 35, 0.045); transition: transform 0.35s ease, background 0.35s ease;}
.tool-card::after {content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--color-accent); transition: width 0.3s ease;}
.tool-card:hover {transform: translateY(-7px); border-color: rgba(6, 60, 35, 0.18); box-shadow: 0 20px 45px rgba(6, 60, 35, 0.11);}
.tool-card:hover::before {transform: scale(1.8); background: rgba(215, 107, 8, 0.06);}
.tool-card:hover::after {width: 100%;}
.tool-number {position: absolute; top: 20px; right: 24px; color: #9aa59e; font-size: 11px; font-weight: 800; letter-spacing: 0.12em;}
.tool-card .icon {position: relative; z-index: 2; width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; margin: 0; border-radius: 14px; background: linear-gradient(135deg, #edf6ef, #f7f1e8); color: var(--color-primary-light); font-size: 17px; box-shadow: inset 0 0 0 1px rgba(6, 60, 35, 0.06);}
.tool-card-content {position: relative; z-index: 2; margin-top: auto; padding-top: 28px; padding-right: 35px;}
.tool-card h3 {margin: 0; color: var(--color-primary); font-size: 20px; line-height: 1.15;}
.tool-card p {margin: 8px 0 0; max-width: 230px; color: #66736c; font-size: 13px; line-height: 1.6;}
.card-arrow {position: absolute; right: 26px; bottom: 25px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(6, 60, 35, 0.10); border-radius: 50%; color: var(--color-primary); font-size: 16px; transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;}
.tool-card:hover .card-arrow {
    transform:
        translate(3px, -3px);

    background: var(--color-primary);

    color: #fff;
}


/* =========================================================
   13. LANGUAGES
========================================================= */

.languages-section {
    position: relative;

    overflow: hidden;

    padding-block:
        115px 125px;

    padding-inline:
        var(--page-padding);

    background:
        linear-gradient(
            135deg,
            #f3f1e8 0%,
            #f7f5ee 45%,
            #eef4ef 100%
        );
}

.languages-section::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    top: -180px;

    border-radius: 50%;

    border: 1px solid
        rgba(6, 60, 35, 0.08);
}

.languages-section::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    left: -130px;
    bottom: -130px;

    border-radius: 50%;

    background:
        rgba(215, 107, 8, 0.05);
}

.language-cards {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: var(--content-width);

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-inline: auto;
}

.language-card {
    position: relative;

    min-width: 0;
    min-height: 310px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 28px;

    overflow: hidden;

    border: 1px solid
        rgba(6, 60, 35, 0.10);

    border-radius: var(--radius-xxl);

    background:
        rgba(255, 255, 255, 0.78);

    backdrop-filter: blur(8px);

    box-shadow:
        0 10px 30px rgba(6, 60, 35, 0.045);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.language-card::before {
    content: "";

    position: absolute;

    right: -45px;
    top: -45px;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background:
        rgba(6, 60, 35, 0.055);

    transition:
        transform 0.4s ease;
}

.language-card:hover {
    transform: translateY(-8px);

    background:
        rgba(255, 255, 255, 0.95);

    box-shadow:
        var(--shadow-card-hover);
}

.language-card:hover::before {
    transform: scale(1.7);
}

.language-code {
    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    width: fit-content;

    padding: 7px 10px;

    border-radius: 7px;

    background: var(--color-primary);

    color: #fff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.15em;
}

.language-card-content {
    position: relative;

    z-index: 2;

    min-width: 0;
}

.language-card h3 {
    margin: 0 0 8px;

    color: var(--color-primary);

    font-size: 30px;

    line-height: 1;

    letter-spacing: -0.025em;
}

.language-native-name {
    margin-bottom: 14px;

    color: #6b776f;

    font-size: 13px;

    font-style: italic;
}

.language-card p {
    max-width: 220px;

    margin: 0 0 18px;

    color: #58655e;

    font-size: 14px;

    line-height: 1.65;
}

.language-card a {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;
}

.language-card a span {
    display: inline-block;

    transition:
        transform 0.25s ease;
}

.language-card:hover a span {
    transform:
        translate(3px, -3px);
}

.language-coverage {
    display: inline-flex;

    width: fit-content;

    margin-top: 8px;

    padding: 8px 11px;

    border-radius: 8px;

    background:
        rgba(6, 60, 35, 0.06);

    color: var(--color-primary);

    font-size: 12px;

    font-weight: 700;

    line-height: 1.4;
}

.language-coverage-empty {
    color: #6c756f;

    background:
        rgba(0, 0, 0, 0.035);
}

.language-empty {
    grid-column: 1 / -1;

    padding: 40px;

    text-align: center;

    color: var(--color-text-muted);
}


/* =========================================================
   14. RESEARCH & PRESERVATION
========================================================= */

.research-section {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(0, 0.8fr);

    gap: 80px;

    align-items: center;

    padding-block:
        var(--section-padding-y);

    padding-inline:
        var(--page-padding);
}

.research-section > * {
    min-width: 0;
}

.home-research-section {
    background:
        linear-gradient(
            135deg,
            #f5f7f3 0%,
            #fff 100%
        );
}

.research-section h2 {
    max-width: 800px;

    margin: 12px 0 20px;

    color: var(--color-primary);

    font-size:
        clamp(
            34px,
            4vw,
            58px
        );

    line-height: 1.05;

    letter-spacing: -0.035em;
}

.research-section p {
    max-width: 700px;

    color: var(--color-text-muted);

    font-size: 18px;

    line-height: 1.7;
}

.research-process {
    display: grid;

    gap: 0;

    width: 100%;

    border-top:
        1px solid
        rgba(6, 60, 35, 0.12);
}

.research-process-step {
    display: grid;

    grid-template-columns: 55px minmax(0, 1fr);

    gap: 18px;

    align-items: center;

    min-width: 0;

    padding: 17px 0;

    border-bottom:
        1px solid
        rgba(6, 60, 35, 0.12);
}

.research-process-step span {
    color: #9aa59e;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;
}

.research-process-step strong {
    color: var(--color-primary);

    font-size: 15px;

    line-height: 1.4;
}


/* =========================================================
   15. WHAT TALI HAS BUILT
========================================================= */

.home-built-section {
    background: #fff;
}

.built-grid {
    width: 100%;
    max-width: var(--content-width);

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-inline: auto;
}

.built-card {
    min-width: 0;
    min-height: 150px;

    padding: 26px;

    border:
        1px solid
        rgba(6, 60, 35, 0.08);

    border-radius: 18px;

    background: #f6f8f5;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.built-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px
        rgba(6, 60, 35, 0.07);
}

.built-card > span {
    display: block;

    margin-bottom: 28px;

    color: #9aa59e;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;
}

.built-card p {
    margin: 0;

    color: var(--color-primary);

    font-size: 15px;
    font-weight: 700;

    line-height: 1.55;
}


/* =========================================================
   16. RESPONSIBLE RESOURCE WORK
========================================================= */

.home-responsibility-section {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 80px;

    align-items: center;

    padding-block: 100px;

    padding-inline:
        var(--page-padding);

    background: var(--color-primary);

    color: #fff;
}

.home-responsibility-section > * {
    min-width: 0;
}

.home-responsibility-section h2 {
    max-width: 720px;

    margin: 12px 0 0;

    color: #fff;

    font-size:
        clamp(
            32px,
            4vw,
            52px
        );

    line-height: 1.08;

    letter-spacing: -0.035em;
}

.home-responsibility-section p {
    max-width: 650px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 17px;

    line-height: 1.8;
}

.home-responsibility-section .eyebrow {
    color: #e5a27e;
}


/* =========================================================
   17. LATEST NEWS & INSIGHTS
========================================================= */

.news-section {
    padding-block:
        100px 110px;

    padding-inline:
        var(--page-padding);

    background: var(--color-surface-soft);
}

.news-grid {
    width: 100%;
    max-width: var(--content-width);

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    margin-inline: auto;
}

.news-card {
    min-width: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        rgba(6, 60, 35, 0.08);

    border-radius: var(--radius-xl);

    background: #fff;

    box-shadow:
        0 8px 25px
        rgba(6, 60, 35, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 40px
        rgba(6, 60, 35, 0.08);
}


/* ---------------------------------------------------------
   NEWS MEDIA

   renderThumbnailMedia() outputs .tali-thumbnail-media.
--------------------------------------------------------- */

.news-card .tali-thumbnail-media {
    width: 100%;
    height: 220px;

    flex: 0 0 220px;

    margin: 0;

    overflow: hidden;

    border-radius: 0;

    background: #e8e6dc;
}

.news-card .tali-thumbnail-media-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.35s ease;
}

.news-card:hover
.tali-thumbnail-media-image {
    transform: scale(1.025);
}


/* ---------------------------------------------------------
   FALLBACK NEWS IMAGE
--------------------------------------------------------- */

.news-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e8e6dc;
}

.news-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.placeholder-image {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #e8e6dc;

    color: #7b847e;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}


/* ---------------------------------------------------------
   NEWS CONTENT
--------------------------------------------------------- */

.news-content {
    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 28px;
}

.news-category {
    color: var(--color-accent-dark);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.news-content h3 {
    margin: 12px 0;

    color: var(--color-primary);

    font-size: 23px;

    line-height: 1.2;
}

.news-content p {
    margin: 0 0 22px;

    color: #59655f;

    line-height: 1.6;
}

.news-content a {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    margin-top: auto;

    color: var(--color-primary);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.news-content a:hover {
    transform: translateX(4px);

    opacity: 0.75;
}

.news-empty {
    grid-column: 1 / -1;

    padding: 50px;

    text-align: center;

    color: var(--color-text-muted);
}


/* ---------------------------------------------------------
   VIEW ALL NEWS
--------------------------------------------------------- */

.news-more {
    width: 100%;
    max-width: var(--content-width);

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 30px auto 0;

    padding-top: 24px;

    border-top:
        1px solid
        rgba(0, 0, 0, 0.12);
}

.news-more a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding:
        0.65rem 1rem;

    border-radius: var(--radius-sm);

    background: var(--color-primary);

    color: #fff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease,
        background 0.15s ease;
}

.news-more a:hover {
    transform: translateY(-1px);

    opacity: 0.92;

    background: var(--color-primary-light);
}


/* =========================================================
   18. TALI MEDIA GALLERY
========================================================= */

.tali-media-gallery {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 1rem;

    margin: 2rem 0;
}

.tali-gallery-item {
    margin: 0;

    overflow: hidden;

    border-radius: 12px;
}

.tali-gallery-image {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: cover;
}

.tali-gallery-item figcaption {
    padding: 0.75rem;

    color: var(--color-text-muted);

    font-size: 0.9rem;
}


/* =========================================================
   19. PARTNER CTA
========================================================= */

.cta-section {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;

    padding-block: 80px;

    padding-inline:
        var(--page-padding);

    background: var(--color-primary);

    color: #fff;
}

.cta-section > * {
    min-width: 0;
}

.cta-section h2 {
    max-width: 750px;

    margin: 10px 0 15px;

    color: #fff;

    font-size:
        clamp(
            32px,
            4vw,
            52px
        );

    line-height: 1.05;

    letter-spacing: -0.035em;
}

.cta-section p {
    max-width: 650px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.80);

    line-height: 1.7;
}

.cta-section .eyebrow {
    color: #e5a27e;
}

.cta-actions {
    flex: 0 0 auto;

    display: flex;

    flex-direction: column;

    gap: 12px;

    min-width: 180px;
}

.cta-primary,
.cta-secondary {
    min-height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    border-radius: var(--radius-sm);

    text-align: center;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

.cta-primary {
    background: #fff;

    color: var(--color-primary);
}

.cta-secondary {
    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    background: transparent;

    color: #fff;
}

.cta-primary:hover,
.cta-secondary:hover {
    transform: translateY(-2px);

    opacity: 0.92;
}


/* =========================================================
   20. ORGANISATION SECTION
========================================================= */

.home-organisation-section {
    background: #f5f7f3;
}

.organisation-line {
    margin-top: 28px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(6, 60, 35, 0.12);

    color: var(--color-primary);

    font-size: 14px;
    font-weight: 700;

    line-height: 1.7;
}


/* =========================================================
   21. PUBLICATION / CONTENT PAGE
========================================================= */

.content-page {
    padding:
        80px 24px 100px;
}

.content-container {
    width: min(
        100%,
        900px
    );

    margin-inline: auto;
}


/* =========================================================
   FEATURED MEDIA — ARTICLE PAGE

   IMPORTANT:
   This remains independent from the homepage hero.

   Homepage override:
   .hero-image .tali-featured-media
========================================================= */

.tali-featured-media {
    width: 100%;
    max-width: 100%;

    height: 420px;

    margin: 0 0 2rem;

    overflow: hidden;

    border-radius: 12px;

    background: #e8e6dc;
}

.tali-featured-media img,
.tali-featured-media-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}


/* =========================================================
   ARTICLE HEADER
========================================================= */

.content-header {
    max-width: 850px;

    margin:
        0 auto 60px;
}

.content-type {
    display: inline-block;

    margin-bottom: 18px;

    padding:
        7px 12px;

    border:
        1px solid
        currentColor;

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.content-title {
    margin: 0;

    font-size:
        clamp(
            2.4rem,
            5vw,
            4.5rem
        );

    line-height: 1.05;

    letter-spacing: -0.035em;
}

.content-summary {
    max-width: 760px;

    margin: 28px 0 0;

    font-size: 1.2rem;

    line-height: 1.7;

    opacity: 0.75;
}


/* =========================================================
   ARTICLE META
========================================================= */

.content-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;

    font-size: 0.9rem;

    opacity: 0.65;
}

.content-meta-item {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}

.content-meta-item strong {
    font-weight: 600;
}

.content-meta-divider {
    opacity: 0.5;
}


/* =========================================================
   ARTICLE BODY
========================================================= */

.content-layout {
    width: 100%;
}

.content-body {
    max-width: 760px;

    margin-inline: auto;

    font-size: 1.08rem;

    line-height: 1.9;
}

.content-body p {
    margin:
        0 0 1.5rem;
}

.content-body strong {
    font-weight: 700;
}

.content-body em {
    font-style: italic;
}

.content-body a {
    color: var(--color-primary);

    text-decoration-thickness: 1px;

    text-underline-offset: 3px;
}


/* ---------------------------------------------------------
   ARTICLE HEADINGS
--------------------------------------------------------- */

.content-body h1,
.content-body h2,
.content-body h3 {
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -0.02em;
}

.content-body h1 {
    margin:
        3rem 0 1.25rem;

    font-size: 2rem;
}

.content-body h2 {
    margin:
        3rem 0 1rem;

    font-size: 1.65rem;
}

.content-body h3 {
    margin:
        2.25rem 0 0.85rem;

    font-size: 1.3rem;
}


/* ---------------------------------------------------------
   ARTICLE LISTS
--------------------------------------------------------- */

.content-body ul,
.content-body ol {
    margin:
        0 0 1.5rem;

    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}


/* ---------------------------------------------------------
   ARTICLE BLOCKQUOTES
--------------------------------------------------------- */

.content-body blockquote {
    margin:
        2rem 0;

    padding:
        1.25rem 1.5rem;

    border-left:
        4px solid
        var(--color-accent);

    background:
        var(--color-surface-soft);

    color: var(--color-text-muted);
}


/* ---------------------------------------------------------
   ARTICLE TABLES
--------------------------------------------------------- */

.content-body table {
    width: 100%;

    margin:
        2rem 0;

    border-collapse: collapse;

    font-size: 0.95rem;
}

.content-body th,
.content-body td {
    padding:
        0.75rem;

    border:
        1px solid
        var(--color-border);

    text-align: left;
}

.content-body th {
    background:
        var(--color-surface-soft);

    color:
        var(--color-primary);

    font-weight: 700;
}


/* ---------------------------------------------------------
   ARTICLE IMAGES
--------------------------------------------------------- */

.content-body img {
    width: auto;
    max-width: 100%;
    height: auto;

    margin:
        2rem auto;
}

.content-body figure {
    margin:
        2rem 0;
}

.content-body figcaption {
    margin-top: 0.6rem;

    color: var(--color-text-light);

    font-size: 0.9rem;

    text-align: center;
}


/* =========================================================
   22. ARTICLE FOOTER
========================================================= */

.content-footer {
    max-width: 760px;

    margin:
        70px auto 0;

    padding-top: 30px;

    border-top:
        1px solid
        rgba(0, 0, 0, 0.12);
}

.content-back-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.content-back-link:hover {
    transform:
        translateX(-4px);

    opacity: 0.7;
}


/* =========================================================
   23. CONTENT NOT FOUND
========================================================= */

.content-not-found {
    min-height: 60vh;

    display: flex;

    align-items: center;
}

.content-not-found .content-header {
    margin-bottom: 0;
}

.content-not-found .content-summary {
    margin-bottom: 30px;
}


/* =========================================================
   24. LEGACY PLATFORM SECTION
   Preserved for existing public layouts.
========================================================= */

.platform-section {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 0.9fr);

    gap: 70px;

    align-items: center;

    padding-block:
        var(--section-padding-y);

    padding-inline:
        var(--page-padding);
}

.platform-content {
    max-width: 700px;
}

.platform-content h2 {
    margin: 12px 0 20px;

    color: var(--color-primary);

    font-size:
        clamp(
            34px,
            4vw,
            58px
        );

    line-height: 1.05;
}

.platform-content p {
    max-width: 650px;

    color: var(--color-text-muted);

    font-size: 18px;

    line-height: 1.75;
}

.platform-visual {
    display: flex;

    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    width: min(
        100%,
        460px
    );

    aspect-ratio: 1 / 1;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 30px;

    background:
        var(--color-primary);

    color: #fff;

    font-size: 64px;
    font-weight: 800;

    letter-spacing: -0.05em;
}


/* =========================================================
   25. LEGACY TEST / STATUS
========================================================= */

.test {
    width: min(
        calc(100% - 10vw),
        1100px
    );

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    margin:
        0 auto 80px;

    padding: 35px;

    border:
        1px solid
        var(--color-border);

    border-radius: var(--radius-lg);

    background: #fbfcfa;
}

.test h2 {
    margin:
        0 0 10px;
}

.test p {
    max-width: 700px;

    color: #68736c;

    line-height: 1.6;
}

.status {
    min-width: 210px;

    display: flex;

    align-items: center;

    gap: 10px;
}

.status > b {
    color: #28a745;
}

.status span {
    color: #68736c;
}

.status strong {
    color: var(--color-text);
}


/* =========================================================
   26. FOOTER
========================================================= */

.site-footer {
    padding:
        55px
        var(--page-padding)
        30px;

    background:
        var(--color-primary-dark);

    color: #fff;
}

.footer-brand {
    display: flex;

    align-items: baseline;

    gap: 16px;

    margin-bottom: 35px;
}

.footer-brand strong {
    font-size: 28px;
}

.footer-brand span {
    font-size: 14px;

    opacity: 0.65;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 25px;

    padding-bottom: 30px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.12);
}

.footer-links a {
    color: #fff;

    font-size: 14px;

    text-decoration: none;

    opacity: 0.72;

    transition:
        opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 25px;

    color: #fff;

    font-size: 12px;

    opacity: 0.5;
}


/* =========================================================
   27. RESPONSIVE — LARGE TABLET
   1050px
========================================================= */

@media (max-width: 1050px) {

    :root {
        --section-padding-y: 90px;
    }

    .topbar {
        padding-inline: 4vw;
    }

    .hero.institutional-hero {
        padding-inline: 6vw;
    }

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

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

    .home-two-column,
    .home-responsibility-section {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .research-section,
    .platform-section {
        grid-template-columns: 1fr;

        gap: 55px;
    }

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

    .cta-section {
        flex-direction: column;

        align-items: flex-start;
    }

    .cta-actions {
        flex-direction: row;

        width: 100%;
    }

    .cta-primary,
    .cta-secondary {
        min-width: 170px;
    }
}


/* =========================================================
   28. RESPONSIVE — TABLET / SMALL DESKTOP
   900px
========================================================= */

@media (max-width: 900px) {

    .topbar {
        min-height: 72px;
    }

    .topbar nav {
        display: none;
    }

    .hero.institutional-hero {
        min-height: 570px;

        padding-block: 70px;

        --hero-image-position-x: 67%;
        --hero-image-position-y: 50%;
    }

    .institutional-hero::after {
        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.94) 38%,
                rgba(255, 255, 255, 0.72) 62%,
                rgba(255, 255, 255, 0.28) 100%
            );
    }

    .institutional-hero-copy {
        max-width: 680px;
    }

    .research-section {
        align-items: start;
    }

    .footer-brand,
    .footer-bottom {
        align-items: flex-start;
    }
}


/* =========================================================
   29. RESPONSIVE — MOBILE
   700px
========================================================= */

@media (max-width: 700px) {

    :root {
        --section-padding-y: 70px;
    }

    .topbar {
        min-height: 68px;

        padding-inline: 5vw;

        gap: 15px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-tagline,
    .brand-divider {
        display: none;
    }

    .topbar select {
        min-width: 65px;

        padding-inline: 4px;
    }


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .hero.institutional-hero {
        min-height: auto;

        display: block;

        padding:
            70px
            6vw
            55px;

        --hero-image-position-x: 68%;
        --hero-image-position-y: center;
    }

    .institutional-hero::after {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.94) 43%,
                rgba(255, 255, 255, 0.72) 70%,
                rgba(255, 255, 255, 0.32) 100%
            );
    }

    .institutional-hero-copy h1 {
        font-size:
            clamp(
                40px,
                12vw,
                54px
            );
    }

    .institutional-hero-copy p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-action {
        width: 100%;
    }


    /* -----------------------------------------------------
       GENERAL SECTIONS
    ----------------------------------------------------- */

    .home-section,
    .home-responsibility-section {
        padding-block:
            70px 80px;

        padding-inline:
            5vw;
    }

    .tools-section,
    .languages-section,
    .news-section {
        padding-block:
            70px 80px;

        padding-inline:
            5vw;
    }

    .section-heading {
        max-width: 100%;
    }

    .home-section > .section-heading,
    .tools-section > .section-heading,
    .languages-section > .section-heading,
    .news-section > .section-heading {
        margin-bottom: 38px;
    }


    /* -----------------------------------------------------
       GRIDS
    ----------------------------------------------------- */

    .tools,
    .language-cards,
    .home-work-grid,
    .built-grid,
    .news-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    /* -----------------------------------------------------
       TWO COLUMN
    ----------------------------------------------------- */

    .home-two-column {
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .home-large-copy {
        font-size: 17px;
    }


    /* -----------------------------------------------------
       RESEARCH
    ----------------------------------------------------- */

    .research-section {
        grid-template-columns: 1fr;

        gap: 40px;

        padding-block:
            70px 80px;

        padding-inline:
            5vw;
    }


    /* -----------------------------------------------------
       CARDS
    ----------------------------------------------------- */

    .tool-card {
        min-height: 180px;
    }

    .language-card {
        min-height: 270px;
    }

    .language-card h3 {
        font-size: 27px;
    }

    .home-work-card {
        min-height: 210px;
    }

    .home-card-number {
        margin-bottom: 35px;
    }


    /* -----------------------------------------------------
       NEWS
    ----------------------------------------------------- */

    .news-card .tali-thumbnail-media {
        height: 200px;

        flex-basis: 200px;
    }


    /* -----------------------------------------------------
       CTA
    ----------------------------------------------------- */

    .cta-section {
        padding-block:
            70px 75px;

        padding-inline:
            5vw;
    }

    .cta-actions {
        flex-direction: column;

        width: 100%;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
    }


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

    .footer-brand,
    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-links {
        gap:
            15px 20px;
    }

    .footer-partner-ribbon-inner {

        align-items: flex-start;

        flex-direction: column;

        gap: 16px;
    }


    .footer-partner-list {

        gap: 14px 20px;
    }
}


/* =========================================================
   30. RESPONSIVE — VERY SMALL PHONES
   480px
========================================================= */

@media (max-width: 480px) {

    .brand-name {
        font-size: 22px;
    }

    .mark {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .hero.institutional-hero {
        padding:
            55px
            5vw
            45px;

        --hero-image-position-x: 70%;
    }

    .hero.institutional-hero::after {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.94) 50%,
                rgba(255, 255, 255, 0.70) 75%,
                rgba(255, 255, 255, 0.28) 100%
            );
    }

    .institutional-hero-copy h1 {
        font-size:
            clamp(
                38px,
                12vw,
                50px
            );
    }

    .section-heading h2,
    .home-two-column h2,
    .research-section h2 {
        font-size: 34px;
    }

    .tool-card,
    .language-card,
    .home-work-card,
    .built-card {
        padding: 24px;
    }

    .language-card h3 {
        font-size: 25px;
    }

    .content-page {
        padding:
            40px 16px 60px;
    }

    .content-title {
        font-size: 2.1rem;
    }

    .content-summary {
        font-size: 1.05rem;
    }

    .content-meta {
        font-size: 0.82rem;
    }

    .tali-featured-media {
        height: 300px;
    }

    .news-card .tali-thumbnail-media {
        height: 190px;

        flex-basis: 190px;
    }

    .news-content {
        padding: 24px;
    }

    .footer-brand strong {
        font-size: 24px;
    }
}


/* =========================================================
   31. ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline:
        3px solid
        rgba(215, 107, 8, 0.45);

    outline-offset: 3px;
}


/* =========================================================
   32. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   26A. PARTNER RIBBON
========================================================= */

.footer-partner-ribbon {

    /*margin-top: 35px;*/
    padding: 24px 0;

    /*border-top:
        1px solid
        rgba(255, 255, 255, 0.12);*/

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.12);
}


.footer-partner-ribbon-inner {

    display: flex;
    align-items: center;

    gap: 30px;
}


.footer-partner-ribbon-label {

    flex: 0 0 auto;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;

    opacity: 0.55;
}


.footer-partner-list {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px 28px;

    min-width: 0;
}


.footer-partner {

    display: block;
    
    align-items: center;
    
    gap: 10px;

    min-height: 42px;

    color: #fff;

    opacity: 0.82;

    transition:
        opacity 0.2s ease;
}


.footer-partner:hover {

    opacity: 1;
}


.footer-partner-logo {

    display: block;
    margin: 0 auto;
    width: auto;
    border-radius: 50%;
    height: 48px;

    max-width: 48px;

    object-fit: contain;
}


.footer-partner-name {

    font-size: 12px;
    margin: 0 auto;
    line-height: 1.3;

    white-space: nowrap;
}