h1,
h2,
h3 {
    margin: 0 0 14px;
    color: #0b1324;
    line-height: 1.3;
    font-family: "Abhaya Libre", Georgia, serif;
}

h1 {
    font-size: clamp(1.8rem, 1.35rem + 1.8vw, 2.45rem);
}

h2 {
    font-size: clamp(1.3rem, 1.1rem + .8vw, 1.9rem);
}

h3 {
    font-size: clamp(1.06rem, 1rem + .45vw, 1.3rem);
}

.page-main {
    padding: 0 0 56px;
}

.zone {
    margin-top: 30px;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.topbar-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    margin-right: auto;
}

.brand a {
    font-size: clamp(1.15rem, .8rem + .9vw, 1.55rem);
    font-family: "Abhaya Libre", Georgia, serif;
    font-weight: 700;
    color: #0b1324;
}

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 44px;
}

.brand-home {
    display: inline-block;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-size: .96rem;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #0f172a;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-toggle {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    cursor: pointer;
}

.search-form {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width .2s ease, opacity .2s ease;
}

.search-form.is-open {
    width: 220px;
    opacity: 1;
}

.search-form input {
    width: 100%;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0 14px;
}

.hero-strip {
    padding: 28px 0 6px;
}

.hero-sub {
    margin: 6px 0 0;
    color: #6b7280;
    max-width: none;
    white-space: nowrap;
}

.lead-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.lead-side {
    display: grid;
    gap: 20px;
}

.cover-post {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #111827;
    min-height: 250px;
}

.cover-large {
    min-height: 540px;
}

.cover-small {
    min-height: 260px;
}

.cover-post::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 10%, rgba(15, 23, 42, .88) 90%);
}

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

.cover-overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
}

.cover-title {
    margin: 0;
    font-size: clamp(1.15rem, .95rem + .75vw, 1.7rem);
    line-height: 1.35;
    font-family: "Abhaya Libre", Georgia, serif;
}

.cover-title a,
.cover-meta {
    color: #fff;
}

.cover-meta {
    margin: 8px 0 0;
    font-size: .88rem;
}

.post-grid {
    display: grid;
    gap: 20px;
}

.post-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.11);
}

.post-thumb {
    display: block;
    height: 236px;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    padding: 16px;
}

.post-tax {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: .84rem;
}

.post-title {
    margin: 0 0 8px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.4;
}

.post-excerpt {
    margin: 0;
    color: #6b7280;
    font-size: .95rem;
}

.post-date {
    margin: 10px 0 0;
    font-size: .82rem;
    color: #6b7280;
}

.post-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.cover-hero {
    margin-top: 0;
    background: linear-gradient(145deg, #111827, #1f2937);
    color: #fff;
    padding: 80px 0;
}

.cover-hero h1 {
    color: #fff;
    margin-bottom: 10px;
}

.cover-hero .hero-sub {
    color: #d1d5db;
}

.split {
    display: grid;
    gap: 26px;
}

.split-main {
    grid-template-columns: 2fr 1fr;
    align-items: start;
}

.article-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 18px;
    color: #4b5563;
    font-size: .92rem;
}

.article-content :is(p, ul, ol) {
    margin: 0 0 1em;
}

.article-content h2 {
    margin: 1.4em 0 .45em;
}

.article-content h3 {
    margin: 1.2em 0 .4em;
}

.article-content table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    margin: 1.2em 0;
    display: block;
    overflow-x: auto;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #fff;
}

.article-content td,
.article-content th {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.article-content th {
    background: #f8fafc;
    color: #0b1324;
    font-weight: 600;
}

.article-content tr:nth-child(even) td {
    background: #fcfdff;
}

.article-content a {
    color: #0b63f3;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: #0847af;
}

.faq-block {
    margin-top: 26px;
}

.faq-item {
    border-top: 1px solid #e5e7eb;
    padding: 14px 0;
}

.faq-item p {
    margin: 0;
    color: #4b5563;
}

.faq-block + .related-strip {
    margin-top: 40px;
}

.plain-label {
    margin: 0 0 14px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 1.25rem;
    color: #0b1324;
}

.sidebar-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    padding: 16px;
}

.sidebar-label {
    margin: 0 0 12px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 1.25rem;
}

.mini-post {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
}

.mini-post:first-child {
    border-top: 0;
    padding-top: 0;
}

.mini-thumb {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-title {
    margin: 0;
    font-size: .96rem;
    line-height: 1.4;
}

.mini-date {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: .78rem;
}

.crumbs {
    margin-bottom: 18px;
}

.crumbs ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: .9rem;
}

.crumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #9ca3af;
}

.pager {
    margin-top: 24px;
}

.pager ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.pager a,
.pager span {
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    display: grid;
    place-items: center;
    padding: 0 10px;
    font-size: .9rem;
}

.pager .is-active span {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.pager .is-disabled span {
    color: #9ca3af;
}

.footer-zone {
    margin-top: 52px;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
    padding-top: 32px;
}

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

.footer-title {
    margin: 0 0 12px;
    font-family: "Abhaya Libre", Georgia, serif;
    color: #0b1324;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.footer-base {
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    padding: 16px 0 24px;
    color: #6b7280;
}

.not-found {
    display: grid;
    gap: 20px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
}

@media (max-width: 1199px) {
    .post-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .lead-grid,
    .split-main {
        grid-template-columns: 1fr;
    }

    .post-grid-3,
    .post-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cover-large {
        min-height: 420px;
    }
}

@media (max-width: 782px) {
    .hero-sub {
        white-space: normal;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, .95);
        padding: 100px 26px 24px;
        transform: translateX(100%);
        transition: transform .25s ease;
        z-index: 999;
    }

    .main-nav.is-menu-open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 14px;
    }

    .main-nav a {
        color: #fff;
        font-size: 1.1rem;
    }

    .search-form.is-open {
        width: 150px;
    }
}

@media (max-width: 600px) {
    .post-grid-2,
    .post-grid-3,
    .post-grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .article-wrap {
        border-radius: 20px;
        padding: 16px;
    }
}
