:root {
  --guide-ink: #1f6f9f;
  --guide-soft: #eaf6ff;
  --guide-soft-2: #f7fbff;
  --guide-line: #cfe5f3;
}

body[data-stage="living"] {
  --guide-ink: #377a4b;
  --guide-soft: #edf8e9;
  --guide-soft-2: #f7fbf5;
  --guide-line: #d7ead3;
}

body[data-stage="leaving"] {
  --guide-ink: #6a50ae;
  --guide-soft: #f1edff;
  --guide-soft-2: #faf8ff;
  --guide-line: #ddd4f5;
}

.guide-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 4%, var(--guide-soft) 0, transparent 24rem),
    #fffdf9;
}

.guide-page .nav {
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(18px) saturate(1.2);
}

.guide-page .nav-inner {
  height: 72px;
  padding: 0;
}

.guide-page .brand {
  gap: 11px;
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -.02em;
}

.guide-page .brand-logo {
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: contain;
}

.guide-page .brand small {
  color: #8a919e;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .01em;
}

.guide-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-language-slot {
  display: flex;
  flex: none;
  align-items: center;
}

.guide-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  color: #4c5567;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  transition: border-color .18s, color .18s, background-color .18s, transform .18s;
}

.guide-contact-link:hover {
  color: var(--guide-ink);
  border-color: var(--guide-line);
  background: var(--guide-soft-2);
  transform: translateY(-1px);
}

.guide-contact-feedback {
  color: var(--guide-ink);
  border-color: var(--guide-line);
  background: var(--guide-soft);
}

.guide-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: #4c5567;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-line);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  transition: border-color .18s, color .18s, transform .18s;
}

.guide-home-link:hover {
  color: var(--guide-ink);
  border-color: var(--guide-line);
  transform: translateY(-1px);
}

.guide-shell {
  max-width: 1120px;
  padding-top: 30px;
}

.guide-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: #8a919e;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}

.guide-breadcrumb a {
  color: #697386;
  text-decoration: none;
}

.guide-breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-hero {
  padding: 58px 0 48px;
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 48px;
  align-items: end;
}

.guide-hero-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 6.2;
  margin: 34px 0 0;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 32px;
  background: var(--guide-soft);
  box-shadow: 0 22px 56px rgba(25, 38, 60, .11), 0 2px 8px rgba(25, 38, 60, .05);
}

.guide-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.guide-hero-media-medical { background: #fbfaf6; }
.guide-hero-media-medical img { object-fit: contain; object-position: center; }

body[data-stage="arrival"] .guide-hero-media img { object-position: center 45%; }
body[data-stage="living"] .guide-hero-media img { object-position: center 44%; }
body[data-stage="leaving"] .guide-hero-media img { object-position: center 52%; }

.guide-stage {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--guide-ink);
  background: var(--guide-soft);
  font-size: 13px;
  font-weight: 760;
}

.guide-hero h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.1;
  letter-spacing: -.052em;
}

.guide-summary {
  max-width: 760px;
  margin-top: 20px;
  color: #566273;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.guide-answer {
  position: relative;
  overflow: hidden;
  padding: 25px 26px;
  border: 1px solid var(--guide-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 45px rgba(39, 53, 74, .07);
}

.guide-answer::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: var(--guide-soft);
}

.guide-answer span {
  color: var(--guide-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.guide-answer p {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: #354052;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
}

.guide-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 18px;
  align-items: start;
}

.guide-panel {
  border: 1px solid rgba(225, 228, 234, .9);
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 16px 46px rgba(16, 24, 40, .055);
}

.guide-panel-head {
  padding: 25px 26px 18px;
}

.guide-panel-number {
  color: var(--guide-ink);
  font-size: 12px;
  font-weight: 800;
}

.guide-panel h2,
.guide-official h2,
.guide-related h2 {
  margin-top: 5px;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.guide-steps ul {
  list-style: none;
  padding: 0 26px 28px;
}

.guide-step-item {
  position: relative;
  padding: 20px 0;
  border-top: 1px solid #edf0f3;
}

.guide-step-item h3 {
  font-size: 17px;
  line-height: 1.45;
}

.guide-step-item p {
  margin-top: 6px;
  color: #606a79;
  font-size: 14px;
  line-height: 1.75;
}

.guide-side {
  display: grid;
  gap: 18px;
}

.guide-checklist ul,
.guide-reminders ul {
  list-style: none;
  padding: 0 26px 26px;
}

.guide-checklist li,
.guide-reminders li {
  position: relative;
  padding: 12px 0 12px 29px;
  color: #4f5a6b;
  border-top: 1px solid #edf0f3;
  font-size: 14px;
  line-height: 1.65;
}

.guide-checklist li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 2px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--guide-line);
  border-radius: 5px;
  background: var(--guide-soft-2);
}

.guide-reminders {
  background: #fffaf1;
  border-color: #f0dfbd;
}

.guide-reminders .guide-panel-number { color: #a86616; }

.guide-reminders li::before {
  content: "!";
  position: absolute;
  top: 14px;
  left: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #8a5714;
  background: #fdeac5;
  font-size: 11px;
  font-weight: 850;
}

.guide-official {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
  padding: 29px 31px;
  border-radius: 26px;
  color: #fff;
  background: #172033;
}

.guide-official span {
  color: #b8c0cd;
  font-size: 12px;
  font-weight: 760;
}

.guide-official h2 { font-size: 22px; }

.guide-official p {
  margin-top: 7px;
  color: #cbd2dc;
  font-size: 13px;
}

.guide-official .btn-primary {
  flex: none;
  color: #172033;
  background: #fff;
  box-shadow: none;
}

.guide-official .btn-primary:hover {
  color: var(--guide-ink);
  background: var(--guide-soft);
  box-shadow: none;
}

.guide-related {
  padding: 64px 0 20px;
}

.guide-related-head span {
  color: #7a8392;
  font-size: 13px;
  font-weight: 730;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.guide-related-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  color: #2b3546;
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  background: var(--guide-soft-2);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}

.guide-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(16, 24, 40, .07);
}

.guide-related-card strong {
  font-size: 16px;
  line-height: 1.45;
}

.guide-related-card span {
  color: var(--guide-ink);
  font-size: 13px;
  font-weight: 760;
}

.guide-directory-shell { max-width: 1120px; }
.guide-directory-hero {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.82fr);
  align-items: center; gap: 38px; margin-top: 26px; padding: 38px 42px;
  border: 1px solid rgba(23,32,51,.07); border-radius: 30px;
  background: linear-gradient(135deg, #eef8ff 0%, #f5f8ec 55%, #fff5e8 100%);
  box-shadow: 0 18px 46px rgba(23,32,51,.065); overflow: hidden;
}
.guide-directory-hero > div > span { color: #38785f; font-size: 13px; font-weight: 780; }
.guide-directory-hero h1 { margin-top: 10px; font-size: clamp(38px,5.5vw,62px); line-height: 1.06; letter-spacing: -.05em; }
.guide-directory-hero p { max-width: 650px; margin-top: 17px; color: #566172; font-size: 16px; line-height: 1.75; }
.guide-directory-hero figure { min-width: 0; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.68); }
.guide-directory-hero img { display: block; width: 100%; height: 100%; object-fit: contain; }
.guide-directory-controls {
  margin-top: 24px; padding: 25px; border: 1px solid rgba(23,32,51,.08);
  border-radius: 24px; background: #fff; box-shadow: 0 12px 34px rgba(23,32,51,.05);
}
.guide-directory-controls > label { display: block; margin-bottom: 8px; color: #344054; font-size: 14px; font-weight: 760; }
.guide-directory-controls > input {
  width: 100%; min-height: 54px; padding: 0 17px; border: 1px solid #cfd6df; border-radius: 16px;
  color: #172033; background: #fff; font: inherit; font-size: 16px;
}
.guide-directory-controls > input:focus { outline: none; border-color: #4486b2; box-shadow: 0 0 0 4px rgba(68,134,178,.14); }
.guide-directory-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.guide-directory-filters button {
  min-height: 40px; padding: 0 15px; border: 1px solid rgba(23,32,51,.1); border-radius: 999px;
  color: #536071; background: #f7f8f9; font: inherit; font-size: 13px; font-weight: 730; cursor: pointer;
}
.guide-directory-filters button.is-active { color: #fff; border-color: #276f99; background: #276f99; }
.guide-directory-status { margin-top: 12px; color: #697386; font-size: 12.5px; font-weight: 680; }
.guide-directory-groups { padding: 16px 0 20px; }
.guide-directory-group { padding-top: 46px; }
.guide-directory-group-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.guide-directory-group-head > span {
  order: 2; min-height: 31px; padding: 6px 11px; border-radius: 999px;
  color: #4f5b6b; background: #eef1f4; font-size: 12px; font-weight: 760;
}
.guide-directory-group-head h2 { font-size: clamp(25px,3vw,34px); line-height: 1.2; letter-spacing: -.035em; }
.guide-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.guide-directory-card {
  --directory-ink:#39779d;
  display: flex; min-width: 0; min-height: 176px; flex-direction: column; padding: 20px;
  border: 1px solid rgba(23,32,51,.075); border-radius: 21px; color: #293548;
  background: #fff; text-decoration: none; box-shadow: 0 9px 24px rgba(23,32,51,.045);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.guide-directory-card:hover { transform: translateY(-3px); border-color: var(--directory-ink); box-shadow: 0 16px 34px rgba(23,32,51,.08); }
.guide-directory-card-arrival { --directory-ink:#176fa7; }
.guide-directory-card-living { --directory-ink:#357d48; }
.guide-directory-card-leaving { --directory-ink:#674db0; }
.guide-directory-card > span {
  width: fit-content; margin-bottom: 11px; padding: 4px 9px; border-radius: 999px;
  color: var(--directory-ink); background: color-mix(in srgb,var(--directory-ink) 10%,#fff); font-size: 11px; font-weight: 780;
}
.guide-directory-card strong { font-size: 17px; line-height: 1.42; }
.guide-directory-card p {
  display: -webkit-box; margin-top: 9px; overflow: hidden; color: #5b6575; font-size: 13px; line-height: 1.65;
  -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.guide-directory-empty { margin: 35px 0 70px; padding: 28px; border-radius: 20px; color: #74572f; background: #fff7e8; text-align: center; }

.guide-not-found {
  max-width: 720px;
  margin: 90px auto;
  padding: 48px;
  text-align: center;
  border: 1px solid var(--c-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.guide-not-found > span {
  color: var(--c-danger);
  font-size: 13px;
  font-weight: 760;
}

.guide-not-found h1 {
  margin-top: 10px;
  font-size: 34px;
  letter-spacing: -.035em;
}

.guide-not-found p {
  margin: 12px 0 24px;
  color: var(--c-text-sub);
}

.guide-footer {
  margin-top: 55px;
  background: #fffdf9;
}

@media (max-width: 820px) {
  .guide-page .nav-inner { height: auto; min-height: 60px; padding: 8px 0; flex-wrap: wrap; row-gap: 8px; }

  .guide-page .brand { font-size: 17px; }

  .guide-page .brand-logo { width: 32px; height: 32px; }

  .guide-page .brand small { display: none; }

  .guide-language-slot { margin-left: auto; }

  .guide-nav-actions {
    order: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 100%; gap: 6px;
  }

  .guide-contact-link {
    min-height: 44px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .guide-home-link { display: none; }

  .guide-hero-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .guide-hero { padding: 42px 0 34px; }

  .guide-hero-media {
    aspect-ratio: 16 / 7.4;
    margin-top: 26px;
    border-radius: 26px;
  }

  .guide-answer { max-width: 620px; }

  .guide-body-grid { grid-template-columns: 1fr; }

  .guide-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .guide-official {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-directory-hero { grid-template-columns: 1fr; padding: 32px; }
  .guide-directory-hero figure { aspect-ratio: 16 / 7.4; }
  .guide-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .guide-shell {
    padding-right: 16px;
    padding-left: 16px;
    padding-top: 19px;
  }

  .guide-breadcrumb { font-size: 12px; }

  .guide-hero { padding: 32px 0 28px; }

  .guide-hero-media {
    aspect-ratio: 4 / 2.45;
    margin-top: 22px;
    border-radius: 21px;
    box-shadow: 0 15px 38px rgba(25, 38, 60, .1);
  }

  .guide-hero h1 {
    margin-top: 13px;
    font-size: clamp(30px, 10vw, 42px);
  }

  .guide-summary {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.7;
  }

  .guide-answer {
    padding: 20px;
    border-radius: 20px;
  }

  .guide-panel { border-radius: 21px; }

  .guide-panel-head { padding: 21px 20px 14px; }

  .guide-panel h2,
  .guide-related h2 { font-size: 20px; }

  .guide-steps ul { padding: 0 20px 20px; }

  .guide-step-item { padding: 17px 0; }

  .guide-step-item h3 { font-size: 16px; }

  .guide-side { grid-template-columns: 1fr; }

  .guide-checklist ul,
  .guide-reminders ul { padding: 0 20px 20px; }

  .guide-official {
    margin-top: 18px;
    padding: 23px 21px;
    border-radius: 21px;
  }

  .guide-official h2 { font-size: 19px; }

  .guide-official .btn { width: 100%; }

  .guide-related { padding-top: 48px; }

  .guide-related-grid { grid-template-columns: 1fr; }

  .guide-related-card { min-height: 96px; }

  .guide-directory-hero { gap: 22px; padding: 25px 21px; border-radius: 23px; }
  .guide-directory-hero h1 { font-size: 38px; }
  .guide-directory-hero p { font-size: 14px; }
  .guide-directory-hero figure { aspect-ratio: 3 / 2; border-radius: 19px; }
  .guide-directory-controls { padding: 20px 17px; border-radius: 20px; }
  .guide-directory-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide-directory-filters button { padding: 0 8px; }
  .guide-directory-group { padding-top: 38px; }
  .guide-directory-group-head { display: block; }
  .guide-directory-group-head > span { display: inline-flex; margin-bottom: 8px; }
  .guide-directory-grid { grid-template-columns: 1fr; }
  .guide-directory-card { min-height: 154px; }

  .guide-not-found {
    margin: 55px auto;
    padding: 34px 22px;
  }

  .guide-not-found h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-home-link,
  .guide-contact-link,
  .guide-related-card { transition: none; }
}

.guide-hub-back {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 9px 13px;
  border: 1px solid rgba(27, 42, 65, .1);
  border-radius: 999px;
  background: #fff;
  color: var(--c-text-sub);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.guide-hub-back:hover { color: var(--c-text); border-color: rgba(27, 42, 65, .22); }
.guide-hub-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid rgba(50, 104, 160, .12);
  border-radius: 24px;
  background: linear-gradient(135deg, #eef6ff, #f2fbf6 55%, #fff8e9);
}
.guide-hub-cta span { color: #477194; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.guide-hub-cta h2 { margin: 5px 0 7px; font-size: clamp(22px, 3vw, 30px); }
.guide-hub-cta p { margin: 0; color: var(--c-text-sub); line-height: 1.7; }
.guide-data-table { margin-top: 22px; overflow: hidden; }
.guide-table-wrap { overflow-x: auto; padding: 0 24px 8px; }
.guide-data-table table { width: 100%; min-width: 560px; border-collapse: collapse; }
.guide-data-table th,
.guide-data-table td { padding: 13px 12px; border-bottom: 1px solid rgba(27, 42, 65, .09); text-align: left; vertical-align: top; }
.guide-data-table th { background: #f0f6ff; color: #3b5b78; font-size: 12px; }
.guide-table-source { margin: 10px 24px 22px; color: var(--c-text-sub); font-size: 12px; }

@media (max-width: 680px) {
  .guide-hub-cta { grid-template-columns: 1fr; padding: 22px; }
  .guide-hub-cta .btn { width: 100%; }
  .guide-table-wrap { padding-inline: 18px; }
  .guide-table-source { margin-inline: 18px; }
}
