/* Host guides (/guides/). Loaded after site.css and reuses its tokens. */
.guides { --soft: #e3f0ee; --shadow: 0 18px 40px -28px rgba(24, 32, 38, .45); }
.guides a:focus-visible, .guides summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.guides .nav nav a:not(.btn) { display: inline; }
.guides .nav .btn { white-space: nowrap; }
.guide { max-width: 820px; margin: 0 auto; padding: 4px 22px 40px; }

.guide .crumbs ol, .crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b4b0a6; }
.crumbs a { color: var(--muted); }

.g-head h1 { font-size: clamp(34px, 5.6vw, 52px); font-weight: 800; margin: 0 0 16px; }
.g-head h1 span { color: var(--accent); }
.g-head .lead { font-size: 19px; margin-bottom: 26px; }

.short { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 18px; padding: 18px 22px; margin: 0 0 12px; box-shadow: var(--shadow); }
.short p { margin: 0; }
.short-h { display: flex; align-items: center; gap: .45em; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px !important; }
.short-h svg { width: 18px; height: 18px; }

.guide section { margin-top: 40px; }
.guide h2 { font-size: clamp(25px, 3.4vw, 32px); margin: 0 0 14px; }
.guide h3 { font-size: 18px; margin: 0 0 4px; }
.guide p, .guide li { color: #2c363d; }
.guide ul, .guide ol { padding-left: 1.3em; }
.guide li { margin: 6px 0; }
.guide code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

ul.ticks { list-style: none; padding: 0; }
ul.ticks li { position: relative; padding-left: 32px; margin: 10px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 8px; top: 6px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.kinds { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kinds li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0; }
.kinds p { margin: 0; font-size: 15.5px; color: var(--muted); }
.k-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--accent); }
.k-ic svg { width: 20px; height: 20px; }

.example { background: var(--card); border: 1px dashed #c9c4b8; border-radius: 18px; padding: 16px 20px; margin: 14px 0; }
.example p, .example ul { margin: 0 0 8px; }
.example > :last-child { margin-bottom: 0; }
.ex-h { font-weight: 800; color: var(--accent); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-top: 10px !important; }
.example .ex-h:first-child { margin-top: 0 !important; }

.tpl { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font: 15px/1.55 ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); margin: 14px 0; }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rules > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.rules p { margin: 0; font-size: 16px; }

.cmp { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 15.5px; margin: 14px 0; border: 1px solid var(--line); }
.cmp th, .cmp td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--soft); font-size: 14.5px; }
.cmp tbody th { font-weight: 700; }
.cmp tr:last-child > * { border-bottom: 0; }

.sources { font-size: 14px; color: var(--muted) !important; margin-top: 26px; }

.g-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 2px 20px; margin-bottom: 10px; }
.g-faq summary { cursor: pointer; font-weight: 700; padding: 13px 0; }
.g-faq details p { margin: 0 0 14px; color: var(--muted); }

.cta-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; background: var(--ink); color: #fff; border-radius: 28px; padding: 26px; margin: 40px 0 0; }
.cta-card p { color: #c9d2d8; margin: 0; }
.cta-card .cta-h { color: #fff; font-weight: 800; font-size: 21px; letter-spacing: -.02em; margin-bottom: 6px; }
.cta-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #2a3a42; color: #9fd8d0; }
.cta-ic svg { width: 24px; height: 24px; }
.cta-btns { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cta-btns .btn { min-height: 48px; }
.cta-card .btn.ghost { background: transparent; color: #fff; border-color: #55636c; }
.cta-card .btn.ghost:hover { border-color: #9aa7af; }
.cta-card .btn:not(.ghost) { background: #2c9a8f; color: #0e1a1d; }
.cta-card .btn:not(.ghost):hover { background: #3fb3a6; }

.related { margin-top: 50px; }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-grid.index { margin-top: 10px; }
.g-card { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-decoration: none; color: var(--ink); transition: transform .12s cubic-bezier(.2, .8, .2, 1), box-shadow .12s; }
.g-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.g-card strong { display: block; font-size: 17px; line-height: 1.25; margin-bottom: 4px; }
.g-card > span:last-child > span { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; }
.all { margin-top: 16px; font-weight: 700; }

.q-madeby { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .95rem; color: var(--muted); text-decoration: none; }
.q-madeby svg { height: .8em; width: auto; }
.q-madeby:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .kinds, .rules, .g-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; padding: 22px; }
  .cta-btns { grid-column: 1; }
  .cta-btns .btn { flex: 1 1 100%; }
  .guides .nav nav { gap: 14px; }
  .guides .nav nav a:not(.btn) { font-size: 14px; }
  .cmp { font-size: 14px; }
  .cmp th, .cmp td { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .g-card, .btn { transition: none; } .g-card:hover, .btn:hover { transform: none; } }
@media (max-width: 480px) { .guides .nav nav a:not(.btn) { display: none; } }
@media print {
  .nav, .cta-card, .related, .foot, .crumbs { display: none; }
  .guide { max-width: none; padding: 0; }
  .g-faq details { break-inside: avoid; }
}
