/* ==========================================================================
   DEUSKOUROS PHEONIX HUB — Editorial Stylesheet for Ghost Official "Source"
   Preserves classical literary-journal readability, Greek polytonic legibility,
   WCAG AA contrast, and bilingual EN/EL navigation parity.
   ========================================================================== */

:root {
    --ghost-accent-color: #061536;
    --hub-navy: #061536;
    --hub-gold: #A98234;
    --hub-paper-warm: #FAF8F4;
    --hub-text-primary: #1F242D;
    --hub-text-muted: #595959; /* >= 7:1 contrast on #FFFFFF (replaces faint #999999) */
    --hub-border: #E2DDD2;
}

/* 1. Brand Logo & Navigation Bar Polish */
.gh-navigation-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.gh-navigation-logo img {
    max-height: 65px !important;
    width: auto;
}

@media (max-width: 767px) {
    .gh-navigation-logo img {
        max-height: 50px !important;
    }
}

/* Language switcher link in navigation (when label is ΕΛ / EN) */
.gh-navigation-menu a[href*="/el/"],
.gh-navigation-menu a[href="https://hub.deuskouros.org/"] {
    font-weight: 600;
}

/* 2. Typography & Reading Rhythm (Greek-safe Serif Body + Clean Sans Headings) */
.gh-content {
    color: var(--hub-text-primary);
}

.gh-content p,
.gh-content li {
    line-height: 1.68;
}

/* WCAG AA Contrast for metadata, dates, reading time, and card excerpts */
.gh-card-excerpt,
.gh-card-meta,
.gh-article-meta,
.gh-article-excerpt,
.gh-post-meta,
.gh-card-date,
.gh-card-duration,
time {
    color: var(--hub-text-muted) !important;
}

/* 3. Bilingual Cross-Links & Journal Topic Filters (from existing editorial.css) */
.gh-edition-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    margin: 1rem 0 1.4rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--hub-navy);
    text-decoration: underline;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
}

.gh-edition-link:hover {
    color: var(--hub-gold);
}

.gh-journal-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2rem;
    margin: 0 0 3rem;
}

.gh-journal-topics a {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--hub-navy);
    text-decoration: none;
    border-bottom: 1px solid var(--hub-border);
    padding-bottom: 0.2rem;
}

.gh-journal-topics a:hover {
    border-bottom-color: var(--hub-navy);
}

/* 4. Editorial Diagrams, Figures & Vertical Poster Restraint */
.gh-content .kg-image-card {
    margin: 2.6rem auto;
}

.gh-content .kg-image-card img {
    border-radius: 4px;
}

/* Prevent tall vertical posters inside essays from overwhelming desktop scroll */
@media (min-width: 768px) {
    .gh-content .kg-image-card:not(.kg-width-full):not(.kg-width-wide) img[src*="poster-"],
    .gh-content .kg-image-card:not(.kg-width-full):not(.kg-width-wide) img[src*="EKKDEMOS.EN"] {
        max-height: 640px;
        width: auto;
        margin-left: auto;
        margin-right: auto;
        display: block;
        box-shadow: 0 10px 28px rgba(6, 21, 54, 0.12);
    }
}

.gh-content figcaption,
.gh-article-image figcaption {
    margin-top: 0.85rem;
    font-size: 1.35rem;
    line-height: 1.45;
    color: var(--hub-text-muted);
    text-align: center;
}

/* 5. Callout Cards & Blockquotes */
.gh-content blockquote:not([class]) {
    border-left: 3px solid var(--hub-navy);
    padding-left: 1.8rem;
    background: var(--hub-paper-warm);
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    padding-right: 1.4rem;
    border-radius: 0 4px 4px 0;
}

.gh-content .kg-callout-card {
    border: 1px solid var(--hub-border);
    border-left: 4px solid var(--hub-navy);
}

/* 6. Member / Paid Lock Badges on Cards */
.gh-card-access,
.gh-visibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hub-navy);
    background: #EFECE4;
    border: 1px solid #D8D1C2;
    padding: 0.22rem 0.65rem;
    border-radius: 3px;
}

.gh-navigation-logo img { max-height: 65px; width: auto; }
.gh-navigation-menu a[data-hub-language] { font-weight: 600; }
.hub-greek-heading { padding-block: 2.5rem 1rem; }
.gh-card-access svg { width: 12px; height: 12px; }
@media (max-width: 767px) {
    .gh-navigation-logo img { max-height: 50px; }
}
