/* Situs publik MWCNU Pamarican – nuansa hijau NU */
:root {
  --green: #0a6b36;
  --green-2: #0e8a46;
  --green-3: #e8f4ec;
  --green-dark: #064223;
  --gold: #d9a514;
  --ink: #1d2521;
  --muted: #5f6b64;
  --line: #e2e8e4;
  --bg: #f5f7f6;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(6,66,35,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-2); text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic.xs { width: 14px; height: 14px; }
.ic.lg { width: 32px; height: 32px; }
.ic.xl { width: 56px; height: 56px; color: var(--green); margin: 0 auto 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Header */
.topbar { background: var(--green-dark); color: #cfe6d7; font-size: .8125rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #e6f3ea; margin-left: 14px; }
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 60px; height: 60px; }
.brand strong { display: block; font-size: 1.375rem; color: var(--green); letter-spacing: .2px; }
.brand small { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.search { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.search input { border: 0; background: transparent; padding: 9px 14px; width: 240px; font: inherit; font-size: .9375rem; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,107,54,.12); }
.search button { border: 0; background: var(--green); color: #fff; padding: 0 14px; cursor: pointer; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px; color: var(--green); cursor: pointer; }

.mainnav { background: var(--green); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mainnav > ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.mainnav li { position: relative; }
.mainnav > ul > li > a { display: flex; align-items: center; gap: 4px; color: #fff; padding: 12px 13px; font-weight: 600; font-size: .9375rem; }
.mainnav > ul > li > a:hover, .mainnav > ul > li.active > a { background: var(--green-dark); text-decoration: none; }
.mainnav li.highlight > a { background: var(--gold); color: #1d1600; }
.mainnav li.highlight > a:hover { background: #f0bd2a; }
.mainnav > ul { justify-content: flex-start; }
@media (min-width: 821px) { .mainnav > ul > li > a { padding: 12px 10px; font-size: .875rem; } }
.mainnav li ul { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 6px 0; background: #fff; border-radius: 0 0 8px 8px; box-shadow: var(--shadow); }
.mainnav li:hover > ul, .mainnav li:focus-within > ul { display: block; }
.mainnav li ul a { display: block; padding: 8px 16px; color: var(--ink); }
.mainnav li ul a:hover { background: var(--green-3); color: var(--green); text-decoration: none; }
.sub-toggle { display: none; }

/* Layout */
main { min-height: 50vh; padding-bottom: 32px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 24px; }
.main-col { min-width: 0; }
.main-col > section { margin-bottom: 32px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--line); margin: 0 0 16px; font-size: 1.125rem; }
.sec-title span { display: inline-block; border-bottom: 3px solid var(--green); margin-bottom: -2px; padding-bottom: 8px; color: var(--green-dark); text-transform: uppercase; letter-spacing: .5px; }
.sec-title a { font-size: .8125rem; font-weight: 600; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band { background: var(--green-3); margin-left: -16px; margin-right: -16px; padding: 18px 16px; border-radius: var(--radius); }

/* Headline */
.headline { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-top: 20px; }
.hl-main, .hl-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--green-dark); }
.hl-main a, .hl-item a { display: block; height: 100%; color: #fff; }
.hl-main a:hover, .hl-item a:hover { text-decoration: none; }
.hl-main { min-height: 420px; }
.hl-main img, .hl-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hl-main:hover img, .hl-item:hover img { transform: scale(1.03); }
.hl-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; background: linear-gradient(transparent, rgba(3,30,15,.92)); }
.hl-main strong { display: block; font-size: 1.625rem; line-height: 1.25; font-family: var(--serif); }
.hl-text small { display: block; opacity: .85; margin-top: 6px; }
.hl-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }
.hl-item { min-height: 96px; }
.hl-item .hl-text { padding: 30px 12px 10px; }
.hl-item strong { display: block; font-size: .9375rem; line-height: 1.3; }
.kicker { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--green-2); }
.kicker.light { color: #ffd761; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.stats a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; color: var(--ink); }
.stats a:hover { border-color: var(--green); text-decoration: none; }
.stats strong { display: block; font-size: 1.5rem; color: var(--green); }
.stats span { font-size: .8125rem; color: var(--muted); }

/* Card */
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16/10; background: var(--green-3); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { display: flex; height: 100%; align-items: center; justify-content: center; }
.card-noimg img { width: 64px; height: 64px; opacity: .5; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 1.0625rem; margin: 0; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--green); }
.card p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; font-size: .8rem; color: var(--muted); padding-top: 6px; }
.card-sm h3 { font-size: .9375rem; }
.list { display: grid; gap: 16px; }
.card-row { flex-direction: row; }
.card-row .card-img { width: 260px; flex: none; aspect-ratio: auto; min-height: 160px; }
.card-row h3 { font-size: 1.1875rem; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.box { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.sidebar .box { margin-bottom: 0; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.box-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .5px; color: var(--green-dark); border-left: 4px solid var(--green); padding-left: 10px; margin-bottom: 14px; }
.box-green { background: var(--green); color: #e9f5ee; }
.box-green .box-title { color: #fff; border-color: var(--gold); }
.box-green .big { font-size: 1.125rem; font-weight: 700; color: #fff; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank span { font: 700 1.5rem/1 var(--serif); color: var(--green-2); min-width: 22px; }
.rank a { color: var(--ink); font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.agenda-mini { list-style: none; margin: 0; padding: 0; }
.agenda-mini li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.agenda-mini strong { display: block; font-size: .9375rem; }
.agenda-mini small { color: var(--muted); }
.more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .875rem; }
.promo { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--green-dark); color: #fff; }
.promo:hover { text-decoration: none; color: #fff; filter: brightness(1.1); }
.promo strong { display: block; }
.promo small { display: block; opacity: .85; line-height: 1.4; }
.promo-gold { background: var(--gold); color: #241a00; }
.promo-cta { display: inline-block; margin-top: 6px; font-weight: 700; font-size: .85rem; }
.promo-gold:hover { color: #241a00; }

/* Artikel */
.article h1 { font: 700 2rem/1.25 var(--serif); margin: 8px 0 12px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .875rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.byline span:first-child { font-weight: 600; color: var(--ink); }
.cover { margin: 0 0 20px; }
.cover img { width: 100%; border-radius: var(--radius); }
.prose { font-size: 1.0625rem; line-height: 1.8; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.1em; }
.prose img { border-radius: 8px; margin: 1em auto; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 8px; }
.prose blockquote { border-left: 4px solid var(--green); background: var(--green-3); margin: 1em 0; padding: 12px 16px; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tags a { background: var(--green-3); padding: 4px 12px; border-radius: 999px; font-size: .8125rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.share a { background: var(--green); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: .8125rem; font-weight: 600; }
.share a:hover { background: var(--green-dark); text-decoration: none; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 16px 0 8px; font-size: .8125rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.page-head { margin: 20px 0; }
.page-head h1 { font: 700 1.875rem/1.25 var(--serif); color: var(--green-dark); }
.page-head p { color: var(--muted); max-width: 70ch; }
.empty { padding: 24px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); }

/* Unit */
.unit-hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding-bottom: 24px; }
.unit-hero .crumbs ol, .unit-hero .crumbs a { color: #cfe6d7; }
.unit-hero-in { display: flex; gap: 18px; align-items: center; }
.unit-hero-in img { background: #fff; border-radius: 50%; padding: 6px; width: 88px; height: 88px; object-fit: contain; }
.unit-hero h1 { font: 700 1.875rem/1.2 var(--serif); margin: 4px 0; }
.unit-hero p { margin: 0; opacity: .9; }
.org { display: grid; gap: 18px; }
.org-section h3 { font-size: .9375rem; text-transform: uppercase; letter-spacing: .6px; background: var(--green-3); color: var(--green-dark); padding: 6px 10px; border-radius: 6px; }
.org dl { display: grid; grid-template-columns: 170px 1fr; margin: 0; }
.org dt { color: var(--muted); font-size: .9rem; padding: 5px 0; border-bottom: 1px solid var(--line); }
.org dd { margin: 0; padding: 5px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.unit-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); }
.unit-card:hover { border-color: var(--green); text-decoration: none; box-shadow: var(--shadow); }
.unit-card img { width: 56px; height: 56px; object-fit: contain; }
.unit-card strong { display: block; color: var(--green-dark); }
.unit-card small { display: block; color: var(--muted); font-size: .8125rem; }
.activity-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.activity-list li, .plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.activity-list small { display: block; color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #eef1ef; color: var(--muted); letter-spacing: .3px; }
.badge-green { background: var(--green-3); color: var(--green); }
.fin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fin-cards div { background: var(--bg); border-radius: 8px; padding: 10px; }
.fin-cards small { display: block; color: var(--muted); }
.fin-cards strong { font-size: 1rem; }
.fin-cards .saldo { background: var(--green); color: #fff; }
.fin-cards .saldo small { color: #d7eadf; }
.inline-form select { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); font: inherit; }

/* Agenda */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline .date { flex: none; width: 64px; text-align: center; background: var(--green); color: #fff; border-radius: 8px; padding: 8px 4px; align-self: flex-start; }
.timeline .date strong { display: block; font-size: 1.5rem; line-height: 1; }
.timeline .date small { font-size: .72rem; }
.timeline h3 { margin: 0 0 4px; font-size: 1.0625rem; }
.timeline p { margin: 2px 0; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--green-3); color: var(--green-dark); font-size: .8125rem; text-transform: uppercase; letter-spacing: .4px; }

/* Formulir */
.form .field { margin-bottom: 14px; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd8d2; border-radius: 8px; font: inherit; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,107,54,.12); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 12px; }
.form .check input { margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { color: #b42318; }
.has-error input, .has-error textarea { border-color: #b42318 !important; }
.error { color: #b42318; display: block; margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.btn { display: inline-block; border: 0; background: var(--green); color: #fff; padding: 11px 22px; border-radius: 8px; font: 600 .9375rem var(--font); cursor: pointer; }
.btn:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn.sm { padding: 6px 12px; font-size: .8125rem; }
.btn.ghost { background: #fff; color: var(--green); box-shadow: inset 0 0 0 1px #b9d3c3; }
.btn.ghost:hover { background: #e8f4ec; color: var(--green-dark); }
.btn.block { width: 100%; }
.alert { padding: 12px 14px; border-radius: 8px; margin: 14px 0; border: 1px solid; }
.alert-success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.alert-error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.alert-warning { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.alert-info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.steps div { display: flex; gap: 10px; align-items: flex-start; background: #fff; padding: 12px; border-radius: 8px; border: 1px solid var(--line); font-size: .9rem; }
.steps strong { background: var(--green); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 12px 14px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq-q, .faq-a { margin-top: 10px; }
.faq-a { background: var(--green-3); padding: 10px 12px; border-radius: 8px; }
.center { text-align: center; }
.ticket { font: 700 1.75rem/1.2 ui-monospace, monospace; color: var(--green); letter-spacing: 1px; }
.auth { max-width: 440px; padding-top: 32px; }
.auth h1 { text-align: center; font-size: 1.5rem; }
.auth p { text-align: center; }
.auth-logo { margin: 0 auto 10px; }
.error-page { text-align: center; padding: 48px 16px; }
.error-code { font: 700 4.5rem/1 var(--serif); color: var(--green); margin: 0; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.pager a, .pager span { min-width: 38px; padding: 8px 10px; text-align: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.pager .current { background: var(--green); color: #fff; border-color: var(--green); }
.pager .gap { border: 0; background: none; }

/* Footer */
.footer { background: var(--green-dark); color: #cfe6d7; margin-top: 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
.footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .5px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 3px 0; }
.footer a { color: #e6f3ea; }
.brand-foot strong { color: #fff; font-size: 1.125rem; }
.brand-foot small { color: #cfe6d7; }
.brand-foot img { width: 52px; height: 52px; }
.footer-bottom { background: #032e18; padding: 12px 0; font-size: .8125rem; text-align: center; }

@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .search { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .mainnav { position: static; }
  .mainnav > ul { display: none; flex-direction: column; padding: 0; }
  .mainnav.open > ul { display: flex; }
  .mainnav > ul > li > a { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); }
  .mainnav li ul { position: static; box-shadow: none; border-radius: 0; background: var(--green-dark); }
  .mainnav li:hover > ul { display: none; }
  .mainnav li.sub-open > ul { display: block; }
  .mainnav li ul a { color: #e6f3ea; padding-left: 32px; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 0; width: 48px; height: 46px; border: 0; background: transparent; color: #fff; cursor: pointer; }
  .sub-toggle::after { content: "▾"; font-size: 1rem; }
  .mainnav.open .search-mobile { display: block; }
  .headline { grid-template-columns: 1fr; }
  .hl-main { min-height: 280px; }
  .hl-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hl-item { min-height: 140px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-row .card-img { width: 140px; min-height: 0; }
  .card-row p { display: none; }
  .article h1, .page-head h1 { font-size: 1.5rem; }
  .fin-cards, .steps { grid-template-columns: 1fr 1fr; }
  .org dl { grid-template-columns: 130px 1fr; }
}
@media (max-width: 520px) {
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 1.125rem; }
  .brand small { display: none; }
  .topbar-links a:not(:last-child) { display: none; }
  .grid-3, .grid-4, .row-2, .footer-grid, .steps { grid-template-columns: 1fr; }
  .hl-side { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-row { flex-direction: column; }
  .card-row .card-img { width: 100%; aspect-ratio: 16/10; }
  .org dl { grid-template-columns: 1fr; }
  .org dt:empty { display: none; }
  .org dt { border: 0; padding-bottom: 0; font-size: .8rem; }
}

/* Kotak penulis */
.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 24px 0; padding: 18px; border: 1px solid var(--line, #e3e9e5); border-left: 4px solid var(--green); border-radius: var(--radius); background: #f7faf8; }
.page-head .author-box { margin: 12px 0 0; }
.author-photo { width: 88px; height: 88px; flex: none; border-radius: 50%; object-fit: cover; background: var(--green); }
.author-initial { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; font-weight: 700; }
.author-info { min-width: 0; }
.author-label { display: block; text-transform: uppercase; letter-spacing: .5px; font-size: .75rem; color: var(--green); font-weight: 700; }
.author-name { display: block; font-size: 1.125rem; }
.author-name a { color: inherit; }
.author-pos { display: block; color: #5b6b62; font-size: .875rem; }
.author-info p { margin: 8px 0 0; font-size: .9375rem; line-height: 1.55; }
.author-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: .875rem; font-weight: 600; }
@media (max-width: 560px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .author-links { justify-content: center; }
}

/* Bahtsul Masail */
.bm-search { display: flex; gap: 8px; margin: 0 0 14px; }
.bm-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.bm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bm-chips a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: inherit; font-size: .875rem; font-weight: 600; }
.bm-chips a:hover { text-decoration: none; border-color: var(--green); }
.bm-chips a.on { background: var(--green); border-color: var(--green); color: #fff; }
.bm-chips small { opacity: .7; margin-left: 2px; }
.bm-list { display: grid; gap: 12px; }
.bm-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 16px 18px; }
.bm-item h2 { font-size: 1.125rem; margin: 6px 0; line-height: 1.35; }
.bm-item h2 a { color: inherit; }
.bm-item p { margin: 0 0 6px; color: #3d4b43; }
.bm-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.bm-tags > * { padding: 2px 8px; border-radius: 4px; background: #eef3f0; color: #4a5a51; }
.bm-tags .bm-bab { background: var(--green); color: #fff; }
.bm-tags a.bm-bab:hover { text-decoration: none; filter: brightness(1.1); }
.bm-tags .bm-pdf { background: #b3261e; color: #fff; }
.bm-detail h1 { margin-top: 8px; }
.bm-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 18px; padding: 12px 16px; background: #f7faf8; border-radius: var(--radius); font-size: .9375rem; }
.bm-meta div { display: flex; gap: 6px; }
.bm-meta dt { font-weight: 700; color: var(--green); }
.bm-meta dt::after { content: ':'; }
.bm-meta dd { margin: 0; }
.bm-sec { margin: 22px 0; }
.bm-sec > h2 { font-size: 1.125rem; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--green); color: var(--green-dark, #064223); }
.bm-answer { padding: 16px 18px; background: #fffbea; border: 1px solid #f0dc8a; border-left: 4px solid var(--gold); border-radius: var(--radius); }
.bm-answer > h2 { border-bottom-color: var(--gold); }
/* Paragraf berbahasa Arab otomatis rata kanan & arah RTL */
.bm-text p, .bm-text div, .bm-text li, .bm-text blockquote { unicode-bidi: plaintext; text-align: start; }
.bm-text .arab { direction: rtl; text-align: right; font-family: "Amiri", "Scheherazade New", "Traditional Arabic", "Noto Naskh Arabic", serif; font-size: 1.4em; line-height: 2.1; margin: 8px 0; }
.bm-refs { margin: 0; padding-left: 22px; }
.bm-refs li { margin-bottom: 4px; }
.bm-team { background: transparent; padding: 0; }
.bm-related { list-style: none; margin: 0; padding: 0; }
.bm-related li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.bm-related a { display: block; font-weight: 600; color: inherit; }
/* Pembaca PDF */
.pdf-viewer { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #525659; }
.pdf-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: #323639; color: #fff; font-size: .875rem; }
.pdf-tools { display: flex; align-items: center; gap: 6px; }
.pdf-tools button { min-width: 36px; height: 34px; border: 0; border-radius: 6px; background: #4a4e52; color: #fff; font-size: 1.05rem; cursor: pointer; }
.pdf-tools button:hover { background: #5d6266; }
.pdf-tools .btn { background: var(--green); color: #fff; }
.pdf-pages { height: min(80vh, 900px); overflow: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; -webkit-overflow-scrolling: touch; }
.pdf-viewer.zoomed .pdf-pages { align-items: flex-start; }
.pdf-page { width: 100%; max-width: 100%; flex: none; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.pdf-viewer.zoomed .pdf-page { max-width: none; }
.pdf-page canvas { display: block; width: 100%; height: auto; }
.pdf-msg { margin: auto; color: #fff; text-align: center; padding: 24px; }
.pdf-msg a { color: #ffe08a; }
.pdf-viewer:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.pdf-viewer:fullscreen .pdf-pages { height: auto; flex: 1; }
.pdf-viewer.pdf-full { position: fixed; inset: 0; z-index: 1000; border-radius: 0; display: flex; flex-direction: column; }
.pdf-viewer.pdf-full .pdf-pages { height: auto; flex: 1; }
@media (max-width: 560px) {
  .pdf-pages { height: 70vh; padding: 8px; }
  .bm-answer { padding: 14px; }
}

/* Menu Alat */
.tool-mini { list-style: none; margin: 0; padding: 0; }
.tool-mini li { border-bottom: 1px solid var(--line); }
.tool-mini li:last-child { border-bottom: 0; }
.tool-mini a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: inherit; font-weight: 600; }
.tool-mini a:hover { color: var(--green); text-decoration: none; }
.tool-mini .ic { color: var(--green); flex: none; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; transition: border-color .15s, transform .15s; }
.tool-card:hover { text-decoration: none; border-color: var(--green); transform: translateY(-2px); }
.tool-card strong { font-size: 1.0625rem; }
.tool-card small { color: #5b6b62; line-height: 1.45; }
.tool-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e8f4ec; color: var(--green); }
.tool-note { margin-top: 18px; }
.tool-page .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.tool-page h2 { font-size: 1.125rem; margin: 0 0 12px; }
.tool-page h3 { font-size: 1rem; margin: 16px 0 8px; }
.tool-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .875rem; }
.tool-form label small { font-weight: 400; color: #6b7a72; }
.tool-form input, .tool-form select { font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #cdd7d1; border-radius: 8px; background: #fff; min-width: 0; width: 100%; }
.tool-form input:focus, .tool-form select:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.tool-form label.check { flex-direction: row; align-items: center; gap: 8px; margin-top: 12px; }
.tool-form label.check input { width: auto; }
.tool-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tool-fields.three { grid-template-columns: repeat(3, 1fr); }
.tool-fields.heirs { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tool-fields .tf-wide { grid-column: 1 / -1; }
.tool-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.tool-inline label { width: 160px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tool-seg { display: flex; gap: 8px; margin-bottom: 16px; }
.tool-seg label { flex-direction: row; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #cdd7d1; border-radius: 8px; cursor: pointer; }
.tool-seg label:has(input:checked) { border-color: var(--green); background: #e8f4ec; }
.tool-seg input { width: auto; accent-color: var(--green); }
.tool-form h2 { margin-top: 18px; }
.tool-form h2:first-child { margin-top: 0; }
.tool-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.tool-tabs button { flex: none; font: inherit; font-weight: 600; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.tool-tabs button[aria-selected="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.tool-result { margin-top: 14px; }
.tool-result:empty { display: none; }
.tool-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tool-table th, .tool-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tool-table thead th { background: #f3f7f4; font-size: .8125rem; text-transform: uppercase; letter-spacing: .3px; color: #4a5a51; white-space: nowrap; }
.tool-table tr.total th, .tool-table tr.total td { font-weight: 700; background: #f7faf8; }
.tool-table caption { caption-side: top; text-align: left; font-size: .875rem; color: #5b6b62; padding-bottom: 8px; }
.tool-table.compact th { width: 45%; font-weight: 600; }
.tool-table .ok, .tool-page p.ok, .tool-page .ok { color: #0a6b36; }
.tool-table .no, .tool-page p.no, .tool-page .no { color: #a1281e; }
.tool-verdict { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; font-size: 1rem; }
.tool-verdict.yes { background: #e8f4ec; border-left: 4px solid var(--green); }
.tool-verdict.no { background: #fdf3e7; border-left: 4px solid var(--gold); }
.tool-info { margin: 8px 0 20px; font-size: .9375rem; line-height: 1.6; }
.tool-info h2 { font-size: 1.0625rem; }
.tool-info ul { padding-left: 20px; }
.tool-disclaimer { padding: 12px 14px; background: #fffbea; border: 1px solid #f0dc8a; border-radius: 8px; }
.tool-warn { color: #8a4b00; }
.tool-loc summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tool-loc[open] summary { margin-bottom: 12px; }
.tool-others ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-others a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: inherit; font-weight: 600; font-size: .875rem; }
.tool-others a:hover { border-color: var(--green); text-decoration: none; }
.frac sup, .frac sub { font-size: .75em; }
.waris-table td small { display: block; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tool-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-2col .card { margin-bottom: 0; }
.tool-2col + .card { margin-top: 16px; }
.kl-big { font-size: 1.375rem; font-weight: 700; color: var(--green-dark); margin: 0 0 10px; }
/* Jadwal shalat */
.tool-today .today-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tool-today .today-head small { display: block; color: #5b6b62; }
.today-next { text-align: right; }
.today-next span { display: block; color: var(--green); font-weight: 600; }
.today-times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.today-times li { text-align: center; padding: 10px 4px; background: #f3f7f4; border-radius: 8px; }
.today-times li span { display: block; font-size: .75rem; color: #5b6b62; }
.today-times li strong { font-size: 1.0625rem; }
.today-times li.next { background: var(--green); color: #fff; }
.today-times li.next span { color: #d7eadf; }
.tool-table.times td, .tool-table.times th { text-align: center; padding: 6px 4px; font-variant-numeric: tabular-nums; }
.tool-table.times tr.today td { background: #fff4cc; font-weight: 700; }
.tool-table.times tr.jumat td:nth-child(2) { color: var(--green); font-weight: 700; }
.tool-table.hilal td { white-space: nowrap; }
.badge-ok, .badge-no { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.badge-ok { background: #e8f4ec; color: #0a6b36; }
.badge-no { background: #fdf3e7; color: #8a4b00; }
/* Gerhana */
.eclipse { padding: 14px 0; border-bottom: 1px solid var(--line); }
.eclipse:last-child { border-bottom: 0; }
.eclipse h3 { margin: 0 0 4px; }
.eclipse.sun h3::before { content: '☀ '; color: var(--gold); }
.eclipse.moon h3::before { content: '☾ '; color: #4a5a8a; }
/* Kiblat */
.kiblat-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; }
#kb-compass { width: 100%; max-width: 240px; }
.kb-ring { fill: #f7faf8; stroke: var(--green); stroke-width: 2; }
.kb-ticks line { stroke: #9aa9a0; stroke-width: 1; }
.kb-labels text { font: 700 14px sans-serif; text-anchor: middle; fill: #34433b; }
.kb-needle { fill: var(--green); }
.kb-kaaba { fill: #222; stroke: var(--gold); stroke-width: 2; }
.kb-hub { fill: var(--gold); }
#kb-info .kb-big { font-size: 2.5rem; font-weight: 800; color: var(--green); margin: 0; line-height: 1; }
/* Kalender */
.tool-table.kal { table-layout: fixed; }
.tool-table.kal td { height: 64px; border: 1px solid var(--line); padding: 4px 6px; }
.tool-table.kal td strong { display: block; font-size: 1.0625rem; }
.tool-table.kal td small { display: block; color: var(--green); font-size: .75rem; }
.tool-table.kal td em { display: block; font-style: normal; font-size: .6875rem; color: #6b7a72; }
.tool-table.kal td.today { background: #fff4cc; }
.tool-table.kal td.jumat strong { color: var(--green); }
@media (max-width: 720px) {
  .tool-2col, .kiblat-grid { grid-template-columns: 1fr; }
  #kb-compass { margin: 0 auto; display: block; }
  .today-times { grid-template-columns: repeat(4, 1fr); }
  .today-next { text-align: left; }
  .tool-fields.three { grid-template-columns: 1fr 1fr 1fr; }
  .tool-inline label { width: calc(50% - 6px); }
  .tool-table.kal td { height: 54px; padding: 3px; }
  .tool-table.kal td em { display: none; }
}
.print-only { display: none; }
@media print {
  @page { size: A4 portrait; margin: 10mm 12mm; }
  .topbar, .masthead, .mainnav, .sidebar, .footer, .tool-loc, .tool-others, .tool-info, .crumbs, .tool-today, #js-month, .page-head, noscript { display: none !important; }
  body { background: #fff; }
  .wrap.layout { display: block; padding: 0; margin: 0; max-width: none; }
  .tool-page .card { border: 0; padding: 0; margin: 0; box-shadow: none; }
  .print-only { display: block; }
  .print-kop img { width: 100%; max-height: 30mm; object-fit: contain; display: block; }
  .print-title { text-align: center; font-size: 13pt; margin: 3mm 0 2mm; letter-spacing: .5px; }
  .print-title span { font-size: 10pt; font-weight: 600; letter-spacing: 0; }
  .table-wrap { overflow: visible; }
  .tool-table.times { font-size: 9pt; line-height: 1.25; page-break-inside: avoid; }
  .tool-table.times caption { font-size: 8.5pt; color: #000; padding-bottom: 1.5mm; text-align: center; }
  .tool-table.times th, .tool-table.times td { padding: 0.9mm 1mm; border: 0.5pt solid #9aa9a0; }
  .tool-table.times thead th { background: #0a6b36 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tool-table.times tr.jumat td { background: #eef6f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tool-table.times tr.today td { background: none !important; font-weight: 400; }
  .print-note { font-size: 7.5pt; color: #333; margin: 2mm 0 0; text-align: center; }
}

/* ===== Pustaka ===== */
@font-face { font-family: 'Amiri'; src: url('/assets/vendor/amiri/amiri-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Amiri'; src: url('/assets/vendor/amiri/amiri-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
.pk-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin: 0 0 18px; scrollbar-width: thin; }
.pk-tabs a { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .9375rem; }
.pk-tabs a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.pk-tabs a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }
.pk-group { margin-bottom: 26px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pk-card { display: flex; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; transition: border-color .15s, transform .15s; }
.pk-card:hover { text-decoration: none; border-color: var(--green); transform: translateY(-2px); }
.pk-card-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--green-3); color: var(--green); }
.pk-card-kitab .pk-card-ic { background: #fbf3dc; color: #8a6508; }
.pk-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk-card-body strong { font-size: 1.0625rem; color: var(--green-dark); line-height: 1.3; }
.pk-card-body small { color: #5b6b62; line-height: 1.45; }
.pk-card-meta { font-size: .8125rem; color: var(--muted); }
.pk-read .lead, .pk-kitab .lead { color: var(--muted); font-size: 1.0625rem; }
.pk-toolbar { position: sticky; top: 6px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; margin: 0 0 16px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .9375rem; }
.pk-toolbar label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; }
.pk-toolbar input { accent-color: var(--green); width: 18px; height: 18px; }
.pk-size { display: flex; gap: 4px; margin-left: auto; }
.pk-size button { min-width: 44px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; cursor: pointer; }
.pk-size button:hover { border-color: var(--green); color: var(--green); }
.pk-toc { margin: 0 0 16px; padding: 10px 14px; background: #f7faf8; border-radius: var(--radius); }
.pk-toc summary { cursor: pointer; font-weight: 700; color: var(--green); }
.pk-toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2 220px; }
.pk-sections { display: grid; gap: 4px; }
.pk-sec { padding: 14px 0 16px; border-bottom: 1px dashed var(--line); scroll-margin-top: 70px; }
.pk-sec:last-child { border-bottom: 0; }
.pk-sec h2 { font: 700 1.125rem/1.3 var(--font); color: var(--green); margin: 6px 0 10px; }
.pk-ar { direction: rtl; text-align: right; font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', 'Noto Naskh Arabic', serif; font-size: var(--pk-ar-size, 1.75rem); line-height: 2.2; margin: 0 0 10px; color: #10261a; word-spacing: .05em; }
.pk-lt { margin: 0 0 6px; color: #0b5a2f; font-style: italic; line-height: 1.65; }
.pk-id { margin: 0; color: #3c4a42; line-height: 1.65; }
.pk-hide-lt .pk-lt, .pk-hide-id .pk-id { display: none; }
.pk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 0; }
.pk-foot small { color: var(--muted); }
.pk-count { border: 1px solid var(--gold); background: #fff8e1; color: #6b4e00; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .875rem; cursor: pointer; min-height: 32px; }
.pk-count.done { background: var(--green); border-color: var(--green); color: #fff; }
.pk-note { font-size: .875rem; margin-top: 18px; }
.pk-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.pk-drive-frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #525659; height: min(80vh, 900px); }
.pk-drive-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 560px) {
  .pk-toolbar { padding: 8px 10px; gap: 6px 12px; }
  .pk-ar { line-height: 2.1; }
  .pk-grid { grid-template-columns: 1fr; }
}
@media print {
  .pk-toolbar, .pk-tabs, .pk-toc, .share, .pk-count { display: none !important; }
}
@media (min-width: 821px) { .pk-toolbar { top: var(--pk-top, 54px); } .pk-sec { scroll-margin-top: 140px; } }
@media (min-width: 821px) and (max-width: 1199px) { .mainnav > ul > li > a { padding: 12px 7px; font-size: .8125rem; } }
