﻿@charset "UTF-8";
/* =========================================================
   CHEMISTRY.GE — ახალი მთავარი გვერდის სტილი
   ფაილი: /css/style.css

   ეს ვერსია ემთხვევა /index.php-ის (v=3) HTML კლასებს
   (.brand-header, .hero-row, .quick-panel, .content-row,
   .guest-card, .bottom-row, .nav-mobile ...).
   JavaScript არ გამოიყენება.

   - ფონტი: Noto Sans Georgian (Google Fonts, უკვე ჩართულია HTML-ში)
   - მენიუ და ბარათების სათაურები: BPG Nino Mtavruli (assets/-დან).
     ფონტი ჩვეულებრივ ქართულ ასოებს მთავრულად ხატავს, ამიტომ
     text-transform არ სჭირდება; აქვს მხოლოდ ჩვეულებრივი სისქე (400).
   - ბანერის სურათის ნაცვლად CSS გრადიენტი და SVG ნახატი
     (ძველი images/*.png და fonts/*.woff2 ფაილები სერვერზე არ არსებობს)
   ========================================================= */


/* ---------- 0. ფონტი სათაურებისთვის ---------- */

@font-face {
    font-family: "BPG Nino Mtavruli";
    src: url("../assets/bpg_nino_mtavruli_normal.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ---------- 1. ცვლადები ---------- */

:root {
    --green-900: #003f32;
    --green-800: #00513f;
    --green-700: #087b55;
    --green-600: #0b9164;
    --green-100: #e8f4ef;
    --mint:      #9fe6cb;

    --navy:  #142b35;
    --text:  #17252d;
    --muted: #5c6c73;

    --page:    #f5f9f8;
    --surface: #ffffff;
    --line:    #dce9e6;
    --shadow:  0 6px 20px rgba(0, 55, 43, .07);

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;

    --font: "Noto Sans Georgian", "Sylfaen", Arial, sans-serif;
    --font-title: "BPG Nino Mtavruli", "Noto Sans Georgian", "Sylfaen", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --green-700: #3fbf8f;
        --green-600: #3fbf8f;
        --green-100: #16302a;
        --navy:  #e6efec;
        --text:  #dce6e3;
        --muted: #9db0aa;
        --page:    #0e1513;
        --surface: #151f1c;
        --line:    #26352f;
        --shadow:  none;
    }
}
:root[data-theme=dark] {
    --green-700: #3fbf8f;
    --green-600: #3fbf8f;
    --green-100: #16302a;
    --navy:  #e6efec;
    --text:  #dce6e3;
    --muted: #9db0aa;
    --page:    #0e1513;
    --surface: #151f1c;
    --line:    #26352f;
    --shadow:  none;
}


/* ---------- 2. საბაზისო ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font: 400 15.5px/1.65 var(--font);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

:focus-visible {
    outline: 3px solid var(--green-600);
    outline-offset: 2px;
    border-radius: 4px;
}

.wrap {
    width: min(1400px, calc(100% - 48px));
    margin-inline: auto;
}

.ico { display: block; width: 1em; height: 1em; flex: none; }

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
}
.skip-link:focus { left: 16px; }


/* ---------- 3. ზედა ზოლი (ლოგო) ---------- */

.brand-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.brand-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 96px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img { width: 76px; height: auto; flex: none; }

.brand-text { min-width: 0; }

/* 1-ლი ხაზი: CHEMISTRY.GE | ქართული ქიმიის პორტალი */
.brand-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 12px;
}

.brand strong {
    color: var(--green-900);
    font-size: clamp(22px, 2.1vw, 30px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .01em;
}

.brand-tag {
    padding-left: 12px;
    border-left: 2px solid var(--green-600);
    color: var(--green-700);
    font-size: clamp(15px, 1.25vw, 18px);
    font-weight: 700;
    line-height: 1.2;
}

/* მე-2 ხაზი: ასოციაცია */
.brand small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .01em;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand strong { color: var(--green-700); }
    :root:not([data-theme="light"]) .brand-tag { color: var(--mint); }
}

/* "⌬ ⌬ ⌬" — დეკორატიული მოლეკულები ლოგოს გვერდით */
.brand-molecule {
    margin-left: auto;
    color: var(--green-100);
    font-size: 40px;
    line-height: 1;
    letter-spacing: .15em;
    user-select: none;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-molecule { color: #20403a; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.header-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    min-width: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}

.header-actions a:hover { background: var(--green-100); }
.header-actions .ico { font-size: 18px; }
.header-actions .icon-action,
.header-actions .social-link { padding: 6px 12px; }
.header-actions .social-link .ico { font-size: 20px; }
.header-actions .social-link:hover { color: #1877f2; }

.header-actions .login-link {
    background: var(--green-800);
    color: #fff;
    padding-inline: 18px;
}
.header-actions .login-link:hover { background: var(--green-700); }


/* ---------- 4. მთავარი მენიუ ---------- */

.main-nav {
    position: relative;
    z-index: 20;
    background: var(--green-900);
    color: #fff;
}

.nav-inner {
    display: flex;
    align-items: stretch;
    gap: 4px;
    min-height: 56px;
}

.nav-inner > a,
.nav-parent {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    min-height: 56px;
    padding: 0 13px;   /* 9 პუნქტი ერთ ხაზზე */
    border: 0;
    background: transparent;
    color: #fff;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: .03em;
    cursor: pointer;
}

.nav-parent .ico { font-size: 14px; opacity: .8; }

.nav-inner > a:hover,
.nav-drop:hover > .nav-parent,
.nav-drop:has(:focus-visible) > .nav-parent { background: var(--green-800); }

.nav-inner .active {
    background: #087b55;
    box-shadow: inset 0 -3px 0 var(--mint);
}

/* ტელეფონის მენიუ — კომპიუტერზე დამალულია */
.nav-mobile { display: none; }

.nav-drop { position: relative; }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 240px;
    padding: 8px;
    background: #fff;
    color: #17252d;
    border-radius: 0 0 var(--r-md) var(--r-md);
    box-shadow: 0 12px 30px rgba(0, 40, 30, .18);
}

/* იხსნება მაუსის მიტანით ან კლავიატურით (Tab).
   :focus-within-ის ნაცვლად :focus-visible — მაუსით დაკლიკების შემდეგ მენიუ ღია აღარ რჩება. */
.nav-drop:hover .dropdown,
.nav-drop:has(:focus-visible) .dropdown { display: block; }

.dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14.5px;
}
.dropdown a:hover { background: #e8f4ef; color: #003f32; }


/* ---------- 5. ბანერი + სწრაფი ბმულები ---------- */

.home-main,
.page-main { padding: 22px 0 8px; }   /* page-main — შიდა გვერდები (includes/header.php) */

.hero-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
    gap: 20px;
}

.hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 320px;
    overflow: hidden;
    border-radius: var(--r-lg);
    color: #fff;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 360' fill='none'%3E%3Cg stroke='%239FE6CB' stroke-opacity='.55' stroke-width='2.5'%3E%3Cpath d='M150 120l52-30 52 30v60l-52 30-52-30z'/%3E%3Cpath d='M254 120l52-30 52 30v60l-52 30-52-30z'/%3E%3Cpath d='M306 90V40M358 180l44 25M202 210v50M150 120l-44-25M358 120l44-25'/%3E%3C/g%3E%3Cg fill='%239FE6CB'%3E%3Ccircle cx='306' cy='40' r='9'/%3E%3Ccircle cx='402' cy='205' r='9'/%3E%3Ccircle cx='202' cy='260' r='9'/%3E%3Ccircle cx='106' cy='95' r='7' fill-opacity='.6'/%3E%3Ccircle cx='402' cy='95' r='7' fill-opacity='.6'/%3E%3C/g%3E%3Ccircle cx='430' cy='300' r='70' stroke='%23fff' stroke-opacity='.12' stroke-width='2'/%3E%3C/svg%3E")
            right -40px center / min(56%, 520px) auto no-repeat,
        linear-gradient(115deg, #003a33 0%, #064d55 55%, #087b82 100%);
}

.hero-copy {
    position: relative;
    width: min(60%, 620px);
    padding: 36px 44px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--mint);
    font-size: 14px;
    font-weight: 600;
}

.hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.1vw, 44px);
    font-weight: 800;
    line-height: 1.18;
}

.hero-copy p {
    max-width: 52ch;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
}
.hero-copy p br { display: none; }   /* ხაზის გაწყვეტას ბრაუზერი თავად აკეთებს */

.hero-search {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 540px;
    padding: 6px;
    background: #fff;
    border-radius: 12px;
}

.hero-search > .ico {
    margin: 0 2px 0 10px;
    color: #5c6c73;
    font-size: 18px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 6px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17252d;
    font-size: 15px;
}

.hero-search button {
    padding: 10px 22px;
    border: 0;
    border-radius: 9px;
    background: #087b55;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.hero-search button:hover { background: #00513f; }
.hero-search:focus-within { outline: 3px solid var(--mint); outline-offset: 2px; }

/* სათაური მწვანე ზოლით — გამოიყენება ყველა პანელში */
.quick-panel h2,
.section-title h2,
.section-title h1,
.reference-strip h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .03em;
}

.quick-panel h2::before,
.section-title h2::before,
.section-title h1::before,
.reference-strip h2::before {
    content: "";
    flex: none;
    width: 6px;
    height: 24px;
    border-radius: 6px;
    background: var(--green-600);
}

.quick-panel,
.news-section,
.guest-card,
.reference-strip {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.quick-panel { padding: 20px; }
.quick-panel h2 { margin-bottom: 16px; }

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

.quick-tiles a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 112px;
    padding: 12px 8px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--navy);
    text-align: center;
}
.quick-tiles a:hover { border-color: var(--green-600); background: var(--green-100); }

.tile-icon {
    display: grid;
    place-items: center;
    height: 44px;
    color: var(--green-700);
    font-size: 32px;
    line-height: 1;
}

/* სურათი-ხატულები („თაკოს“ ფონდი, „ზურგჩანთა“) */
.tile-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.quick-tiles strong {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
}


/* ---------- 6. სიახლეები + კვირის სტუმარი ---------- */

.content-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);   /* იგივე, რაც .hero-row — სიახლეები = ბანერი, სტუმარი = სწრაფი ბმულები */
    gap: 20px;
    margin-top: 20px;
}

.news-section { padding: 20px; }

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title > a {
    color: var(--green-700);
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
}
.section-title > a:hover { text-decoration: underline; }

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

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.news-card:hover { border-color: var(--green-600); }

.news-photo {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--green-100);
}

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

/* სურათის არარსებობისას */
.photo-placeholder,
.guest-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #064d55, #087b55);
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}
.guest-placeholder { aspect-ratio: 4 / 5; border-radius: var(--r-md); }

/* როცა ბაზიდან სიახლე ვერ წამოვიდა — ერთი სანიმუშო ბარათი */
.demo-card { grid-column: 1 / -1; }
.demo-photo { aspect-ratio: 32 / 9; }

.news-tag {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #087b55;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.news-info { padding: 14px; }

.news-info h3 {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.news-info h3 a:hover { color: var(--green-700); }

.news-info p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.guest-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.guest-heading {
    padding: 13px 20px;
    background: #087b55;
    color: #fff;
    font-family: var(--font-title);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: .03em;
}
.guest-heading span { margin-right: 6px; opacity: .85; }

.guest-body {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
    padding: 20px;
}

.guest-body img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--r-md);
    background: var(--green-100);
}

.guest-text h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 19px;
}

.guest-text p {
    margin: 0 0 14px;
    padding: 8px 12px;
    border-left: 3px solid var(--green-600);
    color: var(--navy);
    font-size: 15px;
    font-style: italic;
}

/* მოკლე ინფორმაცია სტუმარზე (short_text) — სახელის ქვეშ, ციტატის ზემოთ */
.guest-text .guest-short {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
}

.guest-text a {
    color: var(--green-700);
    font-size: 14.5px;
    font-weight: 700;
}
.guest-text a:hover { text-decoration: underline; }


/* მარჯვენა სვეტი: „დღეს ქიმიაში“ + „დღის ციტატა“ ერთმანეთის ქვეშ */
.side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* „დღეს ქიმიაში“ — სტუმრის ჩარჩოს სტილით, კომპაქტური */
.today-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 18px;
}

.today-date {
    margin: 0;
    color: var(--green-700);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.today-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.today-main:not(:has(img)) { grid-template-columns: 1fr; }

.today-main img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--r-md);
    background: var(--green-100);
}

.today-main p {
    margin: 0;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.55;
}

.today-more {
    color: var(--green-700);
    font-size: 14.5px;
    font-weight: 700;
}
.today-more:hover { text-decoration: underline; }

/* „დღის ციტატა“ — ავსებს სვეტის დარჩენილ სიმაღლეს */
.quote-card {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 20px 22px;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #003f32, #064d55);
    color: #fff;
}

/* დიდი დეკორატიული ბრჭყალი */
.quote-card::before {
    content: "„";
    position: absolute;
    right: 14px;
    top: -34px;
    color: rgba(159, 230, 203, .18);
    font-size: 150px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.quote-card h2 {
    margin: 0 0 10px;
    color: var(--mint);
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .03em;
}

.quote-card blockquote { position: relative; margin: 0; }

.quote-card blockquote p {
    margin: 0 0 10px;
    font-size: 16.5px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
}

.quote-card footer {
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    font-weight: 700;
}
.quote-card footer::before { content: "— "; }


/* ---------- 7. ქვედა რიგი ---------- */

.bottom-row { margin-top: 20px; }

/* „ხშირად დაგჭირდებათ“ — სრულ სიგანეზე, სათაური და ბმულები ერთ ხაზზე */
.reference-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding: 18px 20px;
}
.reference-strip .reference-links { margin-top: 0; }

.reference-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.reference-links .ico { font-size: 17px; color: var(--green-700); }

.reference-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.reference-links a:hover { border-color: var(--green-600); background: var(--green-100); }


/* ---------- 8. ქვედა კოლონტიტული ---------- */

.site-footer {
    margin-top: 36px;
    padding: 30px 0;
    background: var(--green-900);
    color: rgba(255, 255, 255, .85);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-inner strong {
    display: block;
    color: #fff;
    font-size: 17px;
}

.footer-inner span { font-size: 14px; }
.footer-inner p { margin: 0; font-size: 14px; }


/* ---------- 9. პლანშეტი ---------- */

/* 1181–1340px: სრული მენიუ ოდნავ კომპაქტურად, რომ 9 პუნქტი ერთ ხაზზე დაეტიოს */
@media (max-width: 1340px) {
    .nav-inner { gap: 2px; }
    .nav-inner > a,
    .nav-parent { padding: 0 9px; font-size: 14.5px; }
}
@media (max-width: 1240px) {
    .nav-inner > a,
    .nav-parent { padding: 0 7px; font-size: 14px; }
    .nav-parent .ico { margin-left: -2px; }
}

@media (max-width: 1180px) {
    .brand-molecule { display: none; }
    .header-actions { margin-left: auto; }

    .hero-row,
    .content-row { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); }
    .guest-body { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 16px; }

    /* სიახლეების ვიწრო სვეტში ბარათები ჰორიზონტალურად: სურათი მარცხნივ, ტექსტი მარჯვნივ */
    .news-grid { grid-template-columns: 1fr; }
    .news-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
    .news-photo { aspect-ratio: auto; height: 100%; min-height: 120px; }
    .news-info h3 { -webkit-line-clamp: 2; }
    .news-info p { -webkit-line-clamp: 2; }
    .hero-copy { width: 100%; }
    .hero-banner { background-size: min(70%, 520px) auto, auto; background-position: right -80px center, 0 0; }

}


/* ---------- 10. ტელეფონი ---------- */

/* „მენიუ“ ღილაკი, რომელიც სრულ სიას ხსნის (<details>, JavaScript-ის გარეშე).
   1000px-ზე ნაკლებ სიგანეზე სრული მენიუ BPG ფონტით ერთ ხაზზე აღარ ეტევა. */
@media (max-width: 1180px) {
    .nav-inner { display: none; }
    .nav-mobile { display: block; }

    .nav-mobile summary {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 52px;
        list-style: none;
        cursor: pointer;
    }
    .nav-mobile summary::-webkit-details-marker { display: none; }
    .nav-mobile summary .ico { font-size: 22px; }

    .nav-mobile-list { display: grid; padding-bottom: 12px; }
    .nav-mobile-list a,
    .nav-mobile-group {
        padding: 11px 4px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }
    .nav-mobile-group { color: var(--mint); font-size: 14.5px; }

    /* მთავარი პუნქტები — სათაურის ფონტით; ქვეპუნქტები — ჩვეულებრივით */
    .nav-mobile summary,
    .nav-mobile-group,
    .nav-mobile-list > a:not(.sub) {
        font-family: var(--font-title);
        font-weight: 400;
        letter-spacing: .03em;
    }
    .nav-mobile summary,
    .nav-mobile-list > a:not(.sub) { font-size: 16px; }
    .nav-mobile-list .sub { padding-left: 20px; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
    .nav-mobile-list [aria-current] { color: var(--mint); }
}

@media (max-width: 900px) {
    .wrap { width: calc(100% - 32px); }

    .hero-row,
    .content-row { grid-template-columns: 1fr; }
    .hero-banner { min-height: 280px; }
    .hero-copy { padding: 28px 24px; }
}

@media (max-width: 640px) {
    .brand-inner { min-height: 76px; gap: 10px; }
    .brand img { width: 54px; }
    /* ვიწრო ეკრანზე პორტალის სახელი სათაურის ქვეშ ჩადის, ასოციაცია იმალება */
    .brand strong { font-size: 20px; }
    .brand-tag { padding-left: 0; border-left: 0; font-size: 13px; }
    .brand small { display: none; }

    .header-actions { gap: 4px; margin-left: auto; }
    .header-actions .icon-action { display: none; }
    .header-actions .login-link span { display: none; }
    .header-actions .login-link { padding: 8px 14px; }

    .hero-banner { background-size: 90% auto, auto; background-position: right -120px bottom -60px, 0 0; }
    .hero-copy p br { display: none; }
    .hero-search button { padding: 10px 14px; }

    .quick-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-tiles a { min-height: 96px; overflow-wrap: anywhere; }
    .quick-tiles strong { font-size: 13px; }

    .news-grid { grid-template-columns: 1fr; }
    .news-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
    .news-photo { aspect-ratio: auto; height: 100%; min-height: 120px; }
    .news-tag { display: none; }
    .news-info { padding: 10px 12px; }
    .news-info h3 { font-size: 15px; }
    .news-info p { font-size: 13px; -webkit-line-clamp: 2; }

    .guest-body { grid-template-columns: 110px 1fr; }


    .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* ---------- 11. მოძრაობა ---------- */

@media (prefers-reduced-motion: no-preference) {
    a, .quick-tiles a, .news-card {
        transition: background-color .2s, border-color .2s, color .2s;
    }
}

/* ბოლო ჩამოსაშლელი მენიუ მარჯვენა კიდეზე, რომ ეკრანს არ გასცდეს */
.nav-drop:last-of-type .dropdown { left: auto; right: 0; }


/* =========================================================
   12. შიდა გვერდები (სიახლეების სია, სიახლის გვერდი)
   ========================================================= */

/* „მთავარი / სიახლეები“ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}
.breadcrumb a { color: var(--green-700); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.page-row { margin-top: 0; align-items: start; }

.page-count { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* სიახლეების სია: სურათი მარცხნივ, ტექსტი მარჯვნივ */
.news-list { display: grid; }

.news-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.news-row:first-child { border-top: 0; padding-top: 4px; }

.news-row-photo {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--green-100);
}
.news-row-photo img { width: 100%; height: 100%; object-fit: cover; }

.news-row-text time { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13.5px; }

.news-row-text h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}
.news-row-text h2 a:hover { color: var(--green-700); }

.news-row-text p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.empty-note { color: var(--muted); }

/* გვერდების ნავიგაცია */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.pg-num,
.pg-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 600;
}
.pg-num:hover,
.pg-step:hover { border-color: var(--green-600); background: var(--green-100); }
.pg-current { border-color: #087b55; background: #087b55; color: #fff; }
.pg-gap { padding: 0 2px; color: var(--muted); }

/* სიახლის გვერდი */
.article {
    min-width: 0;
    padding: 28px 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.article-head time { display: block; margin-bottom: 6px; color: var(--green-700); font-size: 14px; font-weight: 600; }

.article h1 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.3;
}

/* სტატიის ტექსტი (ბაზიდან მოსული HTML) */
.article-body {
    color: var(--text);
    font-size: 16.5px;
    line-height: 1.8;
    overflow-wrap: break-word;
}
.article-body::after { content: ""; display: block; clear: both; }
.article-body p { margin: 0 0 1em; }
.article-body h2,
.article-body h3,
.article-body h4 { margin: 1.4em 0 .5em; color: var(--navy); line-height: 1.35; }
.article-body a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.article-body iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 1em 0; border: 0; border-radius: 10px; }
.article-body ul,
.article-body ol { margin: 0 0 1em; padding-left: 1.4em; }
.article-body blockquote { margin: 1.2em 0; padding: 8px 16px; border-left: 3px solid var(--green-600); color: var(--navy); font-style: italic; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1em 0; }
.article-body td,
.article-body th { padding: 6px 10px; border: 1px solid var(--line); }

/* მთავარი სურათი — მარჯვნივ, ტექსტი გარს უვლის */
.article-figure {
    float: right;
    width: min(40%, 340px);
    margin: 4px 0 16px 24px;
}
.article-figure img { width: 100%; border-radius: var(--r-md); }

/* „ეს საინტერესოა“: წყარო და ორიგინალი სტატიის ბმული */
.article-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 20px 0 0;
    padding: 12px 16px;
    border-radius: var(--r-md);
    background: var(--green-100);
    color: var(--muted);
    font-size: 14.5px;
}
.article-source strong { color: var(--navy); font-weight: 700; }
.article-source a { color: var(--green-700); font-weight: 700; }
.article-source a:hover { text-decoration: underline; }

.article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.share-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #1877f2;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
}
.share-link .ico { font-size: 18px; }
.share-link:hover { background: #0f62cf; }

.back-link { color: var(--green-700); font-weight: 700; font-size: 14.5px; }
.back-link:hover { text-decoration: underline; }

/* წინა / შემდეგი სიახლე */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}
.article-nav a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.article-nav a:hover { border-color: var(--green-600); background: var(--green-100); }
.article-nav small { display: block; color: var(--green-700); font-size: 13px; font-weight: 700; }
.article-nav span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 600;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.an-newer { text-align: right; grid-column: 2; }

/* მარჯვენა სვეტი შიდა გვერდებზე — იგივე ბლოკები, რაც მთავარზე (includes/sidebar.php) */
.side-column .quote-card { flex: none; }


/* =========================================================
   13. კვირის სტუმარი (list_guests.php, view_guest.php)
   ========================================================= */

/* უახლესი სტუმარი — დიდი ბარათი სიის თავში */
.guest-feature {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
    padding: 20px;
    border-radius: var(--r-lg);
    background: var(--green-100);
}
.gf-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
.gf-photo img { width: 100%; height: 100%; object-fit: cover; }
.gf-kicker { color: var(--green-700); font-size: 13.5px; font-weight: 700; }
.gf-quote {
    margin: 8px 0 10px;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .02em;
}
.gf-quote a:hover { color: var(--green-700); }
.gf-name { margin: 0 0 8px; color: var(--navy); font-size: 16px; font-weight: 700; }
.gf-intro { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.gf-more {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 9px;
    background: #087b55;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
}
.gf-more:hover { background: #00513f; }

/* ციტატების კედელი: სტუმრის სიტყვები წინ, ფოტო და სახელი ქვემოთ */
.quote-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}
.quote-tile { min-width: 0; }
.qt-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    height: 100%;
    padding: 18px 18px 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}
.qt-link::before {                  /* ზედა მწვანე ზოლი */
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: linear-gradient(90deg, #087b55, #9fe6cb);
}
.qt-link:hover { border-color: var(--green-600); }
.qt-link:hover .qt-quote { color: var(--green-700); }
.qt-quote {
    color: var(--navy);
    font-family: var(--font-title);
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: .02em;
}
.qt-person { display: flex; align-items: center; gap: 12px; }
.qt-person img,
.qt-avatar {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--green-100);
}
.qt-avatar { display: grid; place-items: center; color: var(--green-700); font-family: var(--font-title); font-size: 22px; }
.qt-who { display: flex; flex-direction: column; min-width: 0; }
.qt-who strong { color: var(--navy); font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.qt-who small { color: var(--muted); font-size: 12.5px; }

/* ინტერვიუს გვერდი */
.interview-head {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 20px;
}
.ih-photo { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); background: var(--green-100); }
.ih-kicker { color: var(--green-700); font-size: 13.5px; font-weight: 700; }
.ih-name { margin: 6px 0 6px; color: var(--navy); font-size: 18px; font-weight: 700; }
.interview .interview-head h1 {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .02em;
}
.interview-head:not(:has(.ih-photo)) { grid-template-columns: 1fr; }

.interview-intro { margin-bottom: 14px; color: var(--navy); font-size: 17px; line-height: 1.75; }
.interview-intro p { margin: 0 0 .6em; }

.interview-bio {
    margin: 0 0 20px;
    padding: 10px 14px;
    border-left: 3px solid var(--green-600);
    border-radius: 0 10px 10px 0;
    background: var(--green-100);
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
}
.interview-bio p { margin: 0 0 .4em; }

/* კითხვები ტექსტში მუქი შრიფტითაა — მწვანედ გამოვყოთ */
.interview-body b,
.interview-body strong { color: var(--green-700); }
.interview-body p:has(> b:first-child),
.interview-body p:has(> strong:first-child) { margin-top: .6em; }

.interview-author { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; text-align: right; }
.interview-author strong { color: var(--navy); }

/* =========================================================
   14. განათლება (education/: უნივერსიტეტები, ბიბლიოთეკები, პროგრამები)
   ========================================================= */

.page-lead { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 70ch; }
.section-title-sub { margin-top: 28px; }

/* უნივერსიტეტების ბარათები */
.org-grid,
.program-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.org-card,
.program-card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}
.org-card:hover,
.program-card:hover { border-color: var(--green-600); background: var(--green-100); }
.org-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 22px;
}
.org-card:hover .org-icon,
.program-card:hover .org-icon { background: var(--surface); }
.org-text { display: flex; flex-direction: column; min-width: 0; }
.org-text strong { color: var(--navy); font-size: 15px; font-weight: 700; line-height: 1.4; }
.org-text small { color: var(--muted); font-size: 13px; }

/* კვლევითი ინსტიტუტები (ბმულის გარეშე) */
.inst-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.inst-list li { display: flex; align-items: center; gap: 14px; color: var(--navy); font-size: 15px; font-weight: 600; line-height: 1.45; }

/* ბმულები საფეხურებზე */
.edu-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.edu-links a {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--green-700);
    font-size: 14.5px;
    font-weight: 700;
}
.edu-links a:hover { border-color: var(--green-600); background: var(--green-100); }

/* ბიბლიოთეკები */
.lib-list { display: grid; gap: 18px; }
.lib-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.lib-photo { align-self: start; padding: 10px; border-radius: var(--r-md); background: var(--green-100); text-align: center; }
.lib-photo img { max-width: 100%; max-height: 220px; margin: 0 auto; border-radius: 8px; }
.lib-text h2 { margin: 0 0 10px; color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.4; }
.lib-text > p { margin: 0 0 14px; color: var(--text); font-size: 15px; line-height: 1.75; }
.lib-facts { display: grid; gap: 8px; margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--green-100); }
.lib-facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.lib-facts dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.lib-facts dd { margin: 0; color: var(--navy); font-size: 14.5px; }
.lib-facts a { color: var(--green-700); font-weight: 700; }
.lib-facts a:hover { text-decoration: underline; }

/* პროგრამები: საფეხურების ჩანართები */
.level-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 18px;
    padding: 4px;
    border-radius: 12px;
    background: var(--green-100);
    width: 100%;   /* მწვანე ზოლი მთელ სიგანეზე */
    max-width: 100%;
}
/* საძიებო ველის ან სათაურის გვერდით — მხოლოდ საჭირო სიგანე */
.cc-bar .level-tabs, .pt-top .level-tabs { width: fit-content; }
.level-tabs a {
    padding: 8px 18px;
    border-radius: 9px;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: 15px;
    letter-spacing: .03em;
}
.level-tabs a:hover { background: var(--surface); }
.level-tabs a.current { background: #087b55; color: #fff; }

.level-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.level-facts div { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.level-facts dt { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.level-facts dd { margin: 2px 0 0; color: var(--green-700); font-size: 17px; font-weight: 800; }

.empty-box {
    padding: 18px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--r-md);
    color: var(--muted);
    font-size: 15px;
}
.empty-box p { margin: 0 0 6px; }
.empty-box strong { color: var(--navy); }
.empty-box a { color: var(--green-700); font-weight: 700; }

.cta-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--green-100);
    color: var(--navy);
    font-size: 14.5px;
}
.cta-box p { margin: 0; }
.cta-box .org-icon { background: var(--surface); }
.cta-box a { color: var(--green-700); font-weight: 700; text-decoration: underline; }

/* პროგრამის გვერდი */
.prog-facts { display: grid; gap: 0; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.prog-facts div { display: grid; grid-template-columns: minmax(180px, 34%) minmax(0, 1fr); }
.prog-facts div + div { border-top: 1px solid var(--line); }
.prog-facts dt { padding: 12px 16px; background: var(--green-100); color: var(--muted); font-size: 14px; font-weight: 600; }
.prog-facts dd { margin: 0; padding: 12px 16px; color: var(--navy); font-size: 15px; font-weight: 600; }
.prog-facts a { color: var(--green-700); }
.prog-section { margin-top: 24px; }
.prog-section h2 {
    margin: 0 0 10px;
    color: var(--green-700);
    font-family: var(--font-title);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: .03em;
}

/* ტრენინგები */
.tab-count {
    display: inline-block;
    min-width: 22px;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0, 63, 50, .12);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0;
}
.level-tabs a.current .tab-count { background: rgba(255, 255, 255, .25); }

.training-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.training-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}
.training-card:hover { border-color: var(--green-600); background: var(--green-100); }
.tc-thumb {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 40px;
}
.training-card:hover .tc-thumb { background: var(--surface); }
.tc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tc-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--green-700); font-size: 13px; font-weight: 700; }
.tc-year { padding: 1px 8px; border-radius: 999px; background: var(--green-100); color: var(--navy); font-size: 12px; }
.tc-text strong { color: var(--navy); font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.tc-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* =========================================================
   15. მეცნიერება (კვლევა, კონფერენციები, ჟურნალები)
   ========================================================= */

/* კვლევის სფეროების ფილები */
.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.field-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}
a.field-tile:hover { border-color: var(--green-600); background: var(--green-100); }
.ft-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 26px;
}
a.field-tile:hover .ft-icon { background: var(--surface); }
.field-tile strong { color: var(--navy); font-size: 16px; font-weight: 700; line-height: 1.35; }
.ft-count { color: var(--green-700); font-size: 13.5px; font-weight: 700; }
.field-tile.is-empty { border-style: dashed; background: transparent; }
.field-tile.is-empty .ft-icon { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.field-tile.is-empty strong { color: var(--muted); }
.field-tile.is-empty .ft-count { color: var(--muted); font-weight: 500; }

/* სფეროს თემების სია */
.field-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.field-head .ft-icon { width: 56px; height: 56px; font-size: 30px; flex: none; }
.field-head h1 {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: .03em;
}
.field-head p { margin: 2px 0 0; color: var(--green-700); font-size: 14px; font-weight: 700; }

.topic-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.topic-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green-600);
    border-radius: var(--r-md);
}
.topic-card:hover { background: var(--green-100); }
.topic-card strong { color: var(--navy); font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: 12.5px; font-weight: 600; }
.topic-card:hover .kw { background: var(--surface); }
.list-back { margin: 22px 0 0; }

/* სამეცნიერო თემის გვერდი */
.topic-field { display: inline-flex; align-items: center; gap: 6px; }
.topic-field .ico { font-size: 16px; }
.topic-field:hover { text-decoration: underline; }
.topic-keywords { margin: -6px 0 18px; }
.contact-box {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    background: var(--green-100);
}
.contact-box h2 { margin: 0 0 8px; color: var(--green-700); font-family: var(--font-title); font-size: 18px; font-weight: 400; letter-spacing: .03em; }
.contact-box .article-body { font-size: 15px; }
.contact-box .article-body p:last-child { margin-bottom: 0; }
.related-topics { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.related-topics h2 { margin: 0 0 10px; color: var(--navy); font-size: 16px; font-weight: 700; }
.related-topics ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.related-topics a { color: var(--green-700); font-weight: 600; font-size: 15px; }
.related-topics a:hover { text-decoration: underline; }
/* ძველი ტექსტის სურათი წარწერით (class="l_img") */
.article-body p.l_img { float: left; clear: left; max-width: 240px; margin: 4px 22px 4px 0; color: var(--muted); font-size: 13px; text-align: center; }
.article-body p.l_img img { display: block; margin: 0 auto 4px; }

@media (max-width: 640px) {
    .article-body p.l_img { float: none; max-width: 100%; margin: 0 0 12px; }
}

/* კონფერენციები */
.year-heading {
    margin: 22px 0 10px;
    color: var(--green-700);
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .03em;
}
.year-heading:first-of-type { margin-top: 4px; }
.conf-list { display: grid; gap: 12px; }
.conf-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.cc-thumb {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 40px;
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-text h2 { margin: 0 0 6px; color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.45; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; color: var(--green-700); font-size: 14px; font-weight: 600; }
.cc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cc-meta .ico { font-size: 16px; }
.cc-excerpt { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.cc-body { font-size: 15px; margin-bottom: 8px; }
.cc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-size: 14.5px; font-weight: 700; }
.cc-link .ico { font-size: 15px; }
.cc-link:hover { text-decoration: underline; }

/* ჟურნალები */
.journal-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.journal-list a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green-600);
    border-radius: 10px;
}
.journal-list a:hover { background: var(--green-100); }
.journal-list strong { color: var(--navy); font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.journal-list small { color: var(--muted); font-size: 12.5px; }

@media (max-width: 640px) {
    .conf-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .cc-thumb { width: 64px; height: 64px; font-size: 28px; }
    .level-tabs { width: 100%; }
}

/* =========================================================
   16. პუბლიკაციები (VET ჟურნალი, წიგნები, ინფოგრაფიკა, ჩამოტვირთვები)
   ========================================================= */

/* ჟურნალი „პროფესიული განათლება“ */
.journal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.jh-logo { width: 64px; height: auto; flex: none; }
.journal-head h1 { margin: 0 0 4px; color: var(--navy); font-family: var(--font-title); font-size: 23px; font-weight: 400; letter-spacing: .03em; }
.jh-fb { display: inline-flex; align-items: center; gap: 6px; color: #1877f2; font-size: 14px; font-weight: 700; }
.jh-fb:hover { text-decoration: underline; }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.issue-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); text-align: center; }
.issue-card:hover { border-color: var(--green-600); background: var(--green-100); }
.issue-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 40, 30, .15); }
.issue-card span { color: var(--navy); font-weight: 700; font-size: 15px; }
.issue-card small { display: inline-flex; align-items: center; gap: 4px; color: var(--green-700); font-size: 13px; font-weight: 600; }
.board-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.board-list li { display: grid; grid-template-columns: minmax(170px, 30%) minmax(0, 1fr); gap: 14px; padding: 11px 16px; }
.board-list li + li { border-top: 1px solid var(--line); }
.board-list strong { color: var(--navy); font-size: 15px; }
.board-list span { color: var(--muted); font-size: 14.5px; }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 18px 0 0; padding: 16px; list-style: none; border-radius: var(--r-md); background: #fff; }
.partner-logos img { max-height: 56px; width: auto; }

/* წიგნები */
.book-list { display: grid; gap: 16px; }
.book-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.bk-cover { display: grid; place-items: center; align-self: start; min-height: 180px; padding: 8px; border-radius: var(--r-md); background: var(--green-100); color: var(--green-700); font-size: 44px; }
.bk-cover img { width: 100%; border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 40, 30, .18); }
.bk-text h2 { margin: 0 0 4px; color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.4; }
.bk-author { margin: 0 0 10px; color: var(--green-700); font-size: 14.5px; font-weight: 600; }
.bk-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; }
.bk-facts div { display: flex; gap: 6px; font-size: 13.5px; }
.bk-facts dt { color: var(--muted); }
.bk-facts dd { margin: 0; color: var(--navy); font-weight: 600; }
.bk-annotation { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.bk-more { margin: 0 0 12px; }
.bk-more summary { color: var(--green-700); font-size: 14px; font-weight: 700; cursor: pointer; }
.bk-more .article-body { margin-top: 8px; font-size: 14.5px; }
.bk-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.bk-action .ico { font-size: 17px; }

/* ინფოგრაფიკა */
.cc-head h1 { margin: 0; color: var(--navy); font-family: var(--font-title); font-size: 22px; font-weight: 400; letter-spacing: .03em; }
.cc-head p { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.cc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cc-bar .level-tabs { margin: 0; }
.cc-search { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cc-search input { width: 220px; padding: 6px 8px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; }
.cc-search button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: #087b55; color: #fff; font-size: 16px; cursor: pointer; }
.cc-search:focus-within { outline: 3px solid var(--mint); outline-offset: 2px; }
.search-note { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.search-note a { color: var(--green-700); font-weight: 700; }
.infographic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ig-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 10px 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.ig-card:hover { border-color: var(--green-600); background: var(--green-100); }
.ig-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--green-100); color: var(--green-700); font-size: 40px; }
.ig-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ig-card strong { color: var(--navy); font-size: 15px; font-weight: 700; line-height: 1.4; }
.ig-card small { color: var(--muted); font-size: 12.5px; }
.ig-figure { margin: 0 0 14px; }
.ig-figure img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); }
.ig-actions { margin: 0 0 18px; }
.ig-actions .gf-more { display: inline-flex; align-items: center; gap: 8px; }
.ig-keywords { margin-top: 12px; }
a.kw:hover { background: var(--green-600); color: #fff; }
.cc-people { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 18px; padding: 0; list-style: none; }
.cc-people li { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--navy); font-size: 14px; font-weight: 600; }
.cc-people img { width: 140px; height: 140px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }

/* წიგნის ჩამოტვირთვის გვერდი */
.dl-book { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 18px; }
.dl-book .bk-cover { min-height: 0; }
.dl-book h1 { margin: 4px 0 6px; color: var(--navy); font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.35; }
.dl-result { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-md); font-size: 15px; }
.dl-result p { margin: 0 0 10px; }
.dl-ok { background: var(--green-100); color: var(--navy); }
.dl-ok .gf-more { display: inline-flex; align-items: center; gap: 8px; }
.dl-err { border-left: 3px solid #c0392b; background: #fdecea; color: #8e2a1f; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .dl-err { background: #3a1d1a; color: #f2b8b0; }
}
.download-page .archive-note p { margin: 0 0 6px; }
.download-page .archive-note p:last-child { margin: 0; }
.download-page .archive-note a { color: inherit; font-weight: 700; text-decoration: underline; }
.dl-form { display: grid; gap: 6px; max-width: 440px; margin: 0 0 18px; }
.dl-form label { margin-top: 8px; color: var(--navy); font-size: 14.5px; font-weight: 700; }
.dl-form input {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}
.dl-form input:focus { outline: 3px solid var(--mint); outline-offset: 1px; border-color: var(--green-600); }
.dl-form button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; }

/* ელექტრონული წიგნი (e-books/inorganic_chemistry) */
.eb-head { margin-bottom: 12px; }
.eb-title { margin: 4px 0 0; color: var(--navy); font-family: var(--font-title); font-size: 19px; line-height: 1.4; letter-spacing: .02em; }
.eb-cover { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 26px; align-items: start; }
.eb-cover img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 8px 26px rgba(0, 40, 30, .2); }
.eb-cover-text h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.35; }
.eb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.eb-actions .gf-more { display: inline-flex; align-items: center; gap: 8px; }
.eb-small-cover { width: min(40%, 220px); text-align: center; }
.eb-small-cover figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.eb-h1 { margin-top: 0 !important; font-family: var(--font-title); font-weight: 400 !important; letter-spacing: .03em; }
.eb-editors { margin: 0; padding-left: 1.2em; color: var(--navy); font-size: 15px; line-height: 1.8; }
.eb-chapter { margin: 0 0 4px; color: var(--green-700); font-size: 14px; font-weight: 700; }

.toc { display: grid; gap: 8px; }
.toc-chapter { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.toc-chapter[open] { border-color: var(--green-600); }
.toc-chapter summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.toc-chapter summary::-webkit-details-marker { display: none; }
.toc-chapter summary::after { content: "+"; margin-left: auto; color: var(--green-700); font-size: 20px; font-weight: 700; line-height: 1; }
.toc-chapter[open] summary::after { content: "−"; }
.toc-chapter summary:hover { background: var(--green-100); }
.toc-num { flex: none; min-width: 34px; color: var(--green-700); font-weight: 800; font-size: 14.5px; }
.toc-title { color: var(--navy); font-weight: 700; font-size: 15.5px; }
.toc-count { padding: 1px 9px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: 12.5px; font-weight: 700; }
.toc-chapter ul { margin: 0; padding: 4px 16px 12px; list-style: none; border-top: 1px solid var(--line); }
.toc-chapter li a { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; color: var(--navy); font-size: 15px; }
.toc-chapter li + li a { border-top: 1px dashed var(--line); }
.toc-chapter li a:hover span:not(.toc-num) { color: var(--green-700); text-decoration: underline; }
.toc-chapter li small { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }

.q-list { display: grid; gap: 6px; margin: 0; padding-left: 0; list-style: none; counter-reset: q; }
.q-list li { counter-increment: q; }
.q-list a { display: flex; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-size: 15px; line-height: 1.55; }
.q-list a::before { content: counter(q) "."; flex: none; min-width: 26px; color: var(--green-700); font-weight: 800; }
.q-list a:hover { border-color: var(--green-600); background: var(--green-100); }

.qa { display: grid; gap: 16px; margin-top: 10px; }
.qa-label { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: #087b55; color: #fff; font-size: 12.5px; font-weight: 700; }
.qa-question { padding: 16px 18px; border-radius: var(--r-md); background: var(--green-100); }
.qa-q { color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.55; }
.qa-q p { margin: 0; }
.qa-answer { padding: 4px 2px 0; }
.qa-answer .qa-label { background: var(--navy); }
.no-select { -webkit-user-select: none; user-select: none; }

@media (max-width: 640px) {
    .eb-cover { grid-template-columns: 1fr; }
    .eb-cover img { max-width: 260px; }
}

/* ჩამოტვირთვები */
.file-list { display: grid; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.file-list li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.fl-name { flex: 1; min-width: 0; color: var(--navy); font-size: 15px; font-weight: 600; }
.fl-formats { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt { padding: 4px 12px; border-radius: 8px; background: #087b55; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.fmt small { font-weight: 500; opacity: .85; }
.fmt:hover { background: #00513f; }
.fmt-doc, .fmt-dot { background: #1d5fae; }
.fmt-doc:hover, .fmt-dot:hover { background: #154a89; }
.fmt-png { background: #8a5a12; }

@media (max-width: 640px) {
    .book-card { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 14px; }
    .bk-cover { min-height: 120px; font-size: 32px; }
    .board-list li { grid-template-columns: 1fr; gap: 2px; }
    .cc-search, .cc-search input { width: 100%; }
    .file-list li { flex-wrap: wrap; }
}

/* ტრენინგის გვერდი */
.training-audience { margin: -8px 0 16px; color: var(--muted); font-size: 14.5px; }
.training-audience strong { color: var(--navy); }
.archive-note {
    margin: 0 0 20px;
    padding: 10px 14px;
    border-left: 3px solid #c9a227;
    border-radius: 0 10px 10px 0;
    background: #fbf6e6;
    color: #6b5a1e;
    font-size: 14.5px;
    line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .archive-note { background: #2b2717; color: #e3d39a; }
}
.training .article-body table { width: 100%; }
.training .article-body tr:nth-child(even) td { background: var(--green-100); }

@media (max-width: 640px) {
    .training-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .tc-thumb { width: 64px; height: 64px; font-size: 28px; }
    .tc-desc { display: none; }
}

@media (max-width: 640px) {
    .lib-card { grid-template-columns: 1fr; padding: 16px; }
    .lib-photo { max-width: 200px; }
    .lib-facts div,
    .prog-facts div { grid-template-columns: 1fr; gap: 2px; }
    .prog-facts dt { padding-bottom: 4px; }
    .level-tabs a { padding: 8px 12px; font-size: 14px; }
}

@media (max-width: 640px) {
    .guest-feature { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px; align-items: start; }
    .gf-intro { display: none; }
    .quote-wall { grid-template-columns: 1fr; }
    .interview-head { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
    .ih-photo { width: 96px; }
}

@media (max-width: 900px) {
    .article { padding: 22px 20px; }
}

@media (max-width: 640px) {
    .news-row { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
    .news-row-text h2 { font-size: 16px; }
    .news-row-text p { display: none; }
    .article-figure { float: none; width: 100%; margin: 0 0 16px; }
    .article-body { font-size: 16px; }
    .article-nav { grid-template-columns: 1fr; }
    .an-newer { grid-column: auto; text-align: left; }
    .pg-step { padding: 0 10px; }
}


/* ---------- ოლიმპიადები (new/oly/) ---------- */
.oly-head { margin-bottom: 14px; }
.oly-head .ih-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.oly-lead { margin: 0 0 18px; color: var(--text); font-size: 15.5px; line-height: 1.7; }
.oly-sub { margin-top: 28px; }
.oly-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* მედლები — ფერები ერთ ადგილას */
.medal-stats, .medal-chips, .medal { --gold: #c9971c; --silver: #8d99a3; --bronze: #b06a35; --hm: #0b9164; }

.medal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.winner-list .medal { justify-self: start; }
.medal-stat {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 18px 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--navy);
    text-align: center;
}
.medal-stat:hover { border-color: var(--green-600); background: var(--green-100); }
.ms-disc { width: 38px; height: 38px; margin-bottom: 6px; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), inset 0 0 0 4px rgba(255, 255, 255, .35); }
.ms-gold .ms-disc   { background: var(--gold); }
.ms-silver .ms-disc { background: var(--silver); }
.ms-bronze .ms-disc { background: var(--bronze); }
.ms-hm .ms-disc     { background: var(--hm); border-radius: 8px; }
.medal-stat strong { font-size: 30px; font-weight: 800; line-height: 1.1; }
.medal-stat span:last-child { color: var(--muted); font-size: 13.5px; font-weight: 600; }

.medal {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
}
.medal-gold   { background: var(--gold); }
.medal-silver { background: var(--silver); }
.medal-bronze { background: var(--bronze); }
.medal-hm     { background: var(--hm); }

/* უახლესი ოლიმპიადები */
.oly-latest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.oly-mini {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--navy);
}
.oly-mini:hover { border-color: var(--green-600); background: var(--green-100); }
.oly-mini .oly-logo { width: 64px; height: 64px; padding: 4px; font-size: 28px; }
.om-text { display: grid; gap: 4px; min-width: 0; }
.om-text strong { font-size: 14.5px; line-height: 1.4; }
.om-text small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.om-text .ico { flex: none; color: var(--green-700); }

.oly-logo {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--green-700);
    font-size: 40px;
}
.oly-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ბოლო პრიზიორები */
.winner-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); }
.winner-list li { display: grid; grid-template-columns: 52px minmax(150px, 210px) 92px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; }
.winner-list li + li { border-top: 1px solid var(--line); }
.wl-year { color: var(--green-700); font-weight: 800; }
.wl-name { color: var(--navy); font-weight: 700; }
.wl-oly { overflow: hidden; color: var(--muted); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }

/* ფოტოების ზოლი — გადახვევა JavaScript-ის გარეშე */
.photo-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;   /* ერთი ფოტო ერთ ჯერზე — სლაიდები ფართო პანორამებია (820×230) */
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}
.photo-strip:focus-visible { outline: 3px solid var(--green-600); outline-offset: 3px; }
.photo-strip figure { margin: 0; scroll-snap-align: start; overflow: hidden; border-radius: var(--r-md); background: var(--green-100); }
.photo-strip img { width: 100%; aspect-ratio: 820 / 230; object-fit: contain; background: #0d2621; }   /* contain — სურათი არასოდეს იჭრება */
.photo-strip figcaption { padding: 8px 12px; color: var(--navy); font-size: 13.5px; font-weight: 600; line-height: 1.45; }

/* ფილტრის ჩიპები (სახეობა, მედალი) */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.chip-row a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}
.chip-row a span { color: var(--muted); font-weight: 700; }
.chip-row a:hover { border-color: var(--green-600); }
.chip-row a.current { border-color: #087b55; background: #087b55; color: #fff; }
.chip-row a.current span { color: rgba(255, 255, 255, .8); }
.chip-row i { width: 12px; height: 12px; border-radius: 50%; }
.mc-gold i { background: var(--gold); } .mc-silver i { background: var(--silver); }
.mc-bronze i { background: var(--bronze); } .mc-hm i { background: var(--hm); border-radius: 3px; }
.mc-title { margin-right: 4px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ოლიმპიადის ბარათი */
.oly-list { display: grid; gap: 14px; }
.oly-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    scroll-margin-top: 20px;
}
.oly-card:target { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.oly-body h3 { margin: 0 0 6px; color: var(--navy); font-size: 17.5px; font-weight: 700; line-height: 1.45; }
.oly-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin: 6px 0 12px; }
.oly-team h4 { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.oly-team h4.oly-reserve { margin-top: 12px; }
.oly-team ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.oly-team li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--navy); font-size: 14.5px; }
.oly-team li small { color: var(--muted); font-size: 13px; }

/* პრიზიორების ფილტრი და ცხრილი */
.oly-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--green-100);
}
.oly-filter > div { display: grid; gap: 4px; min-width: 110px; }
.oly-filter .of-wide { flex: 1; min-width: 180px; }
.oly-filter label { color: var(--muted); font-size: 13px; font-weight: 600; }
.oly-filter select {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--navy);
    font: inherit;
    font-size: 14.5px;
}
.of-actions { display: flex !important; align-items: center; gap: 12px; }
.of-actions button {
    padding: 9px 20px;
    border: 0;
    border-radius: 9px;
    background: #087b55;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.of-actions button:hover { background: #00513f; }
.of-actions a { color: var(--green-700); font-size: 14px; font-weight: 700; }

.medal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.medal-table th { padding: 10px 12px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; }
.medal-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--navy); vertical-align: top; }
.medal-table tbody tr:hover { background: var(--green-100); }
.mt-year { color: var(--green-700) !important; font-weight: 800; }
.mt-name { font-weight: 700; }
.mt-oly small { display: block; color: var(--muted); font-size: 13px; }
.mt-total { margin-top: 10px; }

/* ამოცანები */
.prob-years { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.prob-years > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; }
.prob-years > div + div { border-top: 1px solid var(--line); }
.prob-years dt { color: var(--green-700); font-size: 16px; font-weight: 800; }
.prob-years dd { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.prob-years a, .prob-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}
.prob-years a:hover, .prob-list a:hover { border-color: var(--green-600); background: var(--green-100); }
.prob-years .ico, .prob-list .ico { color: var(--green-700); }
.prob-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.prob-list a { display: flex; height: 100%; }

/* დოკუმენტების სია */
.doc-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.doc-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--navy);
}
.doc-list a:hover { border-color: var(--green-600); background: var(--green-100); }
.doc-list strong { display: block; font-size: 15px; }
.doc-list small { color: var(--muted); font-size: 13px; }
.dl-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--green-100); color: var(--green-700); font-size: 22px; }
.doc-list a > .ico { color: var(--muted); }

@media (max-width: 900px) {
    .oly-latest { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .medal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .oly-card { grid-template-columns: 1fr; gap: 12px; }
    .oly-card .oly-logo { width: 84px; height: 84px; }
    .winner-list li { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .winner-list .medal { justify-self: end; }
    .wl-oly { grid-column: 2 / -1; white-space: normal; }
    .photo-strip { grid-auto-columns: 84%; }
    .medal-table thead { display: none; }
    .medal-table, .medal-table tbody, .medal-table tr, .medal-table td { display: block; }
    .medal-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .medal-table td { padding: 0; border: 0; }
    .medal-table .mt-oly { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
    .prob-years > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- პროექტები (new/projects/) ---------- */
.proj-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 26px;
}
.proj-head { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 18px; }
.proj-head h1 { margin: 0; color: var(--navy); font-family: var(--font-title); font-size: 22px; font-weight: 400; line-height: 1.4; letter-spacing: .03em; }
.proj-status { margin: 2px 0 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.proj-status span { display: inline-block; padding: 1px 10px; border-radius: 999px; font-weight: 700; }
.ps-current { background: #087b55; color: #fff; }
.ps-archive { background: var(--green-100); color: var(--green-700); }
.proj-lead { margin: 0 0 16px; color: var(--text); font-size: 15.5px; }
.proj-note {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-left: 3px solid #c9971c;
    border-radius: 0 10px 10px 0;
    background: rgba(201, 151, 28, .1);
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 600;
}

/* პროექტების სია */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.proj-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--navy);
}
.proj-card:hover { border-color: var(--green-600); background: var(--green-100); }
.proj-card.is-archive .proj-icon { background: transparent; border: 1px solid var(--line); }
.pc-text { display: grid; gap: 4px; min-width: 0; }
.pc-text strong { font-size: 15.5px; line-height: 1.4; }
.pc-text small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pc-year { justify-self: start; margin-top: 2px; padding: 0 8px; border-radius: 6px; background: var(--green-100); color: var(--green-700); font-size: 12.5px; font-weight: 700; }

/* ორსვეტიანი ყუთები (მოთხოვნები / დოკუმენტები) */
.proj-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0; }
.proj-box { padding: 14px 18px; border-radius: var(--r-md); background: var(--green-100); }
.article-body .proj-box h2 { margin: 0 0 8px; font-size: 15px; }
.article-body .proj-box ul { margin: 0; padding-left: 18px; }

/* წიგნები */
.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; margin: 0; padding: 0; list-style: none; }
.pb-grid a { display: grid; gap: 6px; color: var(--navy); text-align: center; }
.pb-grid img { width: 100%; aspect-ratio: 150 / 210; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 16px rgba(0, 40, 30, .16); transition: transform .15s; }
.pb-grid a:hover img { transform: translateY(-3px); }
.pb-grid strong { font-size: 14px; line-height: 1.4; }
.pb-grid small { color: var(--muted); font-size: 13px; }

/* ლექციები */
.proj-intro::after { content: ""; display: block; clear: both; }
.proj-side-img { float: right; max-width: 30%; height: auto; margin: 0 0 12px 20px; border-radius: 10px; }
.lecture-list { display: grid; gap: 12px; }
.lecture-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.lecture-card img { width: 100%; height: auto; border-radius: 8px; }
.lecture-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 16.5px; font-weight: 700; }
.lc-author { margin: 0 0 6px; color: var(--green-700); font-size: 13.5px; font-weight: 600; }
.lc-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* პრემია */
.prize-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.prize-row div { padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r-md); text-align: center; }
.prize-row dt { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.prize-row dd { margin: 2px 0 0; color: var(--green-700); font-size: 20px; font-weight: 800; }

/* კითხვარი */
.question-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: q; }
.question-list li { position: relative; padding: 10px 14px 10px 52px; border: 1px solid var(--line); border-radius: var(--r-md); counter-increment: q; }
.question-list li::before {
    content: counter(q);
    position: absolute;
    left: 12px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    font-weight: 800;
    font-size: 14px;
}
.question-list strong { display: block; color: var(--navy); font-size: 14.5px; }
.question-list small { color: var(--muted); font-size: 13px; }

/* დამფინანსებელი */
.proj-funding { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.pf-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 10px; }
.pf-logos img { max-height: 56px; width: auto; }
.proj-funding p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ვიზიტები, განრიგი */
.vt-link a { display: inline-flex; align-items: center; gap: 5px; color: var(--green-700); font-weight: 700; white-space: nowrap; }
.vt-link a:hover { text-decoration: underline; }
.sched { margin-bottom: 10px; }
.sched-wrap { overflow-x: auto; padding: 4px 14px 12px; }
.sched-table { font-size: 14px; }
.sched-table tr:not(.sched-first) td { border-top-color: transparent; }
.sched-table tr.sched-first td { border-top: 2px solid var(--line); }
.sched-table td.mt-year { white-space: nowrap; }

/* ტრენერები, პარტნიორები */
.trainer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.trainer-grid li { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--r-md); text-align: center; }
.trainer-grid img, .tr-ph { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.tr-ph { display: grid; place-items: center; background: var(--green-100); color: var(--green-700); font-size: 34px; }
.trainer-grid strong { color: var(--navy); font-size: 14.5px; }
.trainer-grid small { font-size: 12.5px; word-break: break-all; }
.trainer-grid small a { color: var(--green-700); }
.partner-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.partner-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--navy); font-size: 14.5px; }
.partner-list .ico { flex: none; margin-top: 3px; color: var(--green-700); }

@media (max-width: 640px) {
    .proj-head h1 { font-size: 19px; }
    .lecture-card { grid-template-columns: 1fr; }
    .lecture-card img { max-width: 220px; }
    .proj-side-img { float: none; display: block; max-width: 160px; margin: 0 0 12px; }
    .pb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .visit-table tr { grid-template-columns: auto minmax(0, 1fr); }
}

/* ---------- ელ-რესურსები / ბიბლიოთეკა (new/library/) ---------- */
.lib-head { margin-bottom: 14px; }
.lib-section { margin-top: 22px; }
.lib-section:first-of-type { margin-top: 6px; }
.lib-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: var(--green-700);
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: .03em;
}
.lib-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green-100); font-size: 18px; }
.lib-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.lib-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}
.lib-links a:hover { border-color: var(--green-600); background: var(--green-100); }
.lib-links a > .ico { flex: none; color: var(--green-700); font-size: 15px; }
.lib-links a > .ico:not(:only-child) { transform: rotate(-90deg); }
.lib-links a[target] > .ico { transform: none; }
.lib-banner { width: 100%; height: auto; margin: 0 0 16px; border-radius: var(--r-md); }

/* ცნობარების ცხრილები */
.table-scroll { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.ref-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ref-body th, .ref-body td { padding: 7px 10px; border: 1px solid var(--line); color: var(--navy); vertical-align: top; text-align: left; }
.ref-body th { background: var(--green-100); color: var(--green-700); font-weight: 700; }
.ref-body tr:first-child td:only-child, .ref-body h3 { color: var(--green-700); }
.ref-body td[style] { color: #17252d; text-align: center; }
.ref-body img { max-width: 100%; height: auto; }
.ref-body h3 { margin: 18px 0 6px; font-size: 16px; }
.ref-solubility td, .ref-solubility th { padding: 5px 6px; font-size: 13.5px; text-align: center; }
/* აქტიურობის მწკრივი — დიაგრამა უჯრებით, ჩარჩოების გარეშე */
.ref-elactivity table { width: auto; font-size: 13px; }
.ref-elactivity td { min-width: 26px; padding: 3px 4px; border: 0; text-align: center; }
.ea-alkali { background: #ffcc00; }
.ea-alkali-earth { background: #99ffff; }
.ea-post-transition { background: #99bbaa; }
.ea-transition { background: #6699cc; color: #fff !important; }
.ea-hidrogen { background: #7be27b; }
.ea-topframe { border: 1px solid var(--navy) !important; border-bottom: 0 !important; }

/* ტემპერატურის კონვერტორი */
.conv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.conv-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); scroll-margin-top: 20px; }
.conv-card.is-active { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.conv-card h2 { margin: 0 0 6px; color: var(--navy); font-size: 16px; font-weight: 700; }
.conv-formula { margin: 0 0 12px; padding: 8px 12px; border-radius: 9px; background: var(--green-100); color: var(--green-700); font-family: Georgia, "Times New Roman", serif; font-size: 17px; text-align: center; }
.conv-row { display: flex; align-items: center; gap: 8px; }
.conv-row input {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--navy);
    font: inherit;
    font-size: 16px;
}
.conv-unit { color: var(--muted); font-weight: 700; }
.conv-row button { padding: 9px 14px; border: 0; border-radius: 9px; background: #087b55; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.conv-row button:hover { background: #00513f; }
.conv-result { margin: 12px 0 0; color: var(--navy); font-size: 15.5px; }
.conv-result strong { color: var(--green-700); font-size: 19px; }
.conv-error { margin: 10px 0 0; color: #b42318; font-size: 14px; font-weight: 600; }

/* ვიდეოები */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.video-card { display: grid; gap: 6px; align-content: start; color: var(--navy); }
.vc-thumb { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--green-100); aspect-ratio: 290 / 150; }
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.video-card:hover .vc-thumb img { transform: scale(1.04); }
.vc-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(0, 63, 50, .82); }
.vc-play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video-card strong { font-size: 15px; line-height: 1.4; }
.video-card:hover strong { color: var(--green-700); }
.video-card small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.video-frame { position: relative; margin: 0 0 16px; overflow: hidden; border-radius: var(--r-md); background: #000; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.keyword-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.keyword-chips .chip { padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-weight: 600; }

/* დღეს ქიმიაში */
.ct-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.ct-date { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--navy); font-size: 20px; }
.ct-date .ico { color: var(--green-700); }
.ct-today { padding: 1px 10px; border-radius: 999px; background: #087b55; color: #fff; font-size: 12.5px; font-weight: 700; }
.ct-step { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ct-step:hover { border-color: var(--green-600); background: var(--green-100); }
.ct-step .ico { transform: rotate(90deg); color: var(--green-700); }
.ct-next .ico { transform: rotate(-90deg); }
.ct-list { display: grid; gap: 14px; }
.ct-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.ct-item > img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; }
.ct-item > div:only-child { grid-column: 1 / -1; }
.ct-year { display: inline-block; margin-bottom: 4px; padding: 1px 10px; border-radius: 6px; background: var(--green-100); color: var(--green-700); font-weight: 800; font-size: 13.5px; }
.ct-item h2 { margin: 0 0 6px; color: var(--navy); font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.ct-item .article-body { font-size: 15px; }

/* მემატიანე */
.mem-cta { flex-wrap: wrap; align-items: flex-start; margin: 0 0 8px; }
.mem-cta > div { flex: 1; min-width: 240px; }
.mem-cta p + p { margin-top: 6px; }
.mem-cta .gf-more { align-self: center; }
.mem-list { display: grid; gap: 12px; }
.mem-card { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.mem-photo img { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; }
.mem-card h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; }
.mem-card h3 a { color: var(--navy); }
.mem-card h3 a:hover { color: var(--green-700); }
.mem-excerpt { margin: 0 0 6px; color: var(--text); font-size: 14.5px; line-height: 1.65; }
.mem-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 0; color: var(--muted); font-size: 13.5px; }
.mem-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mem-meta a { color: var(--green-700); font-weight: 700; }
.mem-names a { font-size: 13.5px; }
.cc-link-row { margin: 0 0 14px; }
.mem-story { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.mem-portrait { margin: 0; text-align: center; }
.mem-portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }
.mem-portrait figcaption { margin-top: 8px; }
.mem-author { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; text-align: right; }
.mem-author strong { color: var(--navy); }
.mem-bio-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 8px; }
.mem-bio-head img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }

/* ფორმები */
.form-error { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid #b42318; border-radius: 0 10px 10px 0; background: #fdecea; color: #7a1a12; font-weight: 600; }
.site-form { display: grid; gap: 16px; }
.site-form fieldset { margin: 0; padding: 14px 18px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.site-form legend { padding: 0 6px; color: var(--green-700); font-family: var(--font-title); font-size: 16px; letter-spacing: .03em; }
.site-form label { display: block; margin: 10px 0 4px; color: var(--navy); font-size: 14px; font-weight: 700; }
.site-form input[type=text], .site-form input[type=email], .site-form input[type=tel], .site-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--navy);
    font: inherit;
    font-size: 15px;
}
.site-form textarea { resize: vertical; min-height: 220px; line-height: 1.6; }
.site-form input:focus, .site-form textarea:focus { outline: 3px solid var(--green-100); border-color: var(--green-600); }
.field-hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.form-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { justify-self: start; padding: 11px 28px; border: 0; border-radius: 10px; background: #087b55; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.form-submit:hover { background: #00513f; }

/* მინერალები */
.letter-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.letter-bar a, .lb-empty { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-family: var(--font-title); font-size: 16px; }
.letter-bar a { border: 1px solid var(--line); color: var(--navy); }
.letter-bar a:hover { border-color: var(--green-600); background: var(--green-100); }
.letter-bar a.current { border-color: #087b55; background: #087b55; color: #fff; }
.lb-empty { color: var(--line); }
.mineral-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mineral-grid a { display: grid; justify-items: center; gap: 4px; height: 100%; padding: 12px 8px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--navy); text-align: center; }
.mineral-grid a:hover { border-color: var(--green-600); background: var(--green-100); }
.mg-img { display: grid; place-items: center; width: 110px; height: 110px; overflow: hidden; border-radius: 10px; background: #fff; color: var(--green-700); font-size: 36px; }
.mineral-grid strong { font-size: 14.5px; }
.mineral-grid small { color: var(--muted); font-size: 12.5px; }
.mineral-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 18px; }
.mc-img { display: grid; place-items: center; width: 140px; height: 140px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--green-700); font-size: 48px; }
.mc-img img { max-width: 100%; height: auto; }
.mineral-bars { display: grid; gap: 10px; margin: 0 0 18px; padding: 14px 18px; border-radius: var(--r-md); background: var(--green-100); }
.mb-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 70px; gap: 12px; align-items: center; }
.mb-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.mb-row meter { width: 100%; height: 14px; }
.mb-row strong { color: var(--navy); font-size: 15px; text-align: right; }
.mb-row small { color: var(--muted); font-weight: 400; }
.author-grid li { padding: 18px 12px; }
.author-grid img { width: 110px; height: 126px; border-radius: 12px; }
.ag-org { color: var(--muted); }

@media (max-width: 640px) {
    .mem-story, .mem-bio-head, .mineral-card { grid-template-columns: 1fr; }
    .mem-portrait, .mem-bio-head img { max-width: 200px; }
    .mem-card { grid-template-columns: 64px minmax(0, 1fr); }
    .mem-photo img { width: 64px; height: 64px; }
    .ct-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
    .ct-item > img { width: 72px; height: 72px; }
    .ct-bar { flex-wrap: wrap; justify-content: center; }
    .ct-date { order: -1; width: 100%; justify-content: center; }
    .mb-row { grid-template-columns: 1fr 60px; }
    .mb-row meter { grid-column: 1 / -1; grid-row: 2; }
    .lesson-table tr { grid-template-columns: auto minmax(0, 1fr); }
}

/* ---------- ელემენტთა პერიოდულობის ცხრილი (new/periodic_table/) — სრული სიგანით ---------- */
.pt-page { width: 100%; }
.pt-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.pt-title { margin: 2px 0 0; color: var(--navy); font-family: var(--font-title); font-size: 24px; font-weight: 400; letter-spacing: .03em; }
.pt-top .level-tabs { margin: 0; }
.pt-props { margin-bottom: 12px; }

.pt-scroll { overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.pt-scroll:focus-visible { outline: 3px solid var(--green-600); outline-offset: 3px; }
.pt-grid {
    display: grid;
    grid-template-columns: 22px repeat(18, minmax(0, 1fr));
    grid-template-rows: auto repeat(7, auto) 16px auto auto;
    gap: 3px;
    min-width: 1000px;
}
.pt-grid .r0 { grid-row: 1; }
.pt-grid .r1 { grid-row: 2; }
.pt-grid .r2 { grid-row: 3; }
.pt-grid .r3 { grid-row: 4; }
.pt-grid .r4 { grid-row: 5; }
.pt-grid .r5 { grid-row: 6; }
.pt-grid .r6 { grid-row: 7; }
.pt-grid .r7 { grid-row: 8; }
.pt-grid .r9 { grid-row: 10; }
.pt-grid .r10 { grid-row: 11; }
.pt-grid .c1 { grid-column: 2; }
.pt-grid .c2 { grid-column: 3; }
.pt-grid .c3 { grid-column: 4; }
.pt-grid .c4 { grid-column: 5; }
.pt-grid .c5 { grid-column: 6; }
.pt-grid .c6 { grid-column: 7; }
.pt-grid .c7 { grid-column: 8; }
.pt-grid .c8 { grid-column: 9; }
.pt-grid .c9 { grid-column: 10; }
.pt-grid .c10 { grid-column: 11; }
.pt-grid .c11 { grid-column: 12; }
.pt-grid .c12 { grid-column: 13; }
.pt-grid .c13 { grid-column: 14; }
.pt-grid .c14 { grid-column: 15; }
.pt-grid .c15 { grid-column: 16; }
.pt-grid .c16 { grid-column: 17; }
.pt-grid .c17 { grid-column: 18; }
.pt-grid .c18 { grid-column: 19; }
.pt-gnum { align-self: end; padding-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.pt-pnum { grid-column: 1; align-self: center; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }

.pt-el, .pt-fmark {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    min-height: 66px;
    padding: 3px 4px 4px;
    border-radius: 6px;
    color: #17252d;
    line-height: 1.1;
    text-align: center;
    transition: transform .12s, box-shadow .12s;
}
.pt-el:hover, .pt-el:focus-visible { z-index: 2; transform: scale(1.12); box-shadow: 0 6px 18px rgba(0, 40, 30, .28); }
.pe-z { justify-self: start; font-size: 10.5px; font-weight: 700; opacity: .8; }
.pe-sym { align-self: center; font-size: 20px; font-weight: 800; }
.pe-name { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.pe-val { font-size: 9.5px; opacity: .85; }
.pt-el.st-gas .pe-sym, .pt-states .st-gas { color: #c0392b; }
.pt-el.st-liquid .pe-sym, .pt-states .st-liquid { color: #1f5fd1; }
.pt-states .st-solid { color: #17252d; font-weight: 700; }
.pt-states .st-gas, .pt-states .st-liquid { font-weight: 700; }
.pt-fmark { place-items: center; display: grid; font-size: 12px; font-weight: 700; }
.pt-flabel { grid-column: 1 / 4; align-self: center; padding-right: 8px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.pt-dim { opacity: .22; }

/* კატეგორიები */
.pt-cat-alkali     { background: #ffcf99; }
.pt-cat-alkaline   { background: #ffe9a3; }
.pt-cat-transition { background: #f6c7c7; }
.pt-cat-post       { background: #cfe0d7; }
.pt-cat-metalloid  { background: #d6e7a8; }
.pt-cat-nonmetal   { background: #a8e6c4; }
.pt-cat-halogen    { background: #fff3a6; }
.pt-cat-noble      { background: #c9dcff; }
.pt-cat-lanthanide { background: #ffc2e5; }
.pt-cat-actinide   { background: #e8c6f5; }

/* თვისების ფერადი სკალა (10 საფეხური) */
.pt-mode-heat .pt-el { background: #eef2f1; }
.pt-mode-heat .pt-el.pt-h0 { background: #fff7d6; } .pt-mode-heat .pt-el.pt-h1 { background: #fde9a9; }
.pt-mode-heat .pt-el.pt-h2 { background: #fdd27a; } .pt-mode-heat .pt-el.pt-h3 { background: #fbb45c; }
.pt-mode-heat .pt-el.pt-h4 { background: #f68f4a; } .pt-mode-heat .pt-el.pt-h5 { background: #ea6a43; }
.pt-mode-heat .pt-el.pt-h6 { background: #d64a45; } .pt-mode-heat .pt-el.pt-h7 { background: #b8314f; }
.pt-mode-heat .pt-el.pt-h8 { background: #8f2457; } .pt-mode-heat .pt-el.pt-h9 { background: #5e1a56; }
.pt-mode-heat .pt-el.pt-h6, .pt-mode-heat .pt-el.pt-h7, .pt-mode-heat .pt-el.pt-h8, .pt-mode-heat .pt-el.pt-h9 { color: #fff; }
.pt-mode-heat .pt-el.pt-h6 .pe-sym, .pt-mode-heat .pt-el.pt-h7 .pe-sym, .pt-mode-heat .pt-el.pt-h8 .pe-sym, .pt-mode-heat .pt-el.pt-h9 .pe-sym { color: #fff; }
.pt-mode-heat .pt-el.pt-nodata { background: repeating-linear-gradient(45deg, #f1f4f3 0 6px, #e4e9e7 6px 12px); color: #6b7a80; }
.pt-mode-heat .pe-val { font-size: 10.5px; font-weight: 700; opacity: 1; }
.pt-mode-heat .pt-fmark { background: #eef2f1; }

/* ლეგენდა ცხრილის ცარიელ ადგილას (I–III პერიოდი, 3–12 ჯგუფი) */
.pt-legend-box { grid-row: 2 / 5; grid-column: 4 / 14; align-self: start; padding: 4px 10px 0; }
.pt-legend-title { margin: 0 0 6px; color: var(--navy); font-size: 13.5px; font-weight: 700; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; padding: 0; list-style: none; }
.pt-legend a { display: inline-block; padding: 3px 9px; border: 2px solid transparent; border-radius: 6px; color: #17252d; font-size: 12px; font-weight: 600; }
.pt-legend a:hover, .pt-legend a.current { border-color: #17252d; }
.pt-scale { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--navy); font-size: 12.5px; font-weight: 700; }
.pt-scale i { flex: 1; max-width: 320px; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #fff7d6, #fdd27a, #f68f4a, #d64a45, #8f2457, #5e1a56); }
.pt-legend-note, .pt-states { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.pt-nodata-mark { display: inline-block; width: 14px; height: 10px; vertical-align: middle; border-radius: 2px; background: repeating-linear-gradient(45deg, #f1f4f3 0 3px, #d6dedb 3px 6px); }

/* თვისების ცხრილი და გრაფიკი */
.pt-details { margin-top: 10px; }
.pt-details .page-count a { color: var(--green-700); font-weight: 700; }
.pt-values { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.pt-values a { display: grid; grid-template-columns: 30px 34px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 5px 8px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 13.5px; }
.pt-values a:hover { background: var(--green-100); }
.pv-z { color: var(--muted); font-size: 12px; }
.pv-name { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.pv-val { font-weight: 700; }
.pt-graph { margin: 18px 0 0; text-align: center; }
.pt-graph img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.pt-graph figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.pt-radii img { max-width: 686px; width: 100%; }
.pt-more { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.pt-more a { color: var(--green-700); font-weight: 600; }
.pt-download { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 16px; }
.pt-download img { border-radius: 10px; }
.pt-download h2 { margin: 0 0 10px; color: var(--navy); font-size: 18px; }
.pt-dl-links { display: flex; gap: 10px; margin: 0; }
.pt-authors img { width: 110px; height: 126px; border-radius: 12px; }

/* ელემენტის გვერდი */
.pt-elnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 16px; }
.pt-elnav a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-size: 14px; }
.pt-elnav a:hover { border-color: var(--green-600); background: var(--green-100); }
.pt-elnav .pn-next { justify-self: end; }
.pn-sym { font-weight: 800; }
.pn-name { color: var(--muted); }
.pn-table { justify-self: center; font-weight: 700; }
.pn-table .ico { color: var(--green-700); }
.el-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.el-tile { display: flex; flex-direction: column; flex: none; width: 100px; padding: 6px 8px 8px; border-radius: 12px; color: #17252d; text-align: center; line-height: 1; }
.el-tile .pe-z { align-self: flex-start; font-size: 13px; }
.el-tile .pe-sym { margin: 2px 0 6px; font-size: 34px; line-height: 1; }
.el-tile .pe-val { font-size: 12px; font-weight: 600; }
.el-tile.st-gas .pe-sym { color: #c0392b; }
.el-tile.st-liquid .pe-sym { color: #1f5fd1; }
.el-head h1 { margin: 0 0 6px; color: var(--navy); font-family: var(--font-title); font-size: 26px; font-weight: 400; letter-spacing: .03em; }
.el-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.el-tags span { padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--navy); font-size: 13px; font-weight: 600; }
.el-tags span[class^="pt-cat-"] { color: #17252d; }
.el-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.el-props h2 { margin: 18px 0 6px; color: var(--green-700); font-family: var(--font-title); font-size: 16px; font-weight: 400; letter-spacing: .03em; }
.el-props h2:first-of-type { margin-top: 0; }
.el-photo { margin: 0 0 16px; text-align: center; }
.el-photo img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }
.el-photo figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.el-facts { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.el-facts div { display: grid; grid-template-columns: 46% 54%; }
.el-facts div + div { border-top: 1px solid var(--line); }
.el-facts dt { padding: 7px 10px; background: var(--green-100); color: var(--muted); font-size: 13px; font-weight: 600; }
.el-facts dd { margin: 0; padding: 7px 10px; color: var(--navy); font-size: 13.5px; overflow-wrap: anywhere; }
.el-text .article-body { font-size: 16px; }
.el-text .article-body img { max-width: 100%; height: auto; margin: 4px 6px; border-radius: 8px; vertical-align: top; }
.el-text .article-body img[align="right"] { float: right; margin: 4px 0 10px 16px; }
.el-text .article-body img[align="left"] { float: left; margin: 4px 16px 10px 0; }
.el-text .article-body::after { content: ""; display: block; clear: both; }
.el-source { margin: 14px 0 0; color: var(--muted); font-size: 13px; font-style: italic; }

@media (max-width: 900px) {
    .el-layout { grid-template-columns: 1fr; }
    .pt-elnav .pn-name { display: none; }
}
@media (max-width: 640px) {
    .pt-title { font-size: 20px; }
    .el-head h1 { font-size: 22px; }
}

/* ---------- ლექსიკონი (new/dictionary/) ---------- */
.lex-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 16px 24px;
    align-items: center;
    margin: 0 0 14px;
    padding: 20px 22px;
    border-radius: var(--r-lg);
    color: #fff;
    background:
        radial-gradient(circle at 92% 12%, rgba(159, 230, 203, .22) 0 70px, transparent 71px),
        linear-gradient(115deg, #003a33 0%, #064d55 60%, #087b82 100%);
}
.lex-hero .ih-kicker { color: var(--mint); }
.lex-hero h1 { margin: 2px 0 6px; font-family: var(--font-title); font-size: 22px; font-weight: 400; line-height: 1.35; letter-spacing: .03em; }
.lex-hero p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14px; }
.lex-search { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 12px; background: #fff; }
.lex-search > .ico { margin-left: 8px; color: #5c6c73; font-size: 18px; }
.lex-search input { flex: 1; min-width: 0; padding: 9px 4px; border: 0; outline: 0; background: transparent; color: #17252d; font: inherit; font-size: 15px; }
.lex-search button { padding: 9px 18px; border: 0; border-radius: 9px; background: #087b55; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.lex-search button:hover { background: #00513f; }
.lex-search:focus-within { outline: 3px solid var(--mint); outline-offset: 2px; }
.lex-tabs { margin-bottom: 12px; }
.lex-letters a { width: auto; min-width: 32px; padding: 0 6px; font-family: var(--font); font-size: 14px; font-weight: 700; }
.lex-letters a:first-child { padding: 0 10px; font-weight: 600; }

.lex-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lex-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2px 18px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
}
.lex-list a:hover { background: var(--green-100); }
.lx-a { font-weight: 700; font-size: 15px; }
.lx-b { color: var(--text); font-size: 14.5px; }
.lx-sub { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.lex-list mark, .lex-entry mark { padding: 0 2px; border-radius: 3px; background: #fde9a9; color: inherit; }

.lex-entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lx-col { padding: 18px 20px; }
.lx-col + .lx-col { border-left: 1px solid var(--line); background: var(--green-100); }
.lx-lang { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lx-col h2 { margin: 4px 0 6px; color: var(--navy); font-size: 21px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.lx-field { display: inline-block; margin: 0 0 10px; padding: 1px 10px; border-radius: 999px; background: var(--surface); color: var(--green-700); font-size: 12.5px; font-weight: 700; }
.lx-col:first-child .lx-field { background: var(--green-100); }
.lx-col .article-body { font-size: 15px; }
.lx-col .article-body img { max-width: 100%; height: auto; }
.lx-see { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13.5px; }
.lx-see span { color: var(--muted); font-weight: 700; }
.lx-see a { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--green-700); font-weight: 600; }
.lx-see a:hover { border-color: var(--green-600); }
.lx-source { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; margin: 12px 0 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--green-100); color: var(--muted); font-size: 13.5px; }
.lx-source > span { font-weight: 700; }
.lx-source p { margin: 0 0 4px; }
.lx-report { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.lx-report a { color: var(--green-700); font-weight: 700; }

.lex-facts { margin-bottom: 16px; }
.lex-about { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 26px; align-items: start; }
.lex-about h2 { margin: 20px 0 8px; color: var(--green-700); font-family: var(--font-title); font-size: 18px; font-weight: 400; letter-spacing: .03em; }
.lex-team { padding: 14px 16px; border-radius: var(--r-md); background: var(--green-100); }
.lex-team h2 { margin: 0 0 6px; font-size: 15px; }
.lex-team h2 ~ h2 { margin-top: 14px; }
.lex-team ul { margin: 0; padding-left: 18px; color: var(--navy); font-size: 14px; line-height: 1.7; }
.lex-support { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.lex-support img { height: 56px; width: auto; }
.lex-support p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
    .lex-hero { grid-template-columns: 1fr; }
    .lex-about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .lex-entry { grid-template-columns: 1fr; }
    .lx-col + .lx-col { border-left: 0; border-top: 1px solid var(--line); }
    .lex-list a { grid-template-columns: 1fr; }
    .lx-source { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- „თაკოს ფონდი“ (new/tf/) ---------- */
.tf-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin: 0 0 14px;
    padding: 18px 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(120deg, #f4f7e3 0%, #e8f4ef 100%);
    border: 1px solid #dfe7c2;
}
.tf-hero img { flex: none; border-radius: 14px; background: #fff; }
.tf-hero > div { flex: 1; min-width: 220px; }
.tf-hero h1 { margin: 2px 0 4px; color: var(--navy); font-family: var(--font-title); font-size: 24px; font-weight: 400; letter-spacing: .03em; }
.tf-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.tf-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #087b55; color: #fff; font-size: 14px; font-weight: 700; }
.tf-badge span { width: 9px; height: 9px; border-radius: 50%; background: #9fe6cb; box-shadow: 0 0 0 4px rgba(159, 230, 203, .35); }
.tf-badge:hover { background: #00513f; }
.tf-tabs { margin-bottom: 16px; }
.tf-open-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 14px 18px; border: 2px solid #087b55; border-radius: var(--r-md); }
.tf-open-box div { display: grid; gap: 2px; }
.tf-open-box strong { color: var(--navy); font-size: 15.5px; }
.tf-open-box span { color: var(--muted); font-size: 13.5px; }
.tf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 16px 0; }
.tf-cards section { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.tf-cards h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--green-700); font-family: var(--font-title); font-size: 16px; font-weight: 400; letter-spacing: .03em; }
.tf-cards p, .tf-cards li { color: var(--text); font-size: 14.5px; line-height: 1.65; }
.tf-cards p { margin: 0 0 8px; }
.tf-cards ul { margin: 0; padding-left: 18px; }
.tf-cards .tf-card-wide { grid-column: 1 / -1; background: var(--green-100); border-color: transparent; }
.tf-quote { margin: 20px 0 0; padding: 16px 20px; border-left: 4px solid #a7b83b; border-radius: 0 var(--r-md) var(--r-md) 0; background: #f4f7e3; }
.tf-quote p { margin: 0 0 6px; color: var(--navy); font-size: 16px; font-style: italic; line-height: 1.6; }
.tf-quote footer { color: var(--muted); font-size: 13px; font-weight: 600; }
.tf-rules h3, .tf-call h2 { margin: 22px 0 8px; color: var(--green-700); font-family: var(--font-title); font-size: 17px; font-weight: 400; letter-spacing: .03em; }
.tf-rules ol { padding-left: 22px; }
.tf-rules ol > li { margin-bottom: 6px; }
.tf-alpha { margin: 6px 0; padding-left: 4px; list-style: none; }
.tf-note { padding: 10px 14px; border-radius: 10px; background: var(--green-100); font-size: 14.5px; }
.tf-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tf-timeline li { display: grid; gap: 2px; padding: 10px 14px; border-left: 4px solid #087b55; border-radius: 0 10px 10px 0; background: var(--green-100); }
.tf-timeline li.past { border-left-color: var(--line); opacity: .7; }
.tf-timeline span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tf-timeline strong { color: var(--navy); font-size: 14.5px; }
.tf-winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tf-winners li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--navy); font-weight: 700; }
.tw-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f4f7e3; color: #8a9a20; }
.tf-bank dd { font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.tf-contact { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tf-contact h2 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.tf-contact p { margin: 0 0 6px; color: var(--text); }
.tf-mail { font-size: 18px; font-weight: 700; }
.tf-mail a { color: var(--green-700); }
.tf-form fieldset { display: grid; gap: 0; }
.tf-qlabel { margin: 14px 0 6px; color: var(--navy); font-size: 14px; font-weight: 700; }
.tf-radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tf-radios label, .tf-checks label { display: flex !important; gap: 8px; align-items: flex-start; margin: 0 !important; font-weight: 400 !important; font-size: 14.5px !important; line-height: 1.5; }
.tf-radios input, .tf-checks input { margin-top: 4px; accent-color: #087b55; }
.tf-checks { display: grid; gap: 8px; margin-top: 6px; }
.tf-file { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.tf-file label { margin-top: 0 !important; }
.tf-file input[type=file] { margin-top: 6px; font-size: 14px; }
.tf-privacy { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; }
.tf-captcha { padding: 12px 14px; border-radius: var(--r-md); background: var(--green-100); }
.tf-captcha label { display: block; margin-bottom: 6px; color: var(--navy); font-size: 14px; font-weight: 700; }
.tf-captcha div { display: flex; align-items: center; gap: 10px; }
.tf-captcha img { border-radius: 6px; }
.tf-captcha input { width: 110px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 16px; letter-spacing: .15em; }

/* ---------- ჩვენს შესახებ: მისია, ვინ ვართ ჩვენ, წევრები, გაწევრიანება ---------- */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.mission-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.mission-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--green-700); font-family: var(--font-title); font-size: 17px; font-weight: 400; letter-spacing: .03em; }
.mission-card ol { margin: 0; padding-left: 22px; }
.mission-card li { margin-bottom: 8px; color: var(--text); font-size: 14.5px; line-height: 1.65; }
.mission-card li::marker { color: var(--green-700); font-weight: 700; }

.about-facts { margin: 4px 0 16px; }
.about-history h2 { margin: 22px 0 8px; color: var(--green-700); font-family: var(--font-title); font-size: 18px; font-weight: 400; letter-spacing: .03em; }
.about-history li { margin-bottom: 6px; }
.people-list { display: grid; gap: 12px; }
.person-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.pc-photo { display: grid; place-items: center; width: 110px; height: 126px; overflow: hidden; border-radius: 12px; background: var(--green-100); color: var(--green-700); font-size: 40px; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.person-card h2 a { color: var(--navy); }
.person-card h2 a:hover { color: var(--green-700); }
.pc-degree { margin: 0 0 2px; color: var(--green-700); font-size: 14px; font-weight: 600; }
.pc-org { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.pc-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 13.5px; }
.pc-links span { display: inline-flex; align-items: center; gap: 5px; }
.pc-links a { color: var(--green-700); font-weight: 700; }

.mb-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mb-cat { display: grid; align-content: start; gap: 4px; padding: 16px; border: 1px solid var(--line); border-top: 4px solid var(--green-600); border-radius: var(--r-md); color: var(--navy); }
a.mb-cat:hover { background: var(--green-100); }
.mbk-honor { border-top-color: #c9971c; }
.mbk-asoc { border-top-color: #e2603a; }
.mbk-student { border-top-color: #1f8fb8; }
.mbk-corp { border-top-color: #8d99a3; }
.mbk-n { font-size: 30px; font-weight: 800; line-height: 1.1; }
.mbk-t { font-size: 15.5px; font-weight: 700; }
.mb-cat small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.mb-grid a { display: grid; justify-items: center; gap: 4px; height: 100%; padding: 12px 8px 14px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--navy); text-align: center; }
.mb-grid a:hover { border-color: var(--green-600); background: var(--green-100); }
.mbc-photo { display: grid; place-items: center; width: 104px; height: 120px; margin-bottom: 4px; overflow: hidden; border-radius: 12px; background: var(--green-100); color: var(--green-700); font-size: 36px; }
.mbc-photo img { width: 100%; height: 100%; object-fit: cover; }
.mb-grid strong { font-size: 14.5px; line-height: 1.35; }
.mb-grid small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.mb-birthday { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-md); background: #fff3d6; color: #6b4b00; }
.mb-birthday p { margin: 0; }
.mb-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; margin: 0 0 16px; padding: 0; list-style: none; }
.mb-checklist li { position: relative; padding: 6px 0 6px 26px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 14.5px; }
.mb-checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--green-700); font-weight: 800; }

.mb-profile { margin-bottom: 10px; }
.mbp-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 18px; }
.mbp-photo { display: grid; place-items: center; width: 150px; height: 175px; overflow: hidden; border-radius: var(--r-md); background: var(--green-100); color: var(--green-700); font-size: 48px; }
.mbp-photo img { width: 100%; height: 100%; object-fit: cover; }
.mbp-head h1 { margin: 2px 0 8px; color: var(--navy); font-family: var(--font-title); font-size: 24px; font-weight: 400; letter-spacing: .03em; }
.mbp-line { margin: 0 0 3px; color: var(--text); font-size: 15px; }
.mbp-xarisxi { color: var(--green-700); font-weight: 700; }
.mbp-contacts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 14px; }
.mbp-contacts span { display: inline-flex; align-items: center; gap: 6px; }
.mbp-contacts .ico { color: var(--green-700); }
.mbp-contacts a { color: var(--green-700); font-weight: 600; }
.mbp-pubs { margin-bottom: 14px; }
.mbp-sec { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.mbp-sec h2 { margin: 0 0 8px; color: var(--green-700); font-family: var(--font-title); font-size: 17px; font-weight: 400; letter-spacing: .03em; }
.mbp-sec .article-body { font-size: 15px; }
.mbp-since { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.mbp-since strong { color: var(--navy); }

.join-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.join-types section { padding: 14px 16px; border-radius: var(--r-md); background: var(--green-100); }
.join-types h2 { margin: 0 0 6px; color: var(--navy); font-size: 16px; font-weight: 700; }
.join-types p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.join-docs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { padding: 12px 16px; color: var(--navy); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 20px; color: var(--green-700); font-weight: 800; }
.faq details[open] summary::before { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .article-body { padding: 10px 16px 14px; font-size: 15px; }

@media (max-width: 640px) {
    .mbp-head { grid-template-columns: 1fr; }
    .person-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
    .pc-photo { width: 84px; height: 98px; }
}
/* წევრის CV-ის ამობეჭდვა: მხოლოდ შინაარსი */
@media print {
    .brand-header, .main-nav, .breadcrumb, .side-column, .site-footer, footer.footer, .list-back, .mbp-print, .skip-link { display: none !important; }
    .content-row, .page-row { display: block !important; }
    .news-section { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
    .mbp-sec { break-inside: avoid; }
    a { color: inherit !important; text-decoration: none !important; }
}

/* ---------- ინდუსტრია: საწარმოები (new/companies/) ---------- */
.co-title { margin: 0; }
.co-title h1 { margin: 0; }
.co-count { font: inherit; color: var(--muted); white-space: nowrap; }
/* კატეგორიები — თეთრი ღილაკები მწვანე ჩარჩოთი, ცენტრში (ორ ხაზზე გადადის) */
.co-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; margin: 4px 0 18px; padding: 0; background: none; border-radius: 0; }
.co-tabs a { padding: 7px 16px; border: 1.5px solid #087b55; border-radius: 999px; background: var(--surface); color: #087b55; }
.co-tabs a:hover { background: var(--green-100); }
.co-tabs a.current { background: #087b55; color: #fff; }
.co-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 20px; }
.co-catcard { display: grid; justify-items: center; gap: 6px; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--navy); text-align: center; }
.co-catcard:hover { border-color: var(--green-600); background: var(--green-100); }
.co-catcard img { width: 72px; height: 72px; object-fit: contain; }
.co-catcard strong { font-size: 14.5px; line-height: 1.35; }
.co-catcard span { min-width: 34px; padding: 1px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-weight: 800; }
.co-chart { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.co-chart a { display: grid; grid-template-columns: 200px minmax(0, 1fr) 44px; gap: 12px; align-items: center; color: var(--navy); font-size: 14px; }
.cch-bar { height: 22px; border-radius: 6px; background: var(--green-100); overflow: hidden; }
.cch-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #0b9164, #087b82); }
.co-chart a:hover .cch-bar i { background: #00513f; }
.co-chart strong { text-align: right; }
.co-chart .w0 { width: 0%; }
.co-chart .w5 { width: 5%; }
.co-chart .w10 { width: 10%; }
.co-chart .w15 { width: 15%; }
.co-chart .w20 { width: 20%; }
.co-chart .w25 { width: 25%; }
.co-chart .w30 { width: 30%; }
.co-chart .w35 { width: 35%; }
.co-chart .w40 { width: 40%; }
.co-chart .w45 { width: 45%; }
.co-chart .w50 { width: 50%; }
.co-chart .w55 { width: 55%; }
.co-chart .w60 { width: 60%; }
.co-chart .w65 { width: 65%; }
.co-chart .w70 { width: 70%; }
.co-chart .w75 { width: 75%; }
.co-chart .w80 { width: 80%; }
.co-chart .w85 { width: 85%; }
.co-chart .w90 { width: 90%; }
.co-chart .w95 { width: 95%; }
.co-chart .w100 { width: 100%; }
.co-list { display: grid; gap: 12px; }
.co-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.co-logo { display: grid; place-items: center; width: 96px; height: 96px; padding: 6px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--green-700); font-size: 36px; }
.co-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.co-logo-lg { width: 130px; height: 130px; }
.co-body h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.co-body h2 a { color: var(--navy); }
.co-body h2 a:hover { color: var(--green-700); }
.co-cat { display: inline-block; margin-bottom: 6px; padding: 1px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: 12.5px; font-weight: 700; }
.co-contacts { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--text); font-size: 14px; }
.co-contacts li { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.co-contacts .ico { flex: none; margin-top: 3px; color: var(--green-700); }
.co-contacts a { color: var(--green-700); font-weight: 600; }
.co-head { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.co-head h1 { margin: 0 0 8px; color: var(--navy); font-family: var(--font-title); font-size: 24px; font-weight: 400; line-height: 1.35; letter-spacing: .03em; }
.co-layout.has-banner { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.co-banner img { width: 100%; height: auto; border-radius: var(--r-md); }
.co-facts { margin: 16px 0 0; }
.co-layout .mbp-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 760px) {
    .co-chart a { grid-template-columns: 1fr 44px; }
    .co-chart .cch-bar { grid-column: 1 / -1; grid-row: 2; }
    .co-layout.has-banner { grid-template-columns: 1fr; }
    .co-banner { max-width: 260px; }
}
@media (max-width: 640px) {
    .co-card { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
    .co-logo { width: 72px; height: 72px; }
    .co-head { grid-template-columns: 1fr; }
}

/* ---------- ინდუსტრია: ვაკანსიები (new/jobs/) ---------- */
.job-list { display: grid; gap: 10px; margin-bottom: 16px; }
.job-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid #087b55; border-radius: var(--r-md); color: var(--navy); }
.job-card:hover { background: var(--green-100); }
.job-card.is-expired { border-left-color: var(--line); opacity: .7; }
.job-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-700); font-size: 22px; }
.job-main { display: grid; gap: 2px; min-width: 0; }
.job-main strong { font-size: 16px; line-height: 1.4; }
.job-main small { color: var(--muted); font-size: 14px; }
.job-dates { display: grid; gap: 2px; color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
.job-deadline b { color: var(--navy); }
.is-expired .job-deadline b { color: var(--muted); }
.job-head { margin-bottom: 14px; }
.job-head h1 { margin: 2px 0 4px; color: var(--navy); font-family: var(--font-title); font-size: 24px; font-weight: 400; line-height: 1.35; letter-spacing: .03em; }
.job-employer { margin: 0; color: var(--green-700); font-size: 16px; font-weight: 700; }
.job-facts { margin-bottom: 6px; }
.job-contact { margin-top: 18px; padding: 14px 18px; border-radius: var(--r-md); background: var(--green-100); }
.job-contact h2 { margin: 0 0 6px; color: var(--green-700); font-family: var(--font-title); font-size: 17px; font-weight: 400; letter-spacing: .03em; }
.job-contact p { margin: 6px 0 0; }
.emp-intro { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 8px; }
.emp-intro img { width: 100%; height: auto; border-radius: var(--r-md); }
.emp-free { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff3d6; color: #6b4b00; }
.emp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.emp-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.emp-steps li > span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #087b55; color: #fff; font-weight: 800; }
.emp-steps div { display: grid; gap: 6px; }
.emp-steps strong { color: var(--navy); font-size: 15px; }
.emp-steps small { color: var(--muted); font-size: 13.5px; }
@media (max-width: 640px) {
    .job-card { grid-template-columns: 40px minmax(0, 1fr); }
    .job-ico { width: 40px; height: 40px; }
    .job-dates { grid-column: 2; text-align: left; white-space: normal; }
    .emp-intro { grid-template-columns: 1fr; }
    .emp-intro img { max-width: 190px; }
}

/* ---------- e-Lab „ზურგჩანთა“ (new/e-labs/) ---------- */
.elab-credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.elab-credits section { padding: 14px 16px; border-radius: var(--r-md); background: var(--green-100); }
.elab-credits h2 { margin: 0 0 8px; color: var(--green-700); font-family: var(--font-title); font-size: 15px; font-weight: 400; letter-spacing: .03em; }
.elab-credits ul { margin: 0; padding-left: 18px; color: var(--navy); font-size: 14.5px; line-height: 1.7; }

/* ---------- STEM ასისტენსი (new/stem/) ---------- */
.stem-hero { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; padding: 18px 20px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(115deg, #1d3557 0%, #0b6e75 60%, #0b9164 100%); }
.stem-mark { display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 18px; background: rgba(255, 255, 255, .14); font-size: 20px; font-weight: 800; letter-spacing: .08em; }
.stem-hero .ih-kicker { color: var(--mint); }
.stem-title { margin: 2px 0 4px; font-family: var(--font-title); font-size: 24px; letter-spacing: .03em; }
.stem-hero p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14px; }
.stem-hero p.stem-title { color: #fff; font-size: 24px; }
.stem-list { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.stem-list a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid #0b6e75; border-radius: var(--r-md); color: var(--navy); }
.stem-list a:hover { background: var(--green-100); }
.sl-num { color: #0b6e75; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.stem-list strong { font-size: 16px; line-height: 1.4; }
.stem-list small { color: var(--muted); font-size: 14px; line-height: 1.55; }
.sl-cx { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sl-cx meter, .stem-cx meter { width: 140px; height: 10px; }
.stem-phead { margin-bottom: 12px; }
.stem-phead h1 { margin: 2px 0 0; color: var(--navy); font-family: var(--font-title); font-size: 23px; font-weight: 400; line-height: 1.4; letter-spacing: .03em; }
.stem-facts { margin-bottom: 8px; }
.stem-cx { display: flex; align-items: center; gap: 10px; }
.stem-sec .article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.stem-trainings { display: grid; gap: 12px; }
.stem-training { padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid #087b55; border-radius: var(--r-md); }
.stem-training.is-closed { border-left-color: var(--line); opacity: .8; }
.st-status { display: inline-block; margin-bottom: 6px; padding: 1px 10px; border-radius: 999px; background: #087b55; color: #fff; font-size: 12.5px; font-weight: 700; }
.is-closed .st-status { background: var(--green-100); color: var(--muted); }
.stem-training h2 { margin: 0 0 8px; color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.4; }
.stem-training .article-body { font-size: 15px; }
.st-meta { margin: 8px 0 12px; }
.stem-offers { margin-top: 0; }
@media (max-width: 640px) {
    .stem-hero { flex-direction: column; align-items: flex-start; }
    .stem-mark { width: 60px; height: 60px; font-size: 16px; }
}

/* ---------- ნობელიანტები ქიმიაში (new/nobel/) ---------- */
.nb-count { display: block; margin: 0 0 10px; }
.nb-years { display: grid; gap: 0; border-top: 1px solid var(--line); }
.nb-year { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.nb-y { color: #b8860b; font-size: 18px; font-weight: 800; }
.nb-names { margin: 0 0 3px; color: var(--navy); font-size: 15.5px; font-weight: 700; }
.nb-names a { color: var(--green-700); }
.nb-names a:hover { text-decoration: underline; }
.nb-sep { color: var(--muted); font-weight: 400; }
.nb-topic { margin: 0 0 2px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.nb-topic strong { color: var(--navy); font-weight: 600; }
.nb-names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.nb-names-grid a, .nb-names-grid li > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; height: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--navy); }
.nb-names-grid a:hover { border-color: var(--green-600); background: var(--green-100); }
.nb-names-grid li.no-bio > div { opacity: .65; }
.nbg-photo { display: grid; place-items: center; width: 48px; height: 60px; overflow: hidden; border-radius: 8px; background: #fbf3dc; color: #b8860b; font-size: 22px; }
.nbg-photo img { width: 100%; height: 100%; object-fit: cover; }
.nbg-text { display: grid; gap: 1px; min-width: 0; }
.nbg-text strong { font-size: 14.5px; line-height: 1.3; }
.nbg-text small { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.nbg-text em { color: #b8860b; font-size: 12.5px; font-style: normal; font-weight: 800; }
.nb-note { color: var(--muted); font-size: 13.5px; font-style: italic; }
.nb-facts { margin: 4px 0 16px; }
.nb-facts dd { color: #b8860b; }
.nb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.nb-cards section { padding: 14px 16px; border: 1px solid var(--line); border-top: 3px solid #d4a017; border-radius: var(--r-md); }
.nb-cards h2 { margin: 0 0 8px; color: var(--navy); font-size: 15.5px; font-weight: 700; }
.nb-cards p, .nb-cards li { color: var(--text); font-size: 14px; line-height: 1.6; }
.nb-cards p { margin: 0 0 8px; }
.nb-cards ul { margin: 0; padding-left: 18px; }
.nb-medal { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; margin: 16px 0; padding: 14px; border-radius: var(--r-md); background: #fbf3dc; }
.nb-medal img { width: 160px; height: auto; border-radius: 50%; }
.nb-medal figcaption { color: var(--navy); font-size: 14.5px; line-height: 1.6; }
.nb-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 14px; }
.nb-photo { width: 150px; height: auto; border-radius: var(--r-md); }
.nb-en { margin: 0 0 10px; color: var(--muted); font-size: 16px; font-style: italic; }
.nb-citation { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid #d4a017; border-radius: 0 var(--r-md) var(--r-md) 0; background: #fbf3dc; }
.nb-citation span { color: #8a6500; font-size: 12.5px; font-weight: 700; }
.nb-citation p { margin: 2px 0 0; color: var(--navy); font-size: 15.5px; font-style: italic; }
@media (max-width: 640px) {
    .nb-year { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
    .nb-medal, .nb-head { grid-template-columns: 1fr; }
    .nb-medal img { width: 140px; }
}
/* ---------- დაგვიკავშირდით (/feedback/) ---------- */
.header-actions .icon-mail { display: inline-flex; }          /* ვიწრო ეკრანზეც ჩანს (ძიება იმალება) */
.header-actions .icon-mail[aria-current="page"] { background: var(--green-100); color: var(--green-800); }
.fb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.fb-ways { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.fb-ways h2 { margin: 0 0 4px; color: var(--navy); font-size: 16px; }
.fb-way { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); color: var(--text); text-decoration: none; }
.fb-way:hover { background: var(--green-100); }
.fb-way .proj-icon { flex: none; }
.fb-way strong { display: block; color: var(--navy); font-size: 14px; }
.fb-way small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .fb-grid { grid-template-columns: 1fr; } }
/* ღილაკი .cta-box-ში: .cta-box a-ს მწვანე ფერი არ უნდა გადაეწეროს */
.cta-box .gf-more, .cta-box .gf-more:hover { color: #fff; text-decoration: none; }

/* ---------- შეეკითხე მეცნიერს (/ask/) ---------- */
.ask-hero p.ask-title { margin: 2px 0 6px; color: #fff; font-family: var(--font-title); font-size: 22px; line-height: 1.35; letter-spacing: .03em; }
.ask-list { display: grid; gap: 12px; margin: 0 0 18px; }
.ask-card a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.ask-card a:hover { border-color: var(--green-600); background: var(--green-100); }
.ask-q { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #087b55; color: #fff; font-size: 20px; font-weight: 800; }
.ask-body { display: grid; gap: 8px; min-width: 0; }
.ask-text { line-height: 1.6; overflow-wrap: anywhere; }
.ask-text mark { background: #fff3b0; color: inherit; padding: 0 2px; border-radius: 3px; }
.ask-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 13.5px; }
.ask-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ask-meta .ico { font-size: 15px; }
.ask-meta .ask-go { margin-left: auto; color: var(--green-700); font-weight: 700; }
.ask-view { display: grid; gap: 14px; margin: 0 0 18px; }
.ask-block { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.ask-block-a { border-left: 4px solid #087b55; }
.ask-label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--navy); font-size: 18px; }
.ask-label span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #087b55; color: #fff; font-size: 17px; font-weight: 800; }
.ask-block-q .ask-label span { background: var(--navy); }
.ask-block .article-body { overflow-wrap: anywhere; }
.ask-sign { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 10px 0 0; color: var(--muted); font-size: 14px; text-align: right; }
.ask-sign strong { color: var(--navy); }
@media (max-width: 560px) { .ask-meta .ask-go { margin-left: 0; } }
/* ---------- იდეების ინკუბატორი (/ideas/) ---------- */
.idea-hero { background: linear-gradient(115deg, #3b2a6b 0%, #1d4f7a 55%, #0b8a6a 100%); }
.idea-mark { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .14); color: #ffe48a; font-size: 30px; }
.idea-list { display: grid; gap: 12px; margin: 0 0 18px; }
.idea-card a { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.idea-card a:hover { border-color: var(--green-600); background: var(--green-100); }
.idea-thumb { flex: none; display: grid; place-items: center; width: 110px; height: 90px; overflow: hidden; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--green-700); font-size: 34px; }
.idea-thumb img { width: 100%; height: 100%; object-fit: contain; }
.idea-body { display: grid; gap: 6px; min-width: 0; }
.idea-body strong { color: var(--navy); font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.idea-text { color: var(--text); font-size: 14.5px; line-height: 1.6; }
.idea-views { color: var(--muted); font-size: 13px; }
.idea-h1 { margin: 4px 0 4px; color: var(--navy); font-size: 22px; line-height: 1.4; overflow-wrap: anywhere; }
.idea-view .idea-views { margin: 0 0 14px; }
.idea-body-text::after { content: ""; display: block; clear: both; }
.idea-body-text img { max-width: 100%; height: auto; }
.idea-more { margin: 22px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.idea-more h2 { margin: 0 0 8px; color: var(--navy); font-size: 17px; }
.idea-more ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.idea-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.idea-faq section { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.idea-faq h2 { margin: 0 0 6px; color: var(--navy); font-size: 16px; }
.idea-faq p { margin: 0 0 6px; line-height: 1.6; }
.idea-faq .idea-faq-wide { grid-column: 1 / -1; }
.idea-steps { margin: 6px 0 0; padding-left: 22px; line-height: 1.8; }
.idea-dl { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
    .idea-faq { grid-template-columns: 1fr; }
    .idea-thumb { width: 72px; height: 64px; }
    .idea-body-text [style*="float"] { float: none !important; width: auto !important; }
}
/* ---------- ძიება მთელ საიტზე (/search.php) ---------- */
.srch-hero h1 { color: #fff; }
.srch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.srch-chips a, .srch-chips > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--green-600); border-radius: 999px; background: #fff; color: var(--green-800); font-size: 14px; font-weight: 600; text-decoration: none; }
.srch-chips a:hover { background: var(--green-100); }
.srch-chips .current { background: #087b55; border-color: #087b55; color: #fff; }
.srch-chips a span, .srch-chips > span span { padding: 0 7px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: 12.5px; }
.srch-chips .current span { background: rgba(255, 255, 255, .22); color: #fff; }
.srch-group { margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.srch-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--navy); font-size: 17px; }
.srch-group h2 small { color: var(--muted); font-size: 14px; font-weight: 600; }
.srch-list { display: grid; gap: 12px; margin: 0; padding-left: 22px; }
.srch-list li { padding-left: 4px; }
.srch-list li::marker { color: var(--muted); font-size: 13px; }
.srch-list a { color: var(--green-700); font-weight: 700; overflow-wrap: anywhere; }
.srch-list .srch-meta { display: inline-block; margin-left: 8px; color: var(--muted); font-size: 13px; }
.srch-list p { margin: 3px 0 0; color: var(--text); font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.srch-list mark, .srch-list a mark { padding: 0 2px; border-radius: 3px; background: #fff3b0; color: inherit; }
.srch-more { margin: 10px 0 0; }
.srch-more a { color: var(--green-700); font-weight: 700; }
.srch-empty { padding: 16px 18px; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.srch-empty p { margin: 0 0 6px; }
.srch-empty ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.header-actions .icon-action[aria-current="page"] { background: var(--green-100); color: var(--green-800); }
/* ---------- კოლონტიტულის ბმულები ---------- */
.footer-inner .footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 13.5px; }
.footer-inner .footer-links a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; }
.footer-inner .footer-links a:hover { color: #fff; }

/* ---------- Privacy Policy (/privacy_policy.php) ---------- */
.policy-updated { margin: -4px 0 14px; color: var(--muted); font-size: 14px; }
.policy-toc { margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.policy-toc h2 { margin: 0 0 6px; color: var(--navy); font-size: 16px; }
.policy-toc ol { margin: 0; padding-left: 22px; line-height: 1.9; columns: 2; column-gap: 28px; }
.policy-toc a { color: var(--green-700); font-weight: 600; }
.policy-body h2 { margin: 28px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--navy); font-size: 21px; scroll-margin-top: 16px; }
.policy-body h3 { margin: 20px 0 8px; color: var(--green-800); font-size: 17.5px; }
.policy-body h4 { margin: 16px 0 6px; color: var(--navy); font-size: 16px; }
.policy-body li { margin-bottom: 6px; }
.policy-body li p { margin: 4px 0; }
.policy-body a { overflow-wrap: anywhere; }
@media (max-width: 640px) { .policy-toc ol { columns: 1; } }
/* ---------- შესვლა / პირადი გვერდი ---------- */
.auth-wrap { display: grid; place-items: start center; padding: 8px 0 24px; }
.auth-card { width: min(100%, 460px); padding: 26px 28px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 10px 30px rgba(0, 58, 51, .08); }
.auth-wide .auth-card { width: min(100%, 620px); }
.auth-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 10px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-size: 26px; }
.auth-card h1 { margin: 0 0 6px; color: var(--navy); font-family: var(--font-title); font-size: 24px; font-weight: 400; letter-spacing: .02em; }
.auth-lead { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.auth-form { gap: 4px; }
.auth-form label { margin-top: 8px; }
.auth-form input[type=password] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
.auth-form input[type=password]:focus { outline: 3px solid var(--green-100); border-color: var(--green-600); }
.auth-form .form-submit { justify-self: stretch; margin-top: 14px; }
.auth-msg { display: grid; gap: 10px; justify-items: start; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.55; }
.auth-msg p { margin: 0; }
.auth-error { border-left: 3px solid #b42318; background: #fdecea; color: #7a1a12; }
.auth-info { border-left: 3px solid #b88a00; background: #fff7e0; color: #5c4400; }
.auth-ok { border-left: 3px solid #087b55; background: var(--green-100); color: var(--green-900); }
.auth-msg .gf-more { color: #fff; text-decoration: none; }
.auth-links { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.auth-links a { color: var(--green-700); font-weight: 600; }
.auth-facts { display: grid; gap: 8px; margin: 10px 0 0; }
.auth-facts div { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.auth-facts dt { min-width: 90px; color: var(--muted); font-size: 14px; }
.auth-facts dd { margin: 0; color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.auth-sec { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.auth-sec h2 { margin: 0 0 8px; color: var(--navy); font-size: 17px; }
.auth-logout { margin: 18px 0 0; text-align: right; }
.auth-out-btn { padding: 8px 18px; border: 1px solid #b42318; border-radius: 10px; background: #fff; color: #b42318; font: inherit; font-weight: 700; cursor: pointer; }
.auth-out-btn:hover { background: #fdecea; }
/* ზედა ზოლი: შესული წევრი */
.header-actions .login-link.is-in { max-width: 260px; }
.header-actions .login-link.is-in span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-form { margin: 0; }
.logout-form button { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 6px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); font-size: 18px; cursor: pointer; }
.logout-form button:hover { background: #fdecea; color: #b42318; }
/* ---------- წიგნის ჩამოტვირთვა: ლოდინი არაწევრებისთვის (ათვლა JavaScript-ის გარეშე) ---------- */
@property --dl-n { syntax: '<integer>'; initial-value: 0; inherits: false; }
.dl-wait { display: grid; gap: 10px; justify-items: center; margin: 0 0 18px; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.dl-wait p { margin: 0; }
.dl-wait-num { display: grid; place-items: center; width: 84px; height: 84px; border: 4px solid var(--green-100); border-radius: 50%; color: #087b55; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; --dl-n: var(--from); counter-reset: dln var(--dl-n); animation-name: dl-count; animation-timing-function: linear; animation-fill-mode: forwards; }
.dl-wait-num::after { content: counter(dln); }
@keyframes dl-count { from { --dl-n: var(--from); } to { --dl-n: 0; } }
.dl-bar { width: min(100%, 420px); height: 10px; overflow: hidden; border-radius: 999px; background: var(--green-100); }
.dl-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: #087b55; animation-name: dl-fill; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes dl-fill { to { width: 100%; } }
.dl-wait-alt { color: var(--muted); font-size: 13.5px; }
.dl-wait-alt a { color: var(--green-700); font-weight: 600; }
.dl-member-cta { margin-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .dl-bar span { animation: none; width: 100%; } }
/* ---------- ახალი ადმინ-პანელი (/1115/) ---------- */
.adm-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.adm-nav { position: sticky; top: 12px; display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.adm-nav a, .adm-nav .adm-soon { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--navy); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.adm-nav a:hover { background: var(--green-100); }
.adm-nav a.current { background: #087b55; color: #fff; }
.adm-nav .ico { flex: none; font-size: 17px; }
.adm-nav .adm-soon { color: var(--muted); font-weight: 500; opacity: .7; cursor: default; }
.adm-nav .adm-home { margin-bottom: 4px; }
.adm-who { margin: 10px 0 0; padding: 10px 10px 0; border-top: 1px solid var(--line); color: var(--navy); font-size: 13px; overflow-wrap: anywhere; }
.adm-who small { color: var(--muted); }
.adm-nav .adm-old { color: var(--muted); font-size: 13px; font-weight: 500; }
.adm-content { min-width: 0; }
.adm-content h1 { margin: 0 0 14px; color: var(--navy); font-family: var(--font-title); font-size: 24px; font-weight: 400; letter-spacing: .02em; }
.adm-lead { margin: 0 0 18px; color: var(--muted); }
.adm-h2 { margin: 22px 0 10px; color: var(--navy); font-size: 17px; }
.adm-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.adm-todo-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; }
.adm-todo-card:hover { border-color: var(--green-600); }
.adm-todo-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.adm-todo-n { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; background: var(--green-100); color: var(--green-800); font-size: 20px; font-weight: 800; }
.adm-todo-card.has .adm-todo-n { background: #fff3cd; color: #8a5a00; }
.adm-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.adm-sec { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--navy); font-weight: 700; text-decoration: none; }
a.adm-sec:hover { border-color: var(--green-600); background: var(--green-100); }
.adm-sec.adm-soon { color: var(--muted); font-weight: 500; }
.adm-sec small { margin-left: auto; font-size: 12px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.adm-stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.adm-stats dt { color: var(--muted); font-size: 13px; }
.adm-stats dd { margin: 2px 0 0; color: var(--navy); font-size: 22px; font-weight: 800; }
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.adm-bar .gf-more { display: inline-flex; align-items: center; gap: 8px; }
.adm-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14.5px; }
.adm-table th { padding: 8px 10px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 13px; text-align: left; }
.adm-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:hover td { background: var(--green-100); }
.adm-table a { color: var(--navy); font-weight: 600; }
.adm-thumb { width: 74px; }
.adm-thumb img { display: block; width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.adm-date { color: var(--muted); white-space: nowrap; }
.adm-actions { text-align: right; white-space: nowrap; }
.adm-actions a { color: var(--green-700); font-size: 17px; }
.adm-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #fff3cd; color: #8a5a00; font-size: 12px; font-weight: 700; }
.adm-meta { margin: -6px 0 14px; color: var(--muted); font-size: 14px; }
.adm-meta a { color: var(--green-700); font-weight: 600; }
.adm-form { gap: 4px; max-width: 900px; }
.adm-form label { margin-top: 10px; }
.adm-form input[type=text], .adm-form textarea, .adm-form input[type=file] { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
.adm-form textarea { min-height: 0; resize: vertical; line-height: 1.55; }
.adm-form .adm-code { font-family: Consolas, "Courier New", monospace; font-size: 13.5px; }
.adm-hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.adm-img { margin: 14px 0 0; padding: 12px 16px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.adm-img legend { padding: 0 6px; color: var(--green-700); font-weight: 700; }
.adm-img-prev { display: block; max-width: 260px; max-height: 170px; margin: 4px 0 6px; border-radius: 8px; border: 1px solid var(--line); }
.adm-check { display: flex !important; align-items: center; gap: 8px; margin-top: 14px !important; font-weight: 600; }
.adm-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.adm-danger { margin-left: auto; color: #b42318; font-weight: 700; }
@media (max-width: 860px) {
    .adm-layout { grid-template-columns: 1fr; }
    .adm-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .adm-who, .adm-nav .adm-old { grid-column: 1 / -1; }
}
/* ---------- ადმინ-პანელი: ტექსტის რედაქტორი (rte.js) ---------- */
.rte-wrap { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.rte-wrap:focus-within { outline: 3px solid var(--green-100); border-color: var(--green-600); }
.rte-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface); }
.rte-bar button { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rte-bar button:hover { border-color: var(--line); background: #fff; }
.rte-bar button.on { border-color: #087b55; background: var(--green-100); color: var(--green-800); }
.rte-bar button:disabled { opacity: .35; cursor: default; }
.rte-bar button[data-cmd="italic"] { font-style: italic; }
.rte-bar button[data-cmd="underline"] { text-decoration: underline; }
.rte-bar button[data-cmd="strikeThrough"] { text-decoration: line-through; }
.rte-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.rte-area { min-height: 340px; max-height: 70vh; overflow-y: auto; padding: 14px 16px; outline: 0; line-height: 1.7; }
.rte-area:empty::before { content: "დაწერეთ ან ჩასვით ტექსტი…"; color: var(--muted); }
.rte-area img { max-width: 100%; height: auto; }
.rte-area blockquote { margin: 10px 0; padding: 6px 14px; border-left: 3px solid #087b55; background: var(--green-100); }
.rte-wrap textarea.rte-source { display: none; width: 100%; min-height: 340px; border: 0; border-radius: 0; padding: 12px 14px; font-family: Consolas, "Courier New", monospace; font-size: 13.5px; }
.rte-wrap.rte-src .rte-area { display: none; }
.rte-wrap.rte-src textarea.rte-source { display: block; }
.rte-status { margin-left: auto; padding: 0 6px; color: var(--muted); font-size: 13px; }

/* ---------- ადმინ-პანელი: სურათის ჩამოჭრა (crop.js) ---------- */
.cc-lock, .cc-lock body { overflow: hidden; }
.cc-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(8, 24, 20, .72); }
.cc-box { display: grid; gap: 10px; max-width: min(920px, 100%); max-height: 100%; overflow: auto; padding: 16px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.cc-head strong { color: var(--navy); font-size: 17px; }
.cc-info { margin: 0; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cc-stage { position: relative; justify-self: center; overflow: hidden; background: #222; touch-action: none; user-select: none; }
.cc-stage .cc-img { display: block; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.cc-rect { position: absolute; box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); cursor: move; touch-action: none; }
.cc-rect::before, .cc-rect::after { content: ""; position: absolute; inset: 33.33% 0; border-top: 1px dashed rgba(255, 255, 255, .55); border-bottom: 1px dashed rgba(255, 255, 255, .55); pointer-events: none; }
.cc-rect::after { inset: 0 33.33%; border: 0; border-left: 1px dashed rgba(255, 255, 255, .55); border-right: 1px dashed rgba(255, 255, 255, .55); }
.cc-h { position: absolute; width: 16px; height: 16px; border: 2px solid #087b55; border-radius: 3px; background: #fff; }
.cc-nw { left: -9px; top: -9px; cursor: nwse-resize; }
.cc-ne { right: -9px; top: -9px; cursor: nesw-resize; }
.cc-sw { left: -9px; bottom: -9px; cursor: nesw-resize; }
.cc-se { right: -9px; bottom: -9px; cursor: nwse-resize; }
.cc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cc-lab { color: var(--navy); font-size: 14px; font-weight: 700; }
.cc-ratio { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cc-ratio.on { border-color: #087b55; background: #087b55; color: #fff; }
.cc-alt { display: grid; gap: 4px; color: var(--navy); font-size: 14px; font-weight: 700; }
.cc-alt input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; }
.cc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc-foot .form-submit { margin: 0; }
.cc-btn { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }
.cc-btn:hover { background: var(--green-100); }
.cc-cancel { margin-left: auto; color: #b42318; }
/* ---------- ადმინ-პანელი: დამატებითი ელემენტები (ეს საინტერესოა, კვირის სტუმარი) ---------- */
.adm-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.adm-2col label { margin-top: 10px; }
.adm-form input[type=date] { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
.adm-sub { color: var(--muted); font-size: 13px; }
.adm-badge-off { background: #eceff1; color: #546e7a; }
.adm-thumb-portrait img { width: 44px; height: 55px; }
.adm-img-portrait { max-width: 160px; max-height: 200px; }
.rte-short + .rte-area, .rte-wrap:has(.rte-short) .rte-area { min-height: 180px; }
@media (max-width: 640px) { .adm-2col { grid-template-columns: 1fr; } }
/* ---------- ადმინ-პანელი: საერთო ფორმები და სიები (_crud.php) ---------- */
.adm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.adm-field { grid-column: 1 / -1; min-width: 0; }
.adm-field.half { grid-column: auto; }
.adm-field > label, .adm-label { display: block; margin: 12px 0 4px; color: var(--navy); font-size: 14px; font-weight: 700; }
.adm-field.is-check { align-self: end; }
.adm-field .adm-sublabel { margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.adm-form select, .adm-form input[type=email], .adm-form input[type=url], .adm-form input[type=number] { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
.adm-info { padding: 8px 0; color: var(--text); font-size: 14px; }
.adm-intro { margin: -4px 0 12px; padding: 10px 12px; border-left: 3px solid #087b55; border-radius: 0 8px 8px 0; background: var(--green-100); color: var(--navy); }
.adm-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.adm-filters a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.adm-filters a:hover { border-color: var(--green-600); }
.adm-filters a.current { border-color: #087b55; background: #087b55; color: #fff; }
.adm-badge-ok { background: var(--green-100); color: var(--green-800); }
.adm-expired { color: #b42318; font-weight: 600; }
.adm-thumb img.adm-contain { object-fit: contain; background: #fff; }
.adm-side-form { display: grid; gap: 8px; justify-items: start; max-width: 900px; margin: 22px 0 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--r-md); }
.adm-side-form p { margin: 0; font-size: 14px; }
@media (max-width: 640px) { .adm-fields { grid-template-columns: 1fr; } .adm-field.half { grid-column: 1 / -1; } }
.adm-missing { margin: -4px 0 12px; padding: 8px 12px; border-left: 3px solid #b88a00; border-radius: 0 8px 8px 0; background: #fff7e0; color: #5c4400; }

/* ---------- ადმინ-პანელი: მენიუს ჯგუფები, ფართო მინიატურა, SQL ---------- */
.adm-nav .adm-group { margin: 10px 10px 2px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.adm-thumb-wide img { width: 110px; height: 34px; object-fit: cover; }
.adm-sql { margin: 8px 0 0; padding: 10px 12px; overflow-x: auto; border-radius: 8px; background: #0d2621; color: #c9f2e3; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 860px) { .adm-nav .adm-group { grid-column: 1 / -1; } }
.adm-table .adm-day { color: var(--green-800); font-weight: 800; white-space: nowrap; }

/* ---------- ადმინ-პანელი: განაცხადის ნახვა (თაკოს ფონდი) ---------- */
.adm-view-sec { max-width: 900px; margin: 0 0 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.adm-view-sec h2 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.adm-dl { display: grid; gap: 0; margin: 0; }
.adm-dl div { display: grid; grid-template-columns: minmax(160px, 34%) 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.adm-dl div:last-child { border-bottom: 0; }
.adm-dl dt { color: var(--muted); font-size: 14px; }
.adm-dl dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.adm-docs, .adm-consents { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.adm-docs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.adm-docs a { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-weight: 600; overflow-wrap: anywhere; }
.adm-consents li { font-size: 14px; }
.adm-consents li.on { color: var(--green-800); }
.adm-consents li.off { color: #b42318; }
.adm-filters a small { color: inherit; opacity: .75; }
@media (max-width: 640px) { .adm-dl div { grid-template-columns: 1fr; gap: 2px; } }
/* ---------- ადმინ-პანელი: სტატისტიკა და ელფოსტები ---------- */
.adm-h3 { margin: 14px 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.adm-stats div.has-link:hover { border-color: var(--green-600); }
.adm-stats dd a { color: var(--navy); text-decoration: none; }
.adm-stats dd a:hover { color: var(--green-700); text-decoration: underline; }
.adm-emails { width: 100%; max-width: 900px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.6; }
.adm-bad-list { margin: 0; padding-left: 20px; line-height: 1.8; }
.adm-bad-list a { color: var(--green-700); font-weight: 600; }
/* ---------- ადმინ-პანელი: აკორდეონი მენიუ, დაჯგუფებული ბარათები, კომპაქტური სტატისტიკა ---------- */
.adm-nav { gap: 6px; padding: 10px; }
.adm-grp { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.adm-grp > summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--green-100); color: var(--green-900); font-size: 13.5px; font-weight: 800; cursor: pointer; list-style: none; user-select: none; }
.adm-grp > summary::-webkit-details-marker { display: none; }
.adm-grp > summary::after { content: "▸"; margin-left: 4px; color: var(--green-700); transition: transform .15s; }
.adm-grp[open] > summary { border-bottom: 1px solid var(--line); }
.adm-grp[open] > summary::after { transform: rotate(90deg); }
.adm-grp > summary:hover { background: #d9efe5; }
.adm-grp > summary:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }
.adm-grp-n { margin-left: auto; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--green-800); font-size: 12px; font-weight: 700; }
.adm-grp-list { display: grid; gap: 1px; padding: 4px; }
.adm-grp-list a, .adm-grp-list .adm-soon { padding: 7px 10px; font-size: 14px; }
.adm-nav .adm-home { border: 1px solid var(--line); background: #fff; }
.adm-nav .adm-home.current { border-color: #087b55; }

.adm-sec-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.adm-sec-group { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.adm-sec-group h3 { margin: 0; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--green-100); color: var(--green-900); font-size: 14px; }
.adm-sec-links { display: grid; padding: 6px; }
.adm-sec-links a, .adm-sec-links .adm-soon { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--navy); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.adm-sec-links a:hover { background: var(--green-100); }
.adm-sec-links .ico { flex: none; color: var(--green-700); font-size: 17px; }
.adm-sec-links .adm-soon { color: var(--muted); font-weight: 500; }

.adm-stat-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.adm-stat-group { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.adm-stat-group h3 { margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.adm-stat-list { margin: 0; padding: 6px 0; list-style: none; }
.adm-stat-list li { padding: 4px 14px; color: var(--text); font-size: 14px; line-height: 1.5; }
.adm-stat-list li strong { color: var(--navy); font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-stat-list a { color: inherit; text-decoration: none; }
.adm-stat-list a:hover { color: var(--green-700); text-decoration: underline; }
/* ---------- ადმინ-პანელი: ელფოსტების ჯგუფები, წევრობის ვადა ---------- */
.adm-mail-groups { display: grid; gap: 14px; max-width: 980px; }
.adm-mail-group { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.adm-mail-group header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 6px; }
.adm-mail-group h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--navy); font-size: 17px; }
.adm-mail-group h2 .adm-grp-n { background: var(--green-100); }
.adm-mail-group .adm-sub { margin: 0 0 8px; }
.adm-mail-btns { display: flex; gap: 8px; }
.adm-mail-btns .cc-btn, .adm-mail-btns .gf-more { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 14px; }
.adm-mail-btns .cc-btn.ok { border-color: #087b55; background: var(--green-100); color: var(--green-800); }
.adm-mail-btns .cc-btn:disabled { opacity: .45; cursor: default; }
.adm-mail-group .adm-emails { max-width: none; }
.adm-bad { margin-top: 8px; font-size: 14px; }
.adm-bad summary { color: #b42318; font-weight: 600; cursor: pointer; }
.adm-soon-exp { color: #8a5a00; font-weight: 700; }
/* =========================================================
   ჟურნალი „ქიმიის უწყებანი“ (/publication/chemnews/)
   ========================================================= */
.cn-mast { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 0 0 12px; padding: 16px 20px; border-radius: var(--r-lg); color: #fff; background: radial-gradient(circle at 92% 20%, rgba(159, 230, 203, .18) 0 90px, transparent 91px), linear-gradient(115deg, #10243e 0%, #163a5c 55%, #0b6e75 100%); }
.cn-mast-cover img { display: block; width: 84px; height: 112px; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); background: #fff; }
.cn-mast-kicker { margin: 0; color: var(--mint); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.cn-mast-title { margin: 2px 0 4px; font-family: var(--font-title); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: .02em; }
.cn-mast-title a { color: #fff; text-decoration: none; }
.cn-mast-sub { margin: 0; color: rgba(255, 255, 255, .82); font-size: 13.5px; }
.cn-oa { display: inline-block; padding: 0 8px; border-radius: 999px; background: #f4a51c; color: #2b1d00; font-size: 12px; font-weight: 800; }
.cn-mast-issue { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; color: #fff; text-align: center; text-decoration: none; }
.cn-mast-issue:hover { background: rgba(255, 255, 255, .1); }
.cn-mast-issue small { color: var(--mint); font-size: 12px; }
.cn-tabs { margin-bottom: 18px; }
.cn-row { grid-template-columns: minmax(0, 1fr) 290px; }
.cn-main { min-width: 0; }
.cn-h1 { margin: 0 0 12px; color: var(--navy); font-size: 24px; }
.cn-h2 { margin: 0 0 10px; color: var(--navy); font-size: 18px; }
.cn-sec { margin: 0 0 22px; }
.cn-about { margin: 0 0 22px; padding: 16px 18px; border-left: 4px solid #0b6e75; border-radius: 0 var(--r-lg) var(--r-lg) 0; background: var(--surface); line-height: 1.7; }
.cn-about p { margin: 0 0 8px; }
.cn-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 10px 0 0; }
.cn-stats div { display: flex; gap: 6px; align-items: baseline; }
.cn-stats dt { color: var(--muted); font-size: 13.5px; }
.cn-stats dd { margin: 0; color: var(--navy); font-weight: 800; }
.cn-toc { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.cn-toc li::marker { color: #0b6e75; font-weight: 700; }
.cn-toc a { color: var(--navy); font-weight: 700; text-decoration: none; }
.cn-toc a:hover { color: var(--green-700); text-decoration: underline; }
.cn-toc span { display: block; color: var(--muted); font-size: 14px; }
.cn-latest { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.cn-latest li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cn-latest a { color: var(--navy); font-weight: 700; text-decoration: none; }
.cn-latest a:hover { color: var(--green-700); text-decoration: underline; }
.cn-latest small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.cn-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: #e6f0f8; color: #163a5c; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.cn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cn-chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: 14px; }
.cn-issue-head small { color: var(--muted); font-size: 16px; font-weight: 600; }
.cn-list { display: grid; gap: 14px; margin: 0 0 18px; }
.cn-card { display: flex; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cn-card-img { flex: none; width: 120px; height: 92px; overflow: hidden; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.cn-card-img img { width: 100%; height: 100%; object-fit: contain; }
.cn-card-body { min-width: 0; }
.cn-card-meta { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.cn-card h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.4; }
.cn-card h3 a { color: var(--navy); text-decoration: none; }
.cn-card h3 a:hover { color: var(--green-700); text-decoration: underline; }
.cn-card-au { margin: 0 0 6px; color: #0b6e75; font-size: 14.5px; font-weight: 600; }
.cn-card-abs { margin: 0 0 6px; color: var(--text); font-size: 14.5px; line-height: 1.6; }
.cn-card-foot { margin: 0; color: var(--muted); font-size: 13px; }
.cn-card-foot a { color: var(--green-700); font-weight: 700; }
.cn-archive { display: grid; gap: 14px; }
.cn-vol { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cn-vol h2 { margin: 0 0 8px; color: var(--navy); font-size: 17px; }
.cn-vol h2 small { color: var(--muted); font-size: 14px; font-weight: 600; }
.cn-vol ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cn-vol a { display: grid; gap: 1px; min-width: 110px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); text-decoration: none; }
.cn-vol a:hover { border-color: #0b6e75; background: #eef6f7; }
.cn-vol a span { color: var(--muted); font-size: 12.5px; }
.cn-vol a em { color: #0b6e75; font-size: 12px; font-style: normal; font-weight: 700; }
.cn-article { margin: 0 0 18px; }
.cn-art-head { position: relative; margin: 0 0 16px; padding: 0 0 14px; border-bottom: 2px solid var(--line); }
.cn-art-head:has(.cn-art-photo) { padding-right: 116px; min-height: 130px; }
.cn-art-ref { margin: 0 0 6px; font-size: 13.5px; }
.cn-art-ref a { color: #0b6e75; font-weight: 600; text-decoration: none; }
.cn-art-ref a:hover { text-decoration: underline; }
.cn-article h1 { margin: 0 0 10px; color: var(--navy); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; }
.cn-art-au { margin: 0 0 4px; color: var(--navy); font-size: 16px; font-weight: 700; }
.cn-art-aff { margin: 0 0 10px; color: var(--muted); font-size: 14px; font-style: italic; }
.cn-art-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13.5px; }
.cn-art-facts span { display: inline-flex; align-items: center; gap: 5px; }
.cn-art-facts a { color: var(--green-700); font-weight: 600; }
.cn-art-photo { position: absolute; top: 0; right: 0; width: 96px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cn-abstract { margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid #0b6e75; border-radius: 0 var(--r-lg) var(--r-lg) 0; background: #eef6f7; }
.cn-abstract h2 { margin: 0 0 6px; color: #163a5c; font-size: 16px; letter-spacing: .03em; }
.cn-abstract p { margin: 0 0 8px; line-height: 1.7; }
.cn-kw { font-size: 14px; }
.cn-kw a { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 9px; border: 1px solid #b9d6da; border-radius: 999px; background: #fff; color: #163a5c; text-decoration: none; }
.cn-kw a:hover { border-color: #0b6e75; }
.cn-body { line-height: 1.75; }
.cn-cite, .cn-see { margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cn-cite h2, .cn-see h2 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.cn-cite-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cn-cite-row span { color: var(--muted); font-size: 13px; font-weight: 700; }
.cn-cite-row p { margin: 0; font-size: 14px; line-height: 1.6; user-select: all; }
.cn-see ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.cn-see a { color: var(--green-700); font-weight: 600; }
.cn-aside { display: grid; gap: 14px; align-content: start; }
.cn-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cn-box h2 { margin: 0 0 10px; color: var(--navy); font-size: 15px; }
.cn-search { display: grid; gap: 8px; }
.cn-search input, .cn-search select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 14px; }
.cn-search .form-submit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; justify-self: stretch; margin: 0; padding: 9px 14px; }
.cn-box-cta { border-color: #b9d6da; background: #eef6f7; }
.cn-steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.cn-steps a { color: #0b6e75; font-weight: 700; }
.cn-box-cta .gf-more { display: inline-flex; align-items: center; gap: 8px; }
.cn-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cn-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--green-700); font-size: 14px; font-weight: 600; }
.cn-subtabs { margin-bottom: 14px; }
.cn-dl-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; }
.cn-doc { line-height: 1.75; }
.cn-form { max-width: 760px; }
.cn-form input[type=file] { width: 100%; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; }
.cn-board { margin: 0 0 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cn-board h2 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.cn-board ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cn-board li { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.cn-board li strong { color: var(--navy); }
.cn-board li span { color: var(--muted); font-size: 14px; }
.cn-files { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 820px; }
.cn-files li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cn-file-text { flex: 1; min-width: 0; }
.cn-file-text strong { display: block; color: var(--navy); }
.cn-file-text small { color: var(--muted); font-size: 13.5px; }
@media (max-width: 980px) { .cn-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .cn-mast { grid-template-columns: auto 1fr; }
    .cn-mast-issue { grid-column: 1 / -1; }
    .cn-mast-cover img { width: 60px; height: 80px; }
    .cn-card { flex-direction: column; }
    .cn-card-img { width: 100%; height: 150px; }
    .cn-art-head:has(.cn-art-photo) { padding-right: 0; }
    .cn-art-photo { position: static; display: block; margin: 10px 0 0; }
    .cn-cite-row { grid-template-columns: 1fr; gap: 2px; }
}
/* ---------- ჟურნალი: ნომრების ყდები და PDF ---------- */
.cn-covers { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px !important; }
.cn-issue-card { display: grid; gap: 4px; align-content: start; }
.cn-cover { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(16, 36, 62, .12); transition: transform .15s, box-shadow .15s; }
.cn-cover:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 36, 62, .2); }
.cn-cover img { width: 100%; height: 100%; object-fit: cover; }
.cn-cover-empty { display: grid; place-items: center; height: 100%; padding: 10px; background: linear-gradient(160deg, #163a5c, #0b6e75); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.cn-cover em { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: #f4a51c; color: #2b1d00; font-size: 11.5px; font-style: normal; font-weight: 800; }
.cn-issue-card.is-cur .cn-cover { border-color: #f4a51c; border-width: 2px; }
.cn-issue-name { color: var(--navy) !important; font-weight: 800; text-decoration: none; border: 0 !important; padding: 0 !important; background: none !important; min-width: 0 !important; }
.cn-issue-n { color: var(--muted); font-size: 12.5px; }
.cn-issue-pdf { display: inline-flex !important; align-items: center; gap: 5px; justify-self: start; padding: 3px 10px !important; border: 1px solid #b9d6da !important; border-radius: 999px !important; background: #eef6f7 !important; color: #163a5c !important; font-size: 12.5px; font-weight: 700; min-width: 0 !important; }
.cn-issue-top { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 2px solid var(--line); }
.cn-issue-top h1 { margin: 0 0 4px; color: var(--navy); font-size: 24px; }
.cn-issue-top h1 small { color: var(--muted); font-size: 16px; }
.cn-issue-top .page-count { margin: 0 0 10px; }
.cn-issue-cover { width: 130px; flex: none; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px rgba(16, 36, 62, .15); }
.cn-pdf { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.cn-pdf .gf-more, .cn-pdf .cc-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.cn-cur-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 12px; }
.cn-cur-top .cn-issue-cover { width: 96px; }
@media (max-width: 640px) { .cn-issue-top { flex-direction: column; } .cn-issue-cover { width: 110px; } }
/* ---------- ჟურნალი: მსუბუქი სათაური (ბანერისა და ყდის გარეშე) + E-ISSN ---------- */
.cn-mast { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid #0b6e75; color: var(--navy); background: var(--surface); }
.cn-mast-kicker { color: var(--green-700); }
.cn-mast-title a { color: var(--navy); }
.cn-mast-title a:hover { color: #0b6e75; }
.cn-mast-sub { color: var(--muted); }
.cn-mast-side { display: grid; justify-items: end; gap: 6px; }
.cn-mast-issue { border-color: #b9d6da; background: #fff; color: var(--navy); }
.cn-mast-issue:hover { border-color: #0b6e75; background: #eef6f7; }
.cn-mast-issue small { color: #0b6e75; }
.cn-issn { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
@media (max-width: 640px) { .cn-mast { grid-template-columns: 1fr; } .cn-mast-side { justify-items: start; } }