/* ==========================================================================
   vendo guides (guides.html): the guides dashboard and one guide per plan.
   Built on tokens.css and site.css. Text sizes only from the --text-* roles.
   ========================================================================== */

body { background: var(--paper); }
.gd {
  min-height: 70vh; max-width: 1120px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 88px);
}
.gd__load { padding: 80px 0; text-align: center; font-size: var(--text-ui); color: var(--ink-3); }
.gd-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-label); line-height: var(--lh-label); font-weight: 500; color: var(--ink-3); }
.gd-eyebrow svg { width: 14px; height: 14px; color: var(--vend); }

/* ---- the dashboard ---------------------------------------------------------- */
.gd-hero { display: grid; justify-items: center; gap: 14px; max-width: 640px; margin: 0 auto clamp(32px, 4vw, 44px); text-align: center; }
.gd-hero h1 { margin: 0; font-family: var(--f-display); font-size: var(--text-heading); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); font-weight: 500; }
.gd-hero p { margin: 0; max-width: 52ch; font-size: var(--text-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); color: var(--ink-2); }
.gd-search { width: min(560px, 100%); margin-top: 10px; box-shadow: var(--sh-2); }
.gd-search svg { width: 18px; height: 18px; color: var(--ink-3); }

.gd-bar { display: grid; gap: 14px; margin-bottom: 18px; }
.gd-types { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-type {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink-2); font: inherit; font-size: var(--text-ui); line-height: var(--lh-ui); letter-spacing: var(--ls-ui); cursor: pointer; box-shadow: var(--sh-1);
  transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast);
}
.gd-type svg { width: 16px; height: 16px; }
.gd-type .n { padding: 1px 7px; border-radius: 99px; background: var(--paper-2); font-family: var(--f-mono); font-size: var(--text-micro); letter-spacing: var(--ls-micro); color: var(--ink-3); }
.gd-type:hover:not(:disabled) { color: var(--ink); border-color: var(--line-2); }
.gd-type[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.gd-type[aria-checked="true"] .n { background: color-mix(in srgb, var(--paper) 18%, transparent); color: var(--paper); }
.gd-type:disabled { opacity: .55; cursor: default; box-shadow: none; }
.gd-type:focus-visible { outline: 2px solid var(--vend); outline-offset: 2px; }
.gd-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-count { margin: 0 0 12px; font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--ink-3); }

.gd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gd-card {
  display: grid; gap: 4px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink);
  text-decoration: none; box-shadow: var(--sh-1); transition: transform var(--d-mid) var(--ease), box-shadow var(--d-mid) var(--ease), border-color var(--d-mid);
}
.gd-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.gd-card:focus-visible { outline: 2px solid var(--vend); outline-offset: 3px; }
.gd-card__top { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gd-card__name { font-size: var(--text-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); font-weight: 500; }
.gd-card__host { font-family: var(--f-mono); font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--ink-3); }
.gd-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--ink-2); }
.gd-card__foot svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform var(--d-mid) var(--ease), color var(--d-mid); }
.gd-card:hover .gd-card__foot svg { transform: translateX(3px); color: var(--vend); }

.gd-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: var(--text-label); line-height: var(--lh-label); font-weight: 500; white-space: nowrap; }
.gd-pill svg { width: 13px; height: 13px; }
.gd-pill--key { color: var(--vend); background: var(--vend-wash); }
.gd-pill--account { color: var(--ok); background: var(--ok-wash); }
.gd-pill--topup { color: var(--ink-2); background: var(--paper-2); }

.gd-empty { display: grid; justify-items: center; gap: 6px; padding: 48px 16px; text-align: center; font-size: var(--text-ui); line-height: var(--lh-caption); color: var(--ink-2); }
.gd-empty svg { width: 56px; height: 56px; margin-bottom: 6px; }
.gd-empty b { font-size: var(--text-body); color: var(--ink); font-weight: 500; }
.gd-empty a { color: var(--link, var(--vend)); }
.gd-empty--page { padding: 80px 16px; }
.gd-empty--page .btn { margin-top: 10px; }

.gd-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: clamp(32px, 4vw, 48px); padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: 16px; }
.gd-help div { display: grid; gap: 3px; }
.gd-help b { font-size: var(--text-ui); line-height: var(--lh-ui); font-weight: 500; }
.gd-help span { font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--ink-2); }
.gd-help a:not(.btn) { color: var(--link, var(--vend)); }
.gd-help .btn svg, .gd-ready .btn svg, .gd-step .btn svg, .gd-empty .btn svg { width: 15px; height: 15px; }

/* ---- one guide ------------------------------------------------------------------ */
.gd-crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--ink-3); }
.gd-crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; }
.gd-crumb a:hover { color: var(--ink); }
.gd-crumb svg { width: 15px; height: 15px; }
.gd-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; margin-bottom: clamp(28px, 4vw, 40px); }
.gd-head .tile { box-shadow: var(--sh-2); }
.gd-head__txt { display: grid; gap: 10px; justify-items: start; }
.gd-head h1 { margin: 0; font-family: var(--f-display); font-size: var(--text-heading); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); font-weight: 500; text-wrap: balance; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: var(--text-ui); line-height: var(--lh-ui); color: var(--ink-2); }
.gd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.gd-meta span + span::before { content: ""; width: 3px; height: 3px; margin-right: 10px; border-radius: 50%; background: var(--ink-3); }
.gd-meta svg { width: 15px; height: 15px; color: var(--ink-3); }

.gd-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.gd-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.gd-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding-bottom: 30px; }
.gd-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line); }
.gd-step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--vend); color: #fff; font-size: var(--text-ui); font-weight: 600; box-shadow: 0 0 0 5px var(--vend-wash); }
.gd-step__txt { display: grid; gap: 8px; justify-items: start; padding-top: 7px; }
.gd-step h2 { margin: 0; font-size: var(--text-title); line-height: var(--lh-title); letter-spacing: var(--ls-title); font-weight: 500; }
.gd-step p { margin: 0; max-width: 60ch; font-size: var(--text-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); color: var(--ink-2); }
.gd-step .btn { margin-top: 4px; }

.gd-side { position: sticky; top: calc(var(--menubar-h) + 24px); display: grid; gap: 12px; }
.gd-ready { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--sh-2); }
.gd-ready h2 { margin: 0; font-size: var(--text-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); font-weight: 500; }
.gd-ready ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.gd-ready li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: var(--text-ui); line-height: var(--lh-caption); color: var(--ink-2); }
.gd-ready li svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--ok-wash); color: var(--ok); }
.gd-promise { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--ok-wash); }
.gd-promise svg { width: 18px; height: 18px; color: var(--ok); margin-top: 1px; }
.gd-promise span { display: grid; gap: 2px; }
.gd-promise b { font-size: var(--text-ui); line-height: var(--lh-ui); font-weight: 500; color: var(--ink); }
.gd-promise small { font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--ink-2); }
.gd-promise a { color: var(--link, var(--vend)); }

.gd-faq { display: grid; gap: 8px; max-width: 760px; margin-top: clamp(24px, 4vw, 40px); }
.gd-faq h2, .gd-related h2 { margin: 0 0 8px; font-size: var(--text-title); line-height: var(--lh-title); letter-spacing: var(--ls-title); font-weight: 500; }
.gd-qa { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.gd-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; list-style: none; cursor: pointer; font-size: var(--text-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); font-weight: 500; }
.gd-qa summary::-webkit-details-marker { display: none; }
.gd-qa summary svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); transition: transform var(--d-mid) var(--ease); }
.gd-qa[open] summary svg { transform: rotate(45deg); }
.gd-qa p { margin: 0; padding: 0 16px 16px; font-size: var(--text-ui); line-height: var(--lh-caption); color: var(--ink-2); }
.gd-qa a { color: var(--link, var(--vend)); }
.gd-related { display: grid; gap: 8px; margin-top: clamp(36px, 5vw, 56px); }

/* ---- footer ------------------------------------------------------------------------ */
.gd-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 24px; padding: 24px var(--gutter) 32px; border-top: 1px solid var(--line); font-size: var(--text-ui); line-height: var(--lh-ui); color: color-mix(in srgb, var(--ink) 45%, transparent); }
.gd-foot a { padding-block: 6px; color: color-mix(in srgb, var(--ink) 60%, transparent); text-decoration: none; }
.gd-foot a:hover { color: var(--ink); }
.gd-foot .wm { color: var(--ink-2); }

/* ---- tablets and phones ---------------------------------------------------------- */
@media (max-width: 900px) {
  .gd-body { grid-template-columns: minmax(0, 1fr); }
  .gd-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .gd-grid { grid-template-columns: minmax(0, 1fr); }
  .gd-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gd-head .tile { --size: 56px !important; }
  .gd-step { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 24px; }
  .gd-step__n { width: 32px; height: 32px; font-size: var(--text-caption); }
  .gd-step:not(:last-child)::before { left: 15px; top: 36px; }
  .gd-step__txt { padding-top: 4px; }
  .gd-types { overflow-x: auto; flex-wrap: nowrap; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .gd-types::-webkit-scrollbar { display: none; }
  .gd-type { flex: none; }
  .gd-foot { font-size: var(--text-caption); line-height: var(--lh-caption); gap: 2px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-card, .gd-card__foot svg, .gd-qa summary svg { transition: none; }
  .gd-card:hover { transform: none; }
}
