/* =====================================================
   JOURNAL — "DUO WHITE" PUBLIC PAGES
   Selaras admin: border tegas 2px, sudut bulat besar,
   tombol chunky ber-"bibir" 3D, Nunito untuk aksen.
   Audio player bergaya Spotify: play dari list, equalizer
   animasi, dan now-playing bar melayang di bawah.
   ===================================================== */

:root {
    --jr-accent: #1cb0f6;          /* biru macaw, senada admin */
    --jr-accent-dark: #1899d6;     /* bibir bawah tombol aktif */
    --jr-accent-light: #ddf4ff;
    --jr-accent-border: #84d8ff;
    --jr-border: #e5e5e5;
    --jr-border-soft: #f0f0f0;
    --jr-lip: #e8e8e8;             /* bibir 3D kartu */
    --jr-am: #ffb020;              /* pagi */
    --jr-pm: #818cf8;              /* malam */
}

/* ── Eyebrow kecil di atas judul (pola halaman Projects) ── */
.journal-eyebrow {
    font-family: 'Nunito', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--jr-accent);
    margin-bottom: 8px;
}

/* ── Stagger entrance (kartu muncul berurutan) ── */
@keyframes jrFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.jr-stagger { animation: jrFadeUp .5s ease both; animation-delay: calc(var(--i, 0) * 70ms); }

/* ── Header: anak-anaknya muncul cascade (eyebrow → judul → subjudul) ── */
.jr-head > * { opacity: 0; animation: jrFadeUp .55s ease both; }
.jr-head > *:nth-child(1) { animation-delay: .05s; }
.jr-head > *:nth-child(2) { animation-delay: .15s; }
.jr-head > *:nth-child(3) { animation-delay: .25s; }

/* =====================================================
   SERIES CARD — kartu berbentuk BUKU 📖
   ===================================================== */
.series-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
    background: #ffffff;
    border: 2px solid var(--jr-border);
    border-radius: 20px;
    box-shadow: 0 4px 0 var(--jr-lip);
    padding: 20px 22px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.series-card:hover {
    transform: translateY(-3px);
    border-color: var(--jr-accent-border);
    box-shadow: 0 7px 0 var(--jr-accent-light);
}
.series-card:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--jr-lip);
}

/* Buku: cover + punggung + lembaran halaman kanan */
.series-book {
    position: relative;
    flex: none;
    width: 104px;
    height: 138px;
    border-radius: 6px 14px 14px 6px;
    background: linear-gradient(150deg, #34bdff 0%, var(--jr-accent) 45%, #1287c2 100%);
    box-shadow: 0 6px 14px rgba(28, 176, 246, .35);
    transition: transform .3s ease;
}
.series-card:hover .series-book {
    transform: perspective(700px) rotateY(-16deg) translateY(-2px);
}
/* Punggung buku (kiri, lebih gelap + garis highlight) */
.series-book::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 12px;
    border-radius: 6px 0 0 6px;
    background: rgba(2, 6, 23, .22);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .35);
}
/* Lembaran halaman (kanan) */
.series-book::after {
    content: '';
    position: absolute;
    right: -5px; top: 7px; bottom: 7px;
    width: 6px;
    border-radius: 0 3px 3px 0;
    background: repeating-linear-gradient(to bottom, #ffffff 0 2px, #cfe8fa 2px 3px);
    box-shadow: 1px 1px 2px rgba(2, 6, 23, .2);
}
/* Varian cover per Series — rak terlihat seperti koleksi beneran */
.series-book--thoughts {
    background: linear-gradient(150deg, #ffc74d 0%, var(--jr-am) 45%, #e08600 100%);
    box-shadow: 0 6px 14px rgba(255, 176, 32, .35);
}
.series-book--thoughts::after {
    background: repeating-linear-gradient(to bottom, #ffffff 0 2px, #fae3b8 2px 3px);
}
.series-book--thoughts .series-book-dots i:first-child { background: #ffffff; }
.series-book--thoughts .series-book-dots i:last-child { background: #ffe7b3; }

.series-book-inner {
    position: absolute;
    inset: 0 6px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 10px;
}
.series-book-dots { display: flex; gap: 5px; }
.series-book-dots i {
    width: 7px; height: 7px; border-radius: 999px; display: block;
}
.series-book-dots i:first-child { background: var(--jr-am); }
.series-book-dots i:last-child  { background: #e0e7ff; }
.series-book-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(2, 6, 23, .25);
}
.series-book-sub {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 8.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

/* Info di kanan buku */
.series-info { min-width: 0; }
.series-info h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -.01em;
    color: #0f172a;
    transition: color .15s;
}
.series-card:hover .series-info h2 { color: var(--jr-accent); }
.series-info h2 svg { transition: transform .15s; }
.series-card:hover .series-info h2 svg { transform: translateX(4px); }
.series-info p {
    margin-top: 6px;
    color: #64748b;
    line-height: 1.65;
    font-size: .95rem;
}
.series-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}
.meta-chip {
    font-family: 'Nunito', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    background: #ffffff;
    border: 2px solid var(--jr-border-soft);
    border-radius: 999px;
    padding: 4px 12px;
}
.meta-chip--accent {
    color: var(--jr-accent-dark);
    border-color: var(--jr-accent-light);
    background: #f4fbff;
}

/* Placeholder series berikutnya */
.series-soon {
    border: 2px dashed var(--jr-border);
    border-radius: 20px;
    padding: 22px;
    text-align: center;
    color: #afafaf;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .9rem;
}

/* =====================================================
   EPISODE LIST — daftar reflections ala podcast Spotify
   ===================================================== */
.episode-list { display: flex; flex-direction: column; gap: 12px; }

.episode-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 2px solid var(--jr-border-soft);
    border-radius: 18px;
    box-shadow: 0 3px 0 var(--jr-border-soft);
    padding: 14px 18px;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.episode-card:hover {
    transform: translateY(-2px);
    border-color: var(--jr-accent-border);
    box-shadow: 0 5px 0 var(--jr-accent-light);
}
.episode-card.is-playing {
    border-color: var(--jr-accent-border);
    box-shadow: 0 3px 0 var(--jr-accent-light);
}

/* Seluruh kartu klik ke detail; tombol play berada di atasnya */
.episode-cover-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* Tile tanggal — proporsi ikon kalender: bulan kecil di atas, angka besar di bawah */
.episode-date-tile {
    flex: none;
    width: 56px; height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
    background: #fafafa;
    border: 2px solid var(--jr-border-soft);
    border-radius: 14px;
}
.episode-date-tile .d {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    color: #3c3c3c;
}
.episode-date-tile .m {
    order: -1; /* bulan tampil di ATAS angka (gaya ikon kalender) */
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 8.5px;
    line-height: 1;
    letter-spacing: .14em;
    text-indent: .14em; /* kompensasi letter-spacing agar benar-benar center */
    text-transform: uppercase;
    color: #afafaf;
}
.episode-card.is-playing .episode-date-tile {
    background: var(--jr-accent-light);
    border-color: var(--jr-accent-border);
}
.episode-card.is-playing .episode-date-tile .d { color: var(--jr-accent-dark); }
.episode-card.is-playing .episode-date-tile .m { color: var(--jr-accent-dark); }

/* Judul + hari */
.episode-info { min-width: 0; flex: 1; }
.episode-info h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.02rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}
.episode-card:hover .episode-info h3 { color: var(--jr-accent); }
.episode-info p {
    font-size: .78rem;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    margin-top: 3px;
}

/* Tombol play AM/PM di kanan — sejajar satu garis dengan tile & judul */
.episode-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.dot { width: 6px; height: 6px; border-radius: 999px; display: inline-block; flex: none; }
.dot--am { background: var(--jr-am); }
.dot--pm { background: var(--jr-pm); }

/* Tombol play chunky (bibir 3D khas duo) */
.jp-play {
    width: 44px; height: 44px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid var(--jr-border);
    box-shadow: 0 3px 0 var(--jr-lip);
    color: #64748b;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease,
                background .12s ease, color .12s ease;
    -webkit-tap-highlight-color: transparent;
}
.jp-play:hover {
    border-color: var(--jr-accent-border);
    color: var(--jr-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--jr-accent-light);
}
.jp-play:active { transform: translateY(3px); box-shadow: 0 0 0 var(--jr-lip); }
.jp-play svg { width: 17px; height: 17px; }
.jp-play .ic-play { margin-left: 2px; }   /* pusatkan segitiga secara optik */
.jp-play .ic-pause { display: none; }
.jp-play.is-playing {
    background: var(--jr-accent);
    border-color: var(--jr-accent-dark);
    box-shadow: 0 3px 0 var(--jr-accent-dark);
    color: #ffffff;
}
.jp-play.is-playing:active { box-shadow: 0 0 0 var(--jr-accent-dark); }
.jp-play.is-playing .ic-play { display: none; }
.jp-play.is-playing .ic-pause { display: block; }

/* Varian pil: [▶ · AM] — label menyatu di dalam tombol, rapi & sejajar */
.jp-play--pill {
    width: auto;
    height: 36px;
    border-radius: 12px;
    padding: 0 14px 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.jp-play--pill svg { width: 13px; height: 13px; }
.jp-play--pill .ic-play { margin-left: 0; }
.pill-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 10.5px;
    letter-spacing: .12em;
}

/* =====================================================
   EQUALIZER — batang menari ala Spotify
   ===================================================== */
@keyframes jrEq {
    0%, 100% { height: 4px; }
    50%      { height: 100%; }
}
.eq {
    display: none;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
    flex: none;
}
.eq span {
    width: 3px;
    height: 4px;
    border-radius: 2px;
    background: var(--jr-accent);
    animation: jrEq 1s ease-in-out infinite;
}
.eq span:nth-child(2) { animation-delay: .25s; }
.eq span:nth-child(3) { animation-delay: .5s; }
.eq span:nth-child(4) { animation-delay: .12s; }
.is-playing .eq,
.episode-card.is-playing .title-eq { display: inline-flex; }

/* =====================================================
   NOW PLAYING BAR — melayang di bawah, ala Spotify
   ===================================================== */
/* Sticky: menempel di dasar layar saat scroll, tapi otomatis BERHENTI
   di atas footer ketika footer masuk viewport (tidak pernah menutupinya). */
.journal-player {
    position: sticky;
    bottom: 14px;
    z-index: 40;
    margin-top: auto;   /* konten pendek: tetap terdorong ke dasar main */
    padding-top: 28px;  /* jarak minimum dari konten di atasnya */
    pointer-events: none;
    transform: translateY(150%);
    transition: transform .4s cubic-bezier(.2, .9, .3, 1.15);
}
/* Halaman ber-player (journal): main jadi flex kolom supaya player bisa
   didorong ke dasar (margin-top auto), dan padding bawah dipangkas agar
   posisi "parkir" selalu rapat sedikit di atas garis footer —
   konsisten di desktop maupun mobile, konten pendek maupun panjang. */
main:has(.journal-player) {
    display: flex;
    flex-direction: column;
    padding-bottom: 1.25rem;
}
/* Di flex kolom, anak ber-margin auto (mx-auto) berhenti stretch dan
   menyusut seukuran isinya — paksa lebar penuh; max-width tetap bekerja. */
main:has(.journal-player) > * { width: 100%; }
.journal-player.is-open { transform: none; }
.journal-player[hidden] { display: none; }

.jp-inner {
    pointer-events: auto;
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 2px solid var(--jr-border);
    border-radius: 18px;
    box-shadow: 0 4px 0 var(--jr-lip), 0 -10px 34px rgba(2, 6, 23, .1);
    padding: 12px 16px;
}
.jp-info { flex: 1; min-width: 0; }
.jp-info strong {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .92rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jp-info span {
    font-size: .72rem;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.jp-play--bar { width: 40px; height: 40px; flex: none; }
.jp-close {
    flex: none;
    width: 28px; height: 28px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid var(--jr-border);
    box-shadow: 0 2px 0 var(--jr-lip);
    color: #94a3b8;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, color .12s ease;
    -webkit-tap-highlight-color: transparent;
}
.jp-close svg { width: 12px; height: 12px; }
.jp-close:hover { border-color: #ffdfe0; color: #ff4b4b; }
.jp-close:active { transform: translateY(2px); box-shadow: none; }
.jp-progress {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}
.jp-progress input[type="range"] {
    flex: 1;
    height: 4px;
    accent-color: var(--jr-accent);
    cursor: pointer;
}
.jp-progress .jp-time {
    font-size: .7rem;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    min-width: 34px;
    text-align: center;
}

/* =====================================================
   DETAIL — track voice ala baris Spotify + kartu tulisan
   ===================================================== */
.jp-track-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.jp-track-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .95rem;
    color: #1e293b;
}
.jp-track-hint {
    font-size: .74rem;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    margin-top: 2px;
}

/* Ikon matahari/bulan pengganti tile tanggal di detail */
.voice-icon {
    flex: none;
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 2px solid;
}
.voice-icon svg { width: 20px; height: 20px; }
.voice-icon--am { background: #fff8e8; border-color: #ffe7b3; color: #f59e0b; }
.voice-icon--pm { background: #eef0ff; border-color: #dbdfff; color: #6d75f6; }

/* Durasi audio di samping tombol play (diisi JS) */
.jp-duration {
    font-size: .72rem;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    min-width: 34px;
    text-align: right;
}

/* Voice of the day — SATU BARIS: dua tombol pill kecil.
   Saat diputar: pill biru + equalizer + denyut glow (pulse). */
.voice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.voice-pill {
    width: auto;
    height: 38px;
    padding: 0 15px 0 13px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .84rem;
    color: #334155;
}
.voice-pill svg { width: 12px; height: 12px; }
.voice-pill .voice-pill-ic { width: 14px; height: 14px; }
.voice-pill .ic-am { color: #f59e0b; }
.voice-pill .ic-pm { color: #6d75f6; }
.voice-pill .ic-play { margin-left: 0; }
.voice-pill .jp-duration {
    min-width: 0;
    text-align: left;
    font-weight: 400;
}

/* Sedang diputar: biru + isi putih + denyut glow */
@keyframes jrPulse {
    0%, 100% { box-shadow: 0 3px 0 var(--jr-accent-dark), 0 0 0 0 rgba(28, 176, 246, .38); }
    50%      { box-shadow: 0 3px 0 var(--jr-accent-dark), 0 0 0 8px rgba(28, 176, 246, 0); }
}
.voice-pill.is-playing {
    animation: jrPulse 1.8s ease-out infinite;
    color: #ffffff;
}
.voice-pill.is-playing .ic-am,
.voice-pill.is-playing .ic-pm { color: #ffffff; }
.voice-pill.is-playing .jp-duration { color: rgba(255, 255, 255, .85); }
.voice-pill.is-playing .eq span { background: #ffffff; }

/* Kartu tulisan (docs) */
.reflection-writing {
    background: #ffffff;
    border: 2px solid var(--jr-border-soft);
    border-radius: 20px;
    box-shadow: 0 3px 0 var(--jr-border-soft);
    padding: 20px 24px 24px;
}
.writing-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #afafaf;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #f7f7f7;
}
.writing-head svg { width: 14px; height: 14px; }
.reflection-content { color: #334155; font-size: 1.05rem; line-height: 1.9; }
.reflection-content > * + * { margin-top: 1.1em; }
.reflection-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 2px solid var(--jr-border-soft);
    margin: 1.4rem 0;
}
.reflection-content h1,
.reflection-content h2,
.reflection-content h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: #0f172a;
    margin-top: 1.6em;
}
.reflection-content h1 { font-size: 1.5em; }
.reflection-content h2 { font-size: 1.28em; }
.reflection-content h3 { font-size: 1.12em; }
.reflection-content ul { list-style: disc; padding-left: 1.5rem; }
.reflection-content ol { list-style: decimal; padding-left: 1.5rem; }
.reflection-content a { color: var(--jr-accent-dark); text-decoration: underline; }
.reflection-content blockquote {
    border-left: 3px solid var(--jr-accent-border);
    background: #f4fbff;
    border-radius: 0 12px 12px 0;
    padding: 12px 16px;
    font-style: italic;
}
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

/* =====================================================
   DARK MODE — ikuti toggle situs (html.dark)
   ===================================================== */
.dark .series-card,
.dark .episode-card,
.dark .reflection-writing {
    background: rgba(30, 41, 59, .5);
    border-color: #1e293b;
    box-shadow: 0 4px 0 rgba(2, 6, 23, .55);
}
.dark .series-card:hover,
.dark .episode-card:hover {
    border-color: #334e68;
    box-shadow: 0 6px 0 rgba(28, 176, 246, .12);
}
.dark .episode-card.is-playing { border-color: rgba(28, 176, 246, .45); }
.dark .series-info h2 { color: #f1f5f9; }
.dark .series-info p { color: #94a3b8; }
.dark .meta-chip { background: transparent; border-color: #1e293b; color: #94a3b8; }
.dark .meta-chip--accent {
    background: rgba(28, 176, 246, .08);
    border-color: rgba(28, 176, 246, .3);
    color: #7cd0fb;
}
.dark .series-soon { border-color: #1e293b; color: #64748b; }
.dark .episode-date-tile { background: rgba(15, 23, 42, .6); border-color: #1e293b; }
.dark .episode-date-tile .d { color: #e2e8f0; }
.dark .episode-card.is-playing .episode-date-tile {
    background: rgba(28, 176, 246, .12);
    border-color: rgba(28, 176, 246, .4);
}
.dark .episode-card.is-playing .episode-date-tile .d,
.dark .episode-card.is-playing .episode-date-tile .m { color: #7cd0fb; }
.dark .episode-info h3 { color: #e2e8f0; }
.dark .jp-play {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 3px 0 rgba(2, 6, 23, .6);
    color: #94a3b8;
}
.dark .jp-play:hover { border-color: rgba(28, 176, 246, .5); color: #7cd0fb; }
.dark .jp-play.is-playing {
    background: var(--jr-accent);
    border-color: var(--jr-accent-dark);
    box-shadow: 0 3px 0 var(--jr-accent-dark);
    color: #fff;
}
.dark .jp-inner {
    background: rgba(15, 23, 42, .88);
    border-color: #1e293b;
    box-shadow: 0 4px 0 rgba(2, 6, 23, .6), 0 -10px 34px rgba(0, 0, 0, .45);
}
.dark .jp-close {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 2px 0 rgba(2, 6, 23, .6);
    color: #94a3b8;
}
.dark .jp-close:hover { border-color: rgba(255, 75, 75, .45); color: #ff6b6b; }
.dark .jp-info strong { color: #e2e8f0; }
.dark .reflection-content { color: #cbd5e1; }
.dark .reflection-content h1,
.dark .reflection-content h2,
.dark .reflection-content h3 { color: #f1f5f9; }
.dark .reflection-content a { color: #7cd0fb; }
.dark .reflection-content blockquote {
    background: rgba(28, 176, 246, .07);
    border-left-color: rgba(28, 176, 246, .4);
}
.dark .reflection-content img { border-color: #1e293b; }
.dark .jp-track-label { color: #e2e8f0; }
.dark .voice-icon--am {
    background: rgba(245, 158, 11, .08);
    border-color: rgba(245, 158, 11, .28);
    color: #fbbf24;
}
.dark .voice-icon--pm {
    background: rgba(109, 117, 246, .1);
    border-color: rgba(109, 117, 246, .32);
    color: #a5b4fc;
}
.dark .writing-head { color: #64748b; border-bottom-color: #1e293b; }
.dark .voice-pill { color: #cbd5e1; }
.dark .voice-pill.is-playing { color: #ffffff; }
.dark .voice-pill.is-playing .eq span { background: #ffffff; }

/* ── Mobile ── */
@media (max-width: 520px) {
    /* Kartu buku di mobile: buku & teks tetap menyamping,
       tapi chips meta pindah ke BAWAH — satu baris penuh */
    .series-card {
        display: grid;
        grid-template-columns: 82px 1fr;
        gap: 2px 16px;
        align-items: center;
        padding: 18px 16px;
    }
    .series-info { display: contents; } /* h2/p/meta jadi item grid langsung */
    .series-book { grid-row: 1 / span 2; width: 82px; height: 110px; }
    .series-info h2 { grid-column: 2; align-self: end; font-size: 1.08rem; }
    .series-info p { grid-column: 2; align-self: start; font-size: .87rem; line-height: 1.55; }
    .series-meta { grid-column: 1 / -1; margin-top: 14px; }
    .series-book-title { font-size: 12px; }
    .series-book-sub { font-size: 7.5px; }
    .series-book-dots i { width: 6px; height: 6px; }
    .meta-chip { font-size: .64rem; padding: 3px 9px; }

    /* Kartu episode: baris 1 = tile + judul SEJAJAR,
       baris 2 = tombol AM/PM melebar rata. */
    .episode-card { flex-wrap: wrap; row-gap: 12px; padding: 14px 16px; }
    .episode-date-tile { width: 48px; height: 48px; border-radius: 12px; }
    .episode-date-tile .d { font-size: 17px; }
    .episode-info { flex: 1 1 0; min-width: 0; flex-basis: 0; }
    .episode-actions { flex-basis: 100%; margin-left: 0; gap: 8px; }
    .episode-actions .jp-play--pill { flex: 1; justify-content: center; }

    .voice-row { gap: 8px; }
    .voice-pill { flex: 1; justify-content: center; }
    .jp-inner { padding: 10px 12px; gap: 6px 10px; }
    .writing-head { margin-bottom: 16px; }
    .reflection-writing { padding: 20px 18px 22px; }
}

/* =====================================================
   THOUGHTS — Series artikel (aksen AMBER, warna covernya)
   ===================================================== */
.journal-eyebrow--am { color: #e08600; }

/* ── List: kartu artikel chunky ── */
.thought-list { display: flex; flex-direction: column; gap: 12px; }
.thought-card {
    position: relative;
    display: block;
    background: #ffffff;
    border: 2px solid var(--jr-border-soft);
    border-radius: 18px;
    box-shadow: 0 3px 0 var(--jr-border-soft);
    padding: 20px 22px;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.thought-card:hover {
    transform: translateY(-2px);
    border-color: #ffe0a3;
    box-shadow: 0 5px 0 #fff3d6;
}
.thought-cover-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.thought-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .72rem;
    color: #94a3b8;
    margin-bottom: 8px;
}
.thought-meta::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--jr-am);
    flex: none;
}
.thought-meta-dot { width: 3px; height: 3px; border-radius: 999px; background: #cbd5e1; }
.thought-card h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.35;
    color: #1e293b;
    transition: color .15s;
}
.thought-card:hover h2 { color: #e08600; }
.thought-excerpt {
    margin-top: 6px;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.thought-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e08600;
}
.thought-read svg { width: 13px; height: 13px; transition: transform .15s; }
.thought-card:hover .thought-read svg { transform: translateX(3px); }

/* ── Detail: tipografi artikel ── */
.thought-content { color: #334155; font-size: 1.05rem; line-height: 1.9; }
.thought-content > * + * { margin-top: 1.1em; }
.thought-content h1,
.thought-content h2,
.thought-content h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: #0f172a;
    margin-top: 1.6em;
    line-height: 1.35;
}
.thought-content h1 { font-size: 1.5em; }
.thought-content h2 { font-size: 1.28em; }
.thought-content h3 { font-size: 1.12em; }
.thought-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 2px solid var(--jr-border-soft);
    margin: 1.5rem 0;
}
.thought-content a { color: #b45309; text-decoration: underline; }
.thought-content ul { list-style: disc; padding-left: 1.5rem; }
.thought-content ol { list-style: decimal; padding-left: 1.5rem; }
.thought-content blockquote {
    border-left: 3px solid #ffd27a;
    background: #fff9ee;
    border-radius: 0 12px 12px 0;
    padding: 12px 16px;
    font-style: italic;
}
.thought-content pre,
.thought-content pre.ql-syntax {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .85em;
    line-height: 1.7;
}
.thought-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ── Navigasi older/newer ── */
.thought-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 40px;
}
.thought-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    background: #ffffff;
    border: 2px solid var(--jr-border-soft);
    border-radius: 16px;
    box-shadow: 0 3px 0 var(--jr-border-soft);
    padding: 14px 18px;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.thought-nav a:hover {
    transform: translateY(-2px);
    border-color: #ffe0a3;
    box-shadow: 0 5px 0 #fff3d6;
}
.thought-nav a.is-newer { text-align: right; align-items: flex-end; }
.thought-nav-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #afafaf;
}
.thought-nav-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .9rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.thought-nav a:hover .thought-nav-title { color: #e08600; }

/* ── CTA follow ── */
.thought-cta {
    margin-top: 16px;
    background: #ffffff;
    border: 2px solid var(--jr-border-soft);
    border-radius: 20px;
    box-shadow: 0 3px 0 var(--jr-border-soft);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.thought-cta h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
}
.thought-cta p { font-size: .85rem; color: #94a3b8; margin-top: 2px; }
.thought-cta-btn {
    background: #ffffff;
    border: 2px solid var(--jr-border);
    border-radius: 12px;
    box-shadow: 0 3px 0 var(--jr-lip);
    padding: 9px 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .85rem;
    color: #3c3c3c;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, color .12s ease;
}
.thought-cta-btn:hover { border-color: #ffe0a3; color: #e08600; box-shadow: 0 4px 0 #fff3d6; }
.thought-cta-btn:active { transform: translateY(3px); box-shadow: none; }

/* ── Dark mode ── */
.dark .journal-eyebrow--am { color: #fbbf24; }
.dark .thought-card,
.dark .thought-nav a,
.dark .thought-cta {
    background: rgba(30, 41, 59, .5);
    border-color: #1e293b;
    box-shadow: 0 4px 0 rgba(2, 6, 23, .55);
}
.dark .thought-card:hover,
.dark .thought-nav a:hover {
    border-color: rgba(251, 191, 36, .4);
    box-shadow: 0 5px 0 rgba(251, 191, 36, .1);
}
.dark .thought-card h2,
.dark .thought-nav-title,
.dark .thought-cta h3 { color: #e2e8f0; }
.dark .thought-card:hover h2,
.dark .thought-nav a:hover .thought-nav-title { color: #fbbf24; }
.dark .thought-excerpt { color: #94a3b8; }
.dark .thought-read { color: #fbbf24; }
.dark .thought-content { color: #cbd5e1; }
.dark .thought-content h1,
.dark .thought-content h2,
.dark .thought-content h3 { color: #f1f5f9; }
.dark .thought-content a { color: #fbbf24; }
.dark .thought-content img { border-color: #1e293b; }
.dark .thought-content blockquote {
    background: rgba(251, 191, 36, .06);
    border-left-color: rgba(251, 191, 36, .4);
}
.dark .thought-cta-btn {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 3px 0 rgba(2, 6, 23, .6);
    color: #cbd5e1;
}
.dark .thought-cta-btn:hover { border-color: rgba(251, 191, 36, .4); color: #fbbf24; }

/* ── Mobile ── */
@media (max-width: 520px) {
    .thought-card { padding: 16px 18px; }
    .thought-nav { grid-template-columns: 1fr; }
    .thought-nav a.is-newer { text-align: left; align-items: flex-start; }
    .thought-cta { padding: 18px 20px; }
}
