/* ============================================================
   THE SANGAI EXPRESS — HEADER + FOOTER
   Supplementary stylesheet.
   Keep public.css loaded first for homepage/article components.
   ============================================================ */

.header-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: var(--bg-card, #fff);
    box-shadow: var(--shadow-card, 0 5px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.05));
    transition: background .3s ease, transform .3s ease;
}
.header-container { width: 100%; max-width: 1440px; margin-inline: auto; }

.util-bar {
    min-height: 20px; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 6px 20px; border-bottom: 1px solid var(--border-light, #f0f0f0);
    color: var(--text-muted, #888); font-family: var(--font-ui, Inter, sans-serif);
    font-size: 12px; line-height: 1.4;
}
.util-left { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-width: 0; }
.util-divider { color: var(--primary-pale, #ccc); }
.util-right { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; gap: 8px; }
.util-right button, .util-right a {
    font-family: var(--font-ui, Inter, sans-serif); font-size: 11px; line-height: 1.2;
    white-space: nowrap; border-radius: 3px; text-decoration: none;
}
.util-right .btn-utility {
    display: inline-block; padding: 5px 12px; border: 1px solid var(--border, #e0e0e0);
    color: var(--text-secondary, #555); background: transparent;
}
.util-right .btn-utility:hover { border-color: var(--primary, #222); color: var(--primary, #222); }
.util-right .btn-subscribe-mini {
    display: inline-block; padding: 6px 14px; border: 1px solid var(--primary, #222);
    background: var(--primary, #222); color: var(--bg-card, #fff); font-weight: 600;
}
.util-right .btn-subscribe-mini:hover { opacity: .85; }

.masthead {
    position: relative; display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; min-height: 60px; padding: 10px 20px 6px; text-align: center;
}
.masthead-social {
    position: absolute; top: 18px; left: 32px; display: flex; align-items: center; gap: 10px;
}
.masthead-brand { grid-column: 2; min-width: 0; text-align: center; }
.brand-link { display: inline-block; color: var(--text-primary, #1a1a1a); text-decoration: none; }
.brand-name {
    margin: 0; font-family: var(--font-serif, "Playfair Display", Georgia, serif);
    font-size: 36px; font-weight: 900; line-height: 1; letter-spacing: 1px;
    color: var(--text-primary, #1a1a1a); white-space: nowrap;
}
.brand-tagline {
    margin-top: 6px; font-family: var(--font-ui, Inter, sans-serif); font-size: 10px;
    font-weight: 400; line-height: 1.3; letter-spacing: 3px; text-transform: uppercase;
    color: var(--text-muted, #888);
}
.masthead-actions {
    position: absolute; top: 18px; right: 32px; display: flex;
    align-items: center; justify-content: flex-end; gap: 14px;
}
.icon-circle {
    width: 30px; height: 30px; border-radius: 50%; background: var(--bg-alt, #f5f5f5);
    display: inline-flex; align-items: center; justify-content: center;
    font: 12px var(--font-ui, Inter, sans-serif); color: var(--text-secondary, #555);
    text-decoration: none; transition: background .15s ease, color .15s ease;
}
.icon-circle:hover { background: var(--primary, #222); color: var(--bg-card, #fff); }
.icon-action {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; padding: 0; border: 0; background: transparent;
    color: var(--text-secondary, #555); cursor: pointer; text-decoration: none;
}
.icon-action:hover { color: var(--primary, #222); }
.icon-action svg { display: block; width: 100%; height: 100%; }

.section-nav {
    position: relative; display: flex; align-items: center; justify-content: center;
    gap: 26px; min-height: 43px; padding: 8px 60px 12px 32px;
    border-top: 1px solid var(--border-light, #f0f0f0);
    font-family: var(--font-ui, Inter, sans-serif); font-size: 12px;
    font-weight: 600; line-height: 1.4; letter-spacing: .5px; text-transform: uppercase;
    overflow-x: auto; scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.nav-link {
    display: inline-block; flex: 0 0 auto; padding: 4px 0; margin-bottom: -2px;
    border-bottom: 2px solid transparent; color: var(--text-secondary, #555);
    text-decoration: none; white-space: nowrap; transition: color .15s ease, border-color .15s ease;
}
.nav-link:hover { color: var(--primary, #222); }
.nav-link.active { color: var(--primary, #222); border-bottom-color: var(--primary, #222); }
.search-toggle {
    position: absolute; top: 50%; right: 24px; z-index: 2; display: inline-flex;
    align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
    border: 0; background: var(--bg-card, #fff); color: var(--text-secondary, #555);
    transform: translateY(-50%); cursor: pointer;
}
.search-toggle:hover { color: var(--primary, #222); }
.search-toggle svg { display: block; width: 18px; height: 18px; }

.site-search[hidden] { display: none !important; }
.site-search {
    padding: 12px 32px 16px; border-top: 1px solid var(--border-light, #f0f0f0);
    background: var(--bg-card, #fff);
}
.site-search-row {
    display: flex; align-items: center; gap: 10px; width: 100%;
    max-width: 760px; margin-inline: auto;
}
.site-search input {
    flex: 1; min-width: 0; height: 40px; padding: 0 12px;
    border: 1px solid var(--border, #e0e0e0); border-radius: 3px;
    outline: none; background: var(--bg-card, #fff); color: var(--text-primary, #1a1a1a);
    font: 13px var(--font-ui, Inter, sans-serif);
}
.site-search input:focus { border-color: var(--primary, #222); }
.site-search button { flex-shrink: 0; }

/* Footer */
/* ============================================================
   THE SANGAI EXPRESS — COMPACT FOOTER
   ============================================================ */

.site-footer {
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px;
    padding: 32px 5.5vw 20px;
    background: #050505;
    color: #fff;
}

.footer-grid {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;

    font-family: Inter, Arial, sans-serif;
}

.footer-col h4 {
    margin: 0 0 14px;
    color: #999;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

.footer-col > a {
    display: block;
    width: fit-content;
    margin-bottom: 8px;

    color: #ccc;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-decoration: none;

    transition: color .2s ease;
}

.footer-col > a:hover {
    color: #d4a017;
}

.footer-bottom {
    width: 100%;
    max-width: 1440px;
    margin: 24px auto 0;
    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.12);

    color: #666;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

/* Tablet */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .site-footer {
        padding: 28px 20px 18px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .footer-col h4 {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .footer-col > a {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .footer-bottom {
        margin-top: 22px;
        padding-top: 16px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* Active navbar link */
.section-nav .nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.section-nav .nav-link.active {
    color: #a47c32;
    font-weight: 700;
}

.section-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #a47c32;
    border-radius: 2px;
}

/*
maksing sure text is not selected
*/
body {
    -webkit-user-select: none;
    user-select: none;
}

.article-content {
    -webkit-user-select: text;
    user-select: text;
}
