/* ==========================================================================
   Lembar: tema editorial berkarakter koran
   Token, dasar, kepala koran, beranda, daftar, artikel, footer
   ========================================================================== */

:root {
  --paper: #F3EEE3;
  --surface: #FAF7F0;
  --ink: #1B1A17;
  --red: #8C2B1E;
  --rule: #CFC6B2;
  --muted: #5B574C;
  --on-ink-muted: #C9C1AE;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --wrap: 1200px;
  --gutter: 16px;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
time { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.lm-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.lm-skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4);
  font: 600 .875rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.lm-skip:focus { top: var(--s2); }

.lm-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.lm-main { flex: 1 0 auto; padding-bottom: var(--s7); }
.lm-main:focus { outline: none; }

/* ---------- Tipografi bersama ---------- */

.lm-kicker {
  font: 600 .75rem/1.3 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--s2);
}
.lm-kicker a { text-decoration: none; }
.lm-kicker a:hover { text-decoration: underline; }

.lm-meta {
  font: 400 .8125rem/1.4 var(--sans);
  letter-spacing: .02em;
  color: var(--muted);
  margin-top: var(--s2);
}

.lm-dek { color: var(--muted); font-size: 1rem; line-height: 1.5; margin-top: var(--s2); text-wrap: pretty; }

.lm-t1, .lm-t2, .lm-t3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; letter-spacing: -.005em; }
.lm-t1 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.12; font-weight: 700; }
.lm-t2 { font-size: clamp(1.25rem, 1.6vw + .6rem, 1.5rem); line-height: 1.2; }
.lm-t3 { font-size: 1.125rem; line-height: 1.28; }
.lm-t1 a, .lm-t2 a, .lm-t3 a, .lm-lead__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s ease, color .2s ease; }
.lm-t1 a:hover, .lm-t2 a:hover, .lm-t3 a:hover, .lm-lead__title a:hover { background-size: 100% 1px; color: var(--red); }

.lm-more { margin-top: var(--s4); font: 600 .8125rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.lm-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); text-decoration-line: underline; }

/* Judul seksi: di antara dua garis */
.lm-sec {
  font: 600 .75rem/1.2 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 0;
  margin-bottom: var(--s4);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.lm-sec--wide { margin-bottom: var(--s5); }

/* Pembatas ornamen */
.lm-orn { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-block: var(--s6); color: var(--muted); }
.lm-orn::before, .lm-orn::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.lm-orn i { position: relative; flex: none; width: 10px; height: 10px; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.lm-orn i::before, .lm-orn i::after { content: ""; position: absolute; top: 2px; width: 6px; height: 6px; background: #A69C84; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.lm-orn i::before { left: -18px; }
.lm-orn i::after { right: -18px; }
.lm-orn--dark::before, .lm-orn--dark::after { background: #4a463d; }
.lm-orn--dark i, .lm-orn--dark i::before, .lm-orn--dark i::after { background: var(--on-ink-muted); }

/* Gambar + keterangan redaksi */
.lm-fig img, .lm-sor__img img, .lm-also__img img, .lm-list__img img, .lm-rubric__img img, .lm-related__img img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--rule);
}
.lm-fig a, .lm-sor__img, .lm-also__img, .lm-list__img, .lm-rubric__img, .lm-related__img { display: block; }
.lm-cap {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); align-items: baseline;
  padding: var(--s2) 0; border-bottom: 1px solid var(--rule);
  font: 400 .8125rem/1.4 var(--sans); color: var(--muted); letter-spacing: .02em;
}
.lm-cap__tag { font-weight: 600; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }

/* Tag */
.lm-tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.lm-tags a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3);
  font: 500 .8125rem/1 var(--sans); letter-spacing: .04em; text-decoration: none;
  border: 1px solid var(--ink); background: transparent; transition: background-color .15s ease, color .15s ease;
}
.lm-tags a::before { content: "#"; color: var(--red); margin-right: 2px; }
.lm-tags a:hover { background: var(--ink); color: var(--paper); }
.lm-tags a:hover::before { color: var(--paper); }

/* Tombol */
.lm-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5);
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); text-decoration: none;
  font: 600 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.lm-btn:hover { background: var(--red); border-color: var(--red); }
.lm-btn:active { transform: translateY(1px); }
.lm-btn--ghost { background: transparent; color: var(--ink); }
.lm-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Iklan */
.lm-ad { margin-block: var(--s6); text-align: center; }
.lm-ad__label { display: block; font: 500 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.lm-ad img { display: inline-block; max-width: 100%; height: auto; }
.lm-ad--v { margin-block: var(--s6) 0; }

/* ---------- Kepala koran ---------- */

.lm-masthead { background: var(--paper); }
.lm-brandrow {
  border-top: 5px double var(--ink);
  padding: var(--s5) 0 var(--s4);
  text-align: center;
  min-height: 96px;
  display: flex; align-items: center; justify-content: center;
}
.lm-brand { display: inline-block; text-decoration: none; }
.lm-wordmark {
  display: block;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.125rem, 7vw, 4.5rem); line-height: 1;
  letter-spacing: -.02em; text-wrap: balance;
}
.lm-logo { height: auto; max-height: 64px; width: auto; max-width: min(100%, 420px); margin-inline: auto; }

.lm-edisi {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--s5);
  border-top: 1px solid var(--ink);
  padding: var(--s2) 0;
  font: 400 .75rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase;
}
.lm-edisi p { margin: 0; }
.lm-edisi__label { font-weight: 700; color: var(--red); margin-right: var(--s2); }
.lm-edisi__tagline { display: none; font-family: var(--serif); font-style: italic; font-size: .9375rem; letter-spacing: 0; text-transform: none; color: var(--muted); }

.lm-search { position: relative; display: flex; align-items: stretch; }
.lm-search input {
  width: 100%; min-height: 44px; padding: 0 44px 0 var(--s3);
  background: var(--surface); border: 1px solid var(--muted); border-radius: 0;
  font: 400 .9375rem/1 var(--sans); letter-spacing: 0; text-transform: none;
}
.lm-search input::placeholder { color: var(--muted); opacity: 1; }
.lm-search input::-webkit-search-cancel-button { display: none; }
.lm-search button {
  position: absolute; right: 0; top: 0; width: 44px; height: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink);
}
.lm-search button:hover { color: var(--red); }
.lm-search--bar { display: none; }

.lm-navbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 5px double var(--ink);
}
.lm-menubtn {
  display: none;
  width: 100%; min-height: 48px; padding: 0;
  align-items: center; justify-content: space-between;
  background: transparent; border: 0;
  font: 600 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
}
.lm-js .lm-menubtn { display: flex; }
.lm-menubtn__close { display: none; }
.lm-menubtn[aria-expanded="true"] .lm-menubtn__open { display: none; }
.lm-menubtn[aria-expanded="true"] .lm-menubtn__close { display: block; }

.lm-js .lm-navpanel { display: none; padding-bottom: var(--s4); }
.lm-js .lm-navpanel.is-open { display: block; }

.lm-nav a {
  display: flex; align-items: center; min-height: 48px;
  font: 600 .8125rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border-top: 1px solid var(--rule);
}
.lm-nav a:hover { color: var(--red); }
.lm-nav a.is-active { color: var(--red); box-shadow: inset 3px 0 0 var(--red); padding-left: var(--s3); }
.lm-search--menu { margin-top: var(--s3); }

.lm-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

@media (min-width: 640px) {
  .lm-edisi__tagline { display: block; }
}

@media (min-width: 900px) {
  .lm-edisi { justify-content: space-between; }
  .lm-edisi__date { flex: 1 1 0; }
  .lm-edisi__tagline { flex: 2 1 0; text-align: center; }
  .lm-search--bar { display: flex; flex: 1 1 0; max-width: 260px; margin-left: auto; }
  .lm-edisi { padding-block: var(--s2); }
  .lm-edisi__date:last-child { flex: 1 1 auto; }

  .lm-menubtn { display: none !important; }
  .lm-navpanel, .lm-js .lm-navpanel { display: block; padding: 0; }
  .lm-search--menu { display: none; }
  .lm-nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--s2); }
  .lm-nav a { border-top: 0; padding: 0 var(--s4); min-height: 48px; position: relative; }
  .lm-nav a::after { content: ""; position: absolute; left: var(--s4); right: var(--s4); bottom: 8px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s ease; }
  .lm-nav a:hover::after, .lm-nav a.is-active::after { transform: scaleX(1); }
  .lm-nav a.is-active { box-shadow: none; padding-left: var(--s4); }
}

/* ---------- Kilas ---------- */

.lm-kilas { border-bottom: 1px solid var(--rule); }
.lm-kilas__in { display: flex; flex-direction: column; gap: var(--s2); padding-block: var(--s3); }
.lm-kilas__label { font: 700 .75rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: var(--s2); }
.lm-kilas__label::before { content: ""; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
.lm-kilas__list { display: grid; gap: var(--s2); }
.lm-kilas__list li { display: flex; flex-direction: column; min-width: 0; }
.lm-kilas__list a { font-weight: 600; font-size: .9375rem; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lm-kilas__list a:hover { color: var(--red); text-decoration: underline; }
.lm-kilas__list time { font: 400 .75rem/1.4 var(--sans); color: var(--muted); margin-top: 2px; }

@media (min-width: 900px) {
  .lm-kilas__in { flex-direction: row; align-items: flex-start; gap: var(--s5); padding-block: var(--s4); }
  .lm-kilas__label { flex: none; padding-top: 3px; }
  .lm-kilas__list { flex: 1; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .lm-kilas__list li { padding-inline: var(--s5); border-left: 1px solid var(--rule); }
  .lm-kilas__list li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Beranda: halaman depan 3 kolom ---------- */

.lm-front { display: block; padding-top: var(--s6); }
.lm-front > * { min-width: 0; }
.lm-orn--m { margin-block: var(--s6); }

.lm-lead__title { font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.lm-lead .lm-kicker { font-size: .8125rem; }
.lm-lead__dek { margin-top: var(--s4); font-size: clamp(1.0625rem, 1.2vw + .6rem, 1.25rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.lm-lead .lm-fig { margin-top: var(--s5); }

.lm-also { display: grid; gap: var(--s5); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.lm-also__img { margin-bottom: var(--s3); }

.lm-sor + .lm-sor, .lm-pop li + li, .lm-hl li + li, .lm-lain li + li { border-top: 1px solid var(--rule); }
.lm-sor { padding-block: var(--s4); }
.lm-sor:first-of-type { padding-top: 0; }
.lm-sor__img { margin-bottom: var(--s3); }

.lm-pop li { display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--s3); padding-block: var(--s3); }
.lm-pop li:first-child { padding-top: 0; }
.lm-pop__no { font: 700 2.25rem/.95 var(--serif); color: var(--red); font-variant-numeric: lining-nums tabular-nums; }
.lm-pop .lm-meta { margin-top: var(--s1); }

.lm-block { margin-top: var(--s6); }
.lm-lain li { padding-block: var(--s3); display: flex; flex-direction: column; gap: 2px; }
.lm-lain li:first-child { padding-top: 0; }
.lm-lain a { font-size: 1.0625rem; line-height: 1.3; font-style: italic; text-decoration: none; }
.lm-lain a:hover { color: var(--red); text-decoration: underline; }
.lm-lain .lm-meta { margin: 0; text-transform: uppercase; letter-spacing: .06em; font-size: .6875rem; }

@media (min-width: 640px) {
  .lm-also { grid-template-columns: 1fr 1fr; gap: 0; }
  .lm-also__item { padding-right: var(--s5); }
  .lm-also__item + .lm-also__item { padding: 0 0 0 var(--s5); border-left: 1px solid var(--rule); }
}

@media (min-width: 768px) {
  .lm-front { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "lead lead" "side pop"; }
  .lm-lead { grid-area: lead; }
  .lm-col--side { grid-area: side; padding-right: var(--s5); }
  .lm-col--pop { grid-area: pop; padding-left: var(--s5); border-left: 1px solid var(--rule); }
  .lm-orn--m { display: none; }
  .lm-lead { padding-bottom: var(--s6); margin-bottom: var(--s6); border-bottom: 1px solid var(--rule); }
}

@media (min-width: 1100px) {
  .lm-front { grid-template-columns: minmax(0, 1fr) minmax(0, 1.95fr) minmax(0, 1fr); grid-template-areas: "side lead pop"; }
  .lm-lead { padding: 0 var(--s6); margin: 0; border-bottom: 0; border-inline: 1px solid var(--rule); }
  .lm-col--side { padding-right: var(--s5); }
  .lm-col--pop { padding-left: var(--s5); border-left: 0; }
  .lm-front .lm-also { grid-template-columns: 1fr 1fr; }
}

/* Pekan terakhir */
.lm-week__list { display: grid; }
.lm-week__list li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s4); padding-block: var(--s4); border-top: 1px solid var(--rule); align-items: start; }
.lm-week__list li:first-child { border-top: 0; padding-top: 0; }
.lm-week__no { font: 700 2.5rem/.9 var(--serif); color: var(--red); font-variant-numeric: lining-nums tabular-nums; }
@media (min-width: 768px) {
  .lm-week__list { grid-template-columns: 1fr 1fr 1fr; grid-auto-flow: row; }
  .lm-week__list li { padding: var(--s4) var(--s5); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
  .lm-week__list li:nth-child(-n+3) { border-top: 0; padding-top: 0; }
  .lm-week__list li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}

/* Rubrik per kanal */
.lm-rubric__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
  padding: var(--s3) 0; margin-bottom: var(--s5);
}
.lm-rubric__head h2 { font: 700 .875rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.lm-rubric__head a { display: inline-flex; align-items: center; min-height: 32px; font: 600 .75rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.lm-rubric__grid { display: grid; gap: var(--s6); }
.lm-rubric__img { margin-bottom: var(--s3); }
.lm-rubric__rest { margin-top: var(--s5); border-top: 1px solid var(--rule); }
.lm-rubric__rest li { padding-block: var(--s3); border-bottom: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.35; }
.lm-rubric__rest .lm-kicker { display: inline-block; margin: 0 var(--s2) 0 0; }
.lm-rubric__rest a { text-decoration: none; }
.lm-rubric__rest a:hover { color: var(--red); text-decoration: underline; }

@media (min-width: 768px) {
  .lm-rubric__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .lm-rubric__item { padding-inline: var(--s5); }
  .lm-rubric__item:first-child { padding-left: 0; }
  .lm-rubric__item:last-child { padding-right: 0; }
  .lm-rubric__item + .lm-rubric__item { border-left: 1px solid var(--rule); }
  .lm-rubric--b .lm-rubric__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); }
  .lm-rubric--b .lm-rubric__item:first-child .lm-t1 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
}

/* Kosong */
.lm-empty { text-align: center; padding: var(--s8) var(--s4); max-width: 46ch; margin-inline: auto; }
.lm-empty__mark { color: var(--red); font-size: 1.5rem; line-height: 1; margin-bottom: var(--s4); }
.lm-empty h2 { font: 700 1.75rem/1.2 var(--serif); margin-bottom: var(--s3); }
.lm-empty p { color: var(--muted); }
.lm-empty .lm-btn { margin-top: var(--s5); }

/* ---------- Halaman daftar ---------- */

.lm-page { display: grid; gap: var(--s7); padding-top: var(--s6); }
.lm-page > * { min-width: 0; }

.lm-rubrik { text-align: center; padding: var(--s5) 0 var(--s6); border-bottom: 3px double var(--ink); margin-bottom: var(--s6); }
.lm-rubrik__label { font: 600 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: var(--s3); }
.lm-rubrik__title { font: 700 clamp(2.25rem, 6vw, 4rem)/1.05 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.lm-rubrik__title label { font-style: italic; font-weight: 500; color: var(--red); cursor: auto; }
.lm-rubrik__count { margin-top: var(--s3); font: 400 .8125rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.lm-list { display: grid; }
.lm-list__item { padding-block: var(--s5); border-top: 1px solid var(--rule); }
.lm-list__item:first-child { border-top: 0; padding-top: 0; }
.lm-list__img { margin-bottom: var(--s3); }

@media (min-width: 640px) {
  .lm-list { grid-template-columns: 1fr 1fr; }
  .lm-list__item { border-top: 1px solid var(--rule); padding: var(--s5) var(--s5) var(--s5) 0; }
  .lm-list__item:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .lm-list__item:nth-child(2n) { padding: var(--s5) 0 var(--s5) var(--s5); border-left: 1px solid var(--rule); }
  .lm-list__item:nth-child(2) { padding-top: 0; }
}

@media (min-width: 1024px) {
  .lm-page { grid-template-columns: minmax(0, 1fr) 300px; gap: 0 var(--s6); }
  .lm-page > .lm-aside { padding-left: var(--s6); border-left: 1px solid var(--rule); }
}

/* Sidebar */
.lm-aside__block + .lm-aside__block, .lm-ad--v + .lm-aside__block { margin-top: var(--s6); }
.lm-hl li { padding-block: var(--s4); }
.lm-hl li:first-child { padding-top: 0; }
.lm-hl .lm-kicker { margin-bottom: var(--s1); }

/* Pagination (markup Bootstrap 4 dari Laravel) */
.lm-pager { margin-top: var(--s7); padding-top: var(--s5); border-top: 3px double var(--ink); text-align: center; }
.lm-pager__info { font: 500 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s4); font-variant-numeric: tabular-nums; }
.lm-pager__info span { color: var(--ink); font-weight: 700; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.pagination .page-item { margin: 0 0 0 -1px; }
.pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--s3);
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  font: 600 .875rem/1 var(--sans); font-variant-numeric: tabular-nums; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
a.page-link:hover { background: var(--ink); color: var(--paper); }
.pagination .page-item.active .page-link { background: var(--red); border-color: var(--red); color: #fff; position: relative; z-index: 1; }
.pagination .page-item.disabled .page-link { color: var(--muted); background: var(--surface); border-color: var(--rule); cursor: default; }
.pagination .page-item.disabled:not(:first-child):not(:last-child) .page-link { border-color: transparent; background: transparent; }

/* ---------- Artikel ---------- */

.lm-article { max-width: 760px; }
.lm-article__head { padding-bottom: var(--s5); }
.lm-article__title { font: 700 clamp(2.125rem, 5.4vw, 3.5rem)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; margin-bottom: var(--s4); }
.lm-byline { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font: 400 .8125rem/1.5 var(--sans); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; padding-block: var(--s3); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.lm-byline strong { color: var(--ink); font-weight: 600; }
.lm-byline > * + *::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: var(--s4); background: var(--red); transform: rotate(45deg) translateY(-1px); }
.lm-fig--hero { margin-bottom: var(--s4); }

.lm-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-bottom: var(--s6); }
.lm-share__label { font: 600 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lm-share ul { display: flex; flex-wrap: wrap; gap: var(--s2); }
.lm-share a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--ink); text-decoration: none; font: 500 .8125rem/1 var(--sans); letter-spacing: .04em; transition: background-color .15s ease, color .15s ease; }
.lm-share a:hover { background: var(--ink); color: var(--paper); }

/* Isi artikel dari editor */
.lm-prose { font-size: clamp(1.125rem, .4vw + 1.02rem, 1.1875rem); line-height: 1.7; max-width: 66ch; overflow-wrap: break-word; }
.lm-prose > * + * { margin-top: 1.2em; }
.lm-prose p { text-wrap: pretty; }
.lm-prose:not(:has(> :is(h2, h3, h4, figure, img, ul, ol, table, blockquote, iframe, pre, hr):first-child))::first-letter {
  float: left; font-family: var(--serif); font-weight: 700; color: var(--red);
  font-size: 5.2em; line-height: .78; padding: .06em .1em 0 0;
}
@supports (initial-letter: 3) {
  .lm-prose:not(:has(> :is(h2, h3, h4, figure, img, ul, ol, table, blockquote, iframe, pre, hr):first-child))::first-letter { float: none; initial-letter: 3; font-size: inherit; line-height: inherit; padding: 0; margin-right: .1em; }
}
.lm-prose h2, .lm-prose h3, .lm-prose h4 { font-family: var(--serif); line-height: 1.2; text-wrap: balance; margin-top: 2em; }
.lm-prose h2 { font-size: 1.8em; font-weight: 700; letter-spacing: -.01em; padding-top: .6em; border-top: 1px solid var(--rule); }
.lm-prose h3 { font-size: 1.4em; font-weight: 600; }
.lm-prose h4 { font: 600 .8125em/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.lm-prose h2 + *, .lm-prose h3 + *, .lm-prose h4 + * { margin-top: .6em; }
.lm-prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lm-prose a:hover { text-decoration-thickness: 2px; }
.lm-prose strong, .lm-prose b { font-weight: 700; }
.lm-prose ul, .lm-prose ol { padding-left: 1.5em; }
.lm-prose ul { list-style: disc; }
.lm-prose ol { list-style: decimal; }
.lm-prose li + li { margin-top: .4em; }
.lm-prose li::marker { color: var(--red); }
.lm-prose blockquote {
  margin: 2em 0; padding: .2em 0 .2em 1.25em;
  border-left: 4px solid var(--red);
  font-size: 1.3em; line-height: 1.4; font-style: italic; font-weight: 500; text-wrap: balance;
}
.lm-prose blockquote > * + * { margin-top: .6em; }
.lm-prose blockquote cite, .lm-prose blockquote footer { display: block; font: 600 .6875em/1.4 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lm-prose img { width: auto; max-width: 100%; height: auto; }
.lm-prose figure { margin-block: 2em; }
.lm-prose figure img { width: 100%; }
.lm-prose figcaption { font: 400 .8125rem/1.45 var(--sans); color: var(--muted); padding-top: var(--s2); margin-top: var(--s2); border-top: 1px solid var(--rule); }
.lm-prose iframe, .lm-prose video { max-width: 100%; }
.lm-prose iframe { aspect-ratio: 16 / 9; height: auto; width: 100%; border: 0; }
.lm-prose hr { border: 0; height: 1px; background: var(--rule); margin-block: 2.2em; overflow: visible; position: relative; }
.lm-prose hr::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--red); transform: rotate(45deg); outline: 6px solid var(--paper); }
.lm-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9em; line-height: 1.4; }
.lm-prose th, .lm-prose td { padding: var(--s2) var(--s3); text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.lm-prose th { font: 600 .75rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--ink); background: var(--surface); }
.lm-prose tbody tr:nth-child(even) td { background: var(--surface); }
.lm-prose pre, .lm-prose code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .85em; }
.lm-prose pre { overflow-x: auto; padding: var(--s4); background: var(--surface); border: 1px solid var(--rule); }
.lm-prose :not(pre) > code { background: var(--surface); padding: 1px 5px; border: 1px solid var(--rule); }

.lm-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--rule); }

/* Baca juga */
.lm-related { margin-top: var(--s7); padding-top: var(--s5); border-top: 5px double var(--ink); }
.lm-related__title { font: 700 clamp(1.5rem, 3vw, 2rem)/1.1 var(--serif); margin-bottom: var(--s5); }
.lm-related__grid { display: grid; gap: var(--s5); }
.lm-related__img { margin-bottom: var(--s3); }
@media (min-width: 640px) {
  .lm-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .lm-related__item { padding: 0 var(--s4); }
  .lm-related__item:nth-child(3n+1) { padding-left: 0; }
  .lm-related__item:nth-child(3n) { padding-right: 0; }
  .lm-related__item:not(:nth-child(3n+1)) { border-left: 1px solid var(--rule); }
  .lm-related__item:nth-child(n+4) { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--rule); }
}

@media (min-width: 1024px) {
  .lm-page--detail { grid-template-columns: minmax(0, 1fr) 300px; }
  .lm-page--detail .lm-article { max-width: none; }
  .lm-page--detail .lm-article > * { max-width: 760px; }
}

/* ---------- Halaman galat ---------- */

.lm-error { text-align: center; max-width: 620px; margin-inline: auto; padding: var(--s8) 0 var(--s7); }
.lm-error__code { font: 700 clamp(6rem, 22vw, 11rem)/.85 var(--serif); letter-spacing: -.04em; color: var(--red); font-variant-numeric: lining-nums; }
.lm-error__label { margin-top: var(--s4); font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lm-error__title { margin-top: var(--s4); font: 700 clamp(1.75rem, 4.5vw, 2.5rem)/1.12 var(--serif); text-wrap: balance; }
.lm-error__msg { color: var(--muted); font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.lm-error__actions { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }

/* ---------- Footer ---------- */

.lm-footer { background: var(--ink); color: var(--paper); padding-top: var(--s7); border-top: 5px double var(--rule); }
.lm-footer a { text-decoration-thickness: 1px; }
.lm-footer :focus-visible { outline-color: var(--paper); }
.lm-footer__grid { display: grid; gap: var(--s6); padding-bottom: var(--s6); }
.lm-footer__brand { font: 700 clamp(1.75rem, 4vw, 2.25rem)/1.1 var(--serif); letter-spacing: -.01em; }
.lm-footer__tag { margin-top: var(--s3); color: var(--on-ink-muted); font-style: italic; max-width: 36ch; }
.lm-footer__h { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-muted); padding-bottom: var(--s3); margin-bottom: var(--s3); border-bottom: 1px solid #4a463d; }
.lm-footer__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
.lm-footer__list a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.lm-footer__list a:hover, .lm-footer__addr a:hover { text-decoration: underline; }
.lm-footer__addr p { color: var(--on-ink-muted); line-height: 1.55; }
.lm-footer__addr p + p { margin-top: var(--s2); }
.lm-footer__addr a { color: var(--paper); }
.lm-social { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.lm-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #6b665a; transition: background-color .15s ease, color .15s ease; }
.lm-social a:hover { background: var(--paper); color: var(--ink); }
.lm-footer__base { padding-bottom: var(--s6); }
.lm-footer__base .lm-orn { margin-block: 0 var(--s5); }
.lm-footer__base p { text-align: center; font: 400 .8125rem/1.5 var(--sans); letter-spacing: .04em; color: var(--on-ink-muted); }

@media (min-width: 768px) {
  .lm-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 0; }
  .lm-footer__col { padding-inline: var(--s5); }
  .lm-footer__col:first-child { padding-left: 0; }
  .lm-footer__col:last-child { padding-right: 0; }
  .lm-footer__col + .lm-footer__col { border-left: 1px solid #4a463d; }
}

/* ---------- Gerak & cetak ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lm-progress { display: none; }
}

@media print {
  .lm-navbar, .lm-search, .lm-kilas, .lm-aside, .lm-share, .lm-related, .lm-footer, .lm-ad, .lm-skip { display: none !important; }
  body { background: #fff; }
}
