/* Materialized shell and Registry-generated submenu. */
.hub-materialized-shell-v1,
.hub-materialized-shell-v1 *,
.hub-materialized-shell-v1 *::before,
.hub-materialized-shell-v1 *::after { box-sizing: border-box; }
.hub-materialized-shell-v1 { min-width: 0; overflow-x: clip; }

/*
 * BRB-WEB Hub Materialized Master v1.
 * One self-contained visual authority for generated Hub PageDocuments.
 * Global Header and Footer remain owned by the Theme site shell.
 */

.hub-master-v1 {
  --b-ground: #faf7f2;
  --b-paper: #fffdf9;
  --b-band: #f5efe6;
  --b-ink: #231c19;
  --b-soft: #655950;
  --b-muted: #8a7d73;
  --b-accent: #7d1a33;
  --b-accent-deep: #5b1024;
  --b-line: #e5dacb;
  --b-line-strong: #d4c3ae;
  --b-serif: "Noto Serif KR", Georgia, serif;
  --b-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --b-shell: 1140px;
  --b-gutter: 20px;
  margin: 0;
  background: var(--b-ground);
  color: var(--b-ink);
  font-family: var(--b-sans);
  font-size: 15px;
  line-height: 1.78;
  overflow: clip;
  overflow-wrap: break-word;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

.hub-master-v1,
.hub-master-v1 *,
.hub-master-v1 *::before,
.hub-master-v1 *::after { box-sizing: border-box; }
.hub-master-v1 a { color: inherit; text-decoration: none; }
.hub-master-v1 h1,
.hub-master-v1 h2,
.hub-master-v1 h3,
.hub-master-v1 p,
.hub-master-v1 ul { margin-top: 0; }
.hub-master-v1 .wrap {
  width: min(calc(100% - (var(--b-gutter) * 2)), var(--b-shell));
  margin-inline: auto;
}

/* Existing Hero content, expressed as an open editorial field. */
.hub-master-v1 .a-hero {
  border-bottom: 1px solid var(--b-line);
  background:
    radial-gradient(circle at 78% 20%, rgba(125, 26, 51, .055), transparent 32%),
    linear-gradient(176deg, #fffdf8 0%, #f6eee3 100%);
}
.hub-master-v1 .a-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: center;
  padding-block: clamp(52px, 6vw, 78px);
}
.hub-master-v1 .a-hero-main { min-width: 0; }
.hub-master-v1 .hero-k,
.hub-master-v1 .section-k,
.hub-master-v1 .card-label,
.hub-master-v1 .det-mark {
  display: inline-block;
  color: var(--b-accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hub-master-v1 .a-hero h1 {
  max-width: 760px;
  margin: 15px 0 20px;
  color: var(--b-ink);
  font-family: var(--b-serif);
  font-size: clamp(38px, 4.1vw, 54px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.28;
  text-wrap: balance;
}
.hub-master-v1 .hero-desc {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--b-soft);
  font-size: 15px;
  letter-spacing: -.012em;
  line-height: 1.9;
  text-wrap: pretty;
}
.hub-master-v1 .cta-btns { display: flex; flex-wrap: wrap; gap: 9px; }
.hub-master-v1 .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--b-line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--b-accent);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.hub-master-v1 .btn-primary {
  border-color: var(--b-accent);
  background: var(--b-accent);
  color: #fff8f1;
}
.hub-master-v1 .btn:hover,
.hub-master-v1 .btn:focus-visible {
  border-color: var(--b-accent-deep);
  background: var(--b-accent-deep);
  color: #fff8f1;
  outline: none;
}
.hub-master-v1 .a-hero-card {
  min-width: 0;
  padding: 25px 26px 23px;
  border: 1px solid var(--b-line);
  border-top: 2px solid var(--b-accent);
  border-radius: 6px;
  background: rgba(255, 253, 249, .88);
}
.hub-master-v1 .hero-steps { margin: 17px 0 0; padding: 0; list-style: none; }
.hub-master-v1 .hero-steps li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 12px;
  padding-block: 14px;
  border-top: 1px solid var(--b-line);
}
.hub-master-v1 .hero-steps li:first-child { padding-top: 2px; border-top: 0; }
.hub-master-v1 .step-num {
  color: var(--b-accent);
  font-family: var(--b-serif);
  font-size: 17px;
  line-height: 1.45;
}
.hub-master-v1 .hero-steps b,
.hub-master-v1 .hero-steps span:not(.step-num) { display: block; }
.hub-master-v1 .hero-steps b {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}
.hub-master-v1 .hero-steps span:not(.step-num) {
  color: var(--b-soft);
  font-size: 12.5px;
  line-height: 1.68;
}

/* Compact editorial sections. */
.hub-master-v1 .a-section {
  padding-block: clamp(46px, 5vw, 64px);
  border-bottom: 1px solid var(--b-line);
}
.hub-master-v1 .a-concern,
.hub-master-v1 .a-treat,
.hub-master-v1 .a-curated-programs,
.hub-master-v1 .a-detective { background: var(--b-paper); }
.hub-master-v1 .a-view,
.hub-master-v1 .a-guide,
.hub-master-v1 .a-else { background: var(--b-band); }
.hub-master-v1 .section-head { max-width: min(960px, 100%); margin-bottom: 27px; }
.hub-master-v1 .section-head.center { margin-inline: auto; text-align: center; }
.hub-master-v1 .section-head h2,
.hub-master-v1 .detective-box h2,
.hub-master-v1 .cta-box h2 {
  margin: 9px 0 12px;
  font-family: var(--b-serif);
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 500;
  letter-spacing: -.038em;
  line-height: 1.43;
  text-wrap: pretty;
}
.hub-master-v1 .section-head p,
.hub-master-v1 .detective-box p,
.hub-master-v1 .cta-box p {
  margin-bottom: 0;
  color: var(--b-soft);
  font-size: 14px;
  line-height: 1.82;
  text-wrap: pretty;
}
.hub-master-v1 .concern-grid,
.hub-master-v1 .view-grid,
.hub-master-v1 .treat-grid,
.hub-master-v1 .program-grid { display: grid; min-width: 0; gap: 14px; }
.hub-master-v1 .concern-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-master-v1 .view-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-master-v1 .treat-grid,
.hub-master-v1 .program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-master-v1 .concern-card,
.hub-master-v1 .view-card,
.hub-master-v1 .treat-card {
  min-width: 0;
  border: 1px solid var(--b-line);
  border-radius: 6px;
  background: var(--b-paper);
}
.hub-master-v1 .concern-card {
  display: flex;
  min-height: 222px;
  flex-direction: column;
  padding: 22px;
}
.hub-master-v1 .concern-card strong {
  font-family: var(--b-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.55;
}
.hub-master-v1 .cdesc {
  margin: 10px 0 0;
  color: var(--b-soft);
  font-size: 12.5px;
  line-height: 1.72;
}
.hub-master-v1 .check {
  margin: 12px 0 18px;
  color: var(--b-soft);
  font-size: 12.5px;
  line-height: 1.7;
}
.hub-master-v1 .rec-wrap {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--b-line);
}
.hub-master-v1 .rec-label {
  display: block;
  margin-bottom: 8px;
  color: var(--b-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
.hub-master-v1 .rec-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.hub-master-v1 .rec-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--b-line-strong);
  border-radius: 4px;
  color: var(--b-accent);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}
.hub-master-v1 .rec-tag:hover,
.hub-master-v1 .rec-tag:focus-visible {
  border-color: var(--b-accent);
  background: #fbf3f3;
  outline: none;
}
.hub-master-v1 .quick-find {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--b-line);
  border-radius: 6px;
  background: var(--b-band);
}
.hub-master-v1 .quick-label {
  margin: 0;
  color: var(--b-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}
.hub-master-v1 .quick-desc {
  margin: 4px 0 0;
  color: var(--b-soft);
  font-size: 12.5px;
  line-height: 1.65;
}
.hub-master-v1 .quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}
.hub-master-v1 .quick-chips a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--b-line-strong);
  border-radius: 9px;
  background: var(--b-paper);
  color: var(--b-soft);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}
.hub-master-v1 .quick-chips a:hover,
.hub-master-v1 .quick-chips a:focus-visible {
  border-color: var(--b-accent);
  color: var(--b-accent);
  outline: none;
}
.hub-master-v1 .view-card {
  padding: 22px 20px;
  background: rgba(255, 253, 249, .72);
}
.hub-master-v1 .vtag,
.hub-master-v1 .type-tag {
  display: block;
  color: var(--b-accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
}
.hub-master-v1 .view-card h3,
.hub-master-v1 .treat-card h3 {
  margin: 10px 0 9px;
  font-family: var(--b-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.52;
}
.hub-master-v1 .view-card p,
.hub-master-v1 .treat-card p {
  margin-bottom: 0;
  color: var(--b-soft);
  font-size: 12.5px;
  line-height: 1.73;
}
.hub-master-v1 .vlink {
  color: var(--b-accent);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(125, 26, 51, .28);
  text-underline-offset: 3px;
}
.hub-master-v1 .treat-group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 9px;
  color: var(--b-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.hub-master-v1 .treat-group-label::after {
  height: 1px;
  flex: 1;
  background: var(--b-line);
  content: "";
}
.hub-master-v1 .treat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 19px;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.hub-master-v1 .treat-card:hover,
.hub-master-v1 .treat-card:focus-visible {
  border-color: var(--b-accent);
  background: #fffaf6;
  outline: none;
  transform: translateY(-2px);
}
.hub-master-v1 .treat-card .num {
  position: absolute;
  top: 18px;
  right: 19px;
  color: #b8a89b;
  font-family: var(--b-serif);
  font-size: 13px;
  line-height: 1;
}
.hub-master-v1 .treat-card .type-tag { max-width: calc(100% - 36px); }
.hub-master-v1 .treat-card .pos {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--b-line);
  color: var(--b-muted);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.62;
}
.hub-master-v1 .treat-card .go {
  display: block;
  margin-top: 9px;
  color: var(--b-accent);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}
.hub-master-v1 .guide-list {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--b-line-strong);
  list-style: none;
}
.hub-master-v1 .guide-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 24px;
  align-items: start;
  padding: 15px 4px;
  border-bottom: 1px solid var(--b-line);
}
.hub-master-v1 .guide-list b { font-size: 13px; font-weight: 650; }
.hub-master-v1 .guide-list span { color: var(--b-soft); font-size: 12.5px; }
.hub-master-v1 .a-bridge {
  background: var(--b-accent-deep);
  color: #fff8f1;
}
.hub-master-v1 .a-bridge .section-k,
.hub-master-v1 .a-bridge h2,
.hub-master-v1 .a-bridge h3,
.hub-master-v1 .a-bridge p { color: #fff8f1; }
.hub-master-v1 .bridge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 241, .22);
  background: rgba(255, 248, 241, .22);
}
.hub-master-v1 .bridge-card {
  min-width: 0;
  padding: 23px 21px;
  background: color-mix(in srgb, var(--b-accent-deep) 90%, white);
}
.hub-master-v1 .bridge-card p { font-size: 13px; line-height: 1.72; }
.hub-master-v1 .else-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 23px;
}
.hub-master-v1 .else-links a,
.hub-master-v1 .vlink {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--b-line-strong);
  border-radius: 4px;
  color: var(--b-accent);
  font-size: 12.5px;
  font-weight: 650;
}
.hub-master-v1 .a-youtube { background: var(--b-paper); }
.hub-master-v1 .yt-wrap { max-width: 900px; margin-inline: auto; }
.hub-master-v1 .yt-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #171210;
}
.hub-master-v1 .yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hub-master-v1 .yt-caption { margin: 11px 0 0; color: var(--b-muted); font-size: 12px; }
.hub-master-v1 .detective-box {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--b-line);
  border-top: 3px solid var(--b-accent);
  border-radius: 6px;
  background: linear-gradient(135deg, #fffdf9 0%, #f8efe6 100%);
}
.hub-master-v1 .detective-box h2 { max-width: 720px; margin-top: 13px; }
.hub-master-v1 .detective-box p { max-width: 760px; }
.hub-master-v1 .a-cta {
  border-bottom: 0;
  background: var(--b-accent-deep);
  color: #fff8f1;
}
.hub-master-v1 .cta-box { max-width: 840px; margin-inline: auto; text-align: center; }
.hub-master-v1 .cta-box h2,
.hub-master-v1 .cta-box p { color: #fff8f1; }
.hub-master-v1 .cta-btns { justify-content: center; margin-top: 22px; }
.hub-master-v1 .a-cta .btn { border-color: rgba(255, 248, 241, .58); color: #fff8f1; }
.hub-master-v1 .a-cta .btn-primary {
  border-color: #fff8f1;
  background: #fff8f1;
  color: var(--b-accent-deep);
}
.hub-master-v1 .a-cta .btn:hover,
.hub-master-v1 .a-cta .btn:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--b-accent-deep);
}

@media (max-width: 940px) {
  .hub-master-v1 .a-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr);
    gap: 32px;
  }
  .hub-master-v1 .concern-grid,
  .hub-master-v1 .treat-grid,
  .hub-master-v1 .program-grid,
  .hub-master-v1 .view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-master-v1 .bridge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hub-master-v1 {
    --b-gutter: 18px;
    font-size: 14px;
    line-height: 1.74;
  }
  .hub-master-v1 .a-hero-grid {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-block: 34px 38px;
  }
  .hub-master-v1 .a-hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(30px, 8.3vw, 34px);
    line-height: 1.38;
  }
  .hub-master-v1 .hero-desc { margin-bottom: 0; font-size: 13.5px; line-height: 1.82; }
  .hub-master-v1 .a-hero-card { padding: 21px 20px 18px; }
  .hub-master-v1 .a-section { padding-block: 37px; }
  .hub-master-v1 .section-head { margin-bottom: 21px; }
  .hub-master-v1 .section-head h2,
  .hub-master-v1 .detective-box h2,
  .hub-master-v1 .cta-box h2 { font-size: 26px; line-height: 1.48; }
  .hub-master-v1 .section-head p br { display: none; }

  /* Patient-critical Hub cards remain in normal vertical reading order. */
  .hub-master-v1 .concern-grid,
  .hub-master-v1 .view-grid,
  .hub-master-v1 .treat-grid,
  .hub-master-v1 .program-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-columns: auto;
    grid-auto-flow: row;
    gap: 11px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .hub-master-v1 .concern-card,
  .hub-master-v1 .view-card,
  .hub-master-v1 .treat-card { scroll-snap-align: none; }
  .hub-master-v1 .concern-card { min-height: 218px; padding: 20px; }
  .hub-master-v1 .view-card { padding: 20px; }
  .hub-master-v1 .quick-find { margin-top: 14px; padding: 18px; }
  .hub-master-v1 .a-treat,
  .hub-master-v1 .a-curated-programs { padding-block: 34px; }
  .hub-master-v1 .a-treat .section-head { margin-bottom: 18px; }
  .hub-master-v1 .treat-group-label { margin-top: 20px; }
  .hub-master-v1 .treat-card { padding: 17px; }
  .hub-master-v1 .guide-list li { grid-template-columns: 1fr; gap: 4px; padding-block: 13px; }
  .hub-master-v1 .bridge-grid { grid-template-columns: 1fr; }
  .hub-master-v1 .bridge-card { padding: 18px; }
  .hub-master-v1 .detective-box { padding: 25px 21px; }
  .hub-master-v1 .cta-btns { display: grid; grid-template-columns: 1fr 1fr; }
}

/*
 * The Hero needs more room than the BODY grids. Stack it before the narrow
 * tablet range can squeeze the editorial card, then keep every guidance step
 * inside the card without relying on a horizontally clipped scroll lane.
 */
@media (max-width: 800px) {
  .hub-master-v1 .a-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
    padding-block: 34px 38px;
  }
  .hub-master-v1 .a-hero-card { width: 100%; }
  .hub-master-v1 .hero-steps {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    gap: 10px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .hub-master-v1 .hero-steps li,
  .hub-master-v1 .hero-steps li:first-child {
    min-width: 0;
    min-height: 0;
    padding: 13px 14px;
    border: 1px solid var(--b-line);
    border-radius: 4px;
    scroll-snap-align: none;
  }
}

@media (max-width: 600px) {
  .hub-master-v1 .hero-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .hub-master-v1 .btn,
  .hub-master-v1 .treat-card { transition: none; }
}

/* Native Master roles used by the three bounded semantic adapters. */
.hub-master-v1 .a-hero-single { padding-block: clamp(42px, 5.2vw, 68px); }
.hub-master-v1 .a-hero--single .a-hero-main { max-width: 780px; }
.hub-master-v1 .hero-accent { color: var(--b-accent); }
.hub-master-v1 .hero-card-title { margin: 7px 0 14px; font-family: var(--b-serif); font-size: 21px; font-weight: 600; line-height: 1.45; }
.hub-master-v1 .wrap--narrow { max-width: 900px; }
.hub-master-v1 .a-treat,
.hub-master-v1 .a-curated-programs { padding-block: clamp(42px, 4vw, 48px); }
.hub-master-v1 .a-treat .section-head { margin-bottom: 20px; }
.hub-master-v1 .a-treat .section-head h2 { margin-block: 7px 9px; }
.hub-master-v1 .a-treat .section-head + .treat-group-label { margin-top: 0; }
.hub-master-v1 .treat-grid + .treat-group-label { margin-top: 22px; }
.hub-master-v1 .family-member-grid .brb-family-child-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hub-master-v1 .family-member-grid .brb-family-child-item { min-width: 0; }
.hub-master-v1 .family-member-grid .brb-family-child-link.treat-card { height: 100%; color: var(--b-ink); text-decoration: none; }
.hub-master-v1 .section-note { margin: 22px 0 0; padding: 17px 19px; border-left: 2px solid var(--b-accent); background: var(--b-paper); color: var(--b-soft); }
.hub-master-v1 .a-faq .faq-list { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--b-line-strong); }
.hub-master-v1 .a-faq details { border-bottom: 1px solid var(--b-line); }
.hub-master-v1 .a-faq summary { padding: 17px 3px; color: var(--b-ink); font-weight: 700; cursor: pointer; }
.hub-master-v1 .a-faq details > :not(summary) { margin: 0; padding: 0 3px 18px; color: var(--b-soft); }
.hub-master-v1 .a-interactive { background: var(--b-band); }
.hub-master-v1 .a-interactive > .wrap { max-width: var(--b-shell); }
.hub-master-v1 .a-youtube .yt-frame { width: min(100%, 1120px); margin-inline: auto; }
.hub-master-v1 .treat-grid .treat-group-label { grid-column: 1 / -1; }

@media (max-width: 940px) {
  .hub-master-v1 .family-member-grid .brb-family-child-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hub-master-v1 .program-grid,
  .hub-master-v1 .family-member-grid .brb-family-child-list { grid-template-columns: minmax(0, 1fr); }
  .hub-master-v1 .a-hero-single { padding-block: 34px 38px; }
}
