/* Guides (articles + index): shared by every panduan/<slug>.html, id/panduan/<slug>.html, panduan.html and id/panduan.html.
   Calm reading pages: no line, no dark section, no split text, no motion. Built on the kit tokens (kit/kit.css). */

.guide-page { background: var(--paper); }

/* ---------- head: eyebrow, H1, meta */
.guide-head { padding: clamp(132px, 19vh, 200px) 0 clamp(36px, 5vh, 56px); }
.guide-head .idx { margin-bottom: 30px; }
.guide-title {
  font-weight: 500; font-size: clamp(34px, 4.1vw, 66px); line-height: 1.04; letter-spacing: -.04em;
  text-wrap: balance; max-width: 17em; margin: 0;
}
.guide-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 30px;
  font: 400 12px/1.5 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.guide-meta__sep { color: var(--hair-2); }
.guide-lede { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.45; letter-spacing: -.012em; max-width: 34em; margin-top: 30px; color: var(--ink); }

/* ---------- reading column (~68ch) */
.guide-main { padding: clamp(20px, 3vh, 36px) 0 clamp(72px, 10vh, 120px); border-top: 0; }
.guide-body { grid-column: 2 / 10; max-width: 68ch; min-width: 0; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.68; letter-spacing: -.006em; }
.guide-body > :first-child { margin-top: 0; }
.guide-body p { margin: 0 0 1.15em; }
.guide-body a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; transition: background-size .5s var(--ease); overflow-wrap: anywhere; }
.guide-body a:hover { background-size: 0 1px; background-position: 100% 100%; }
.guide-body strong { font-weight: 500; }
.guide-body em { font-style: italic; }
.guide-body code { font-family: var(--f-mono); font-size: .86em; letter-spacing: 0; padding: .1em .38em; background: var(--paper-2); border: 1px solid var(--hair); overflow-wrap: anywhere; }

.guide-body h2, .guide-body h3, .guide-body h4 { font-weight: 500; text-wrap: balance; scroll-margin-top: calc(var(--nav-h) + 24px); }
.guide-body h2 { font-size: clamp(26px, 2.35vw, 38px); line-height: 1.1; letter-spacing: -.034em; margin: 2.1em 0 .7em; padding-top: 1.1em; border-top: 1px solid var(--hair); }
.guide-body h2:first-child { padding-top: 0; border-top: 0; }
.guide-body h3 { font-size: clamp(21px, 1.7vw, 26px); line-height: 1.18; letter-spacing: -.026em; margin: 1.9em 0 .55em; }
.guide-body h4 { font: 400 12px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1.9em 0 .6em; }
.guide-hr { border: 0; border-top: 1px solid var(--hair); margin: 2.4em 0; }
.guide-hr + h2 { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- lists */
.guide-list { margin: 0 0 1.25em; padding: 0; list-style: none; }
.guide-list li { position: relative; padding-left: 28px; margin: 0 0 .5em; }
.guide-list li > .guide-list { margin: .5em 0 .25em; }
ul.guide-list > li::before { content: ""; position: absolute; left: 2px; top: .86em; width: 12px; height: 1px; background: var(--ink); }
ol.guide-list { counter-reset: g; }
ol.guide-list > li { counter-increment: g; padding-left: 40px; }
ol.guide-list > li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 0; top: .42em; font: 400 12px/1.5 var(--f-mono); color: var(--muted); font-feature-settings: "zero"; }

/* ---------- callout */
.callout { margin: 1.8em 0; padding: 22px 26px 6px; background: var(--paper-2); border: 1px solid var(--hair); border-left: 2px solid var(--accent); font-size: .95em; line-height: 1.6; }
.callout > p, .callout > .guide-list { margin-bottom: 1.1em; }
.callout strong { font-weight: 500; }

/* ---------- table: scrolls sideways inside its own box, never widens the page */
.guide-table-wrap { margin: 1.8em 0 2em; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair); }
.guide-table-wrap:focus-visible, .guide-code:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.guide-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .88em; line-height: 1.5; letter-spacing: -.004em; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--hair); }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
.guide-table thead th { font: 400 11.5px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hair-2); vertical-align: bottom; white-space: nowrap; }
.guide-table tbody th { font-weight: 500; min-width: 9em; }
.guide-table td { min-width: 8em; }
.guide-table th:last-child, .guide-table td:last-child { padding-right: 4px; }

/* ---------- code block */
.guide-code { margin: 1.6em 0; padding: 18px 22px; overflow-x: auto; background: var(--paper-2); border: 1px solid var(--hair); font: 400 14px/1.65 var(--f-mono); letter-spacing: 0; tab-size: 4; }
.guide-code code { padding: 0; background: none; border: 0; font-size: inherit; overflow-wrap: normal; }

/* ---------- sources, related, CTA */
.guide-col { grid-column: 2 / 10; max-width: 68ch; min-width: 0; }
.guide-aside { padding: clamp(36px, 5vh, 56px) 0 0; }
.guide-aside .guide-col { border-top: 1px solid var(--hair); padding-top: 28px; }
.guide-h { font: 400 12px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.guide-sources { margin: 0; padding: 0; list-style: none; counter-reset: s; font-size: 16px; line-height: 1.5; }
.guide-sources li { counter-increment: s; position: relative; padding: 0 0 12px 36px; overflow-wrap: anywhere; }
.guide-sources li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .3em; font: 400 12px/1.5 var(--f-mono); color: var(--muted); }
.guide-sources a { text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.guide-sources a:hover { text-decoration-color: currentColor; }
.guide-sources .src { margin-left: 8px; white-space: nowrap; }
.guide-related { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.guide-rel { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: clamp(17px, 1.3vw, 20px); letter-spacing: -.014em; transition: padding .5s var(--ease); }
.guide-rel:hover { padding-left: 8px; }

.guide-cta { padding: clamp(72px, 10vh, 120px) 0 clamp(96px, 13vh, 160px); }
.guide-h--cta { font: 500 clamp(26px, 2.6vw, 42px)/1.1 var(--f-sans); letter-spacing: -.034em; text-transform: none; color: var(--ink); margin: 0 0 18px; text-wrap: balance; }
.guide-cta__p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; max-width: 36em; margin: 0 0 30px; color: var(--muted); }

/* ---------- index */
.guide-list-sec { padding: clamp(24px, 4vh, 48px) 0 clamp(24px, 4vh, 40px); }
.guide-cards { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.guide-card {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr) 2rem; column-gap: var(--gap); row-gap: 8px;
  padding: 28px 0 30px; border-bottom: 1px solid var(--hair); align-items: baseline;
}
.guide-card__date { grid-row: 1; grid-column: 1; text-transform: uppercase; letter-spacing: .04em; }
.guide-card__t { grid-row: 1; grid-column: 2; font-weight: 500; font-size: clamp(22px, 2.1vw, 34px); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.guide-card__d { grid-row: 2; grid-column: 2; color: var(--muted); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.5; max-width: 44em; }
.guide-card__go { grid-row: 1; grid-column: 3; justify-self: end; transition: transform .5s var(--ease); }
.guide-card:hover .guide-card__go { transform: translateX(6px); }

@media (max-width: 1100px) {
  .guide-body, .guide-col { grid-column: 2 / 12; }
}
@media (max-width: 760px) {
  .guide-page .wrap { padding-left: 20px; padding-right: 20px; }   /* no line spine on these pages */
  .guide-head { padding: 112px 0 28px; }
  .guide-head .idx { margin-bottom: 22px; }
  .guide-title { font-size: clamp(31px, 8.8vw, 40px); line-height: 1.06; }
  .guide-meta { margin-top: 22px; }
  .guide-body { font-size: 17px; line-height: 1.65; }
  .guide-body h2 { margin-top: 1.9em; }
  .callout { padding: 18px 18px 4px; }
  .guide-card { grid-template-columns: minmax(0, 1fr) 1.5rem; padding: 22px 0 24px; }
  .guide-card__date, .guide-card__t, .guide-card__d { grid-column: 1; }
  .guide-card__date { grid-row: 1; }
  .guide-card__t { grid-row: 2; }
  .guide-card__d { grid-row: 3; }
  .guide-card__go { grid-row: 2; grid-column: 2; }
  .guide-cta { padding-bottom: 88px; }
}
