/* The public guide: /panduan, /panduan/<slug>, /en/guide (src/GuideSite.php, 12 Nov 2026).
   Loaded after site.css and built from its tokens: the same ground, ink and the one red. */
.brand img { width: 36px; height: 19px; }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--raise); }

.gd-top { padding-bottom: clamp(56px, 8vw, 110px); }
.gd-head { max-width: 860px; margin-bottom: clamp(32px, 5vw, 56px); }
.gd-head .page-h1 em { font-style: normal; color: var(--red-ink); }
.gd-lead p { margin: 0 0 10px; }
.gd-lead p:last-child { margin-bottom: 0; }
.gd-lead b { color: var(--ink); }
.gd-facts { color: var(--ink-3); font: 500 13px/1.5 var(--f-mono); }

/* breadcrumb: Momen / Panduan / this page */
.gd-crumbs { margin-bottom: 22px; }
.gd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13.5px; color: var(--ink-3); }
.gd-crumbs li { display: inline-flex; align-items: center; }
.gd-crumbs li + li::before { content: ""; width: 4px; height: 12px; margin: 0 10px; border-radius: 1px; background: var(--line-2); transform: skewX(-24deg); }
.gd-crumbs a { color: var(--ink-2); }
.gd-crumbs a:hover { color: var(--ink); }
.gd-crumbs [aria-current] { color: var(--ink); }

/* the hub: a heading per group, then cards */
.gd-h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 800 clamp(22px, 2.6vw, 30px)/1.1 var(--f-display); font-stretch: 110%; }
.gd-h2::before { content: ""; flex: none; width: 6px; height: 22px; border-radius: 2px; background: var(--red); transform: skewX(-24deg); }
.gd-grid + .gd-h2 { margin-top: clamp(48px, 7vw, 80px); }
.gd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gd-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px; border-radius: var(--r-pane); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s; }
.gd-card:hover { border-color: var(--red); background: var(--raise); transform: translateY(-2px); }
.gd-card h3 { font: 750 19px/1.2 var(--f-display); font-stretch: 106%; }
.gd-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; flex: 1; }
.gd-num { color: var(--red-ink); font-size: 13px; font-weight: 600; }
.gd-meta { color: var(--ink-3); font: 500 12.5px/1 var(--f-mono); }
/* the article tag: a slanted red slab, like the tags in the app */
.gd-kind, .gd-pill {
  display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 3px; background: var(--red); color: #fff;
  font: 800 11px/1.3 var(--f-display); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; transform: skewX(-12deg);
}
.gd-pill { padding: 2px 8px; font-size: 10.5px; vertical-align: 3px; margin-right: 4px; }
.gd-note { margin-top: 28px; font-size: 14.5px; }
.gd-note a { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }

/* a section or an article: contents on the side, the text in the middle */
.gd-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.gd-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.gd-toc-h { font: 600 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 4px 0 14px; }
.gd-toc ol, .gd-toc-m ol { list-style: none; margin: 0; padding: 0; }
.gd-toc li a, .gd-toc-m li a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--ink-2); font-size: 13.5px; line-height: 1.35; transition: color .2s, border-color .2s; }
.gd-toc li a:hover, .gd-toc-m li a:hover { color: var(--ink); border-left-color: var(--red); }
.gd-toc .gd-pill, .gd-toc-m .gd-pill { font-size: 9.5px; padding: 1px 6px; vertical-align: 1px; }
.gd-toc-m { display: none; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.gd-toc-m summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 650; display: flex; gap: 10px; align-items: center; }
.gd-toc-m summary::-webkit-details-marker { display: none; }
.gd-toc-m summary::before { content: "+"; color: var(--red-ink); font-weight: 800; width: 12px; }
.gd-toc-m[open] summary::before { content: "\2212"; }
.gd-toc-m ol { padding: 0 18px 14px; }

.gd-main { min-width: 0; max-width: 780px; }
.gd-topic { padding: 30px 0 8px; border-top: 1px solid var(--line); scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 92px); }
.gd-topic:first-of-type { border-top: 0; padding-top: 0; }
.gd-toc-m + .gd-topic { border-top: 0; padding-top: 0; }
.gd-topic h2 { font: 800 clamp(21px, 2.3vw, 26px)/1.2 var(--f-display); font-stretch: 106%; margin: 0 0 14px; }
.gd-topic:target h2 { color: var(--red-ink); }
.gd-body { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.gd-body p { margin: 0 0 14px; }
.gd-body ol, .gd-body ul { margin: 0 0 16px; padding-left: 22px; }
.gd-body li { margin: 6px 0; padding-left: 2px; }
.gd-body b { color: var(--ink); font-weight: 600; }
.gd-body em { color: var(--ink); }
.gd-body h3 { font: 700 16px/1.3 var(--f-body); color: var(--ink); margin: 22px 0 8px; }
/* Articles from DMA (src/Markdown.php): links, quotes, pictures, the cover. */
.gd-body a, .gd-lead a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.gd-body blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 3px solid var(--red); color: var(--ink); }
.gd-body img, .gd-lead img { display: block; max-width: 100%; height: auto; margin: 6px 0 16px; border-radius: var(--r-card); }
.gd-cover { margin: 0 0 clamp(28px, 4vw, 44px); }
.gd-cover img { border-radius: var(--r-pane); border: 1px solid var(--line); }

.gd-related { margin-top: 36px; padding: 22px 24px; border-radius: var(--r-pane); background: var(--panel); border: 1px solid var(--line); }
.gd-related h2 { font: 750 17px/1.2 var(--f-display); font-stretch: 106%; margin: 0 0 10px; }
.gd-related ul { margin: 0; padding-left: 20px; }
.gd-related li { margin: 6px 0; }
.gd-related a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.gd-related a:hover { color: var(--red-ink); }

.gd-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.gd-pager a { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--line); font-weight: 650; transition: border-color .2s; }
.gd-pager a:hover { border-color: var(--red); }
.gd-pager small { color: var(--ink-3); font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.gd-next { grid-column: 2; text-align: right; }
.gd-up { margin-top: 26px; font-size: 14px; }
.gd-up a { color: var(--ink-3); }
.gd-up a:hover { color: var(--ink); }

/* try it: the same two doors as the landing page */
.gd-cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; margin-top: clamp(56px, 8vw, 96px); padding: 32px 34px 32px 44px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-2); }
.gd-cta::before { content: ""; position: absolute; left: 16px; top: 22px; bottom: 22px; width: 8px; border-radius: 2px; background: var(--red); transform: skewX(-12deg); }
.gd-cta h2 { font: 800 clamp(22px, 2.8vw, 32px)/1.1 var(--f-display); font-stretch: 110%; margin: 0 0 8px; }
.gd-cta p { color: var(--ink-2); max-width: 52ch; }
.gd-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1080px) {
  .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); }
  .gd-side { display: none; }
  .gd-toc-m { display: block; }
  .gd-main { max-width: none; }
}
@media (max-width: 620px) {
  .gd-grid, .gd-pager { grid-template-columns: minmax(0, 1fr); }
  .gd-next { grid-column: auto; text-align: left; }
  .gd-cta { padding: 26px 22px 26px 34px; }
  .gd-cta::before { left: 12px; }
  .gd-body { font-size: 15.5px; }
}
@media print { .gd-side, .gd-toc-m, .gd-cta, .gd-pager, footer { display: none; } }
