/* ============================================================
   ALDEVON OVERRIDES — applied on top of headline/screen.css
   ============================================================ */

/* ---- Color tokens ---- */
:root {
    --color-black:       #0b0f14;
    --color-darker-gray: #e6eaf0;
    --color-dark-gray:   #b5bcc6;
    --color-medium-gray: #8a9099;
    --color-light-gray:  #222b38;
    --color-white:       #e6eaf0;
    --color-secondary-text: #8a9099;
    --ghost-accent-color: #2386ff;
    --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; /* stylelint-disable-line value-keyword-case */
}

/* ---- Body & backgrounds ---- */
body {
    background-color: #0b0f14;
    color: #e6eaf0;
    -webkit-font-smoothing: antialiased;
}

/* ---- Sticky header ---- */
#gh-head {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ---- Head / nav ---- */
.gh-head {
    background-color: rgba(17, 22, 29, 0.95);
    border-bottom: 1px solid #222b38 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ---- Side padding ---- */
:root {
    --gap: 6rem;
}

@media (max-width: 767px) {
    :root {
        --gap: 2.4rem;
    }
}

.gh-head-inner {
    border-bottom-color: #222b38 !important;
}

.gh-head-logo,
.gh-head-logo:hover {
    color: #e6eaf0;
}

.gh-head-menu .nav a {
    color: #8a9099;
}
.gh-head-menu .nav a:hover {
    color: #e6eaf0;
    opacity: 1;
}

.gh-head-actions a,
.gh-icon-btn {
    color: #8a9099;
}
.gh-icon-btn:hover {
    color: #e6eaf0;
}

/* Subscribe / portal buttons */
.gh-head-btn,
.gh-btn.gh-primary-btn {
    background-color: #2386ff;
    color: #f8fafc !important;
    border-color: #2386ff;
}
.gh-head-btn:hover,
.gh-btn.gh-primary-btn:hover {
    background-color: #176fe5;
    opacity: 1;
}

/* ---- Cards ---- */
.gh-card {
    background-color: #141b25;
}

.gh-card-title {
    color: #e6eaf0;
}

.gh-card-excerpt {
    color: #8a9099;
}

.gh-card-footer,
.gh-card-author,
.gh-card-date {
    color: #475467 !important;
}

/* Large featured card separator */
.gh-topic-grid .gh-card:not(:only-child).large {
    border-bottom-color: #222b38;
}

/* ---- Article ---- */
.gh-article-title {
    color: #e6eaf0;
}

.gh-article-excerpt {
    color: #8a9099;
}

.gh-article-tag {
    color: #2d8cff;
}

.gh-article-tag:hover {
    color: #7fbcff;
    opacity: 1;
}

.gh-author-name a {
    color: #e6eaf0;
}

.gh-article-meta,
.gh-article-date,
.gh-article-length {
    color: #475467;
}

/* ---- Post content ---- */
.gh-content {
    color: #b5bcc6;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
    color: #e6eaf0;
}

.gh-content a {
    color: #7fbcff;
}

.gh-content strong {
    color: #e6eaf0;
}

.gh-content blockquote {
    border-left-color: #2386ff;
    background: #11161d;
    color: #e6eaf0;
}

.gh-content code {
    background: #171d27;
    border: 1px solid #222b38;
    color: #7fbcff;
}

.gh-content pre {
    background: #11161d;
    border: 1px solid #222b38;
}

.gh-content pre code {
    color: #a5f3fc;
}

.gh-content hr {
    border-color: #222b38;
}

.gh-content table th {
    background: #171d27;
    color: #e6eaf0;
    border-color: #222b38;
}

.gh-content table td {
    border-color: #171d27;
    color: #8a9099;
}

/* ---- Pagehead ---- */
.gh-pagehead-title {
    color: #e6eaf0;
}

.gh-pagehead-description {
    color: #8a9099;
}

.gh-read-next .gh-pagehead-title::after {
    background-color: #222b38;
}

/* ---- Topic dividers ---- */
.gh-topic-footer {
    border-top-color: #222b38;
}

.gh-topic-header {
    border-bottom-color: #222b38;
}

/* ---- Footer ---- */
.gh-foot {
    background-color: #11161d;
    border-top: 1px solid #222b38;
    margin-top: 80px;
}

.gh-foot,
.gh-foot a,
.gh-foot a:hover {
    color: #8a9099;
}

.gh-foot-menu {
    border-bottom-color: #222b38;
}

.gh-subscribe ~ .gh-foot-menu {
    border-top-color: #222b38;
}

.gh-copyright {
    color: #475467;
}

/* ---- Subscribe banner ---- */
.gh-subscribe {
    background-color: #10161f;
}

.gh-subscribe-title {
    color: #e6eaf0;
}

.gh-subscribe-description {
    color: #8a9099;
}

.gh-subscribe-btn {
    background-color: #2386ff;
    color: #f8fafc;
}

.gh-subscribe-btn:hover {
    background-color: #176fe5;
    opacity: 1;
}

/* ---- Author icon placeholder ---- */
.gh-author-icon {
    background-color: #222b38;
}

/* ---- Share button ---- */
.gh-button-share {
    background-color: #222b38 !important;
    color: #e6eaf0 !important;
    border-color: #313c4d !important;
}

.gh-button-share:hover {
    background-color: #313c4d !important;
    opacity: 1 !important;
}

/* ---- Search ---- */
.gh-search-modal,
.gh-search-modal-body {
    background-color: #11161d;
    color: #e6eaf0;
    border-color: #222b38;
}

/* ---- Portal ---- */
.gh-portal-main-section {
    background-color: #11161d !important;
}
