/* V4 homepage content only. Shared mobile header and footer styles are in base.css. */
@media (max-width: 900px) {
  .home-page { --canvas: #f2f1f9; --blue: #0e48a0; --home-design-unit: min(1.333333333vw, 10px); --home-gutter: calc(3 * var(--home-design-unit)); background: var(--canvas); }
  .home-page:lang(en) { font-family: Arial, "Helvetica Neue", sans-serif; }
  .home-page .hero { min-height: 0; max-height: none; aspect-ratio: 750 / 279; background: #dce8f7; }
  .home-page .hero::after { display: none; }
  .home-page .hero-swiper img { object-position: center; }
  .home-page .hero-swiper .swiper-pagination { bottom: 24px; }
  .home-page .mobile-step-menu { display: none; }

  .home-page .home-mobile-services[hidden],
  .home-page .home-mobile-services [hidden],
  .home-page .home-step-panel[hidden] { display: none !important; }
  .home-page .home-mobile-services {
    --home-service-toggle-size: calc(5.2 * var(--home-design-unit));
    --home-service-toggle-inset: calc((max(44px, var(--home-service-toggle-size)) - var(--home-service-toggle-size)) / 2);
    position: relative;
    z-index: 6;
    margin: calc(-4.3 * var(--home-design-unit)) calc(2.9 * var(--home-design-unit)) 0;
    padding: 0;
    border-radius: calc(1.6 * var(--home-design-unit));
    background: #fff;
    box-shadow: 0 4px 12px rgba(9, 41, 94, .06);
  }
  .home-page .home-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(3.2 * var(--home-design-unit)) calc(1.4 * var(--home-design-unit)); padding: calc(3.2 * var(--home-design-unit)) calc(1.8 * var(--home-design-unit)) min(18px, calc(3.2 * var(--home-design-unit) - 2px)); }
  .home-page .home-service-item,
  .home-page .home-service-item > summary {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    gap: calc(1.7 * var(--home-design-unit));
    text-align: center;
  }
  .home-page .home-service-item { margin: 0; padding: 0; }
  .home-page .home-service-item > summary { width: 100%; cursor: pointer; list-style: none; }
  .home-page .home-service-item > summary::-webkit-details-marker { display: none; }
  .home-page .home-service-icon {
    display: grid;
    width: calc(9.4 * var(--home-design-unit));
    height: calc(9.4 * var(--home-design-unit));
    flex: none;
    place-items: center;
    border-radius: calc(2.6 * var(--home-design-unit));
    background-color: #edf2fc;
    --svg-icon-color: #0049a7;
  }
  .home-page .home-service-icon::before { display: block; width: calc(5.2 * var(--home-design-unit)); height: calc(5.2 * var(--home-design-unit)); }
  .home-page .home-service-label { font-size: max(12px, calc(2.6 * var(--home-design-unit))); line-height: 1.3077; color: #2b3445; overflow-wrap: break-word; text-wrap: balance; }
  .home-page .home-services-toggle {
    display: grid;
    position: relative;
    width: max(44px, calc(6.4 * var(--home-design-unit)));
    height: max(44px, calc(5.2 * var(--home-design-unit)));
    margin: calc(.2 * var(--home-design-unit) - var(--home-service-toggle-inset)) auto calc(1.8 * var(--home-design-unit) - var(--home-service-toggle-inset));
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }
  .home-page .home-services-toggle::before { position: absolute; top: 50%; left: 50%; width: calc(6.4 * var(--home-design-unit)); height: calc(5.2 * var(--home-design-unit)); border-radius: 999px; background: #edf2fc; transform: translate(-50%, -50%); content: ""; }
  .home-page .home-services-toggle .svg-icon { position: relative; width: calc(2.5 * var(--home-design-unit)); height: calc(2.5 * var(--home-design-unit)); transition: transform .18s ease; }
  .home-page .home-services-toggle[aria-expanded="true"] .svg-icon { transform: rotate(180deg); }
  .home-page .home-service-submenu {
    position: absolute;
    z-index: 2;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    padding: 8px 14px;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    background: #fff;
    text-align: left;
  }
  .home-page .home-service-submenu a { display: block; min-height: 44px; padding: 11px 4px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

  .home-page .home-content { padding: 12px 14px 28px; }
  .home-page .safe-area { width: 100%; }
  .home-page .notice-stack {
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #073873;
    color: #fff;
    box-shadow: none;
  }
  .home-page .notice-head { display: contents; color: inherit; }
  .home-page .notice-head-title { flex: none; max-width: 28%; }
  .home-page .notice-head-icon, .home-page .notice-media { display: none; }
  .home-page .notice-head h2 { padding: 5px 7px; border-radius: 4px; background: #fff; color: #073873; font-size: 11px; line-height: 1.4; }
  .home-page .notice-board-body { display: block; min-width: 0; flex: 1; order: 2; }
  .home-page .notice-list { display: flex; height: auto; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .home-page .notice-list::-webkit-scrollbar { display: none; }
  .home-page .notice-card { display: flex; min-width: 0; min-height: 44px; flex: 0 0 100%; align-items: flex-start; justify-content: center; flex-direction: column; gap: 4px; border: 0; color: #fff; scroll-snap-align: start; }
  .home-page .notice-title { width: 100%; font-size: 13px; line-height: 1.4; }
  .home-page .notice-card.featured .notice-title { color: #fff; }
  .home-page .notice-date { color: #dbe8fb; font-size: 10px; }
  .home-page .notice-more { min-height: 44px; flex: none; order: 3; gap: 3px; color: #fff; font-size: 11px; }
  .home-page .notice-more .svg-icon { width: 16px; height: 16px; --svg-icon-color: #fff; }

  .home-page .journey-rail { margin-top: 26px; padding: 0; background: transparent; }
  .home-page .journey-rail::before { display: none; }
  .home-page .journey-rail > h2 { margin: 0 auto 16px; color: #09295e; font-size: clamp(19px, 4.4vw, 28px); line-height: 1.4; text-wrap: balance; }
  .home-page .journey-list { gap: 0; padding: 4px 13px; border-radius: 9px; background: #fff; }
  .home-page .journey-step { min-width: 0; }
  .home-page .journey-step::before { position: absolute; top: 36px; bottom: -36px; left: 13px; border-left: 1px dashed #c9d6e8; content: ""; }
  .home-page .journey-step:last-child::before { display: none; }
  .home-page .journey-step-header { position: relative; display: grid; min-height: 0; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 5px 10px; margin: 0; padding: 14px 0; }
  .home-page .journey-step-number { width: 28px; height: 28px; grid-column: 1; grid-row: 1 / span 2; margin-top: 8px; font-size: 15px; }
  .home-page .journey-step-number .svg-icon { width: 17px; height: 17px; }
  .home-page .journey-step-header h3 { min-width: 0; grid-column: 2; margin: 0; color: #0254ad; font-size: 18px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
  .home-page .home-step-toggle { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
  .home-page .home-step-title { position: relative; display: block; width: 100%; padding-right: calc(3.3 * var(--home-design-unit) + 8px); text-wrap: balance; }
  .home-page .home-step-title::after { position: absolute; top: calc((1.5em - 3.3 * var(--home-design-unit)) / 2); right: 0; width: calc(3.3 * var(--home-design-unit)); height: calc(3.3 * var(--home-design-unit)); background: url("../svg-icons/home-step-arrow.svg") center / contain no-repeat; transition: transform .18s ease; content: ""; }
  .home-page .home-step-open .home-step-title::after { transform: rotate(90deg); }
  .home-page .home-step-summary { grid-column: 2; margin: 0; padding-right: 20px; color: #3d434f; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
  .home-page .home-step-open .home-step-summary { display: none; }
  .home-page .home-step-panel { position: relative; padding: 0 0 15px 38px; }
  .home-page .home-step-panel > .journey-more { display: flex; width: fit-content; min-height: 44px; margin: 8px 0 0 auto; font-size: 13px; }
  .home-page .journey-link-grid,
  .home-page .journey-action-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 0; }
  .home-page .journey-link-card,
  .home-page .journey-link-grid--services .journey-link-card { display: grid; min-height: 52px; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 3px 9px; padding: 9px; border-radius: 4px; background: #f1eef8; }
  .home-page .journey-link-card .svg-icon { width: 30px; height: 30px; grid-row: 1 / span 2; margin: 0; padding: 5px; }
  .home-page .journey-link-card strong { display: block; overflow: visible; font-size: 16px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
  .home-page .journey-link-card small,
  .home-page .journey-link-grid--services .journey-link-card small { display: block; grid-column: 2; overflow: visible; margin: 0; color: #3d434f; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
  .home-page .journey-action-card { min-height: 64px; flex-wrap: wrap; gap: 8px; padding: 10px; background: #044ba7; }
  .home-page .journey-action-card > .svg-icon { width: 28px; height: 28px; padding: 5px; }
  .home-page .journey-action-card > span:not(.svg-icon) { flex: 1; }
  .home-page .journey-action-card strong { font-size: 16px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
  .home-page .journey-action-card small { color: #fff; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
  .home-page .journey-action-card b { min-height: 28px; margin-left: 36px; font-size: 12px; white-space: normal; }
  .home-page .journey-action-card.is-disabled { background: #747d8c; }
  .home-page .journey-action-card:not(.is-disabled):hover,
  .home-page .journey-action-card:not(.is-disabled):focus-visible,
  .home-page .journey-action-card:not(.is-disabled):active { background: #f5bb00; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(245, 187, 0, .3); }
  .home-page .journey-action-card:not(.is-disabled):hover > .svg-icon,
  .home-page .journey-action-card:not(.is-disabled):focus-visible > .svg-icon,
  .home-page .journey-action-card:not(.is-disabled):active > .svg-icon { --svg-icon-color: #f5bb00; }
  .home-page .journey-link-card:hover,
  .home-page .journey-link-card:focus-visible,
  .home-page .journey-link-card:active { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20, 73, 160, .14); }

  .home-page .ad-column { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; align-items: start; }
  .home-page .ad-column .ad-card { width: 100%; min-width: 0; border-radius: 5px; box-shadow: none; }
  .home-page .ad-column > .ad-card { margin: 0 !important; }
  .home-page .ad-column .ad-card.tall { grid-column: 1; grid-row: 1 / span 2; height: auto; aspect-ratio: 338 / 585; }
  .home-page .ad-column .ad-card.jd { grid-column: 2; grid-row: 1; height: auto; aspect-ratio: 336 / 226; }
  .home-page .ad-column > .ad-card--standalone { grid-column: 2; grid-row: 2; align-self: end; height: auto; aspect-ratio: 340 / 161; }
  .home-page .home-ad-preview { grid-column: 2; grid-row: 2; height: auto; aspect-ratio: 340 / 161; }
  .home-page .ad-column:has(> .home-ad-preview) .ad-card.tall { grid-row: 1 / span 3; }
  .home-page .ad-column:has(> .home-ad-preview) > .ad-card--standalone { grid-row: 3; }
  .home-page .ad-column:has(> .home-ad-preview) > .small-ad-swiper { grid-row: 4; }
  .home-page .small-ad-swiper { width: 100%; min-width: 0; grid-column: 1 / -1; grid-row: 3; margin: 6px 0 0; padding-bottom: 18px; overflow: hidden; }
  .home-page .small-ad-swiper .swiper-wrapper { display: flex; gap: 0; }
  .home-page .home-ad-rail-heading { margin-bottom: calc(1.3 * var(--home-design-unit)); color: #0e48a0; font-size: max(13px, calc(2.6 * var(--home-design-unit))); font-weight: 700; line-height: 1.3077; }
  .home-page .small-ad-swiper .swiper-slide { height: auto; aspect-ratio: 340 / 161; }
  .home-page .small-ad-swiper .swiper-pagination { bottom: 0; line-height: 10px; }
  .home-page .small-ad-swiper .swiper-pagination-bullet { background: #0e48a0; }
  .home-page .ad-badge { right: 3px; min-width: 24px; height: 18px; font-size: 10px; }
  .home-page .ad-card.tall .swiper-pagination,
  .home-page .ad-card.jd .swiper-pagination { bottom: 8px; padding: 0; text-align: center; }
  .home-page .ad-card.tall img { object-position: center; }
  .home-page .ad-column:not(:has(.tall)) > .ad-card.jd,
  .home-page .ad-column:not(:has(.tall)) > .ad-card--standalone { grid-column: auto; grid-row: auto; }

  .home-page .discover-heading { gap: 7px; margin: 24px 0 10px; }
  .home-page .section-mark { width: 34px; height: 34px; background: #eaf0fb; }
  .home-page .section-mark .svg-icon { width: 20px; height: 20px; }
  .home-page .discover-heading h2 { font-size: 18px; }
  .home-page .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; overflow: visible; padding: 0; }
  .home-page .city-card { min-width: 0; border-radius: 5px; box-shadow: none; }
  .home-page .city-card img { width: 100%; aspect-ratio: 680 / 390; object-fit: cover; }
  .home-page .city-body { padding: 10px; }
  .home-page .city-body h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
  .home-page .city-body p { color: #4b5360; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .home-page .city-link { gap: 5px; padding-top: 10px; font-size: 12px; }
  .home-page .city-link .svg-icon { width: 16px; height: 16px; flex: none; }
  .home-page .city-card:hover { transform: none; box-shadow: none; }

  .home-page .home-step-toggle:focus-visible,
  .home-page .home-mobile-services a:focus-visible,
  .home-page .home-mobile-services summary:focus-visible,
  .home-page .home-services-toggle:focus-visible { outline: 2px solid #0e48a0; outline-offset: 3px; }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .home-page .home-step-title::after,
  .home-page .home-services-toggle .svg-icon { transition: none; }
}
