/* Tema "kajian": gaya majalah kajian Islam. Dimuat setelah style.css dan menimpa tampilan standar. */
:root {
  --bg: #faf7f0;
  --surface: #ffffff;
  --surface-2: #f3eee2;
  --text: #1f1d1a;
  --muted: #6b6558;
  --line: #e2dccd;
  --green: #1d4a37;
  --green-dark: #143528;
  --gold: #a07a2c;
  --shadow: none;
  --shadow-lg: none;
  --radius: 4px;
  --radius-sm: 4px;
  --max: 1120px;
  --prose: 700px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body { background: var(--bg); background-image: none; font: 18px/1.72 var(--serif); color: var(--text); }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); letter-spacing: 0; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.55rem); }
.small, .crumbs, .byline, .post-meta, .kicker, .lead, .updated, .tool, .result, .site-footer, .btn, .toc, .side-card, .home-side, .topbar, .catnav { font-family: var(--sans); }
.lead { color: var(--muted); font-size: 1.1rem; font-family: var(--serif); font-style: italic; }
.eyebrow { background: none; border: 0; padding: 0; border-radius: 0; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-family: var(--sans); font-size: .78rem; }
.eyebrow .ic { display: none; }
.chip { background: none; padding: 0; border-radius: 0; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-family: var(--sans); font-size: .74rem; }
.grad { background: none; color: inherit; -webkit-background-clip: initial; background-clip: initial; }

/* Topbar & masthead */
.topbar { background: var(--green-dark); color: #e8e1cf; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar nav { display: flex; gap: 16px; }
.topbar a { color: #e8e1cf; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.site-header.masthead { position: static; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; box-shadow: none; }
.masthead-inner { text-align: center; padding: 26px 16px 18px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--green-dark); }
.wm-lat { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.1rem); line-height: 1; letter-spacing: -.01em; }
.wm-ar { font-family: "Amiri", serif; font-weight: 700; font-size: clamp(1.7rem, 4.6vw, 2.4rem); color: var(--gold); line-height: 1; }
.masthead-tag { margin: 8px 0 0; font-style: italic; color: var(--muted); font-size: 1rem; }
.catnav { border-top: 3px double var(--line); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.catnav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav a { padding: 11px 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.catnav a:hover { color: var(--green); }
.catnav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
@media (max-width: 760px) { .catnav-inner { justify-content: flex-start; } }
@media (max-width: 560px) { .topbar-inner { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 6px; padding-bottom: 6px; } .topbar nav { gap: 14px; } }

/* Label kecil (kicker) & meta */
.kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.kicker a { color: var(--gold); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.post-meta { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.block-title { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--green-dark); }
.block-title a { color: inherit; text-decoration: none; }

/* Beranda */
.home-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .home-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } }
.lead-story { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.lead-story h1 { margin: .15em 0 .3em; font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
.lead-story h1 a { color: var(--text); text-decoration: none; }
.lead-story h1 a:hover { color: var(--green); }
.lead-story .excerpt { font-size: 1.15rem; color: #3d3a33; margin: 0; }
.post-list { display: flex; flex-direction: column; }
.post-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-item:first-child { padding-top: 4px; }
.post-item h3 { margin: 0; font-size: 1.22rem; line-height: 1.35; }
.post-item h3 a { color: var(--text); text-decoration: none; }
.post-item h3 a:hover { color: var(--green); text-decoration: underline; }
.post-item .excerpt { margin: 6px 0 0; color: #45413a; font-size: 1rem; line-height: 1.6; }
.post-list.wide { max-width: 760px; }
.more { font-family: var(--sans); font-weight: 600; margin-top: 18px; }
.home-side { display: flex; flex-direction: column; gap: 32px; }
.side-block p { font-size: .95rem; color: #45413a; margin: 0 0 8px; line-height: 1.6; }
.tool-lines, .cat-lines, .title-list { list-style: none; margin: 0; padding: 0; }
.tool-lines li, .cat-lines li { border-bottom: 1px dotted #cfc6b1; }
.tool-lines a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text); text-decoration: none; font-size: .98rem; }
.tool-lines a .ic { color: var(--green); }
.tool-lines a:hover span { color: var(--green); text-decoration: underline; }
.cat-lines li { display: flex; justify-content: space-between; padding: 7px 0; font-size: .98rem; }
.cat-lines a { color: var(--text); text-decoration: none; }
.cat-lines a:hover { color: var(--green); text-decoration: underline; }
.cat-lines span { color: var(--muted); }
.cat-blocks { display: grid; gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 3px double var(--line); }
@media (min-width: 760px) { .cat-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cat-blocks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.title-list li { padding: 8px 0; border-bottom: 1px dotted #cfc6b1; line-height: 1.4; }
.title-list a { color: var(--text); text-decoration: none; font-size: 1rem; }
.title-list a:hover { color: var(--green); text-decoration: underline; }
.index-head.plain { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--green-dark); max-width: 760px; }
.index-head.plain h1 { margin: .2em 0 .2em; }

/* Artikel */
.article-head h1 { margin: .15em 0 .35em; }
.byline { font-size: .88rem; }
.avatar { background: var(--green); }
.prose { font-size: 1.06rem; }
.prose h2 { padding-left: 0; margin-top: 2em; }
.prose h2::before { display: none; }
.prose li::marker { color: var(--gold); }
.prose blockquote { background: none; border: 0; border-left: 3px solid var(--gold); border-radius: 0; padding: 4px 0 4px 20px; font-style: italic; color: #3a362f; }
.note, .prose .note { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 0; font-family: var(--sans); font-size: .95rem; }
.table-wrap { border-radius: 0; box-shadow: none; border-color: #d8cfbb; }
.prose table { font-family: var(--sans); }
.prose th { background: var(--surface-2); }
.prose tr:hover td { background: transparent; }
.formula { border-radius: 0; box-shadow: none; border-left: 3px solid var(--gold); }
.formula::before { font-family: var(--sans); color: var(--gold); }
.toc { border-radius: 0; box-shadow: none; background: var(--surface); }
.toc li::marker { color: var(--gold); }
.side-card { border-radius: 0; box-shadow: none; border: 0; border-top: 2px solid var(--green-dark); background: none; padding: 12px 0 0; }
.side-card > strong { margin-left: 0; color: var(--green-dark); }
.side-toc a.active { color: var(--green); border-left-color: var(--green); }
.mini { border-radius: 0; padding: 7px 0; border-bottom: 1px dotted #cfc6b1; }
.mini:hover { background: none; border-color: transparent transparent #cfc6b1; }
.mini .card-icon, .mini:hover .card-icon { background: none; border: 0; color: var(--green); width: 22px; height: 22px; }
.author-box { border-radius: 0; box-shadow: none; background: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; font-family: var(--sans); }
.related-list { max-width: var(--prose); }
.photo img { border-radius: 2px; box-shadow: none; }
.progress span { background: var(--green); }

/* Kalkulator & kartu */
.page-head .card-icon { display: none; }
.tool { border-radius: 0; box-shadow: none; border: 1px solid #d8cfbb; background: var(--surface); }
.tool::before { height: 3px; background: var(--green); }
.tool-head { color: var(--green-dark); }
.tool input, .tool select { border-radius: 3px; background: #fdfbf6; }
.tool input:focus, .tool select:focus { box-shadow: 0 0 0 3px rgba(29, 74, 55, .15); border-color: var(--green); }
.btn, .tool button { background: var(--green); border-radius: 3px; box-shadow: none; }
.btn:hover, .tool button:hover { transform: none; filter: none; background: var(--green-dark); }
.btn.ghost { background: var(--surface); color: var(--green); border: 1px solid var(--green); }
.result { background: #f1f5ef; border: 1px solid #c9d8cb; border-radius: 0; }
.result .big { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--green-dark); font-family: var(--serif); }
.card { border-radius: 0; box-shadow: none; background: var(--surface); border-color: var(--line); }
.card::after { display: none; }
.card:hover { transform: none; box-shadow: none; border-color: var(--green); }
.card h3 { font-family: var(--serif); }
.card p { font-family: var(--sans); }
.card-icon { background: none; border: 0; color: var(--green); width: auto; height: auto; justify-content: start; }
.card:hover .card-icon { background: none; color: var(--green); transform: none; }
.card-cta { color: var(--green); font-family: var(--sans); }

/* Footer */
.site-footer { background: var(--green-dark); color: #d9d2bf; border-top: 0; }
.site-footer::before { display: none; }
.site-footer .logo { color: #fff; font-family: var(--serif); }
.site-footer .logo-mark { background: none; box-shadow: none; color: var(--gold); width: auto; }
.footer-col strong { color: #fff; }
.footer-col a { color: #d9d2bf; }
.footer-col a:hover { color: #fff; }
.copyright { border-top-color: rgba(255, 255, 255, .15); }
.site-footer .small { color: #bfb7a3; }
