/*!
 * Sonin News - custom skin
 * Editorial, newspaper-inspired look: a dark navy masthead, a warm
 * neutral page background, and an off-white (not pure white) content
 * panel. Always loaded, regardless of the "Appearance style" setting
 * in the backend.
 */

:root {
    --pico-primary: #16406e !important;
    --pico-primary-hover: #0f2d4d !important;
    --pico-background-color: #eeeae1 !important;
    --pico-muted-border-color: rgba(30, 30, 20, .08) !important;
    --pico-form-element-border-color: rgba(30, 30, 20, .2) !important;
    --pico-code-background-color: rgba(30, 30, 20, .05) !important;

    --sn-navy: #0f2b4a;
    --sn-navy-deep: #0a1d33;
    --sn-gold: #c79a4b;
    --sn-paper: #fbf8f2;
    --sn-paper-border: rgba(30, 30, 20, .1);
    --sn-ink: #23262b;
    --sn-muted: #6b6a63;
}

body {
    background: linear-gradient(180deg, #e9e4d8 0%, #eeeae1 340px);
}

/* ---------- Header / masthead ---------- */

.site-navbar {
    background: linear-gradient(180deg, var(--sn-navy) 0%, var(--sn-navy-deep) 100%);
    border-bottom: 3px solid var(--sn-gold);
}

.site-navbar a,
.site-navbar .nav-toggler-btn {
    color: #eef1f5;
}

.site-navbar a:hover {
    color: var(--sn-gold);
}

.site-navbar .brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-navbar .brand img {
    max-height: 56px;
    width: auto;
    display: block;
}

.site-navbar .brand-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.015em;
    color: #f7f8fa;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.site-navbar .desc {
    color: #b9c2cf;
}

.nav-menu a.active {
    color: var(--sn-gold);
    font-weight: 700;
}

.site-navbar input[type="search"] {
    background-color: rgba(255, 255, 255, .08);
    color: #eef1f5;
    border-color: rgba(255, 255, 255, .2);
    --pico-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(238,241,245)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

.nav-menu {
    position: relative;
}

.nav-search input[type="search"]:focus {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 260px !important;
    z-index: 20;
    background-color: var(--sn-navy) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    box-shadow: 0 8px 24px rgba(10, 20, 35, .35);
}

/* ---------- Categories dropdown ---------- */

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
}

.nav-dropdown-menu li { padding: 0.25rem 0; }

@media (min-width: 1024px) {
    .nav-dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 160px;
        background: var(--sn-navy);
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 6px;
        padding: 0.35rem 0;
        box-shadow: 0 8px 24px rgba(10, 20, 35, .35);
        z-index: 10;
    }

    .nav-dropdown-menu li {
        padding: 0.3rem 1rem;
        white-space: nowrap;
    }

    .nav-dropdown-menu a {
        font-size: 13px;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
}

.nav-lang-switch {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}

.nav-lang-switch:hover {
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
}

/* ---------- Content panel ---------- */

main.container {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.container-thin {
    max-width: 46rem;
    background: var(--sn-paper);
    border: 1px solid var(--sn-paper-border);
    border-top: 4px solid var(--sn-navy);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(20, 20, 10, .1);
    padding: 2.25rem 2.5rem;
    overflow-x: hidden;
}

@media (max-width: 600px) {
    .container-thin {
        padding: 1.25rem;
    }
}

/* ---------- Post list ---------- */

.post-list-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--sn-paper-border);
    align-items: flex-start;
}

.post-list-item:first-child { padding-top: 0; }
.post-list-item:last-child { border-bottom: none; }

.post-list-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    display: block;
    border: 1px solid var(--sn-paper-border);
}

.post-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.post-list-item:hover .post-list-thumb img {
    transform: scale(1.05);
}

.post-list-info {
    flex: 1;
    min-width: 0;
}

.post-list-title {
    margin: 0 0 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--sn-ink);
}

.post-list-title a {
    text-decoration: none;
    color: var(--sn-ink);
}

.post-list-item:hover .post-list-title a {
    color: var(--sn-navy);
    text-decoration: underline;
}

.post-list-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.post-date {
    font-size: 13px;
    color: var(--sn-muted);
}

.category-badge {
    display: inline-block;
    background: var(--sn-navy);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 3px;
    text-decoration: none;
}

.post-list-excerpt {
    margin: 0;
    color: #4a4a44;
    font-size: 14.5px;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .post-list-thumb { width: 104px; height: 84px; }
    .post-list-title { font-size: 17px; }
}

/* ---------- Single post ---------- */

.entry-title {
    font-family: Georgia, 'Times New Roman', serif;
}

.entry-title a { color: var(--sn-ink); }
.entry-content.fmt {
    line-height: 1.8;
    font-size: 16px;
    display: flow-root; /* contains any floated images so later elements can't wrap beside them */
}
.entry-content.fmt img { border-radius: 4px; border: 1px solid var(--sn-paper-border); }

.post-nav {
    clear: both; /* extra safety: always starts on its own line below any floats */
    margin: 2.5rem 0 1rem;
    overflow-x: hidden;
}

.post-nav .page-navigator .prev,
.post-nav .page-navigator .next {
    display: block;
    flex: 0 1 46%;
    max-width: 46%;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--sn-navy-deep);
    margin-top: 3rem;
    padding: 1.75rem 0;
    color: #b9c2cf;
    font-size: 13px;
}

.site-footer a { color: #b9c2cf; }
.site-footer a:hover { color: var(--sn-gold); }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 18px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
}

.footer-links-label {
    font-weight: 700;
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
    color: #8b96a6;
}

.footer-dot { color: #556174; }

/* ---------- About page template ---------- */

.about-hero {
    text-align: center;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 2px solid var(--sn-gold);
}

.about-hero-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sn-navy);
    margin-bottom: 6px;
}

.about-hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    margin: 0;
    color: var(--sn-ink);
}

.about-lede {
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    font-size: 16px;
    line-height: 1.75;
    color: var(--sn-ink);
}

.about-lede strong { color: var(--sn-navy); }
.about-lede a { color: var(--sn-navy); text-decoration: underline; }

.about-section {
    max-width: 42rem;
    margin: 0 auto 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--sn-paper-border);
}

.about-section h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    color: var(--sn-navy);
    margin: 0 0 0.75rem;
}

.about-section p {
    font-size: 15px;
    line-height: 1.75;
    color: #3c3c38;
    margin: 0 0 0.9rem;
}

.about-section p:last-child { margin-bottom: 0; }

.about-mission-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.about-mission-list li {
    position: relative;
    list-style: none;
    padding-left: 22px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #3c3c38;
}

.about-mission-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--sn-gold);
    border-radius: 1px;
}

.about-tagline {
    max-width: 34rem;
    margin: 3rem auto 0;
    padding: 0 1rem;
    text-align: center;
    color: var(--sn-navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.5;
}

.about-tagline::before {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    background: var(--sn-gold);
    margin: 0 auto 1.5rem;
}