/* /guides — overview band, then the side menu beside the steps. Uses the
   styles.css tokens; the column lines up with the header (--shell / --pad). */

.gd-in { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }

.gd-hero { background: linear-gradient(180deg, var(--teal-50), #FFFFFF); padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); }
.gd-hero h1 { margin: 14px 0 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.gd-hero__lead { margin: 16px 0 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--z-600); max-width: 56ch; }

/* Topics: the groups as chips, one tap to each. Swipes sideways on phones. */
.gd-chips { display: flex; gap: 10px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gd-chips::-webkit-scrollbar { display: none; }
.gd-chips a { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--z-200); color: var(--z-800); font-size: 15px; font-weight: 600; text-decoration: none; }
.gd-chips a:hover { border-color: var(--teal); color: var(--teal-7); }

.gd-body { display: grid; gap: 40px; padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(56px, 7vw, 110px); }

/* The side menu: hidden on phones (the topic chips do that job), a sticky column from 900px. */
.gd-menu { display: none; }
@media (min-width: 900px) {
  .gd-body { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); }
  .gd-menu { display: block; }
  .gd-menu nav { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
}
.gd-menu__group { padding: 0 0 18px; }
.gd-menu__head { display: block; padding: 6px 12px; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal); text-decoration: none; }
.gd-menu__item { display: block; padding: 8px 12px; border-radius: 10px; color: var(--z-700); font-size: 15px; font-weight: 600; text-decoration: none; }
.gd-menu__item:hover { background: var(--teal-50); color: var(--teal-7); }

/* The steps column. scroll-margin keeps a heading clear of the sticky header after a tap. */
.gd-group { padding-bottom: 24px; scroll-margin-top: 88px; }
.gd-group + .gd-group { border-top: 1px solid var(--z-200); padding-top: 36px; }
.gd-group h2 { margin: 0 0 20px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.025em; }
.gd-feature { padding: 22px 24px; margin-bottom: 16px; border: 1px solid var(--z-200); border-radius: 18px; background: #FFFFFF; scroll-margin-top: 88px; }
.gd-feature h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.gd-feature:target { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-100); }

.gd-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.gd-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.gd-steps__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-7); font-size: 15px; font-weight: 800; }
.gd-steps p { margin: 5px 0 0; font-size: 16px; line-height: 1.6; color: var(--z-700); }

.gd-intro { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--z-600); }
.gd-steps b { color: var(--z-900); font-weight: 700; }
.gd-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--teal-50); color: var(--teal-8); font-size: 15px; line-height: 1.5; }
/* Phones: a narrower card edge and number column, so each step keeps a readable line length. */
@media (max-width: 600px) {
  .gd-feature { padding: 18px 16px; }
  .gd-steps li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .gd-steps__n { width: 28px; height: 28px; font-size: 14px; }
  .gd-steps p { margin-top: 3px; }
}

/* ── Full guides (/guides/<path>) and the hub's path cards ── */

.gd-crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--z-500); }
.gd-crumb a { color: var(--z-500); text-decoration: none; }
.gd-crumb a:hover { color: var(--teal-7); }
.gd-sr, .gd-swap__lbl { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* "Which one are you?": three cards, one per full guide. */
.gd-pick { padding-top: clamp(28px, 4vw, 48px); }
.gd-pick h2, .gd-every h2 { margin: 0 0 18px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.gd-every { padding-top: clamp(40px, 5vw, 64px); }
.gd-every + .gd-body { padding-top: 8px; }
.gd-paths { display: grid; gap: 16px; }
@media (min-width: 760px) { .gd-paths { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.gd-path { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--z-200); border-radius: 20px; background: #FFFFFF; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.gd-path:hover { border-color: var(--teal); box-shadow: 0 12px 30px -18px rgba(4, 47, 46, .35); }
.gd-path__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-7); }
.gd-path__t { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; color: var(--z-900); }
.gd-path__b { font-size: 15px; line-height: 1.55; color: var(--z-600); }
.gd-path__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-path__tags span { padding: 4px 10px; border-radius: 999px; background: var(--z-100); color: var(--z-700); font-size: 13px; font-weight: 600; }
.gd-path__go { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; color: var(--teal-7); font-size: 15px; font-weight: 700; }

/* One full guide: each sub-section is a block of the main column. */
.gd-sec { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--z-200); scroll-margin-top: 88px; }
.gd-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.gd-sec h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.025em; }
.gd-sec:target h2 { color: var(--teal-7); }
.gd-sub { margin: 28px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--z-900); }
.gd-body-text { margin: 12px 0 0; font-size: 17px; line-height: 1.65; color: var(--z-700); max-width: 72ch; }

/* What Otrip does for you: task · by hand · with Otrip. Rows become cards on phones. */
.gd-swap { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--z-200); border-radius: 16px; overflow: hidden; font-size: 15px; line-height: 1.5; }
.gd-swap thead th { padding: 12px 16px; background: var(--z-50); text-align: start; font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--z-500); }
.gd-swap tbody th, .gd-swap td { padding: 14px 16px; border-top: 1px solid var(--z-200); vertical-align: top; text-align: start; }
.gd-swap tbody th { width: 150px; font-weight: 800; color: var(--z-900); }
.gd-swap__before { color: var(--z-500); }
.gd-swap__after { color: var(--z-800); }
.gd-swap th { position: relative; }
.gd-swap__row { display: flex; gap: 8px; align-items: flex-start; }
.gd-swap__row svg { flex: none; margin-top: 2px; color: var(--teal); }
.gd-swap b { color: var(--z-900); }
@media (max-width: 700px) {
  .gd-swap, .gd-swap tbody, .gd-swap tr, .gd-swap th, .gd-swap td { display: block; width: auto; }
  .gd-swap { border: 0; border-radius: 0; overflow: visible; }
  .gd-swap thead { display: none; }
  .gd-swap tr { margin-top: 10px; border: 1px solid var(--z-200); border-radius: 14px; overflow: hidden; }
  .gd-swap tbody th, .gd-swap td { border-top: 0; padding: 10px 14px 0; }
  .gd-swap tbody th { width: auto; padding-top: 14px; }
  .gd-swap__lbl { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; font-weight: 700; color: var(--z-500); }
  .gd-swap__after { margin-top: 8px; padding: 10px 14px 14px !important; background: var(--teal-50); }
}

/* Who does what. */
.gd-roles { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 600px) { .gd-roles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.gd-role { padding: 14px 16px; border: 1px solid var(--z-200); border-radius: 14px; }
.gd-role b { font-size: 15px; color: var(--z-900); }
.gd-role p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--z-600); }

/* Happens automatically, and plain point lists. */
.gd-auto { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--teal-50); }
.gd-auto__k { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal-7); }
.gd-auto .gd-points { margin-top: 10px; }
.gd-points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.gd-points li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.gd-points svg { margin-top: 3px; color: var(--teal); }
.gd-points p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--z-700); }
.gd-points b { color: var(--z-900); }
.gd-sec .gd-steps { margin-top: 16px; }

/* Notes: an info line, now with an icon. */
.gd-note { display: flex; gap: 10px; align-items: flex-start; }
.gd-note svg { flex: none; margin-top: 2px; }
.gd-note b { color: inherit; }

.gd-more h2 { margin-bottom: 18px; }
.gd-menu span.gd-menu__head { cursor: default; }

/* ── Videos: the home page's YouTube videos, linked from the guides ── */
.gd-watches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gd-watch { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border-radius: 17px; background: var(--teal-50); color: var(--teal-7); font-size: 14px; font-weight: 700; text-decoration: none; }
.gd-watch:hover { background: var(--teal-100); }
.gd-watch svg { flex: none; fill: currentColor; }
.gd-hero .gd-watches { margin-top: 18px; }

/* A full guide's own video: beside the title on wide screens, under it on phones. */
.gd-hero__text { min-width: 0; }
@media (min-width: 900px) { .gd-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; } }
.gd-vcard { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 12px; border: 1px solid var(--z-200); border-radius: 20px; background: #FFFFFF; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
@media (min-width: 900px) { .gd-vcard { margin-top: 0; } }
.gd-vcard:hover { border-color: var(--teal); box-shadow: 0 12px 30px -18px rgba(4, 47, 46, .35); }
.gd-vcard__img { position: relative; flex: none; width: 104px; aspect-ratio: 2 / 3; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--z-100); }
.gd-vcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gd-vcard__play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #FFFFFF; }
.gd-vcard__play svg { fill: currentColor; margin-left: 2px; }
.gd-vcard__t { display: grid; gap: 4px; min-width: 0; }
.gd-vcard__k { font-size: 12px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--teal-7); }
.gd-vcard__t b { font-size: 18px; font-weight: 800; color: var(--z-900); }
.gd-vcard__t > span:not(.gd-vcard__k):not(.gd-vcard__go) { font-size: 14.5px; line-height: 1.45; color: var(--z-600); }
.gd-vcard__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--teal-7); }
