/* ==========================================================================
   KABAR RAYA — Editorial Light Theme
   ========================================================================== */
:root {
    --paper:        #ffffff;
    --paper-warm:   #fbfaf7;
    --ink:          #121214;
    --ink-soft:     #5a5a62;
    --ink-faint:    #8c8c93;
    --line:         #e8e5df;
    --line-soft:    #f1efe9;
    --red:          #c41e3a;
    --red-deep:     #7c0f22;
    --red-bright:   #e8465e;
    --red-wash:     #fdf1f2;
    --whisper-violet: #2c1e4a;
    --whisper-blue:   #0f2e52;
    --serif: "Newsreader", "Times New Roman", Georgia, serif;
    --sans:  "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --shadow-1: 0 2px 6px rgba(18,18,20,.06), 0 8px 18px -10px rgba(18,18,20,.14);
    --shadow-2: 0 12px 28px -10px rgba(18,18,20,.22), 0 4px 12px rgba(18,18,20,.08);
    --shadow-red: 0 16px 32px -12px rgba(196,30,58,.42);
}
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--red); color: #fff; }
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
    border-radius: 4px;
}
body { position: relative; }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1100px 640px at 92% -8%,  rgba(196,30,58,.10), transparent 60%),
        radial-gradient(900px 620px at -10% 10%,  rgba(44,30,74,.06),  transparent 55%),
        radial-gradient(800px 700px at 50% 120%,  rgba(15,46,82,.05),  transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #fdfcfb 40%, #ffffff 100%);
}
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.site-header::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--red-deep), var(--red) 45%, var(--red-bright) 75%, var(--whisper-violet));
}
.wrap, .footer-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 20px;
}
.header-inner {
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
    box-sizing: border-box;
}
.brand {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    flex: 0 0 auto;
}
.brand span { color: var(--red); }
.brand-logo { height: 34px; width: auto; display: block; }
.desktop-menu { display: flex; flex-wrap: nowrap; gap: 18px; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.desktop-menu a { color: var(--ink-soft); position: relative; padding-bottom: 3px; }
.desktop-menu a:hover { color: var(--ink); }
.desktop-menu a::after {
    content: "";
    position: absolute; left: 0; right: 100%; bottom: -1px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
    transition: right .22s ease;
}
.desktop-menu a:hover::after { right: 0; }
.nav-toggle {
    display: none;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-family: var(--sans);
    font-size: 0.85rem;
}
.wrap { padding-top: 16px; padding-bottom: 44px; }
.idx-hero {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 26px;
}
.idx-hero-main {
    position: relative;
    min-height: 320px;
    height: 100%;
    background: var(--paper-warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2);
}
.idx-hero-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}
.idx-hero-copy {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 36px 20px 16px;
    background: linear-gradient(180deg, rgba(10,8,12,0) 0%, rgba(10,8,12,.55) 100%);
}
.idx-hero-copy h1 {
    margin: 2px 0 2px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.22;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.idx-hero-copy time { color: rgba(255,255,255,.9); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.idx-hero-side { display: flex; flex-direction: column; gap: 12px; }
.idx-hero-mini {
    display: grid; grid-template-columns: 132px 1fr;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    min-height: 92px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.idx-hero-mini:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-1px);
    border-color: #ecdde0;
}
.idx-hero-mini img { width: 132px; height: 100%; object-fit: cover; }
.idx-hero-mini div { padding: 12px 14px; }
.idx-hero-mini h2 {
    margin: 4px 0 0;
    font-size: 1rem;
    line-height: 1.32;
    font-family: var(--serif);
    font-weight: 600;
    color: var(--ink);
}
.kicker {
    display: inline-block;
    color: var(--red);
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.idx-hero-copy .kicker { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
time, .muted { color: var(--ink-faint); font-size: 0.78rem; font-family: var(--sans); }
.idx-sec { margin: 6px 0 22px; }
.idx-sec-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.idx-sec-head::after {
    content: "";
    position: absolute; left: 0; bottom: -1px;
    width: 64px; height: 2px;
    background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
    border-radius: 2px;
}
.idx-sec-title {
    margin: 0;
    display: inline-block;
    font-size: 1.05rem;
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 55%, var(--red-bright) 100%);
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: var(--shadow-red);
}
.idx-more { color: var(--red); font-size: 0.86rem; font-weight: 500; white-space: nowrap; }
.idx-more:hover { color: var(--red-deep); }
.idx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.idx-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.idx-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
    border-color: #ecdde0;
}
.idx-card img { width: 100%; height: 176px; aspect-ratio: 16/10; object-fit: cover; max-width: none; }
.idx-card-sum { margin: 0 0 8px; font-size: 0.86rem; line-height: 1.4; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idx-card-body { padding: 14px 16px 16px; }
.idx-card h3 {
    margin: 6px 0 6px;
    font-size: 1.04rem;
    line-height: 1.36;
    font-family: var(--serif);
    font-weight: 600;
    color: var(--ink);
}
.idx-card h3 a:hover { color: var(--red); }
.idx-spot {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}
.idx-spot-lead {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-1);
}
.idx-spot-lead img { width: 100%; height: 240px; object-fit: cover; }
.idx-spot-lead div { padding: 14px 16px 16px; }
.idx-spot-lead h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
.idx-spot-list { display: flex; flex-direction: column; gap: 10px; }
.idx-list-item,
.idx-stack-item {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-height: 80px;
}
.idx-hero-mini img,
.idx-list-item img,
.idx-stack-item img,
.idx-spot-lead img,
.idx-banner img {
    max-width: none;
}
.idx-list-item img,
.idx-stack-item img { width: 112px; height: 80px; object-fit: cover; }
.idx-list-item div,
.idx-stack-item div { padding: 8px 10px 8px 0; }
.idx-list-item h3,
.idx-stack-item h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 0.98rem; line-height: 1.3; }
.idx-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.idx-stack-item { grid-template-columns: 96px 1fr; min-height: 72px; }
.idx-stack-item img { width: 96px; height: 72px; }
.idx-banner {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    min-height: 220px;
    box-shadow: var(--shadow-2);
}
.idx-banner img { width: 100%; height: 240px; object-fit: cover; }
.idx-banner div {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px 20px 16px;
    background: linear-gradient(transparent, rgba(10,8,12,.86));
    color: #fdfcfb;
}
.idx-banner h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.idx-banner time { color: rgba(255,255,255,.72); font-size: 0.78rem; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; }
.article h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 2.15rem;
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--ink);
}
.article .meta { color: var(--ink-faint); margin-bottom: 12px; font-size: 0.88rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.share span { color: var(--ink-faint); font-size: 0.78rem; margin-right: 4px; }
.share a, .share button {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    border-radius: 999px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--red); color: var(--red); }
.article .lead-img {
    width: 100%; max-height: 440px; object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 10px 0 20px;
    box-shadow: var(--shadow-2);
}
.article .body { font-size: 1.14rem; line-height: 1.75; color: #26262a; }
.article .body p { margin: 0 0 1.1em; }
.article .body img { margin: 1.2em 0; border-radius: var(--radius-md); }
.article .body h2, .article .body h3 { font-family: var(--serif); color: var(--ink); }
.side-block {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-1);
}
.side-block h3 {
    margin: 0 0 14px;
    font-size: 0.98rem;
    font-family: var(--serif);
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}
.side-item { display: grid; grid-template-columns: 76px 1fr; gap: 10px; margin-bottom: 12px; }
.side-item:last-child { margin-bottom: 0; }
.side-item img { width: 76px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.side-item p { margin: 0; font-size: 0.92rem; line-height: 1.35; color: var(--ink); }
.side-item p:hover { color: var(--red); }
.pager { display: flex; gap: 16px; margin-top: 26px; }
.pager a { color: var(--red); font-weight: 500; padding: 8px 4px; }
.pager a:hover { color: var(--red-deep); }
.irp {
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    background: var(--paper-warm);
    border-radius: var(--radius-sm);
}
.irp-label {
    color: var(--red);
    font-size: 0.74rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--sans);
}
.irp a { display: block; color: var(--ink); margin: 6px 0; font-family: var(--serif); font-weight: 500; }
.irp a:hover { color: var(--red); }
.site-footer {
    position: relative;
    margin-top: 20px;
    border-top: 1px solid var(--line);
    background: var(--paper-warm);
    padding: 34px 0 30px;
    color: var(--ink-soft);
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--whisper-violet), var(--red-deep) 35%, var(--red-bright) 65%, var(--whisper-blue));
}
.footer-inner { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.9rem; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--red); }
.copy { font-size: 0.8rem; color: var(--ink-faint); }
@media (max-width: 860px) {
    .idx-hero, .layout, .idx-grid, .idx-spot, .idx-stack { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .desktop-menu { display: none; }
    body.nav-open .desktop-menu {
        display: flex; flex-direction: column; gap: 4px;
        position: absolute; top: 68px; left: 0; right: 0;
        background: rgba(255,255,255,.98);
        padding: 14px 20px 20px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-2);
        white-space: normal;
    }
    body.nav-open .desktop-menu a { padding: 8px 0; }
    .header-inner { padding: 0 16px; }
    .idx-hero-main { min-height: 220px; height: 220px; }
    .idx-hero-main img { position: absolute; height: 100%; }
    .idx-hero-copy h1 { font-size: 1.25rem; }
    .idx-hero-copy { left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; }
    .article h1 { font-size: 1.6rem; }
    .article .lead-img { max-height: 260px; }
    .idx-spot-lead img { height: 200px; }
    .idx-stack-item { grid-template-columns: 112px 1fr; }
    .idx-stack-item img { width: 112px; height: 80px; }
    .idx-banner img { height: 180px; }
    .idx-banner h3 { font-size: 1.2rem; }
    .idx-sec-head { grid-template-columns: 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

.more-news { max-width: 1160px; margin: 8px auto 28px; padding: 0 20px; }
.more-news h2 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 14px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-item { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.more-item img { width: 100%; height: 150px; object-fit: cover; }
.more-item .kicker { display: inline-block; margin: 10px 12px 0; }
.more-item h3 { margin: 6px 12px 14px; font-family: var(--serif); font-size: 1rem; line-height: 1.3; }
@media (max-width: 860px) { .more-grid { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tags a { color: var(--ink-soft); font-size: 0.82rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.tags a:hover { color: var(--red); border-color: var(--red); }
