/* Homepage guide layout (WI-03). Loaded from Home.razor HeadContent so the
   rules apply even if the Blazor CSS isolation bundle is missing. Tokens come
   from site-design.css. Keep in sync with Components/Pages/Home.razor.css. */

.home-guide #what,
.home-guide #why,
.home-guide #types,
.home-guide #see,
.home-guide #plan,
.home-guide #faq {
  scroll-margin-top: calc(var(--header-h) + var(--space-6));
}

/* Cap the homepage content well at large desktops (~1440–1560px).
   Hero/route/CTA backgrounds stay full-bleed on their sections. */
.home-guide {
  --guide-well: 1560px;
}
.home-guide .container {
  max-width: var(--guide-well);
}

.home-guide .guide-toc {
  background: var(--ice-50);
  border-bottom: 1px solid var(--line);
}
.home-guide .guide-toc__group {
  max-width: var(--guide-well);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.home-guide .guide-toc__label {
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); flex-shrink: 0;
}
.home-guide .guide-toc__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.home-guide .guide-toc__link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
.home-guide .guide-toc__link:hover { border-color: var(--sea-500); color: var(--ink); }
.home-guide .guide-toc__num { color: var(--sea-500); font-family: var(--font-display); font-weight: 700; }

.home-guide .guide-basics__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: var(--space-16); align-items: center;
}
.home-guide .guide-basics__content { display: flex; flex-direction: column; gap: var(--space-5); }
.home-guide .guide-continents {
  display: flex; margin-top: var(--space-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.home-guide .guide-continents__item { flex: 1; padding: var(--space-5) var(--space-6); border-right: 1px solid var(--line); }
.home-guide .guide-continents__item:last-child { border-right: 0; }
.home-guide .guide-continents__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--navy-700); }
.home-guide .guide-continents__text { font-size: 14px; color: var(--ink-muted); }
.home-guide .guide-basics__figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.home-guide .guide-basics__figure img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); }

.home-guide .guide-reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.home-guide .guide-reason {
  display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-7, 28px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.home-guide .guide-reason__icon {
  width: 52px; height: 52px; border-radius: 26px; background: var(--sky-100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; color: var(--sea-500);
}
.home-guide .guide-reason__icon svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

.home-guide .guide-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.home-guide .guide-type {
  display: flex; gap: var(--space-5); padding: var(--space-6);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink);
}
.home-guide .guide-type:hover { border-color: var(--sea-500); color: var(--ink); }
.home-guide .guide-type__icon {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; background: var(--ice-50);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--sea-500);
}
.home-guide .guide-type__icon svg {
  width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.home-guide .guide-type__body { display: flex; flex-direction: column; gap: 6px; }
.home-guide .guide-type__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); }
.home-guide .guide-type__name { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; color: var(--navy-700); }

.home-guide .guide-route { background: var(--night-900); padding-block: var(--space-18); color: var(--white); }
.home-guide .guide-route__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42.5rem);
  gap: var(--space-16);
  align-items: start;
}
.home-guide .guide-route__intro { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.home-guide .guide-route__eyebrow { color: var(--sky-200); }
.home-guide .guide-route__title { color: var(--white); }
.home-guide .guide-route__lead { color: var(--on-dark-muted); }
.home-guide .guide-route__img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); margin-top: var(--space-2); }
.home-guide .guide-route__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); min-width: 0; }
.home-guide .guide-route__card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-7, 28px); }
.home-guide .guide-route__card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); gap: var(--space-3); }
.home-guide .guide-route__list { list-style: none; margin: 0; padding: 0; }
.home-guide .guide-route__list li {
  padding: var(--space-3) 0; border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 600;
}
.home-guide .guide-route__list li:last-child { border-bottom: 0; }

.home-guide .guide-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.home-guide .guide-plan__card {
  display: flex; gap: var(--space-4); padding: var(--space-6);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.home-guide .guide-plan__icon {
  width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--sea-500);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--sea-500);
}
.home-guide .guide-plan__text { display: flex; flex-direction: column; gap: 4px; }

.home-guide .guide-cta {
  position: relative; height: 280px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-700); margin-block: var(--space-10);
}
.home-guide .guide-cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.home-guide .guide-cta__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-700) 42%, rgba(5,74,133,0.15) 100%); }
.home-guide .guide-cta__content { position: relative; max-width: 560px; height: 100%; padding: var(--space-8) var(--space-8); display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); }
.home-guide .guide-cta__eyebrow { color: var(--sky-200); }
.home-guide .guide-cta__title { color: var(--white); }

.home-guide .guide-faq__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.home-guide .guide-faq__intro { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.home-guide .guide-faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.home-guide .guide-faq__item { border-bottom: 1px solid var(--line); }
.home-guide .guide-faq__q {
  padding: 18px 0; font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.home-guide .guide-faq__q::-webkit-details-marker { display: none; }
.home-guide .guide-faq__q::after { content: "+"; font-size: 22px; color: var(--sea-500); flex-shrink: 0; }
.home-guide .guide-faq__item[open] .guide-faq__q::after { content: "\2212"; }
.home-guide .guide-faq__a { padding: 0 0 18px; font-size: 15px; line-height: 23px; color: var(--ink-muted); }

@media (max-width: 1200px) {
  .home-guide .guide-route__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-10); }
  .home-guide .guide-route__img { height: 320px; }
}
@media (max-width: 1024px) {
  .home-guide .guide-basics__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .home-guide .guide-basics__figure { order: -1; }
  .home-guide .guide-basics__figure img { height: 320px; }
  .home-guide .guide-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-guide .guide-types { grid-template-columns: 1fr; }
  .home-guide .guide-route__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .home-guide .guide-route__img { height: 280px; }
  .home-guide .guide-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-guide .guide-faq__grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 640px) {
  .home-guide .guide-toc__group {
    flex-direction: column;
    align-items: center;
    padding: var(--space-5) var(--gutter);
    gap: var(--space-3);
    text-align: center;
  }
  .home-guide .guide-continents { flex-direction: column; }
  .home-guide .guide-continents__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-guide .guide-continents__item:last-child { border-bottom: 0; }
  .home-guide .guide-reasons,
  .home-guide .guide-plan { grid-template-columns: 1fr; }
  .home-guide .guide-type { flex-direction: column; }
  .home-guide .guide-route__lists { grid-template-columns: 1fr; }
  .home-guide .guide-route__img { height: 220px; }
  .home-guide .guide-cta { height: auto; }
  .home-guide .guide-cta__content { padding: var(--space-6); max-width: none; }
}
