/* ANKH Climate Research Center — OSIRIS Portfolio theme */

:root {
    --ara-space-950: #050911;
    --ara-space-900: #08111f;
    --ara-space-850: #0b1728;
    --ara-space-800: #102138;
    --ara-ice-100: #effcfb;
    --ara-ice-300: #a9ded9;
    --ara-cyan: #31d1c6;
    --ara-cyan-rgb: 49, 209, 198;
    --ara-blue: #008f91;
    --ara-red: #f57c00;
    --ara-gold: #ffad42;
    --ara-text: #152438;
    --ara-muted: #60748a;
    --ara-line: #d8e4eb;
    --ara-surface: #ffffff;
    --ara-surface-soft: #f3f8fb;
    --ara-radius-sm: 8px;
    --ara-radius: 14px;
    --ara-radius-lg: 22px;
    --ara-shadow: 0 18px 50px rgba(6, 22, 39, 0.10);
    --ara-font-display: "TikTok Sans", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --ara-font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --border-radius: var(--ara-radius-sm);
    --border-radius-lg: var(--ara-radius);
    --border-color: var(--ara-line);
    /* --box-shadow: var(--ara-shadow); */
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ara-text);
    background:
        radial-gradient(circle at 80% 4%, rgba(var(--ara-cyan-rgb), .08), transparent 25rem),
        var(--ara-surface-soft);
    font-family: var(--ara-font-body);
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(10, 36, 57, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 36, 57, .025) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    pointer-events: none;
}

::selection { color: var(--ara-space-950); background: var(--ara-cyan); }

a { color: #007f82; text-underline-offset: .18em; }
a:hover { color: #005f62; }

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

.ara-skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: .65rem 1rem;
    color: var(--ara-space-950);
    background: var(--ara-cyan);
    border-radius: var(--ara-radius-sm);
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform .2s ease;
}
.ara-skip-link:focus { transform: translateY(0); }

.ara-header {
    position: relative;
    z-index: 100;
    color: white;
    background:
        radial-gradient(circle at 15% 0, rgba(var(--ara-cyan-rgb), .13), transparent 22rem),
        linear-gradient(115deg, var(--ara-space-950), var(--ara-space-850) 68%, #0d2138);
    border-bottom: 1px solid rgba(var(--ara-cyan-rgb), .2);
    box-shadow: 0 10px 35px rgba(3, 12, 24, .18);
}

.ara-signal-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1440px;
    min-height: 25px;
    padding: 0 clamp(20px, 4vw, 64px);
    margin: auto;
    color: rgba(212, 244, 255, .62);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.ara-signal-bar__line { width: 34px; height: 1px; background: var(--ara-red); }

.ara-header__inner {
    display: grid;
    grid-template-columns: minmax(225px, auto) 1fr auto;
    align-items: center;
    gap: clamp(20px, 4vw, 54px);
    max-width: 1440px;
    min-height: 82px;
    padding: 0 clamp(20px, 4vw, 64px);
    margin: auto;
}

.ara-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: white;
    text-decoration: none;
}
.ara-brand:hover { color: white; }
.ara-brand__mark {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(var(--ara-cyan-rgb), .65);
    border-radius: 50%;
    box-shadow: inset 0 0 18px rgba(var(--ara-cyan-rgb), .12), 0 0 18px rgba(var(--ara-cyan-rgb), .08);
}
.ara-brand__mark::before,
.ara-brand__mark::after {
    position: absolute;
    width: 54px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ara-cyan), transparent);
    content: "";
}
.ara-brand__mark::after { transform: rotate(90deg); }
.ara-brand__core {
    width: 13px;
    height: 13px;
    background: var(--ara-cyan);
    border: 4px solid var(--ara-space-900);
    border-radius: 3px;
    box-shadow: 0 0 0 1px var(--ara-cyan), 0 0 14px var(--ara-cyan);
    transform: rotate(45deg);
}
.ara-brand__copy { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.ara-brand__copy strong {
    font-family: var(--ara-font-display);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: .13em;
}
.ara-brand__copy span { margin-top: 6px; color: var(--ara-ice-300); font-size: 9px; font-weight: 700; letter-spacing: .22em; }

.ara-nav { display: flex; justify-content: center; align-self: stretch; }
.ara-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 clamp(10px, 1.3vw, 20px);
    color: rgba(235, 248, 255, .72);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .075em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease;
}
.ara-nav a::after {
    position: absolute;
    right: 25%;
    bottom: 0;
    left: 25%;
    height: 2px;
    background: var(--ara-cyan);
    box-shadow: 0 0 9px var(--ara-cyan);
    content: "";
    transform: scaleX(0);
    transition: transform .2s ease;
}
.ara-nav a:hover,
.ara-nav a[aria-current="page"] { color: white; background: rgba(var(--ara-cyan-rgb), .055); }
.ara-nav a:hover::after,
.ara-nav a[aria-current="page"]::after { transform: scaleX(1); }
.ara-nav i { color: var(--ara-cyan); font-size: 16px; }

.ara-header__tools { display: flex; align-items: center; gap: 15px; }
.ara-search-link {
    display: grid;
    width: 38px;
    height: 38px;
    color: white;
    border: 1px solid rgba(var(--ara-cyan-rgb), .28);
    border-radius: 50%;
    place-items: center;
    text-decoration: none;
}
.ara-search-link:hover { color: var(--ara-space-950); background: var(--ara-cyan); }
.ara-language { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; }
.ara-language > i { margin-right: 2px; color: var(--ara-ice-300); font-size: 16px; }
.ara-language a { padding: 4px; color: rgba(255,255,255,.48); text-decoration: none; }
.ara-language a[aria-current="true"] { color: var(--ara-cyan); }
.ara-nav-toggle, .ara-nav-button { display: none; }

.ara-hero-stripe { display: grid; grid-template-columns: 2fr 6fr 1fr; height: 3px; background: var(--ara-space-800); }
.ara-hero-stripe span:nth-child(1) { background: var(--ara-red); }
.ara-hero-stripe span:nth-child(2) { background: linear-gradient(90deg, var(--ara-red), var(--ara-cyan) 28%, transparent 78%); }

.content-wrapper { min-height: 60vh; }
.content-container {
    width: min(100% - 40px, 1320px);
    padding-top: clamp(28px, 5vw, 64px);
    padding-bottom: clamp(56px, 8vw, 110px);
    margin-inline: auto;
}

h1, h2, h3, h4, h5, h6 { color: var(--ara-space-900); font-family: var(--ara-font-display); letter-spacing: -.015em; }
h1 { position: relative;}
h1::after { display: block; width: 70px; height: 3px; margin-top: .32em; background: linear-gradient(90deg, var(--ara-red), var(--ara-cyan)); content: ""; }
/* h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); } */

.breadcrumb, .breadcrumbs {
    margin-bottom: 28px;
    color: var(--ara-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.breadcrumb a, .breadcrumbs a { color: #38738d; text-decoration: none; }

.card, .box, .panel, article.card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--ara-line);
    border-radius: var(--ara-radius);
    box-shadow: 0 12px 35px rgba(13, 37, 57, .055);
}
.card { overflow: hidden; }
.card:hover { border-color: rgba(var(--ara-cyan-rgb), .65); box-shadow: var(--ara-shadow); }

.btn, button, input[type="submit"] {
    font-family: var(--ara-font-body);
    font-weight: 750;
    letter-spacing: .025em;
}
.btn-primary, button.primary, input[type="submit"] {
    color: white;
    background: linear-gradient(120deg, #007f82, #009b96);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 127, 130, .2);
}
.btn-primary:hover, button.primary:hover, input[type="submit"]:hover { background: linear-gradient(120deg, #00676a, #007e7a); }

input, select, textarea {
    color: var(--ara-text);
    background: white;
    border: 1px solid #cbdbe4;
    border-radius: var(--ara-radius-sm);
}
input:focus, select:focus, textarea:focus { border-color: #008f91; box-shadow: 0 0 0 3px rgba(var(--ara-cyan-rgb), .2); outline: 0; }

table.dataTable, .table {
    overflow: hidden;
    background: white;
    border: 1px solid var(--ara-line);
    border-radius: var(--ara-radius);
    box-shadow: 0 10px 28px rgba(15, 39, 59, .05);
}
table.dataTable thead th, .table thead th {
    color: #dff7ff;
    background: var(--ara-space-850);
    border-bottom-color: rgba(var(--ara-cyan-rgb), .35);
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
}
table.dataTable tbody tr:hover, .table tbody tr:hover { background: #eefaff; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { color: white !important; background: #007f82 !important; border-color: #007f82 !important; }

.badge, .tag, .label {
    color: #125b74;
    background: rgba(var(--ara-cyan-rgb), .12);
    border: 1px solid rgba(var(--ara-cyan-rgb), .27);
    border-radius: 999px;
}

:focus-visible { outline: 3px solid rgba(var(--ara-cyan-rgb), .82); outline-offset: 3px; }

.page-footer { position: relative; color: var(--ara-ice-100); background: var(--ara-space-950); }
.page-footer > .link-parade {
    padding: 16px 20px;
    color: rgba(219, 240, 249, .54);
    background: #07101c;
    border-top: 1px solid rgba(var(--ara-cyan-rgb), .13);
    font-size: 10px;
    letter-spacing: .06em;
}
.page-footer > .link-parade img { width: auto !important; max-width: 130px; max-height: 28px; margin-left: 8px; vertical-align: middle; filter: brightness(0) invert(1); opacity: .7; }
.ara-footer { position: relative; overflow: hidden; padding: clamp(52px, 7vw, 90px) clamp(20px, 4vw, 64px) 24px; background: linear-gradient(140deg, #07111f, #0a192b 65%, #0c2136); }
.ara-footer::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--ara-red), var(--ara-cyan), transparent 80%);
    content: "";
}
.ara-footer__glow { position: absolute; top: -180px; right: -100px; width: 420px; height: 420px; background: rgba(var(--ara-cyan-rgb), .075); border: 1px solid rgba(var(--ara-cyan-rgb), .08); border-radius: 50%; box-shadow: 0 0 80px rgba(var(--ara-cyan-rgb), .06); }
.ara-footer__grid { position: relative; display: grid; grid-template-columns: 1.65fr .75fr .75fr 1.1fr; gap: clamp(32px, 5vw, 76px); max-width: 1312px; margin: auto; }
.ara-brand--footer { margin-bottom: 24px; }
.ara-footer__intro > p { max-width: 420px; color: rgba(225, 244, 251, .62); font-size: 14px; line-height: 1.7; }
.ara-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; color: var(--ara-ice-300); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.ara-status span { width: 7px; height: 7px; background: #58e79b; border-radius: 50%; box-shadow: 0 0 10px #58e79b; }
.ara-footer h2 { margin: 0 0 18px; color: white; font-family: var(--ara-font-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ara-footer__nav { display: flex; flex-direction: column; gap: 11px; }
.ara-footer__nav a { display: flex; align-items: center; gap: 5px; width: fit-content; color: rgba(227, 244, 250, .62); font-size: 13px; text-decoration: none; }
.ara-footer__nav a:hover { color: var(--ara-cyan); }
.ara-footer__mission { display: flex; align-self: start; gap: 14px; padding: 20px; background: rgba(var(--ara-cyan-rgb), .045); border: 1px solid rgba(var(--ara-cyan-rgb), .15); border-radius: var(--ara-radius); }
.ara-footer__mission > i { color: var(--ara-cyan); font-size: 30px; }
.ara-footer__mission h2 { margin-bottom: 8px; }
.ara-footer__mission p { margin: 0; color: rgba(225, 244, 251, .58); font-size: 12px; line-height: 1.55; }
.ara-footer__mission strong { color: white; }
.ara-footer__mission[aria-labelledby="ara-disclaimer-title"] {
    background: rgba(245, 124, 0, .08);
    border-color: rgba(245, 124, 0, .38);
    box-shadow: inset 3px 0 0 var(--ara-red);
    grid-column: 1 / -1;
}
.ara-footer__mission[aria-labelledby="ara-disclaimer-title"] > i { color: var(--ara-gold); }
.ara-footer__mission[aria-labelledby="ara-disclaimer-title"] h2 { color: var(--ara-gold); }
.ara-footer__mission[aria-labelledby="ara-disclaimer-title"] p { color: rgba(239, 250, 249, .76); }
.ara-footer__bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; max-width: 1312px; padding-top: 24px; margin: 50px auto 0; color: rgba(222, 241, 248, .36); border-top: 1px solid rgba(194, 232, 244, .1); font-size: 9px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.ara-footer__coordinates { font-variant-numeric: tabular-nums; }

@media (max-width: 1120px) {
    .ara-header__inner { grid-template-columns: minmax(210px, auto) 1fr auto; gap: 15px; }
    .ara-nav a { padding-inline: 9px; }
    .ara-nav a span { display: none; }
    .ara-nav i { font-size: 20px; }
    .ara-footer__grid { grid-template-columns: 1.4fr .8fr .8fr; }
    .ara-footer__mission { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .ara-signal-bar { display: none; }
    .ara-header__inner { grid-template-columns: 1fr auto auto; min-height: 72px; }
    .ara-header__tools { grid-column: 2; grid-row: 1; }
    .ara-language { display: none; }
    .ara-nav-button { display: flex; grid-column: 3; grid-row: 1; flex-direction: column; gap: 4px; padding: 10px; cursor: pointer; }
    .ara-nav-button span { width: 22px; height: 2px; background: var(--ara-ice-100); transition: transform .2s ease, opacity .2s ease; }
    .ara-nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        display: none;
        padding: 12px 20px 20px;
        background: rgba(5, 12, 23, .98);
        border-top: 1px solid rgba(var(--ara-cyan-rgb), .17);
        box-shadow: 0 20px 30px rgba(1, 8, 16, .28);
    }
    .ara-nav a { justify-content: flex-start; padding: 15px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
    .ara-nav a span { display: inline; }
    .ara-nav-toggle:checked ~ .ara-nav { display: flex; flex-direction: column; }
    .ara-nav-toggle:checked + .ara-nav-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .ara-nav-toggle:checked + .ara-nav-button span:nth-child(2) { opacity: 0; }
    .ara-nav-toggle:checked + .ara-nav-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .content-container { width: min(100% - 28px, 1320px); }
    /* .ara-footer__grid { grid-template-columns: 1fr 1fr; } */

    .ara-footer__grid { grid-template-columns: 1.4fr .8fr .8fr; }
    .ara-footer__intro, .ara-footer__mission { grid-column: 1 / -1; }
    .ara-footer__bottom { flex-direction: column; }
}

@media (max-width: 430px) {
    .ara-brand__copy strong { font-size: 17px; }
    .ara-brand__copy span { font-size: 7px; }
    .ara-brand__mark { width: 36px; height: 36px; }
    .ara-brand__mark::before, .ara-brand__mark::after { width: 45px; }
    .ara-search-link { width: 34px; height: 34px; }
    .ara-footer__grid { grid-template-columns: 1fr; }
    .ara-footer__intro, .ara-footer__mission { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
