/* The application stylesheet owns fonts, theme tokens and travel surfaces. */
body[data-guide-page] {
  min-height: 100vh;
  line-height: 1.7;
}
a {
  color: hsl(var(--primary));
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 4px;
  border-radius: 8px;
}
h1,
h2,
h3 {
  line-height: 1.25;
  color: hsl(var(--foreground));
}
h1 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
}
h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
p {
  margin-bottom: 16px;
}
ul,
ol {
  padding-left: 24px;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}
li {
  margin-bottom: 10px;
  padding-left: 4px;
}
section[id],
h2[id] {
  scroll-margin-top: 100px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 3000;
  background: hsl(var(--card));
  padding: 10px 18px;
  border-radius: 12px;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: hsl(var(--surface-overlay) / 0.95);
  border-bottom: 1px solid hsl(var(--border-subtle));
  backdrop-filter: blur(20px);
}
.header-inner {
  max-width: 1600px;
  min-height: 64px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
.brand img {
  height: 36px;
  width: auto;
}
.brand-mark,
.brand-dark {
  display: none;
}
.dark .brand-light {
  display: none;
}
.dark .brand-dark {
  display: block;
}
.site-header a {
  text-decoration: none;
}
.desktop-navigation {
  display: flex;
  gap: 8px;
  margin-inline: auto;
}
.site-header nav a,
.language-link,
.sign-in {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}
.site-header a:hover,
.compact-navigation summary:hover {
  background: hsl(var(--surface-hover));
  color: hsl(var(--foreground));
}
.site-header a[aria-current] {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
}
.compact-navigation {
  display: none;
}
.guide-main {
  max-width: 80rem;
  padding-top: 48px;
  padding-bottom: 48px;
}
.index-intro {
  padding: 32px;
  margin-bottom: 32px;
}
.index-intro h1 {
  margin-bottom: 12px;
}
.lead {
  max-width: 720px;
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.button:hover {
  background: hsl(var(--primary) / 0.9);
  text-decoration: none;
}
.section-heading p,
.guide-card > p:not(.card-kind) {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
}
.section-heading {
  margin-bottom: 20px;
}
.section-heading h2 {
  margin-bottom: 8px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.getting-started-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.guide-card:hover {
  border-color: hsl(var(--border));
  box-shadow: var(--shadow-card-hover);
}
.guide-card h3 a {
  color: hsl(var(--foreground));
}
.card-kind {
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
}
.travel-collection {
  margin-top: 40px;
}
.editorial-link {
  margin-top: 28px;
  font-size: 0.875rem;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.guide-article {
  padding: 36px;
}
.article-header {
  max-width: 900px;
}
.byline {
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
}
.answer {
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-top: 24px;
}
.planning-note {
  border-left: 3px solid hsl(var(--primary));
  border-radius: 0 12px 12px 0;
  padding: 12px 18px;
  background: hsl(var(--primary) / 0.06);
  color: hsl(var(--text-body));
  font-size: 0.9375rem;
}
.facts {
  margin: 28px 0 36px;
  border: 1px solid hsl(var(--border-subtle));
  border-radius: 16px;
  background: hsl(var(--surface-sunken));
  overflow: hidden;
}
.facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts dl > div {
  padding: 20px;
  border-right: 1px solid hsl(var(--border-subtle));
}
.facts dl > div:last-child {
  border-right: 0;
}
.facts dt {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 8px;
}
.facts dd {
  font-size: 0.9375rem;
  font-weight: 600;
}
.article-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px;
  margin-top: 36px;
}
.contents {
  position: sticky;
  top: 96px;
  padding-top: 16px;
  border-top: 1px solid hsl(var(--border-subtle));
  font-size: 0.875rem;
}
.contents p {
  font-weight: 600;
  margin-bottom: 12px;
}
.contents ul {
  list-style: none;
  padding: 0;
}
.contents li {
  margin: 0;
  padding: 0;
}
.contents a {
  display: block;
  padding: 10px 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}
.contents a:hover {
  color: hsl(var(--primary));
}
.article-copy {
  max-width: 740px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.article-copy section {
  margin-bottom: 36px;
}
.article-copy p,
.article-copy li {
  line-height: 1.85;
}
.source-reference,
.review-note {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.references {
  font-size: 0.9375rem;
}
.review-note {
  padding-top: 20px;
  border-top: 1px solid hsl(var(--border-subtle));
}
.next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-top: 32px;
}
.next-step h2 {
  margin-bottom: 8px;
}
.next-step p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
}
.next-step .button {
  flex-shrink: 0;
}
.related {
  margin-top: 36px;
}
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 24px;
}
.footer-inner {
  max-width: 96rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  flex-shrink: 0;
}
.footer-brand img {
  height: 24px;
  width: auto;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.75rem;
}
.site-footer a {
  color: #cbd5e1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer a:hover {
  color: white;
}
@media (max-width: 1023px) {
  .site-header {
    top: calc(env(safe-area-inset-top) + 8px);
    margin: 8px 12px 0;
    border: 1px solid hsl(var(--border-subtle));
    border-radius: 22px;
    box-shadow: 0 8px 30px rgb(2 6 23 / 0.12);
  }
  .header-inner {
    min-height: 56px;
    padding-inline: 8px;
    gap: 4px;
  }
  .brand {
    margin-right: auto;
  }
  .brand .brand-mark {
    display: block;
    height: 32px;
  }
  .brand-light,
  .dark .brand-dark {
    display: none;
  }
  .desktop-navigation {
    display: none;
  }
  .compact-navigation {
    display: block;
    position: relative;
  }
  .compact-navigation summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    list-style: none;
    border-radius: 50%;
  }
  .compact-navigation summary::-webkit-details-marker {
    display: none;
  }
  .compact-navigation nav {
    position: absolute;
    top: calc(100% + 12px);
    right: -80px;
    width: 208px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid hsl(var(--border-subtle));
    background: hsl(var(--panel));
    box-shadow: var(--shadow-card-hover);
  }
  .compact-navigation nav a {
    display: flex;
  }
  .language-link,
  .sign-in {
    padding-inline: 10px;
  }
  .guide-main {
    padding-top: 28px;
  }
  .article-grid {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts dl > div:nth-child(2) {
    border-right: 0;
  }
  .facts dl > div:nth-child(-n + 2) {
    border-bottom: 1px solid hsl(var(--border-subtle));
  }
  .next-step {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .guide-main {
    padding-bottom: 32px;
  }
  .index-intro,
  .guide-article,
  .guide-card,
  .next-step {
    padding: 20px;
  }
  h1 {
    font-size: 1.875rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .travel-collection {
    margin-top: 32px;
  }
  .article-grid {
    display: block;
    margin-top: 24px;
  }
  .contents {
    position: static;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid hsl(var(--border-subtle));
  }
  .contents ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
  }
  .contents a {
    font-size: 0.8125rem;
    min-height: 44px;
  }
  .facts dl > div {
    padding: 14px;
  }
  .facts dd {
    font-size: 0.8125rem;
  }
  .next-step .button {
    width: 100%;
  }
  .site-footer {
    padding: 20px;
  }
  .footer-inner {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: no-preference) {
  a,
  .guide-card {
    transition:
      background-color 0.15s,
      border-color 0.15s,
      box-shadow 0.15s;
  }
}
@media print {
  .site-header,
  .site-footer,
  .contents,
  .next-step,
  .related,
  .skip-link {
    display: none;
  }
  .guide-main,
  .guide-article {
    padding: 0;
  }
  .guide-article {
    border: 0;
    box-shadow: none;
  }
  .article-grid {
    display: block;
  }
  .article-copy {
    max-width: none;
  }
  .facts,
  .planning-note {
    break-inside: avoid;
  }
  h2 {
    break-after: avoid;
  }
}
