/* ==========================================================================
   SmartLaw — hub page "Сімейні спори" (redesign 2026-09)
   Loaded only on the page that uses page-templates/family-hub.php.
   Every rule is scoped under .sl-family-hub; uses theme tokens from style.css
   (--ink-*, --line-*, --gold-*, --text-*, --font-*, --sl-layout-edge).
   One DOM, two compositions: desktop by default, mobile at ≤899px (the
   theme header's own breakpoint). Column counts inside wide blocks follow
   container queries, so tablet widths never squeeze a desktop grid.
   ========================================================================== */

.sl-family-hub {
  /* Inner gutter of the page box (outer alignment lives on .fh-page-wrap). */
  --fh-pad: 32px;
  --fh-gold: var(--gold-500, #d8a747);
  --fh-gold-hover: var(--gold-hover, #f0cd86);
  --fh-gold-active: #c6952f;
  --fh-heading: #f4f0e8;
  --fh-bg-2: var(--ink-850, #0d1420);
  --fh-card: #0f1622;
  --fh-card-hover: #121a27;
  --fh-card-muted: #0c1119;
  --fh-pill-line: #26313f;
  --fh-soft: #a4aab4;
  --fh-muted: #8b929c;
  --fh-muted-2: #7a828f;
  --fh-dim: #7f8794;
  --fh-faint: #5d6673;
  --fh-count: #6d7683;
  --fh-list-text: #dcdfe5;
  --fh-list-text-2: #c4c9d1;
  --fh-list-label: #9aa2ae;
  --fh-divider: #23303f;
  --fh-row-line: #16202c;
  --fh-error: #e0956a;
  --fh-ease: cubic-bezier(.22, .7, .3, 1);
  background: var(--ink-900);
  color: var(--text-200);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
.sl-family-hub *, .sl-family-hub *::before, .sl-family-hub *::after { box-sizing: border-box; }
.sl-family-hub h1, .sl-family-hub h2, .sl-family-hub h3, .sl-family-hub p,
.sl-family-hub ul, .sl-family-hub ol, .sl-family-hub dl, .sl-family-hub dd { margin: 0; padding: 0; }
.sl-family-hub ul, .sl-family-hub ol { list-style: none; }
.sl-family-hub button {
  margin: 0;
  font-family: inherit;
  letter-spacing: inherit;
  text-transform: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.sl-family-hub a { text-decoration: none; }
.sl-family-hub :focus-visible { outline: 2px solid var(--fh-gold); outline-offset: 3px; }
.sl-family-hub img { max-width: 100%; height: auto; display: block; }
.sl-family-hub [hidden] { display: none !important; }

.sl-family-hub .fh-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Width-specific fragments: each utility only ever hides. */
@media (max-width: 899px) { .sl-family-hub .fh-only-desktop { display: none !important; } }
@media (min-width: 900px) { .sl-family-hub .fh-only-mobile { display: none !important; } }

@keyframes fhIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes fhFade { from { opacity: 0; } }
@keyframes fhLine { from { transform: scaleX(0); } }

/* Layout ---------------------------------------------------------------- */
/* Page box aligned with the theme header: margin = --sl-layout-edge (flat
   48px up to a 1440px viewport, growing beyond); framed like the criminal
   hub. Dropped to a flat full width at ≤899 (see the mobile block). */
.sl-family-hub .fh-page-wrap {
  margin: 0 var(--sl-layout-edge, 48px);
  background: var(--ink-900);
  border-left: 1px solid var(--line-700);
  border-right: 1px solid var(--line-700);
}
.sl-family-hub .fh-container {
  /* margin, not padding: blocks combining this class set their own
     vertical padding shorthand. */
  width: calc(100% - (var(--fh-pad) * 2));
  margin-left: var(--fh-pad);
  margin-right: var(--fh-pad);
}
.sl-family-hub .fh-section { position: relative; }
.sl-family-hub .fh-section:focus { outline: none; }

/* Sections fade in once (only when JS is running). */
.sl-family-hub.fh-js [data-fh-reveal] { transition: opacity .55s ease, transform .55s ease; }
.sl-family-hub.fh-js [data-fh-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* Typography ------------------------------------------------------------ */
.sl-family-hub .fh-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fh-gold);
}
.sl-family-hub .fh-h2 { color: var(--fh-heading); line-height: 1.2; }
.sl-family-hub .fh-h2--serif { font-family: var(--font-serif); font-weight: 400; font-size: 38px; }
.sl-family-hub .fh-h2--sans { font-family: var(--font-sans); font-weight: 800; font-size: 30px; color: var(--text-100); }

/* Buttons --------------------------------------------------------------- */
.sl-family-hub .fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 15px 26px;
  border: 0;
  border-radius: 4px;
  background: var(--fh-gold);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s ease, box-shadow .3s ease, gap .3s ease, transform .3s ease, opacity .3s ease;
}
.sl-family-hub .fh-btn:hover { background: var(--fh-gold-hover); color: var(--ink-900); box-shadow: 0 8px 26px rgba(216, 167, 71, .18); }
.sl-family-hub .fh-btn:focus-visible { outline: 2px solid var(--fh-gold-hover); outline-offset: 3px; }
.sl-family-hub .fh-btn:active { background: var(--fh-gold-active); color: var(--ink-900); box-shadow: none; transform: translateY(1px); }

.sl-family-hub .fh-textlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(230, 226, 216, .28);
  border-radius: 0;
  background: none;
  color: #e6e2d8;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .3s ease, gap .3s ease;
}
.sl-family-hub .fh-textlink__arrow { color: var(--fh-gold); }
.sl-family-hub .fh-textlink:hover { border-bottom-color: var(--fh-gold); background: none; color: #e6e2d8; gap: 18px; }
.sl-family-hub .fh-textlink:focus-visible { outline-offset: 5px; }
.sl-family-hub .fh-textlink:active { border-bottom-color: var(--fh-gold-active); }

/* Pills (countries, form topics) */
.sl-family-hub .fh-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.sl-family-hub .fh-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--fh-pill-line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-300);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.sl-family-hub .fh-pill:hover { border-color: var(--line-500); background: transparent; color: var(--text-100); }
.sl-family-hub .fh-pill[aria-pressed="true"] { border-color: var(--fh-gold); background: rgba(216, 167, 71, .14); color: var(--fh-gold-hover); }

/* Breadcrumbs ----------------------------------------------------------- */
.sl-family-hub .fh-breadcrumbs {
  padding: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--fh-faint);
}
.sl-family-hub .fh-breadcrumbs a { color: var(--fh-muted); }
.sl-family-hub .fh-breadcrumbs a:hover { color: var(--fh-gold); }
.sl-family-hub .fh-breadcrumbs__sep { color: #3d4550; margin: 0 4px; }
.sl-family-hub .fh-breadcrumbs__current { color: var(--fh-gold); }

/* Hero ------------------------------------------------------------------ */
.sl-family-hub .fh-hero { position: relative; overflow: hidden; }
.sl-family-hub .fh-hero__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sl-family-hub .fh-hero__img {
  position: absolute;
  right: 0; top: 0;
  width: 58%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  opacity: .85;
  animation: fhFade .9s ease .45s both;
}
.sl-family-hub .fh-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink-900) 0%, var(--ink-900) 30%, rgba(11, 16, 23, .75) 46%, rgba(11, 16, 23, .15) 62%, rgba(11, 16, 23, 0) 78%);
}
.sl-family-hub .fh-hero__shade-bottom {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11, 16, 23, 0) 60%, var(--ink-900) 100%);
}
.sl-family-hub .fh-hero__inner { position: relative; z-index: 1; padding: 36px 0 56px; }
.sl-family-hub .fh-hero__content { max-width: 576px; }
.sl-family-hub .fh-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .12em;
  animation: fhIn .5s var(--fh-ease) .05s both;
}
.sl-family-hub .fh-hero__rule {
  display: block;
  width: 64px;
  height: 1px;
  margin-top: 14px;
  background: var(--fh-gold);
  transform-origin: left center;
  animation: fhLine .5s ease .7s both;
}
.sl-family-hub .fh-hero__title {
  margin-top: 18px;
  max-width: 19em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.16;
  color: var(--text-100);
  text-wrap: pretty;
  animation: fhIn .55s var(--fh-ease) .18s both;
}
.sl-family-hub .fh-hero__lead {
  margin-top: 22px;
  max-width: 36em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-200);
  animation: fhIn .55s var(--fh-ease) .32s both;
}
.sl-family-hub .fh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
  animation: fhIn .55s var(--fh-ease) .46s both;
}
.sl-family-hub .fh-hero__primary { gap: 14px; padding: 16px 28px; white-space: nowrap; }
.sl-family-hub .fh-hero__primary:hover { gap: 20px; }
.sl-family-hub .fh-hero__note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fh-muted);
  animation: fhIn .5s ease .6s both;
}
.sl-family-hub .fh-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 40px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fh-muted);
  cursor: pointer;
  transition: color .3s ease;
  animation: fhIn .5s ease .8s both;
}
.sl-family-hub .fh-more__arrow { font-size: 14px; }
.sl-family-hub .fh-more:hover { background: none; color: var(--fh-gold); }
.sl-family-hub .fh-more:focus-visible { outline-offset: 5px; }

/* "Первинний аналіз" (mobile only) */
.sl-family-hub .fh-analysis {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--fh-bg-2);
  border: 1px solid var(--line-600);
  border-top: 2px solid var(--fh-gold);
  animation: fhIn .5s ease .38s both;
}
.sl-family-hub .fh-analysis__icon { flex: none; margin-top: 2px; color: var(--fh-gold); }
.sl-family-hub .fh-analysis__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--fh-gold); }
.sl-family-hub .fh-analysis__text { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text-200); }

/* 01 · Directions -------------------------------------------------------- */
.sl-family-hub .fh-directions {
  padding: 76px 0 88px;
  border-top: 1px solid var(--line-800);
  background: linear-gradient(180deg, #0e1521 0%, var(--ink-900) 100%);
}
.sl-family-hub .fh-directions__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.sl-family-hub .fh-directions__head .fh-h2 { max-width: 16em; }
.sl-family-hub .fh-directions__hint { max-width: 24em; font-size: 16px; line-height: 1.55; color: var(--fh-soft); }

.sl-family-hub .fh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1a2230;
}
.sl-family-hub .fh-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--fh-pill-line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-300);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.sl-family-hub .fh-filter:hover { border-color: var(--line-500); background: transparent; color: var(--text-100); }
.sl-family-hub .fh-filter__count { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--fh-count); }
.sl-family-hub .fh-filter.is-active,
.sl-family-hub .fh-filter.is-active:hover { border-color: var(--fh-gold); background: var(--fh-gold); color: var(--ink-900); font-weight: 700; }
.sl-family-hub .fh-filter.is-active .fh-filter__count { color: rgba(11, 16, 23, .6); }

.sl-family-hub .fh-dgrid-wrap { margin-top: 28px; container-type: inline-size; container-name: fh-dir; }
/* Three columns on every desktop width, as in the mock; narrower grids
   scale the card contents down instead (see "Narrower desktop grids"). */
.sl-family-hub .fh-dgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* Card — the title button's ::after stretches over the whole card, so the
   card is clickable everywhere while the panel (CTA, link, lists) sits
   above that layer. */
.sl-family-hub .fh-dcard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "cat num"
    "title title"
    "desc desc"
    "panel panel"
    "action arrow";
  grid-template-rows: auto auto auto auto 1fr;
  min-width: 0;
  min-height: 236px;
  padding: 26px 28px 24px;
  border: 1px solid var(--line-700);
  border-radius: 12px;
  background: var(--fh-card);
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease, opacity .35s ease;
}
.sl-family-hub .fh-dcard--featured { min-height: 308px; }
.sl-family-hub .fh-dcard__glow {
  position: absolute;
  top: -90px; right: -70px;
  z-index: -1;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 167, 71, .16) 0%, rgba(216, 167, 71, 0) 68%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.sl-family-hub .fh-dcard__ring {
  position: absolute;
  bottom: -120px; left: -60px;
  z-index: -1;
  width: 240px; height: 240px;
  border: 1px solid rgba(216, 167, 71, .18);
  border-radius: 50%;
  opacity: .18;
  transform: scale(.86);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.sl-family-hub .fh-dcard__cat {
  grid-area: cat;
  align-self: start;
  padding-top: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fh-gold);
}
.sl-family-hub .fh-dcard__num {
  grid-area: num;
  align-self: start;
  padding-left: 16px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  color: rgba(216, 167, 71, .3);
  transition: color .3s ease, transform .3s ease, font-size .3s ease;
}
.sl-family-hub .fh-dcard--featured .fh-dcard__num { font-size: 54px; }
.sl-family-hub .fh-dcard__title {
  grid-area: title;
  max-width: 22em;
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2;
  color: var(--text-100);
  transition: font-size .3s ease;
}
.sl-family-hub .fh-dcard--featured .fh-dcard__title { font-size: 28px; }
/* Only the inner text moves on hover: a transform on the heading itself
   would make it the containing block of the full-card click layer. */
.sl-family-hub .fh-dcard__title-text { display: inline-block; transition: transform .3s ease; }
.sl-family-hub .fh-dcard__toggle {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.sl-family-hub .fh-dcard__toggle:hover,
.sl-family-hub .fh-dcard__toggle:focus { background: none; color: inherit; }
.sl-family-hub .fh-dcard__toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 12px;
}
.sl-family-hub .fh-dcard__toggle:focus-visible { outline: none; }
.sl-family-hub .fh-dcard__toggle:focus-visible::after { outline: 2px solid var(--fh-gold); outline-offset: -4px; }
.sl-family-hub .fh-dcard__desc {
  grid-area: desc;
  max-width: 26em;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fh-soft);
  transition: color .3s ease;
}
.sl-family-hub .fh-dcard__action {
  grid-area: action;
  align-self: end;
  padding-top: 22px;
  font-weight: 700;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: .01em;
  color: var(--fh-dim);
  transition: color .3s ease;
}
.sl-family-hub .fh-dcard__arrow {
  grid-area: arrow;
  align-self: end;
  justify-self: end;
  margin-top: 22px;
  font-size: 17px;
  line-height: 24px;
  color: var(--fh-faint);
  transition: color .3s ease, transform .3s ease, background-color .3s ease;
}
.sl-family-hub .fh-dcard__panel { grid-area: panel; position: relative; z-index: 2; cursor: auto; }

@media (hover: hover) and (min-width: 900px) {
  .sl-family-hub .fh-dcard:not(.is-open):hover { border-color: #33404f; background: var(--fh-card-hover); transform: translateY(-3px); }
  .sl-family-hub .fh-dcard:not(.is-open):hover .fh-dcard__glow { opacity: .85; }
  .sl-family-hub .fh-dcard:not(.is-open):hover .fh-dcard__ring { opacity: .7; transform: none; }
  .sl-family-hub .fh-dcard:not(.is-open):hover .fh-dcard__num { color: rgba(216, 167, 71, .85); transform: translateY(-3px); }
  .sl-family-hub .fh-dcard:not(.is-open):hover .fh-dcard__title-text { transform: translateX(3px); }
  .sl-family-hub .fh-dcard:not(.is-open):hover .fh-dcard__action { color: var(--fh-gold); }
  .sl-family-hub .fh-dcard:not(.is-open):hover .fh-dcard__arrow { color: var(--fh-gold); transform: translateX(5px); }
}

.sl-family-hub .fh-dcard.is-muted { background: var(--fh-card-muted); opacity: .42; }

.sl-family-hub .fh-dcard.is-open {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 38px 40px 34px;
  border-color: rgba(216, 167, 71, .45);
  background: linear-gradient(140deg, #141d2c 0%, #0e1521 60%);
}
.sl-family-hub .fh-dcard.is-open .fh-dcard__glow { opacity: 1; }
.sl-family-hub .fh-dcard.is-open .fh-dcard__ring { opacity: 1; transform: none; }
.sl-family-hub .fh-dcard.is-open .fh-dcard__num { font-size: 64px; color: rgba(216, 167, 71, .85); }
.sl-family-hub .fh-dcard.is-open .fh-dcard__title { font-size: 34px; }
.sl-family-hub .fh-dcard.is-open .fh-dcard__desc { max-width: 46em; color: var(--fh-list-text-2); }
.sl-family-hub .fh-dcard.is-open .fh-dcard__action { align-self: start; padding-top: 28px; color: var(--fh-muted); }
.sl-family-hub .fh-dcard.is-open .fh-dcard__arrow { align-self: start; margin-top: 28px; color: var(--fh-gold); transform: rotate(-90deg); }

.sl-family-hub .fh-dcard__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--fh-divider);
}
.sl-family-hub .fh-dcard__list-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fh-list-label);
}
.sl-family-hub .fh-bullets li,
.sl-family-hub .fh-dashes li {
  position: relative;
  margin-top: 15px;
  font-size: 16px;
  line-height: 1.55;
}
.sl-family-hub .fh-bullets li { padding-left: 19px; color: var(--fh-list-text); }
.sl-family-hub .fh-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fh-gold);
}
.sl-family-hub .fh-dashes li { padding-left: 24px; color: var(--fh-list-text-2); }
.sl-family-hub .fh-dashes li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 10px; height: 1px;
  background: var(--fh-faint);
}
.sl-family-hub .fh-dcard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
/* "Окрема послуга" — hand-off to a separate service page (alimony card). */
.sl-family-hub .fh-service {
  margin-top: 32px;
  padding: 26px 30px 22px 28px;
  border: 1px solid var(--line-600);
  border-left: 2px solid var(--fh-gold);
  border-radius: 8px;
  background: rgba(216, 167, 71, .05);
}
.sl-family-hub .fh-service__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fh-gold);
}
.sl-family-hub .fh-service__title {
  margin: 12px 0 0;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-100);
}
.sl-family-hub .fh-service__desc {
  max-width: 52em;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fh-soft);
}
.sl-family-hub .fh-service__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--fh-gold);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  transition: color .3s ease, gap .3s ease;
}
.sl-family-hub .fh-service__link:hover { gap: 10px; color: var(--fh-gold-hover); }
.sl-family-hub .fh-service__arrow { font-size: 17px; line-height: 1; }

/* Narrower desktop grids (900–1199px viewports): keep three columns, step
   the card's inner scale down so titles and numbers are not squeezed.
   Inside the desktop media query, so the mobile accordion is untouched. */
@media (min-width: 900px) {
  @container fh-dir (max-width: 999px) {
    .sl-family-hub .fh-dgrid { gap: 16px; }
    .sl-family-hub .fh-dcard { min-height: 224px; padding: 24px 24px 22px; }
    .sl-family-hub .fh-dcard--featured { min-height: 292px; }
    .sl-family-hub .fh-dcard__num { padding-left: 12px; font-size: 38px; }
    .sl-family-hub .fh-dcard--featured .fh-dcard__num { font-size: 48px; }
    .sl-family-hub .fh-dcard__title { margin-top: 16px; font-size: 21px; }
    .sl-family-hub .fh-dcard--featured .fh-dcard__title { font-size: 25px; }
  }
  @container fh-dir (max-width: 819px) {
    .sl-family-hub .fh-dgrid { gap: 14px; }
    .sl-family-hub .fh-dcard { padding: 22px 20px 20px; }
    .sl-family-hub .fh-dcard__cat { letter-spacing: .12em; }
    .sl-family-hub .fh-dcard__num { font-size: 34px; }
    .sl-family-hub .fh-dcard--featured .fh-dcard__num { font-size: 42px; }
    .sl-family-hub .fh-dcard__title { font-size: 20px; }
    .sl-family-hub .fh-dcard--featured .fh-dcard__title { font-size: 22px; }
    .sl-family-hub .fh-dcard.is-open { padding: 32px 30px 28px; }
    .sl-family-hub .fh-dcard.is-open .fh-dcard__title { font-size: 30px; }
  }
}

/* 02 · Process ------------------------------------------------------------ */
.sl-family-hub .fh-process { padding: 88px 0 80px; }
.sl-family-hub .fh-process__grid {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  grid-template-areas: "intro route" "cta route";
  grid-template-rows: auto 1fr;
  column-gap: 56px;
}
.sl-family-hub .fh-process__intro { grid-area: intro; min-width: 0; }
.sl-family-hub .fh-process__intro .fh-h2 { margin-top: 14px; }
.sl-family-hub .fh-process__lead { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--fh-soft); }
.sl-family-hub .fh-meter { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.sl-family-hub .fh-meter__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--fh-muted); white-space: nowrap; }
.sl-family-hub .fh-meter__bar { position: relative; flex: 1; height: 1px; overflow: hidden; background: var(--line-700); }
.sl-family-hub .fh-meter__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: calc(var(--fh-pct, .25) * 100%);
  background: var(--fh-gold);
  transition: width .45s ease;
}
.sl-family-hub .fh-process__cta { grid-area: cta; align-self: start; }
.sl-family-hub .fh-process__book {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--fh-gold);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
  transition: gap .3s ease, background-color .3s ease;
}
.sl-family-hub .fh-process__book:hover { gap: 18px; background: none; color: var(--fh-gold); }
.sl-family-hub .fh-process__book:focus-visible { outline-offset: 4px; }

.sl-family-hub .fh-process__route { grid-area: route; position: relative; min-width: 0; }
.sl-family-hub .fh-route__track {
  position: absolute;
  left: 18px; top: 26px; bottom: 26px;
  width: 1px;
  background: var(--line-700);
}
.sl-family-hub .fh-route__fill {
  position: absolute;
  left: 18px; top: 26px;
  width: 1px;
  height: calc((100% - 52px) * var(--fh-pct, .25));
  background: linear-gradient(var(--fh-gold), rgba(216, 167, 71, .45));
  transition: height .45s ease;
}
.sl-family-hub .fh-step {
  position: relative;
  display: flex;
  gap: 22px;
  width: 100%;
  padding: 22px 22px 22px 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  transition: background-color .35s ease;
}
.sl-family-hub .fh-step:hover,
.sl-family-hub .fh-step:focus { background: transparent; color: inherit; }
.sl-family-hub .fh-step.is-active { background: rgba(255, 255, 255, .03); }
.sl-family-hub .fh-step:focus-visible { outline-offset: 4px; }
.sl-family-hub .fh-step__dot {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line-600);
  border-radius: 50%;
  background: var(--ink-800);
  color: var(--fh-count);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, transform .35s ease;
}
.sl-family-hub .fh-step.is-done .fh-step__dot { border-color: rgba(216, 167, 71, .55); background: rgba(216, 167, 71, .14); color: var(--fh-gold-hover); }
.sl-family-hub .fh-step.is-active .fh-step__dot { border-color: var(--fh-gold); background: var(--fh-gold); color: var(--ink-900); transform: scale(1.06); }
.sl-family-hub .fh-step__body { display: block; min-width: 0; }
.sl-family-hub .fh-step__title {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--text-400);
  transition: color .3s ease;
}
.sl-family-hub .fh-step.is-active .fh-step__title,
.sl-family-hub .fh-step.is-done .fh-step__title { color: var(--text-100); }
.sl-family-hub .fh-step__desc { display: block; max-width: 32em; margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--fh-soft); }
.sl-family-hub .fh-step__result {
  display: block;
  max-width: 32em;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fh-dim);
  transition: color .3s ease;
}
.sl-family-hub .fh-step.is-active .fh-step__result { color: var(--fh-list-text-2); }
.sl-family-hub .fh-step__result-label { font-weight: 700; color: var(--fh-gold); }

/* 03 · Cross-border ------------------------------------------------------- */
.sl-family-hub .fh-cross {
  padding: 76px 0;
  background: var(--fh-bg-2);
  border-top: 1px solid var(--line-800);
  border-bottom: 1px solid var(--line-800);
}
.sl-family-hub .fh-cross__wrap { container-type: inline-size; container-name: fh-cross; }
.sl-family-hub .fh-cross__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.sl-family-hub .fh-cross__intro { min-width: 0; }
.sl-family-hub .fh-cross__title { max-width: 14em; margin-top: 18px; }
.sl-family-hub .fh-cross__tag { margin-top: 14px; font-family: var(--font-mono); font-size: 14px; color: var(--fh-gold); }
.sl-family-hub .fh-cross__question {
  max-width: 22em;
  margin-top: 26px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: var(--text-200);
}
.sl-family-hub .fh-cross__text { max-width: 30em; margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--fh-soft); }
.sl-family-hub .fh-cross__countries-label { margin-top: 30px; font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--text-200); }
.sl-family-hub .fh-cross__countries { margin-top: 14px; }
.sl-family-hub .fh-cross__cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 460px;
  margin-top: 26px;
  padding: 20px 28px;
}
.sl-family-hub .fh-cross__note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--fh-muted); }

.sl-family-hub .fh-cross__box { min-width: 0; padding: 34px 36px 30px; border: 1px solid var(--line-600); border-radius: 10px; }
.sl-family-hub .fh-tabs {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-700);
  scrollbar-width: none;
}
.sl-family-hub .fh-tabs::-webkit-scrollbar { display: none; }
.sl-family-hub .fh-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--fh-muted);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.sl-family-hub .fh-tab:hover { background: none; color: var(--text-100); }
.sl-family-hub .fh-tab[aria-selected="true"] { border-bottom-color: var(--fh-gold); color: var(--text-100); }
.sl-family-hub .fh-tab:focus-visible { outline-offset: -2px; }
.sl-family-hub .fh-tabpanels { min-height: 340px; }
.sl-family-hub .fh-tabpanel { animation: fhIn .35s ease both; }
.sl-family-hub .fh-tabpanel:focus-visible { outline-offset: 4px; }
.sl-family-hub .fh-included__item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--fh-row-line); }
.sl-family-hub .fh-included__num { flex: none; padding-top: 3px; font-family: var(--font-mono); font-size: 13px; line-height: 1.4; color: var(--fh-gold); }
.sl-family-hub .fh-included__title { font-family: var(--font-sans); font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--text-100); }
.sl-family-hub .fh-included__desc { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--fh-soft); }
.sl-family-hub .fh-checklist { padding-top: 6px; }
.sl-family-hub .fh-checklist li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fh-row-line);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fh-list-text);
}
.sl-family-hub .fh-checklist__box { flex: none; width: 14px; height: 14px; margin-top: 4px; border: 1px solid var(--fh-gold); border-radius: 3px; }
.sl-family-hub .fh-checklist__note { margin-top: 18px; font-size: 14.5px; line-height: 1.6; color: var(--fh-muted); }

/* Desktop: two columns as in the mock on every desktop width; narrower
   grids tighten the scale and let the two tab labels wrap instead of
   scrolling. The mobile layout (≤899px) is never affected. */
@media (min-width: 900px) {
  .sl-family-hub .fh-cross__grid { grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr); gap: 64px; }
  @container fh-cross (max-width: 1079px) {
    .sl-family-hub .fh-cross__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; }
    .sl-family-hub .fh-cross__title { font-size: 34px; }
    .sl-family-hub .fh-cross__box { padding: 28px 24px 24px; }
    .sl-family-hub .fh-tabs { gap: 18px; overflow-x: visible; }
    .sl-family-hub .fh-tab { flex: 0 1 auto; min-width: 0; padding-bottom: 12px; font-size: 14.5px; white-space: normal; }
  }
  @container fh-cross (max-width: 819px) {
    .sl-family-hub .fh-cross__grid { gap: 32px; }
    .sl-family-hub .fh-cross__title { font-size: 30px; }
    .sl-family-hub .fh-cross__question { font-size: 20px; }
    .sl-family-hub .fh-cross__box { padding: 24px 20px 20px; }
    .sl-family-hub .fh-cross__cta { padding: 18px 22px; }
  }
}

/* Contact + form ---------------------------------------------------------- */
.sl-family-hub .fh-contact {
  padding: 110px 0 100px;
  border-top: 1px solid var(--line-800);
  background: linear-gradient(120deg, var(--ink-900), #141119);
  outline: none;
}
.sl-family-hub .fh-contact__wrap { container-type: inline-size; container-name: fh-contact; }
.sl-family-hub .fh-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
/* Two columns (contacts | form) on every desktop width, as in the mock. */
.sl-family-hub .fh-contact__info { min-width: 0; }
.sl-family-hub .fh-contact__title { max-width: 15em; font-size: 42px; }
.sl-family-hub .fh-contact__lead { max-width: 26em; margin-top: 20px; font-size: 16.5px; line-height: 1.6; color: #a8adb5; }
.sl-family-hub .fh-contact__phone {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1.2;
  color: var(--fh-gold);
  overflow-wrap: anywhere;
}
.sl-family-hub .fh-contact__phone:hover { color: var(--fh-gold-hover); }
.sl-family-hub .fh-contact__details { margin-top: 22px; font-size: 15.5px; line-height: 1.85; color: #c7ccd2; }
.sl-family-hub .fh-contact__line { display: block; color: inherit; }
.sl-family-hub a.fh-contact__line:hover { color: var(--fh-gold); }
.sl-family-hub .fh-contact__msg { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.sl-family-hub .fh-contact__msg-link {
  display: inline-flex;
  align-items: flex-end;
  min-height: 44px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(230, 226, 216, .3);
  font-size: 16px;
  line-height: 1.3;
  color: #e6e2d8;
  transition: border-color .3s ease, color .3s ease;
}
.sl-family-hub .fh-contact__msg-link:hover { border-bottom-color: var(--fh-gold); color: var(--text-100); }
.sl-family-hub .fh-contact__msg-link--disabled { cursor: default; pointer-events: none; opacity: .55; }

@media (min-width: 900px) {
  .sl-family-hub .fh-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 80px; }
  @container fh-contact (max-width: 1079px) {
    .sl-family-hub .fh-contact__grid { gap: 48px; }
    .sl-family-hub .fh-contact__title { font-size: 36px; }
    .sl-family-hub .fh-contact__phone { font-size: clamp(30px, 3.2vw, 38px); }
  }
  @container fh-contact (max-width: 819px) {
    .sl-family-hub .fh-contact__grid { gap: 36px; }
    .sl-family-hub .fh-contact__title { font-size: 32px; }
    .sl-family-hub .fh-contact__phone { font-size: 29px; }
    .sl-family-hub .fh-contact__lead { font-size: 16px; }
  }
}
.sl-family-hub .fh-contact__form-wrap { min-width: 0; padding-top: 6px; }
.sl-family-hub .fh-form { outline: none; }
.sl-family-hub .fh-form__label { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: var(--fh-muted-2); }
.sl-family-hub .fh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sl-family-hub .fh-chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid rgba(216, 167, 71, .3);
  border-radius: 8px;
  background: rgba(216, 167, 71, .08);
  animation: fhIn .35s ease both;
}
.sl-family-hub .fh-chosen__text { min-width: 0; }
.sl-family-hub .fh-chosen__topic { font-size: 16px; line-height: 1.45; color: var(--fh-heading); }
.sl-family-hub .fh-chosen__topic strong { font-weight: 700; color: var(--fh-gold-hover); }
.sl-family-hub .fh-chosen__country { margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--fh-soft); }
.sl-family-hub .fh-chosen__change {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(216, 167, 71, .4);
  border-radius: 0;
  background: none;
  color: var(--fh-gold);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .3s ease;
}
.sl-family-hub .fh-chosen__change:hover { border-bottom-color: var(--fh-gold); background: none; color: var(--fh-gold); }

.sl-family-hub .fh-fields { display: flex; flex-direction: column; gap: 24px; margin-top: 26px; }
.sl-family-hub .fh-field { min-width: 0; }
.sl-family-hub .fh-field__label { display: block; margin-bottom: 8px; font-size: 13.5px; line-height: 1.4; color: var(--fh-muted-2); }
.sl-family-hub .fh-topics .fh-field__label { margin-bottom: 12px; }
.sl-family-hub .fh-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fh-heading);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
  transition: border-color .3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.sl-family-hub .fh-input::placeholder { color: var(--fh-faint); opacity: 1; }
.sl-family-hub .fh-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--ink-900) inset;
  -webkit-text-fill-color: var(--fh-heading);
  caret-color: var(--fh-heading);
}
.sl-family-hub .fh-field.is-filled .fh-input { border-bottom-color: rgba(216, 167, 71, .55); }
.sl-family-hub .fh-field .fh-input:focus { outline: none; border-bottom-color: var(--fh-gold); box-shadow: none; }
.sl-family-hub .fh-field.has-error .fh-input { border-bottom-color: var(--fh-error); }
.sl-family-hub .fh-textarea { min-height: 84px; resize: vertical; }
.sl-family-hub .fh-error { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--fh-error); }
.sl-family-hub .fh-error:empty { display: none; }
.sl-family-hub .fh-topics .fh-error { margin-top: 10px; }

.sl-family-hub .fh-check { position: relative; display: flex; align-items: flex-start; gap: 14px; min-height: 44px; cursor: pointer; }
.sl-family-hub .fh-check__input { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.sl-family-hub .fh-check__box {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid #3a4453;
  border-radius: 4px;
  background: transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.sl-family-hub .fh-check__box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid var(--ink-900);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg);
}
.sl-family-hub .fh-check__input:checked + .fh-check__box { border-color: var(--fh-gold); background: var(--fh-gold); }
.sl-family-hub .fh-check__input:checked + .fh-check__box::after { opacity: 1; }
.sl-family-hub .fh-check__input:focus-visible + .fh-check__box { outline: 2px solid var(--fh-gold); outline-offset: 3px; }
.sl-family-hub .fh-field.has-error .fh-check__box { border-color: var(--fh-error); }
.sl-family-hub .fh-check__text { font-size: 15px; line-height: 1.5; color: var(--fh-soft); }
.sl-family-hub .fh-check__text a { color: var(--fh-gold); text-decoration: underline; text-underline-offset: 2px; }
.sl-family-hub .fh-check__text a:hover { color: var(--fh-gold-hover); }
.sl-family-hub .fh-consent .fh-error { margin-top: 2px; }

.sl-family-hub .fh-send-error {
  padding: 18px 20px;
  border: 1px solid rgba(224, 149, 106, .45);
  border-radius: 8px;
  background: rgba(224, 149, 106, .08);
  animation: fhIn .35s ease both;
}
.sl-family-hub .fh-send-error__text { font-size: 15.5px; line-height: 1.55; color: #f0d3c2; }
.sl-family-hub .fh-send-error__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; }
.sl-family-hub .fh-send-error__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(216, 167, 71, .4);
  border-radius: 0;
  background: none;
  color: var(--fh-gold);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}
.sl-family-hub .fh-send-error__btn:hover { border-bottom-color: var(--fh-gold); background: none; color: var(--fh-gold); }

.sl-family-hub .fh-form__submit { width: 100%; justify-content: center; margin-top: 6px; padding: 18px; text-align: center; }
.sl-family-hub .fh-form__submit[aria-busy="true"],
.sl-family-hub .fh-form__submit[aria-busy="true"]:hover { background: #a8823a; box-shadow: none; opacity: .75; cursor: progress; }
.sl-family-hub .fh-form__hint { font-size: 13px; line-height: 1.6; color: var(--fh-muted-2); }

.sl-family-hub .fh-success {
  padding: 40px 36px;
  border: 1px solid var(--line-600);
  border-top: 2px solid var(--fh-gold);
  border-radius: 8px;
  background: #12151b;
  outline: none;
  animation: fhIn .4s ease both;
}
.sl-family-hub .fh-success__title { margin-top: 16px; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.25; color: var(--fh-heading); }
.sl-family-hub .fh-success__text { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--fh-list-text-2); }
.sl-family-hub .fh-success__details {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-700);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--fh-soft);
}
.sl-family-hub .fh-success__details dt,
.sl-family-hub .fh-success__details dd { display: inline; margin: 0; font-weight: 400; }
.sl-family-hub .fh-success__details dd { color: var(--text-200); }
.sl-family-hub .fh-success__again {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--fh-gold);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
  transition: gap .3s ease, border-color .3s ease;
}
.sl-family-hub .fh-success__again:hover { gap: 18px; background: none; color: var(--fh-gold); }

/* Fixed mobile CTA (hidden on desktop) */
.sl-family-hub .fh-fab { display: none; }

/* ==========================================================================
   Mobile / tablet: ≤899px (the theme header's burger breakpoint)
   ========================================================================== */
@media (max-width: 899px) {
  .sl-family-hub { --fh-pad: 20px; }
  .sl-family-hub .fh-page-wrap { margin: 0; border-left: 0; border-right: 0; }
  .sl-family-hub .fh-eyebrow { font-size: 10px; letter-spacing: .12em; }
  .sl-family-hub .fh-h2--serif { font-size: 26px; line-height: 1.25; }
  .sl-family-hub .fh-h2--sans { font-size: 24px; }
  .sl-family-hub .fh-breadcrumbs { padding-top: 14px; font-size: 12px; }

  /* Hero: photo as a darkened background band, full-width primary CTA */
  .sl-family-hub .fh-hero__media { bottom: auto; height: 480px; }
  .sl-family-hub .fh-hero__img { width: 100%; object-position: 80% center; opacity: .4; }
  .sl-family-hub .fh-hero__shade { background: linear-gradient(90deg, rgba(11, 16, 23, .88) 0%, rgba(11, 16, 23, .55) 60%, rgba(11, 16, 23, .3) 100%); }
  .sl-family-hub .fh-hero__shade-bottom { background: linear-gradient(to bottom, rgba(11, 16, 23, .15) 0%, rgba(11, 16, 23, .5) 50%, var(--ink-900) 92%); }
  .sl-family-hub .fh-hero__inner { padding: 20px 0 8px; }
  .sl-family-hub .fh-hero__content { max-width: none; }
  .sl-family-hub .fh-hero__eyebrow {
    padding: 6px 10px;
    border: 1px solid var(--line-600);
    background: rgba(11, 16, 23, .55);
    font-size: 10px;
    letter-spacing: .08em;
    animation-delay: .04s;
  }
  .sl-family-hub .fh-hero__rule { width: 56px; animation-delay: .55s; }
  .sl-family-hub .fh-hero__title { max-width: none; margin-top: 14px; font-size: 30px; line-height: 1.18; animation-delay: .14s; }
  .sl-family-hub .fh-hero__lead { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--fh-list-text-2); animation-delay: .26s; }
  .sl-family-hub .fh-hero__actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 22px; animation-delay: .5s; }
  .sl-family-hub .fh-hero__primary { justify-content: space-between; width: 100%; padding: 16px 20px; border-radius: 0; white-space: normal; }
  .sl-family-hub .fh-hero__primary:hover { gap: 14px; }
  .sl-family-hub .fh-hero__primary .fh-btn__arrow { font-size: 18px; }
  .sl-family-hub .fh-hero__secondary { align-self: flex-start; font-size: 16px; }
  .sl-family-hub .fh-more { margin-top: 22px; font-size: 10px; letter-spacing: .12em; animation-delay: .62s; }
  .sl-family-hub .fh-more__arrow { font-size: 13px; color: var(--fh-gold); }

  /* Directions: scrollable filter pills, one-column accordion */
  .sl-family-hub .fh-directions { padding: 40px 0; background: var(--fh-bg-2); }
  .sl-family-hub .fh-directions__head { display: block; margin-top: 12px; }
  .sl-family-hub .fh-directions__head .fh-h2 { max-width: none; }
  .sl-family-hub .fh-directions__hint { max-width: none; margin-top: 12px; }
  .sl-family-hub .fh-filters {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 2px calc(-1 * var(--fh-pad)) 0;
    padding: 20px var(--fh-pad) 4px;
    border-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sl-family-hub .fh-filters::-webkit-scrollbar { display: none; }
  .sl-family-hub .fh-filter { flex: none; gap: 8px; padding: 0 16px; font-size: 14.5px; }
  .sl-family-hub .fh-filter__count { font-size: 10.5px; }
  .sl-family-hub .fh-dgrid-wrap { margin-top: 16px; }
  .sl-family-hub .fh-dgrid { display: flex; flex-direction: column; gap: 12px; }

  .sl-family-hub .fh-dcard,
  .sl-family-hub .fh-dcard--featured,
  .sl-family-hub .fh-dcard.is-open {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "num cat arrow"
      "num title arrow"
      "desc desc desc"
      "action action action"
      "panel panel panel";
    grid-template-rows: auto auto auto auto auto;
    column-gap: 14px;
    min-height: 0;
    padding: 18px;
    border-radius: 10px;
    background: var(--ink-800);
  }
  .sl-family-hub .fh-dcard__toggle::after { border-radius: 10px; }
  .sl-family-hub .fh-dcard__glow,
  .sl-family-hub .fh-dcard__ring { display: none; }
  .sl-family-hub .fh-dcard__num,
  .sl-family-hub .fh-dcard--featured .fh-dcard__num { padding-left: 0; font-size: 26px; color: rgba(216, 167, 71, .42); }
  .sl-family-hub .fh-dcard__cat { padding-top: 0; font-size: 9.5px; letter-spacing: .14em; }
  .sl-family-hub .fh-dcard__title,
  .sl-family-hub .fh-dcard--featured .fh-dcard__title { max-width: none; margin-top: 6px; font-size: 19.5px; line-height: 1.25; }
  .sl-family-hub .fh-dcard__arrow {
    align-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: var(--fh-gold);
    font-size: 14px;
    line-height: 1;
    transform: rotate(90deg);
  }
  .sl-family-hub .fh-dcard__desc { max-width: none; margin-top: 12px; }
  .sl-family-hub .fh-dcard__action { align-self: auto; margin-top: 14px; padding-top: 0; font-size: 14px; line-height: 1.4; color: var(--fh-gold); }
  .sl-family-hub .fh-dcard.is-muted { background: #0e141d; opacity: .5; }
  .sl-family-hub .fh-dcard.is-open { border-color: rgba(216, 167, 71, .45); background: linear-gradient(160deg, #141d2c, #0f1622); }
  .sl-family-hub .fh-dcard.is-open .fh-dcard__num { font-size: 30px; color: var(--fh-gold); }
  .sl-family-hub .fh-dcard.is-open .fh-dcard__title { font-size: 21px; }
  .sl-family-hub .fh-dcard.is-open .fh-dcard__desc { max-width: none; }
  .sl-family-hub .fh-dcard.is-open .fh-dcard__action { align-self: auto; padding-top: 0; color: var(--fh-muted); }
  .sl-family-hub .fh-dcard.is-open .fh-dcard__arrow { align-self: start; margin-top: 0; background: var(--fh-gold); color: var(--ink-900); transform: rotate(-90deg); }

  .sl-family-hub .fh-dcard__lists { display: block; margin-top: 18px; padding-top: 0; border-top: 0; }
  .sl-family-hub .fh-dcard__list { padding-top: 18px; border-top: 1px solid var(--fh-divider); }
  .sl-family-hub .fh-dcard__list + .fh-dcard__list { margin-top: 20px; }
  .sl-family-hub .fh-dcard__list-title { font-size: 9.5px; letter-spacing: .14em; }
  .sl-family-hub .fh-bullets li,
  .sl-family-hub .fh-dashes li { margin-top: 12px; }
  .sl-family-hub .fh-bullets li { padding-left: 17px; }
  .sl-family-hub .fh-dashes li { padding-left: 22px; }
  .sl-family-hub .fh-dcard__actions { display: block; margin-top: 22px; }
  .sl-family-hub .fh-dcard__cta { justify-content: space-between; width: 100%; padding: 16px 20px; border-radius: 0; }
  .sl-family-hub .fh-service { margin-top: 14px; padding: 18px 16px 12px 16px; }
  .sl-family-hub .fh-service__tag { font-size: 10px; letter-spacing: .14em; }
  .sl-family-hub .fh-service__title { margin-top: 10px; font-size: 17px; }
  .sl-family-hub .fh-service__desc { max-width: none; margin-top: 8px; line-height: 1.6; }
  .sl-family-hub .fh-service__link { margin-top: 4px; }

  /* Process: vertical route, counter above, solid CTA below */
  .sl-family-hub .fh-process { padding: 40px 0 44px; border-top: 1px solid var(--line-800); }
  .sl-family-hub .fh-process__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "route" "cta";
    grid-template-rows: auto;
    column-gap: 0;
  }
  .sl-family-hub .fh-process__intro .fh-h2 { margin-top: 12px; }
  .sl-family-hub .fh-process__lead { margin-top: 12px; }
  .sl-family-hub .fh-meter { gap: 12px; margin-top: 20px; }
  .sl-family-hub .fh-meter__label { font-size: 10px; letter-spacing: .12em; }
  .sl-family-hub .fh-process__route { margin-top: 20px; }
  .sl-family-hub .fh-route__track { left: 16px; top: 22px; bottom: 22px; }
  .sl-family-hub .fh-route__fill { left: 16px; top: 22px; height: calc((100% - 44px) * var(--fh-pct, .25)); }
  .sl-family-hub .fh-step { gap: 16px; padding: 18px 14px 18px 0; }
  .sl-family-hub .fh-step.is-active { background: rgba(255, 255, 255, .035); }
  .sl-family-hub .fh-step__dot { width: 33px; height: 33px; font-size: 13px; }
  .sl-family-hub .fh-step__title { font-size: 17px; }
  .sl-family-hub .fh-step__desc,
  .sl-family-hub .fh-step__result { max-width: none; }
  .sl-family-hub .fh-step__result { margin-top: 8px; }
  .sl-family-hub .fh-process__book {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--fh-gold);
    color: var(--ink-900);
  }
  .sl-family-hub .fh-process__book:hover { gap: 12px; background: var(--fh-gold-hover); color: var(--ink-900); }
  .sl-family-hub .fh-process__book:active { background: var(--fh-gold-active); }
  .sl-family-hub .fh-process__book:focus-visible { outline-color: var(--fh-gold-hover); outline-offset: 3px; }

  /* Cross-border: stacked, country pills and tabs scroll inside themselves */
  .sl-family-hub .fh-cross { padding: 40px 0; }
  .sl-family-hub .fh-cross__grid { gap: 26px; }
  .sl-family-hub .fh-cross__title { max-width: none; margin-top: 14px; font-size: 24px; }
  .sl-family-hub .fh-cross__tag { margin-top: 12px; font-size: 13px; }
  .sl-family-hub .fh-cross__question { max-width: none; margin-top: 18px; font-size: 19px; }
  .sl-family-hub .fh-cross__text { max-width: none; margin-top: 12px; line-height: 1.6; }
  .sl-family-hub .fh-cross__countries-label { margin-top: 24px; font-size: 15px; }
  .sl-family-hub .fh-cross__countries {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 calc(-1 * var(--fh-pad));
    padding: 14px var(--fh-pad) 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sl-family-hub .fh-cross__countries::-webkit-scrollbar { display: none; }
  .sl-family-hub .fh-cross__countries .fh-pill { flex: none; padding: 0 16px; font-size: 14.5px; }
  .sl-family-hub .fh-cross__cta { max-width: none; margin-top: 14px; padding: 17px 20px; border-radius: 0; gap: 14px; }
  .sl-family-hub .fh-cross__note { margin-top: 12px; font-size: 13px; }
  .sl-family-hub .fh-cross__box { padding: 0; overflow: hidden; border-radius: 8px; }
  .sl-family-hub .fh-tabs { gap: 18px; padding: 0 18px; }
  .sl-family-hub .fh-tab { min-height: 48px; padding: 16px 2px; font-size: 14.5px; }
  .sl-family-hub .fh-tabpanels { min-height: 300px; padding: 6px 18px 20px; }
  .sl-family-hub .fh-included__item { gap: 14px; padding: 18px 0; }
  .sl-family-hub .fh-included__num { font-size: 12px; }
  .sl-family-hub .fh-included__title { font-size: 16px; }
  .sl-family-hub .fh-included__desc { font-size: 15px; }
  .sl-family-hub .fh-checklist { padding-top: 0; }
  .sl-family-hub .fh-checklist li { gap: 14px; padding: 15px 0; }
  .sl-family-hub .fh-checklist__note { margin-top: 16px; font-size: 13.5px; }

  /* Contact: flat background, boxed form with full-width fields */
  .sl-family-hub .fh-contact { padding: 44px 0 40px; background: var(--ink-800); }
  .sl-family-hub .fh-contact__grid { gap: 30px; }
  .sl-family-hub .fh-contact__title { max-width: none; font-size: 26px; }
  .sl-family-hub .fh-contact__lead { max-width: none; margin-top: 14px; font-size: 16px; }
  .sl-family-hub .fh-contact__phone { margin-top: 20px; font-size: 27px; }
  .sl-family-hub .fh-contact__details { margin-top: 14px; font-size: 15px; line-height: 1.8; }
  .sl-family-hub .fh-contact__msg { gap: 8px; margin-top: 18px; }
  .sl-family-hub .fh-contact__msg-link {
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line-500);
    font-size: 15px;
    color: var(--text-200);
  }
  .sl-family-hub .fh-contact__msg-link:hover { border-color: var(--fh-gold); }

  .sl-family-hub .fh-contact__form-wrap { padding-top: 0; }
  .sl-family-hub .fh-form { padding: 24px 20px; border: 1px solid var(--line-800); background: var(--fh-bg-2); }
  .sl-family-hub .fh-form__label { font-size: 10px; letter-spacing: .1em; }
  .sl-family-hub .fh-chosen { flex-wrap: nowrap; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 0; }
  .sl-family-hub .fh-chosen__topic { font-size: 15px; line-height: 1.4; }
  .sl-family-hub .fh-chosen__country { font-size: 13px; }
  .sl-family-hub .fh-chosen__change { flex: none; padding: 0 2px; font-size: 14px; }
  .sl-family-hub .fh-fields { gap: 16px; margin-top: 18px; }
  .sl-family-hub .fh-field__label { font-size: 13px; }
  .sl-family-hub .fh-topics .fh-field__label { margin-bottom: 10px; }
  .sl-family-hub .fh-input {
    padding: 14px 16px;
    border: 1px solid var(--line-600);
    background: var(--ink-900);
    color: var(--text-200);
    font-size: 16px;
  }
  .sl-family-hub .fh-field.is-filled .fh-input { border-color: rgba(216, 167, 71, .55); }
  .sl-family-hub .fh-field .fh-input:focus { border-color: var(--fh-gold); }
  .sl-family-hub .fh-field.has-error .fh-input { border-color: var(--fh-error); }
  .sl-family-hub .fh-topics .fh-pills { gap: 8px; }
  .sl-family-hub .fh-pill--topic { padding: 0 14px; border-color: var(--line-600); font-size: 14px; }
  .sl-family-hub .fh-pill--topic[aria-pressed="true"] { border-color: var(--fh-gold); }
  .sl-family-hub .fh-check { gap: 12px; }
  .sl-family-hub .fh-send-error { padding: 16px; border-radius: 0; }
  .sl-family-hub .fh-send-error__text { font-size: 15px; }
  .sl-family-hub .fh-send-error__actions { flex-wrap: nowrap; gap: 10px; }
  .sl-family-hub .fh-send-error__btn {
    flex: 1;
    justify-content: center;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--fh-gold);
    text-align: center;
    font-size: 15px;
  }
  .sl-family-hub .fh-send-error__btn--call { border-color: var(--line-500); color: var(--text-200); }
  .sl-family-hub .fh-send-error__btn--call:hover { border-color: var(--fh-gold); color: var(--text-100); }
  .sl-family-hub .fh-form__submit { margin-top: 0; padding: 16px; border-radius: 0; }
  .sl-family-hub .fh-form__hint { font-size: 12px; }
  .sl-family-hub .fh-success { padding: 28px 20px; border-color: var(--line-800); border-top-color: var(--fh-gold); border-radius: 0; background: var(--fh-bg-2); }
  .sl-family-hub .fh-success__title { margin-top: 14px; font-size: 23px; }
  .sl-family-hub .fh-success__text { margin-top: 12px; }
  .sl-family-hub .fh-success__details { margin-top: 20px; padding-top: 16px; font-size: 15px; }
  .sl-family-hub .fh-success__again {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin-top: 22px;
    padding: 14px 18px;
    border: 1px solid var(--line-600);
    font-size: 15px;
  }
  .sl-family-hub .fh-success__again:hover { gap: 12px; border-color: var(--fh-gold); }

  /* Fixed CTA: shown by the script after the hero, hidden near the form */
  .sl-family-hub .fh-fab {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(11, 16, 23, .96), rgba(11, 16, 23, 0));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(120%);
    transition: transform .4s ease, opacity .4s ease, visibility 0s linear .4s;
  }
  .sl-family-hub .fh-fab.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: transform .4s ease, opacity .4s ease, visibility 0s;
  }
  .sl-family-hub .fh-fab__btn {
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
  .sl-family-hub .fh-fab__btn:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
}

@media (max-width: 380px) {
  .sl-family-hub .fh-hero__title { font-size: 28px; }
  .sl-family-hub .fh-contact__phone { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .sl-family-hub *, .sl-family-hub *::before, .sl-family-hub *::after { animation: none !important; transition: none !important; }
  .sl-family-hub.fh-js [data-fh-reveal]:not(.is-in) { opacity: 1; transform: none; }
}
