/*
  BAKSO Buletin — modern public news front.
  Single grotesque sans (Hanken Grotesk), bold blue accent, rounded soft-shadow cards.
  No serif, no hairline-rule broadsheet grammar — this is the deliberately "not classic" pass.
*/

:root {
    --nx-paper: oklch(97% 0.008 240);
    --nx-surface: oklch(99% 0.003 240);
    --nx-ink: oklch(20% 0.02 240);
    --nx-ink-soft: oklch(40% 0.02 240);
    --nx-meta: oklch(54% 0.018 240);
    --nx-border: oklch(89% 0.010 240);
    --nx-accent: oklch(46% 0.175 228);
    --nx-accent-dark: oklch(38% 0.18 228);
    --nx-accent-tint: oklch(94% 0.035 228);
    --nx-accent-tint-strong: oklch(89% 0.05 228);

    --nx-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    --nx-shadow-sm: 0 1px 3px oklch(20% 0.02 240 / 0.06), 0 1px 2px oklch(20% 0.02 240 / 0.05);
    --nx-shadow-md: 0 8px 24px oklch(20% 0.02 240 / 0.08), 0 2px 6px oklch(20% 0.02 240 / 0.05);
    --nx-shadow-lg: 0 20px 48px oklch(20% 0.02 240 / 0.14), 0 6px 16px oklch(46% 0.175 228 / 0.10);
}

* {
    box-sizing: border-box;
}

.nx-body {
    background: var(--nx-paper);
    color: var(--nx-ink-soft);
    font-family: var(--nx-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.nx-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

a.nx-link {
    color: inherit;
    text-decoration: none;
}

@keyframes nx-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nx-rise {
    animation: nx-rise 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ───────────────────────── Top nav ───────────────────────── */

.nx-nav-bar {
    background: var(--nx-surface);
    border-bottom: 1px solid var(--nx-border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.nx-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.nx-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nx-brand img {
    height: 32px;
    width: auto;
}

.nx-brand-text {
    font-weight: 800;
    font-size: 20px;
    color: var(--nx-ink);
    letter-spacing: -0.01em;
}

.nx-pill-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--nx-paper);
    border-radius: 100px;
    padding: 4px;
}

.nx-pill-nav a {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-ink-soft);
    border-radius: 100px;
    transition: background 160ms ease-out, color 160ms ease-out;
}

.nx-pill-nav a:hover {
    color: var(--nx-ink);
}

.nx-pill-nav a.is-active {
    background: var(--nx-surface);
    color: var(--nx-accent-dark);
    box-shadow: var(--nx-shadow-sm);
}

.nx-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

a.nx-btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nx-accent);
    color: oklch(99% 0.005 228);
    font-size: 14px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 100px;
    box-shadow: 0 6px 16px oklch(46% 0.175 228 / 0.30);
    transition: background 160ms ease-out, transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms ease-out;
}

a.nx-btn-accent:hover {
    background: var(--nx-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px oklch(46% 0.175 228 / 0.36);
}

.nx-menu-toggle {
    display: none;
    background: var(--nx-paper);
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 19px;
    color: var(--nx-ink);
    cursor: pointer;
}

.nx-mobile-panel {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 16px;
}

.nx-mobile-panel a {
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--nx-ink-soft);
    border-radius: 10px;
}

.nx-mobile-panel a:active {
    background: var(--nx-paper);
}

.nx-mobile-panel.is-open {
    display: flex;
}

/* ───────────────────────── Media / image placeholder ───────────────────────── */

.nx-media {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--nx-accent-tint);
}

.nx-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 200ms ease-out;
}

.nx-media.is-broken img {
    display: none;
}

.nx-media-fallback {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--nx-accent-dark);
    background: linear-gradient(160deg, var(--nx-accent-tint), var(--nx-accent-tint-strong));
}

.nx-media.is-broken .nx-media-fallback {
    display: flex;
}

.nx-media-fallback i {
    font-size: 26px;
    opacity: 0.85;
}

.nx-media-fallback span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.8;
}

.nx-media--lead {
    aspect-ratio: 16/10;
}

.nx-media--rail {
    width: 92px;
    height: 76px;
    min-height: 76px;
    max-height: 76px;
    flex-shrink: 0;
    align-self: flex-start;   /* jangan ikut meregang setinggi item */
    border-radius: 12px;
}

.nx-media--rail .nx-media-fallback i {
    font-size: 16px;
}

.nx-media--rail .nx-media-fallback span {
    display: none;
}

.nx-media--grid {
    aspect-ratio: 4/3;
}

.nx-media--article {
    aspect-ratio: 16/8;
}

/* ───────────────────────── Lead section ───────────────────────── */

.nx-lead-section {
    padding: 44px 0 16px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
}

.nx-lead-card {
    background: var(--nx-surface);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--nx-shadow-md);
}

.nx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--nx-accent-dark);
    background: var(--nx-accent-tint);
    padding: 6px 14px;
    border-radius: 100px;
    margin: 18px 0 14px;
}

.nx-lead-headline {
    font-weight: 800;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.1;
    color: var(--nx-ink);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.nx-lead-dek {
    font-size: 16px;
    line-height: 1.65;
    color: var(--nx-meta);
    max-width: 62ch;
    margin: 0 0 18px;
}

.nx-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--nx-meta);
    font-weight: 600;
    margin: 0 0 18px;
}

.nx-byline i {
    font-size: 14px;
    color: var(--nx-accent);
}

/* ───────────────────────── Side rail ───────────────────────── */

.nx-rail-card {
    background: var(--nx-surface);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--nx-shadow-md);
    height: 100%;
}

.nx-rail-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--nx-ink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-rail-title i {
    color: var(--nx-accent);
    font-size: 16px;
}

.nx-rail-link {
    display: block;
}

.nx-rail-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 0;
    border-bottom: 1px solid var(--nx-border);
}

.nx-rail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nx-rail-item:first-child {
    padding-top: 0;
}

.nx-rail-headline {
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--nx-ink);
    margin: 0 0 6px;
    transition: color 150ms ease-out;
}

a:hover .nx-rail-headline {
    color: var(--nx-accent-dark);
}

.nx-rail-meta {
    font-size: 12px;
    color: var(--nx-meta);
    font-weight: 600;
}

/* ───────────────────────── More-stories grid ───────────────────────── */

.nx-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 12px 0 24px;
}

.nx-section-heading h2 {
    font-weight: 800;
    font-size: 24px;
    color: var(--nx-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.nx-section-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-meta);
}

.nx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 64px;
}

.nx-grid-item {
    background: var(--nx-surface);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--nx-shadow-sm);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease-out;
}

.nx-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--nx-shadow-md);
}

.nx-grid-headline {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.32;
    color: var(--nx-ink);
    margin: 14px 0 8px;
}

.nx-grid-excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--nx-meta);
    margin: 0 0 10px;
}

.nx-grid-meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--nx-accent-dark);
    margin: 0;
}

/* ───────────────────────── Empty state ───────────────────────── */

.nx-empty {
    padding: 80px 0 96px;
    text-align: center;
    color: var(--nx-meta);
}

.nx-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--nx-accent-tint);
    color: var(--nx-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
}

.nx-empty h2 {
    color: var(--nx-ink);
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* ───────────────────────── Article (detail) page ───────────────────────── */

.nx-article {
    padding: 40px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 700px) 1fr;
    gap: 28px;
    align-items: start;
}

.nx-article-card {
    background: var(--nx-surface);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--nx-shadow-md);
}

.nx-article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--nx-accent-dark);
    background: var(--nx-accent-tint);
    padding: 8px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.nx-article-back i {
    font-size: 14px;
    transform: scaleX(-1);
}

.nx-article-headline {
    font-weight: 800;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.16;
    color: var(--nx-ink);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.nx-article-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--nx-border);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--nx-meta);
}

.nx-article-meta-row i {
    font-size: 14px;
    color: var(--nx-accent);
}

.nx-article-figure {
    margin: 0 0 26px;
}

.nx-prose {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--nx-ink-soft);
    max-width: 70ch;
}

.nx-prose p {
    margin: 0 0 1.2em;
}

.nx-prose img {
    max-width: 100%;
    border-radius: 14px;
    margin: 1em 0;
}

.nx-prose a {
    color: var(--nx-accent-dark);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nx-prose * {
    max-width: 100%;
}

/*
  Disqus' embed.js walks up the DOM from #disqus_thread looking for a non-transparent
  background and runs it through a parser that doesn't understand oklch(), throwing
  "parseColor received unparseable color". Giving the thread itself a plain hex
  background (matching --nx-surface) stops the lookup before it reaches an oklch value.
*/
#disqus_thread {
    background-color: #fcfcfd;
}

.nx-aside-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--nx-ink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-aside-title i {
    color: var(--nx-accent);
    font-size: 16px;
}

/* ───────────────────────── Footer ───────────────────────── */

.nx-footer {
    background: var(--nx-ink);
    color: oklch(82% 0.012 240);
    margin-top: 0;
}

.nx-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 52px 0 32px;
    gap: 32px;
}

.nx-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 21px;
    color: oklch(98% 0.005 240);
    margin-bottom: 10px;
}

.nx-footer-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: oklch(70% 0.015 240);
    max-width: 40ch;
}

.nx-footer-cols {
    display: flex;
    gap: 48px;
}

.nx-footer-col-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: oklch(64% 0.018 240);
    margin-bottom: 16px;
}

.nx-footer-col a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: oklch(85% 0.012 240);
    padding: 6px 0;
    transition: color 150ms ease-out;
}

.nx-footer-col a:hover {
    color: oklch(76% 0.10 228);
}

.nx-footer-bottom {
    border-top: 1px solid oklch(30% 0.018 240);
    padding: 18px 0 28px;
    font-size: 12.5px;
    font-weight: 500;
    color: oklch(58% 0.018 240);
    display: flex;
    justify-content: space-between;
}

/* ───────────────────────── Responsive ───────────────────────── */

@media (max-width: 980px) {
    .nx-lead-section {
        grid-template-columns: 1fr;
    }

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

    .nx-article {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nx-wrap {
        padding: 0 18px;
    }

    .nx-pill-nav,
    .nx-btn-accent {
        display: none;
    }

    .nx-menu-toggle {
        display: block;
    }

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

    .nx-footer-row {
        flex-direction: column;
    }

    .nx-footer-cols {
        gap: 32px;
    }

    .nx-article-card {
        padding: 20px;
    }
}
