:root {
    --color-ink: #2d2d2d;
    --color-muted: #747474;
    --color-line: #e2e2e2;
    --color-soft: #f6f6f6;
    --color-white: #ffffff;
    --color-red: #c0392b;
    --color-green: #18a84f;
    --color-black: #060708;
    --color-teal: #005976;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--color-ink);
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    line-height: 1.65;
    background: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', 'PT Sans', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

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

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Top strip ---- */

.top-strip {
    color: #9aaa9a;
    background: #1a1e1a;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.top-strip__inner {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding: 7px 0;
}

.top-strip a {
    text-decoration: none;
    transition: color 0.15s;
}

.top-strip a:hover {
    color: var(--color-white);
}

/* ---- Header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    box-shadow: 0 1px 0 var(--color-line);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-ink);
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
}

.brand img {
    width: 72px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand > span {
    min-width: 0;
    overflow: hidden;
}

.brand strong {
    display: block;
    font-family: 'Oswald', 'PT Sans', Arial, sans-serif;
    font-size: clamp(0.85rem, 2vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand small {
    display: block;
    color: var(--color-muted);
    font-size: 0.8rem;
    font-family: 'PT Sans', Arial, sans-serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Mobile toggle ---- */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--color-line);
    color: var(--color-ink);
    background: var(--color-white);
    border-radius: 3px;
    padding: 9px 12px;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
}

.nav-toggle__icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle__icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-ink);
}

/* ---- Navigation ---- */

.site-nav {
    border-top: 1px solid var(--color-line);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li {
    position: relative;
}

.site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    color: var(--color-ink);
    font-weight: 400;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-decoration: none;
    transition: color 0.18s;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--color-green);
}

/* Green underline bar on top-level items only */
.site-nav__inner > ul > li > a {
    position: relative;
}

.site-nav__inner > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--color-green);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.site-nav__inner > ul > li > a:hover::after,
.site-nav__inner > ul > li > a:focus::after {
    transform: scaleX(1);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    flex-direction: column;
    align-items: stretch !important;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-top: 2px solid var(--color-green);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.has-children:hover .submenu,
.has-children:focus-within .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.submenu a {
    padding: 11px 16px;
    min-height: 0;
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #f0f0f0;
}

.submenu li:last-child a {
    border-bottom: 0;
}

/* ---- Search form ---- */

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
}

.search-form input {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 3px;
    padding: 9px 12px;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 1rem;
    color: var(--color-ink);
    transition: border-color 0.18s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--color-green);
}

/* ---- Buttons ---- */

.search-form button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 2px solid var(--color-green);
    border-radius: 3px;
    padding: 10px 22px;
    color: var(--color-white);
    background: var(--color-green);
    font-family: 'PT Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.18s, border-color 0.18s;
}

.search-form button:hover,
.button:hover {
    background: #128040;
    border-color: #128040;
}

.search-form button {
    min-height: 44px;
    padding: 0 14px;
    white-space: nowrap;
}

.button--ghost {
    color: var(--color-green);
    background: transparent;
    border-color: var(--color-green);
}

.button--ghost:hover {
    background: var(--color-green);
    color: var(--color-white);
}

/* ---- Home hero ---- */

.home-hero {
    position: relative;
    overflow: hidden;
    background: #eef2ee;
    border-bottom: 1px solid var(--color-line);
}

.home-hero__inner {
    position: relative;
    min-height: 380px;
    padding: 60px 0 54px;
}

.home-hero__inner > div {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.home-hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(1.9rem, 5vw, 3.8rem);
    line-height: 1.08;
    font-weight: 500;
}

.home-hero p {
    max-width: 640px;
    color: var(--color-muted);
    font-size: 1.05rem;
    margin: 16px 0 0;
}

.home-hero__mark {
    position: absolute;
    right: 0;
    top: 50%;
    width: min(38vw, 360px);
    min-width: 200px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    opacity: 0.12;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ---- Page hero ---- */

.page-hero {
    color: var(--color-white);
    background: var(--color-teal);
}

.page-hero--has-image {
    position: relative;
    background-size: cover;
    background-position: center;
}

.page-hero--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 72, 96, 0.82);
}

.page-hero--has-image .container {
    position: relative;
    z-index: 1;
}

.page-hero .container {
    padding: 52px 0;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'PT Sans', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.home-hero .eyebrow {
    color: var(--color-green);
}

/* ---- Content sections ---- */

.content-section {
    padding: 60px 0;
}

.content-section--muted {
    background: var(--color-soft);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2,
.prose h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.15;
}

.prose {
    max-width: 820px;
}

.prose p,
.prose li {
    color: #3a3e44;
    font-size: 1.03rem;
    line-height: 1.75;
}

.prose a,
.text-link {
    color: var(--color-green);
    font-weight: 700;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 16px 0;
}

.article-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    margin-bottom: 28px;
    border-radius: 4px;
}

/* ---- News grid ---- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: 4px;
    transition: box-shadow 0.2s;
}

.news-card:hover {
    box-shadow: var(--shadow);
}

.news-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--color-soft);
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.news-card time {
    color: var(--color-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-card h2 {
    margin: 8px 0 10px;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.3;
}

.news-card h2 a {
    text-decoration: none;
}

.news-card p {
    color: var(--color-muted);
    margin: 0 0 16px;
    font-size: 0.95rem;
}

.news-card .text-link {
    margin-top: auto;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- List items ---- */

.stacked-list {
    display: grid;
    gap: 14px;
}

.list-item {
    border: 1px solid var(--color-line);
    border-radius: 4px;
    padding: 20px 24px;
    transition: box-shadow 0.2s;
}

.list-item:hover {
    box-shadow: var(--shadow);
}

.list-item h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 500;
}

/* ---- Documents list ---- */

.doc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    overflow: hidden;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-line);
    transition: background 0.15s;
}

.doc-item:last-child {
    border-bottom: 0;
}

.doc-item:hover {
    background: var(--color-soft);
}

.doc-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 4px 0;
    border-radius: 3px;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-white);
    background: var(--color-muted);
}

.doc-badge--pdf  { background: #c0392b; }
.doc-badge--doc,
.doc-badge--docx { background: #2471a3; }
.doc-badge--xls,
.doc-badge--xlsx { background: #18a84f; }
.doc-badge--ppt,
.doc-badge--pptx { background: #d35400; }

.doc-item__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.doc-item__info strong {
    font-size: 0.97rem;
    color: var(--color-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-item__info span {
    font-size: 0.85rem;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-item__size {
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.doc-item__open {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--color-green);
    border-radius: 3px;
    color: var(--color-green);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'PT Sans', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    touch-action: manipulation;
    transition: background 0.18s, color 0.18s;
}

.doc-item__open:hover {
    background: var(--color-green);
    color: var(--color-white);
}

.doc-group {
    margin-bottom: 48px;
}

.doc-group:last-child {
    margin-bottom: 0;
}

.doc-group__title {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-green);
}

.doc-group__link {
    font-size: 0.78rem;
    font-family: 'PT Sans', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-green);
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
}

.doc-group__link:hover {
    text-decoration: underline;
}

/* ---- Footer ---- */

.site-footer {
    color: var(--color-white);
    background: #111416;
    border-top: 3px solid var(--color-green);
    padding: 52px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    width: 72px;
    height: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.footer-brand h2 {
    font-family: 'Oswald', 'PT Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    margin: 0 0 10px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-footer section:not(.footer-brand) > h2 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-green);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #252b25;
}

.site-footer p {
    margin: 7px 0;
    color: #8d9b8c;
    font-size: 0.9rem;
    line-height: 1.65;
}

.site-footer a {
    color: #b8c8b6;
    text-decoration: none;
    transition: color 0.18s;
}

.site-footer a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid #1e231e;
    padding: 18px 0;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #4a544a;
}

/* ============================================================
   RESPONSIVE — tablet (≤ 920px)
   ============================================================ */

@media (max-width: 920px) {

    /* Show hamburger */
    .nav-toggle {
        display: inline-flex;
    }

    /* Hide nav by default */
    .site-nav {
        display: none;
        border-top: 1px solid var(--color-line);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    }

    .site-nav.is-open {
        display: block;
    }

    /* Stack nav items vertically */
    .site-nav__inner {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 16px;
        gap: 0;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    /* Larger touch targets for nav links */
    .site-nav a {
        padding: 13px 4px;
        min-height: 48px;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--color-line);
    }

    /* Remove underline bar animation on mobile */
    .site-nav__inner > ul > li > a::after {
        display: none;
    }

    /* Submenu inline on mobile */
    .submenu {
        position: static;
        min-width: 0;
        border: 0;
        border-top: 0;
        box-shadow: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        padding-left: 16px;
        background: var(--color-soft);
    }

    .submenu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--color-line);
    }

    /* Search full-width in mobile nav */
    .search-form {
        width: 100%;
        min-width: 0;
        margin-top: 8px;
    }

    /* Footer single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 36px;
    }

    .footer-bottom__inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    /* Hero adjustments */
    .home-hero__inner {
        min-height: 0;
        padding: 44px 0;
    }

    .home-hero__mark {
        width: 160px;
        min-width: 160px;
        right: -20px;
        opacity: 0.08;
    }

    /* News grid 2 columns */
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Content sections less padding */
    .content-section {
        padding: 44px 0;
    }

    .page-hero .container {
        padding: 40px 0;
    }

    /* Footer less padding */
    .site-footer {
        padding-top: 40px;
    }
}

/* ============================================================
   RESPONSIVE — mobile (≤ 620px)
   ============================================================ */

@media (max-width: 620px) {

    /* Tighter container */
    .container {
        width: calc(100% - 24px);
    }

    /* Hide top strip on small screens */
    .top-strip {
        display: none;
    }

    /* Brand: hide text on small screens, logo only */
    .brand {
        gap: 10px;
    }

    .brand img {
        width: 52px;
        height: 36px;
    }

    .brand > span {
        display: none;
    }

    /* Hero */
    .home-hero__inner {
        padding: 36px 0;
    }

    .home-hero__mark {
        display: none;
    }

    .page-hero .container {
        padding: 32px 0;
    }

    /* Content */
    .content-section {
        padding: 36px 0;
    }

    /* News single column */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Section heading stacked */
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    /* Buttons full-width in hero */
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Doc items: wrap, hide size */
    .doc-item {
        flex-wrap: wrap;
        padding: 14px;
        gap: 10px;
    }

    .doc-item__size {
        display: none;
    }

    .doc-item__open {
        margin-left: auto;
    }

    /* Footer */
    .site-footer {
        padding-top: 32px;
    }

    .footer-bottom__inner {
        font-size: 0.75rem;
    }
}

/* ============================================================
   RESPONSIVE — small mobile (≤ 400px)
   ============================================================ */

@media (max-width: 400px) {

    /* Absolute minimum brand size */
    .brand strong {
        font-size: 0.78rem;
    }

    /* Hero H1 */
    .home-hero h1,
    .page-hero h1 {
        font-size: 1.7rem;
    }

    /* Buttons full width */
    .hero-actions .button {
        width: 100%;
        justify-content: center;
    }

    /* Doc list: stack badge + info vertically */
    .doc-item {
        align-items: flex-start;
    }

    .doc-item__open {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}
