/* HW-08 · Separate medical articles, clinic packages and social updates. */
.home-v7 .h7-latest-head--articles {
  grid-template-columns: minmax(0, 760px);
  margin-bottom: 28px;
}

.home-v7 .h7-editorial-band {
  margin-top: 62px;
  padding-top: 54px;
  border-top: 1px solid var(--h7-border);
}

.home-v7 .h7-editorial-band-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.home-v7 .h7-editorial-band-head h3 {
  margin: 7px 0 8px;
  color: var(--h7-ink);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.home-v7 .h7-editorial-band-head p {
  max-width: 680px;
  margin: 0;
  color: var(--h7-muted);
  font-size: 14px;
  line-height: 1.65;
}

.home-v7 .h7-editorial-band-head > a,
.home-v7 .h7-social-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid #D7B996;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.78);
  color: #6E4528;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-v7 .h7-latest-skeleton--poster {
  min-height: 390px;
}

.home-v7 .h7-latest-packages .h7-latest-card-grid.is-poster-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
}

.home-v7 .h7-latest-packages .h7-latest-poster-card {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
}

.home-v7 .h7-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.home-v7 .h7-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.home-v7 .h7-social-card {
  display: grid;
  min-width: 0;
  grid-template-rows: 180px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--h7-border);
  border-radius: 20px;
  background: var(--h7-surface);
  color: inherit;
  text-decoration: none;
}

.home-v7 .h7-social-media {
  width: 100%;
  height: 180px;
}

.home-v7 .h7-social-card-copy {
  display: flex;
  min-width: 0;
  min-height: 184px;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
}

.home-v7 .h7-social-card-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--h7-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-v7 .h7-social-card-copy > small {
  margin-top: 7px;
  color: var(--h7-muted);
  font-size: 10px;
}

.home-v7 .h7-social-card-copy .h7-latest-action {
  margin-top: auto;
}

@media (hover: hover) and (pointer: fine) {
  .home-v7 .h7-social-card:hover {
    transform: translateY(-3px);
    border-color: #CBA979;
    box-shadow: 0 16px 36px rgba(82, 50, 25, 0.12);
  }
}

@media (max-width: 900px) {
  .home-v7 .h7-editorial-band {
    margin-top: 44px;
    padding-top: 36px;
  }

  .home-v7 .h7-editorial-band-head {
    display: block;
    margin-bottom: 20px;
  }

  .home-v7 .h7-editorial-band-head h3 {
    font-size: 28px;
    line-height: 1.25;
  }

  .home-v7 .h7-editorial-band-head p {
    font-size: 13px;
  }

  .home-v7 .h7-editorial-band-head > a,
  .home-v7 .h7-social-links {
    margin-top: 16px;
  }

  .home-v7 .h7-social-links {
    justify-content: flex-start;
  }

  .home-v7 .h7-editorial-band--packages .h7-latest-poster-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 10px;
  }

  .home-v7 .h7-editorial-band--packages .h7-latest-media--poster {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .home-v7 .h7-editorial-band--packages .h7-latest-poster-copy {
    padding: 14px 8px 10px;
  }

  .home-v7 .h7-social-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .home-v7 .h7-social-card {
    min-height: 132px;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    border-radius: 18px;
  }

  .home-v7 .h7-social-media {
    width: 104px;
    height: 100%;
    min-height: 132px;
  }

  .home-v7 .h7-social-card-copy {
    min-height: 132px;
    padding: 13px;
  }

  .home-v7 .h7-social-card-copy > strong {
    margin-top: 7px;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .home-v7 .h7-social-card-copy .h7-latest-action {
    min-height: 28px;
    font-size: 10px;
  }
}

body.home-v7 {
  background: var(--h7-canvas);
  color: var(--h7-ink);
}

/* Commercial announcements no longer compete with the first fold.
   A later slice can restore this slot for urgent operational notices only. */
.home-v7 .announce-bar {
  display: none !important;
}

.home-v7.has-announce .h7-header {
  top: 0 !important;
}

/* Shared light identity header */
.home-v7 .h7-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px max(24px, calc((100% - 1200px) / 2)) !important;
  background: var(--h7-surface);
  border-bottom: 1px solid var(--h7-border);
}

.home-v7 .h7-header.ml-scrolled {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-shadow: 0 10px 30px rgba(44, 31, 20, 0.08);
}

.home-v7 .h7-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--h7-ink);
  text-decoration: none;
}

.home-v7 .h7-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.08;
}

.home-v7 .h7-brand-th {
  overflow: hidden;
  color: var(--h7-ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-v7 .h7-brand-en {
  color: #7A4F2E;
  font-family: var(--font-caps);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.home-v7 .h7-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 22px;
  font-size: 14px;
  font-weight: 600;
}

.home-v7 .h7-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #5E4A3A;
}

.home-v7 .h7-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--h7-gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-v7 .h7-nav a:hover::after,
.home-v7 .h7-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-v7 .h7-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-v7 .h7-header-cta {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--h7-gold);
  color: var(--h7-ink);
  font-weight: 700;
}

.home-v7 .h7-header .wl-hamb {
  border-color: var(--h7-border);
  border-radius: 50%;
  background: var(--h7-surface);
}

/* HW-01 · copy first, portrait second */
.home-v7 section.hero-cap.h7-hero {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr) !important;
  align-items: center !important;
  gap: clamp(38px, 6vw, 86px) !important;
  max-width: 1320px;
  min-height: min(760px, calc(100svh - 68px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) clamp(24px, 5vw, 64px) 54px !important;
  overflow: hidden;
  background: var(--h7-canvas);
}

.home-v7 .h7-hero .ml-blob,
.home-v7 .h7-hero .hero-optic,
.home-v7 .h7-hero .hero-benefit,
.home-v7 .h7-hero .stats-row,
.home-v7 .h7-hero #hero-review {
  display: none !important;
}

.home-v7 .h7-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  margin: 0;
}

.home-v7 .h7-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--h7-bronze-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.home-v7 .h7-hero .hero-title {
  max-width: 11ch;
  margin: 0 0 18px !important;
  color: var(--h7-ink);
  font-family: var(--font-display);
  font-size: clamp(44px, 5.3vw, 70px) !important;
  font-weight: 600;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
  text-wrap: balance;
}

.home-v7 .h7-hero .hero-title .nowrap {
  white-space: nowrap;
}

.home-v7 .h7-hero .hero-doctor-sub {
  max-width: 38ch;
  margin: 0 0 24px;
  color: #75685F;
  font-size: 16px;
  line-height: 1.65;
}

.home-v7 .h7-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 10px;
  max-width: 500px;
  margin-bottom: 14px;
}

.home-v7 .h7-actions .btn {
  min-height: 52px;
  justify-content: center;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.home-v7 .h7-actions .btn-gold {
  border: 1px solid var(--h7-gold);
  background: var(--h7-gold);
  color: var(--h7-ink);
}

.home-v7 .h7-actions .btn-outline {
  border-color: var(--h7-border);
  background: var(--h7-surface);
  color: var(--h7-ink);
}

.home-v7 .h7-hero .hero-reassure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #5E4A3A;
  font-size: 13px;
  line-height: 1.5;
}

.home-v7 .h7-media-col {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
}

.home-v7 .h7-hero .hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 650px;
  border: 1px solid var(--h7-border);
  border-radius: 30px;
  overflow: hidden;
  background: var(--h7-surface);
  box-shadow: var(--h7-shadow);
}

.home-v7 .h7-hero .hero-media::after {
  position: absolute;
  inset: 8% 9%;
  border: 1px solid rgba(168, 117, 71, 0.78);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-v7 .h7-hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.home-v7 .h7-hero .hero-trust {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: block;
  width: min(440px, calc(100% - 32px));
}

.home-v7 .h7-hero #hero-open-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--h7-border);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(76, 49, 28, 0.08);
}

.home-v7 .h7-hero .hero-trust-k {
  grid-row: 1 / span 2;
  margin: 0;
  color: #7A4F2E;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-v7 .h7-hero .hero-trust-row {
  margin: 0;
  white-space: normal;
}

.home-v7 .h7-hero .hero-trust-name,
.home-v7 .h7-hero .hero-trust-hours {
  font-size: 13px;
}

.home-v7 .h7-hero .hero-trust-route {
  grid-column: 3;
  grid-row: 1 / span 2;
  min-width: 72px;
  margin: 0;
  border-color: var(--h7-border);
  background: #fff;
}

/* The global dock owns the repeated booking action. */
.home-v7 .m-bookbar__journey {
  display: none !important;
}

@media (max-width: 980px) {
  .home-v7 .h7-header {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  .home-v7 .h7-nav,
  .home-v7 .h7-header-cta {
    display: none;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  .home-v7 section.hero-cap.h7-hero {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    max-width: 760px;
    min-height: 0;
  }

  .home-v7 .h7-hero-copy {
    max-width: 680px;
  }

  .home-v7 .h7-media-col {
    display: block;
  }

  .home-v7 .h7-hero .hero-media {
    width: 100% !important;
    height: auto !important;
    max-height: 540px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  .home-v7 {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  .home-v7 .h7-header,
  .home-v7 .h7-header.ml-scrolled {
    min-height: 64px;
    padding: 8px 14px !important;
    box-shadow: none;
  }

  .home-v7 .h7-brand-th {
    max-width: min(60vw, 250px);
    font-size: 15px;
  }

  .home-v7 .h7-brand-en {
    font-size: 9px;
  }

  .home-v7 section.hero-cap.h7-hero {
    display: flex !important;
    min-height: 0;
    padding: 20px 16px 26px !important;
    gap: 18px !important;
    overflow: visible;
  }

  .home-v7 .h7-hero-copy {
    order: 1;
    max-width: none;
    margin: 0;
  }

  .home-v7 .h7-eyebrow {
    margin-bottom: 13px;
    font-size: 11px;
  }

  .home-v7 .h7-hero .hero-title {
    max-width: none;
    margin-bottom: 12px !important;
    font-size: clamp(30px, 8.8vw, 35px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
  }

  .home-v7 .h7-hero .hero-doctor-sub {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .home-v7 .h7-actions {
    max-width: none;
    margin-bottom: 11px;
  }

  .home-v7 .h7-actions .btn {
    min-height: 48px;
    padding: 10px 11px;
    border-radius: 13px;
    font-size: 14px;
  }

  .home-v7 .h7-hero .hero-reassure {
    font-size: 12.5px;
  }

  .home-v7 .h7-media-col {
    order: 2;
    display: block;
    width: 100%;
  }

  .home-v7 .h7-hero .hero-trust {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .home-v7 .h7-hero .hero-media {
    width: 100% !important;
    height: auto !important;
    max-height: none;
    aspect-ratio: 1.04 / 1;
    border-radius: 24px !important;
    box-shadow: 0 16px 38px rgba(76, 49, 28, 0.12);
  }

  .home-v7 .h7-hero .hero-media img {
    object-position: 38% 12% !important;
  }

  .home-v7 .h7-hero #hero-open-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 10px 12px;
    border-radius: 18px !important;
  }

  .home-v7 .h7-hero .hero-trust-k {
    grid-column: 1;
    grid-row: 1;
  }

  .home-v7 .h7-hero .hero-trust-row {
    grid-column: 1;
    white-space: nowrap;
  }

  .home-v7 .h7-hero #hero-clinic-row {
    grid-row: 2;
  }

  .home-v7 .h7-hero #hero-shop-row {
    grid-row: 3;
  }

  .home-v7 .h7-hero .hero-trust-route {
    grid-column: 2;
    grid-row: 1 / span 3;
    min-width: 64px;
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .home-v7 .m-bookbar,
  .home-v7 .m-bookbar.show,
  .home-v7 .m-bookbar.v6-journey-visible {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) !important;
    transform: translateY(120%) !important;
    background: var(--h7-surface);
    border-color: var(--h7-border);
    box-shadow: 0 -10px 30px rgba(44, 31, 20, 0.1);
  }

  .home-v7 .m-bookbar.show {
    transform: translateY(0) !important;
  }

  .home-v7 .m-bookbar:not(.show) {
    pointer-events: none;
  }

  .home-v7 .m-bookbar .btn {
    min-width: 0;
    min-height: 52px;
    flex: 1 1 auto !important;
    justify-content: center;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
  }

  .home-v7 .m-bookbar .h7-line-btn {
    border: 1px solid var(--h7-border);
    background: #fff;
    color: var(--h7-ink);
  }

  .home-v7.v6-journey-nav-open {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 370px) {
  .home-v7 .h7-hero .hero-title {
    font-size: 30px !important;
  }

  .home-v7 .h7-actions .btn,
  .home-v7 .m-bookbar .btn {
    font-size: 13.5px;
  }

  .home-v7 .h7-hero .hero-trust-name,
  .home-v7 .h7-hero .hero-trust-hours {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-v7 .h7-nav a::after,
  .home-v7 .h7-header,
  .home-v7 .h7-hero * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
