/*
Theme Name: SUSTER4D Guide Oas4gb4i
Theme URI: https://suster4d.asia/
Author: SUSTER4D Panduan Indonesia
Description: Monochrome typographic grid editorial theme for the Oas4gb4i build.
Version: 1.0.0
Text Domain: suster4d-guide
*/

:root {
  --ink: #151515;
  --paper: #f6f6f3;
  --surface: #fff;
  --reverse: #111;
  --muted: #666662;
  --line: #1e1e1e;
  --accent: #b7372f;
  --accent-dark: #8f2722;
  --focus: #2d5f8b;
  --info: #eaf0f4;
  --max: 1240px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans", "DejaVu Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.74;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #244f74; text-decoration-thickness: .1em; text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 1000; background: #fff; color: #111; padding: 12px 16px; border: 2px solid #111; }
.skip-link:focus { top: 12px; }

.site-header { background: var(--reverse); color: #fafaf7; border-bottom: 4px solid var(--accent); }
.identity-row { max-width: var(--max); min-height: 70px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.custom-logo-link { display: inline-flex; align-items: center; min-height: 48px; }
.custom-logo { width: min(390px, 65vw); height: auto; max-height: 52px; object-fit: contain; object-position: left center; }
.site-name-fallback { color: #fff; font-size: 1.15rem; font-weight: 800; text-decoration: none; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 2px solid #fafaf7; background: #111; color: #fff; font: inherit; font-weight: 700; padding: 8px 12px; }
.primary-nav { border-top: 1px solid #4b4b49; }
.primary-nav .menu { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); list-style: none; }
.primary-nav li { border-left: 1px solid #4b4b49; }
.primary-nav li:last-child { border-right: 1px solid #4b4b49; }
.primary-nav a { min-height: 58px; display: flex; align-items: center; justify-content: center; padding: 8px 7px; color: #fafaf7; font-size: .76rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: #fafaf7; color: #111; text-decoration: underline; }

.site-main { min-height: 60vh; }
.page-hero { background: var(--reverse); color: #fafaf7; border-bottom: 1px solid #111; }
.page-hero-inner { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 108px) clamp(16px, 4vw, 48px); position: relative; }
.eyebrow { margin: 0 0 14px; color: #f4b2ad; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; }
h1 { max-width: 1050px; margin: 0; font-size: clamp(2.25rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -.045em; }
.page-template-default h1 { font-size: clamp(2.1rem, 5.8vw, 4.5rem); }
.content-shell { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) clamp(64px, 9vw, 118px); }
.article-content > section, .article-content > .content-block { padding: clamp(48px, 7vw, 92px) 0; border-bottom: 3px solid var(--line); }
.article-content > section:last-child, .article-content > .content-block:last-child { border-bottom: 0; }
.article-content p, .article-content ul, .article-content ol, .article-content h2, .article-content h3, .article-content blockquote { max-width: var(--reading); }
.article-content h2 { margin: 0 0 24px; font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.025em; }
.article-content h2::before { content: "■"; color: var(--accent); font-size: .5em; vertical-align: .25em; margin-right: .45em; }
.article-content h3 { margin: 38px 0 14px; font-size: clamp(1.22rem, 2.2vw, 1.65rem); line-height: 1.25; }
.article-content p { margin: 0 0 1.25em; }
.article-content li + li { margin-top: .55em; }
.article-content strong { font-weight: 800; }
.content-figure { max-width: 1120px; margin: clamp(32px, 5vw, 64px) 0; border-top: 8px solid var(--line); border-bottom: 2px solid var(--line); background: #111; }
.content-figure img { width: 100%; aspect-ratio: var(--ratio, 3 / 2); object-fit: cover; }
.content-figure figcaption { background: #fff; color: var(--muted); padding: 12px 14px; font-size: .84rem; border-top: 1px solid var(--line); }
.hero-figure img { aspect-ratio: 16 / 9; }
.table-wrap { max-width: 1120px; margin: 32px 0 44px; overflow-x: auto; border: 2px solid var(--line); background: #fff; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
th, td { padding: 14px 15px; border: 1px solid #696965; text-align: left; vertical-align: top; }
th { background: #111; color: #fff; }
tbody tr:nth-child(even) { background: #eeeeea; }
.article-content ol, .article-content ul { padding-left: 1.35em; }
.article-content ol { border-left: 5px solid var(--accent); padding: 18px 20px 18px 42px; background: #fff; }
.s4-primary-asset { max-width: 1120px; margin: 34px 0 46px; border: 3px solid var(--line); background: #fff; }
.s4-primary-asset figcaption { padding: 13px 16px; border-top: 2px solid var(--line); color: var(--muted); font-size: .86rem; }
.s4-asset-canvas { padding: clamp(20px, 4vw, 42px); background: #ecece7; }
.s4-asset-canvas strong, .s4-asset-canvas b { color: var(--ink); }
.s4-asset-canvas span { line-height: 1.35; }
.s4-taxonomy-grid, .s4-format-grid, .s4-worksheet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.s4-node, .s4-format-card { min-width: 0; display: grid; gap: 8px; align-content: start; padding: 20px; border: 2px solid var(--line); background: #fff; }
.s4-node::before { content: "UNIT"; color: var(--accent-dark); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.s4-node span, .s4-format-card span { display: block; color: var(--muted); font-size: .82rem; }
.s4-ticket-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 820px; }
.s4-ticket-field { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px; border: 1px dashed #555; background: #fff; }
.s4-ticket-field b, .s4-worksheet-grid b { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; background: var(--accent); color: #fff; }
.s4-lane-grid { display: grid; gap: 12px; }
.s4-lane { display: grid; grid-template-columns: minmax(130px, 1.2fr) repeat(4, minmax(100px, 1fr)); border: 2px solid var(--line); background: #fff; }
.s4-lane > * { padding: 13px; border-right: 1px solid #777; }
.s4-lane > *:last-child { border-right: 0; }
.s4-tree { display: grid; gap: 26px; }
.s4-tree-root { justify-self: center; padding: 18px 28px; border: 3px solid var(--line); background: #111; color: #fff; }
.s4-tree-root strong { color: #fff; }
.s4-tree-branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.s4-tree-branches::before { content: ""; position: absolute; top: -14px; left: 12.5%; right: 12.5%; border-top: 2px solid var(--line); }
.s4-tree-branches > div { display: grid; gap: 7px; padding: 17px; border: 2px solid var(--line); background: #fff; }
.s4-tree-branches > div:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.s4-tree-branches span { color: var(--accent-dark); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.s4-format-card::before { content: "FORMAT"; color: var(--accent-dark); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.s4-ledger-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .45fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.s4-ledger, .s4-ledger-bridge { display: grid; align-content: center; gap: 10px; padding: 22px; text-align: center; }
.s4-ledger { border: 3px solid var(--line); background: #fff; }
.s4-ledger span { padding: 8px; border-top: 1px solid #777; }
.s4-ledger-bridge { background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; }
.s4-worksheet-grid { gap: 0; background: #fff; border: 3px double var(--line); }
.s4-worksheet-grid span { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 14px; border: 1px solid #777; }
.s4-ladder { display: grid; gap: 8px; align-items: end; }
.s4-ladder > div { display: flex; gap: 14px; align-items: center; min-height: 56px; padding: 12px 18px; border: 2px solid var(--line); background: #fff; }
.s4-ladder > div:nth-child(1) { width: 58%; }
.s4-ladder > div:nth-child(2) { width: 68%; }
.s4-ladder > div:nth-child(3) { width: 78%; }
.s4-ladder > div:nth-child(4) { width: 88%; }
.s4-ladder > div:nth-child(5) { width: 100%; background: #111; color: #fff; }
.s4-ladder > div:nth-child(5) b { color: #fff; }
.faq-section { background: #111; color: #fafaf7; margin-inline: calc(clamp(16px, 4vw, 48px) * -1); padding-inline: clamp(16px, 4vw, 48px) !important; }
.faq-section h2 { color: #fff; }
.faq-grid { max-width: 1050px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid #fff; border-left: 2px solid #fff; }
.faq-item { padding: 24px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.faq-item h3 { margin: 0 0 12px; font-size: 1.15rem; color: #fff; }
.faq-item p { margin: 0; color: #e8e8e3; font-size: .95rem; }
.breadcrumb { max-width: var(--max); margin: 0 auto; padding: 18px clamp(16px, 4vw, 48px); font-size: .82rem; border-bottom: 1px solid #aaa; }
.breadcrumb a { font-weight: 700; }

.site-footer { background: #111; color: #fafaf7; border-top: 8px solid var(--accent); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 54px clamp(16px, 4vw, 48px); }
.footer-statement { max-width: 820px; margin: 0 0 28px; font-weight: 700; }
.footer-statement a { color: #fff; }
.email-address { white-space: nowrap; }
.footer-nav .menu { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid #777; }
.footer-nav a { color: #fff; min-height: 48px; display: inline-flex; align-items: center; }

@media (max-width: 980px) {
  body { font-size: 17px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 16px; }
  .primary-nav li, .primary-nav li:last-child { border: 1px solid #555; border-top: 0; }
  .primary-nav a { justify-content: flex-start; text-align: left; min-height: 52px; padding: 10px 12px; }
  .s4-taxonomy-grid, .s4-format-grid, .s4-worksheet-grid, .s4-tree-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s4-tree-branches::before { display: none; }
  .s4-lane { grid-template-columns: minmax(120px, .8fr) repeat(2, minmax(100px, 1fr)); }
  .s4-lane > * { border-bottom: 1px solid #777; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .identity-row { padding-inline: 16px; }
  .custom-logo { max-width: 245px; }
  .primary-nav .menu { grid-template-columns: 1fr; }
  .page-hero-inner { padding: 48px 16px; }
  h1 { font-size: clamp(2rem, 11vw, 2.8rem); }
  .content-shell { padding-inline: 16px; }
  .article-content > section, .article-content > .content-block { padding-block: 48px; }
  .faq-section { margin-inline: -16px; padding-inline: 16px !important; }
  .faq-grid { grid-template-columns: 1fr; }
  .content-figure img { min-height: 220px; aspect-ratio: 4 / 3; }
  .s4-primary-asset { margin-inline: 0; }
  .s4-asset-canvas { padding: 14px; }
  .s4-taxonomy-grid, .s4-format-grid, .s4-worksheet-grid, .s4-ticket-sheet, .s4-tree-branches, .s4-ledger-grid { grid-template-columns: 1fr; }
  .s4-lane { grid-template-columns: 1fr; }
  .s4-lane > * { border-right: 0; border-bottom: 1px solid #777; }
  .s4-lane > *:last-child { border-bottom: 0; }
  .s4-ledger-bridge { grid-template-columns: repeat(3, 1fr); }
  .s4-ladder > div { width: 100% !important; }
  .footer-nav .menu { display: grid; grid-template-columns: 1fr; gap: 0; }
}

@media print {
  .s4-asset-worksheet { break-inside: avoid; }
  .s4-worksheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
