@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@600;700&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
  --branch-ink: #1a2440;
  --branch-muted: #4d5770;
  --branch-faint: #778096;
  --branch-gold: #b8863b;
  --branch-gold-deep: #8a6329;
  --branch-gold-pale: #f3e7d0;
  --branch-stone: #f6f2e9;
  --branch-white: #ffffff;
  --branch-line: rgba(26, 36, 64, 0.15);
  --branch-line-soft: rgba(26, 36, 64, 0.08);
  --branch-serif: "Noto Serif KR", serif;
  --branch-sans: "Noto Sans KR", sans-serif;
  --branch-radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body.branch-directory-page {
  margin: 0;
  color: var(--branch-ink);
  background: var(--branch-stone);
  font-family: var(--branch-sans);
  line-height: 1.75;
  word-break: keep-all;
}

.branch-directory-page a {
  color: inherit;
  text-decoration: none;
}

.branch-directory-page button,
.branch-directory-page input {
  font: inherit;
}

.branch-breadcrumb {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 0;
}

.branch-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--branch-faint);
  font-size: 12px;
  list-style: none;
}

.branch-breadcrumb li:not(:last-child)::after {
  margin-left: 7px;
  color: var(--branch-line);
  content: "/";
}

.branch-breadcrumb a:hover {
  color: var(--branch-gold-deep);
}

.branch-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 110px;
}

.branch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--branch-gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.branch-kicker::before {
  width: 18px;
  height: 1px;
  background: var(--branch-gold);
  content: "";
}

.branch-hub-hero,
.branch-detail-hero {
  border-bottom: 1px solid var(--branch-ink);
}

.branch-hub-hero {
  padding: 34px 0 64px;
}

.branch-hub-hero.compact {
  padding-bottom: 48px;
}

.branch-hub-hero h1,
.branch-detail-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--branch-serif);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.24;
}

.branch-hub-hero > p:last-of-type,
.branch-detail-hero .branch-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--branch-muted);
  font-size: 16px;
  line-height: 1.85;
}

.branch-hero-actions,
.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.branch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--branch-ink);
  border-radius: 3px;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.branch-button.primary {
  color: var(--branch-stone);
  background: var(--branch-ink);
}

.branch-button:hover {
  color: var(--branch-ink);
  background: var(--branch-gold-pale);
}

.branch-button.primary:hover {
  color: var(--branch-white);
  background: #2b3655;
}

.branch-answer {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  column-gap: 36px;
  margin: 34px 0 0;
  padding: 26px 28px;
  border: 1px solid var(--branch-line);
  border-left: 4px solid var(--branch-gold);
  border-radius: var(--branch-radius);
  background: var(--branch-white);
}

.branch-answer .branch-kicker {
  grid-row: 1 / span 2;
  align-self: start;
}

.branch-answer h2 {
  margin: 0;
  font-family: var(--branch-serif);
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 600;
  line-height: 1.4;
}

.branch-answer > p:last-child {
  margin: 10px 0 0;
  color: var(--branch-muted);
  font-size: 15px;
  line-height: 1.8;
}

.branch-section,
.branch-search-panel,
.branch-media {
  margin-top: 58px;
}

.branch-section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.branch-section-head h2,
.branch-search-panel h2 {
  margin: 0;
  font-family: var(--branch-serif);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.branch-section-head > p:last-child,
.branch-search-panel > div > p:last-child {
  margin: 12px 0 0;
  color: var(--branch-muted);
  font-size: 15px;
  line-height: 1.8;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--branch-line);
  background: var(--branch-line);
}

.region-card {
  display: grid;
  min-height: 144px;
  align-content: center;
  padding: 22px;
  background: var(--branch-white);
  transition: background-color 0.18s ease;
}

.region-card:hover {
  background: var(--branch-gold-pale);
}

.region-card span {
  font-family: var(--branch-serif);
  font-size: 23px;
  font-weight: 700;
}

.region-card strong {
  margin-top: 6px;
  color: var(--branch-gold-deep);
  font-size: 13px;
}

.region-card small {
  margin-top: 14px;
  color: var(--branch-muted);
  font-size: 12px;
}

.branch-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 26px 40px;
  align-items: end;
  padding: 30px;
  border: 1px solid var(--branch-ink);
  background: var(--branch-white);
}

.branch-search-panel label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.branch-search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.branch-search-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--branch-line);
  border-radius: 3px;
  color: var(--branch-ink);
  background: var(--branch-stone);
  font-size: 14px;
}

.branch-search-field input:focus {
  border-color: var(--branch-gold-deep);
  outline: 3px solid rgba(184, 134, 59, 0.16);
}

.branch-search-field button {
  min-width: 76px;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--branch-ink);
  border-radius: 3px;
  color: var(--branch-white);
  background: var(--branch-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.branch-search-field button:disabled {
  cursor: default;
  opacity: 0.45;
}

.branch-search-status {
  grid-column: 2;
  min-height: 20px;
  margin: -18px 0 0;
  color: var(--branch-faint);
  font-size: 12px;
}

.branch-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--branch-line);
  background: var(--branch-line);
}

.branch-card {
  min-width: 0;
  background: var(--branch-white);
}

.branch-card[hidden] {
  display: none;
}

.branch-card > a {
  position: relative;
  display: flex;
  min-height: 248px;
  flex-direction: column;
  padding: 23px 22px;
  transition: background-color 0.18s ease;
}

.branch-card > a:hover {
  background: var(--branch-gold-pale);
}

.branch-card-region {
  color: var(--branch-gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.branch-card h3 {
  margin: 12px 0 0;
  font-family: var(--branch-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.42;
}

.branch-card p {
  margin: 12px 0 0;
  color: var(--branch-muted);
  font-size: 13px;
  line-height: 1.65;
}

.branch-card small {
  margin-top: 11px;
  color: var(--branch-faint);
  font-size: 11px;
  line-height: 1.55;
}

.branch-card b {
  margin-top: auto;
  padding-top: 20px;
  color: var(--branch-gold-deep);
  font-size: 12px;
}

.branch-empty {
  margin: 18px 0 0;
  padding: 20px;
  border: 1px solid var(--branch-line);
  color: var(--branch-muted);
  background: var(--branch-white);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--branch-line);
  background: var(--branch-line);
  list-style: none;
}

.method-grid li {
  display: grid;
  align-content: start;
  min-height: 210px;
  padding: 24px;
  background: var(--branch-white);
}

.method-grid b {
  color: var(--branch-gold);
  font-family: var(--branch-serif);
  font-size: 12px;
}

.method-grid strong {
  margin-top: 26px;
  font-family: var(--branch-serif);
  font-size: 17px;
}

.method-grid span {
  margin-top: 10px;
  color: var(--branch-muted);
  font-size: 13px;
  line-height: 1.7;
}

.branch-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--branch-line);
  background: var(--branch-line);
}

.branch-system-grid article {
  min-width: 0;
  padding: 26px 24px;
  background: var(--branch-white);
}

.branch-system-grid span {
  color: var(--branch-gold-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.branch-system-grid h3,
.branch-ai-summary h3 {
  margin: 12px 0 0;
  font-family: var(--branch-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.branch-system-grid p,
.branch-ai-summary p {
  margin: 11px 0 0;
  color: var(--branch-muted);
  font-size: 13px;
  line-height: 1.78;
}

.branch-ai-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 28px;
  margin-top: 16px;
  padding: 27px;
  border: 1px solid var(--branch-line);
  background: var(--branch-white);
}

.branch-ai-summary .branch-kicker {
  margin-bottom: 0;
}

.branch-ai-summary ul {
  display: grid;
  align-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.branch-ai-summary li {
  padding: 9px 11px;
  border: 1px solid var(--branch-line-soft);
  color: var(--branch-muted);
  background: var(--branch-stone);
  font-size: 12px;
  line-height: 1.5;
}

.branch-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.branch-inline-links a {
  padding: 9px 13px;
  border: 1px solid var(--branch-line);
  background: var(--branch-white);
  font-size: 12px;
  font-weight: 800;
}

.branch-inline-links a:hover {
  background: var(--branch-gold-pale);
}

.branch-faq details {
  border-top: 1px solid var(--branch-line);
  background: transparent;
}

.branch-faq details:last-child {
  border-bottom: 1px solid var(--branch-line);
}

.branch-faq summary {
  position: relative;
  padding: 20px 48px 20px 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
  list-style: none;
}

.branch-faq summary::-webkit-details-marker {
  display: none;
}

.branch-faq summary::after {
  position: absolute;
  top: 18px;
  right: 8px;
  color: var(--branch-gold-deep);
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.branch-faq details[open] summary::after {
  content: "−";
}

.branch-faq details p {
  max-width: 860px;
  margin: 0;
  padding: 0 46px 22px 4px;
  color: var(--branch-muted);
  font-size: 14px;
  line-height: 1.8;
}

.branch-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 28px 50px;
  padding: 34px 0 52px;
}

.branch-detail-hero h1 {
  font-size: clamp(32px, 5vw, 50px);
}

.branch-detail-hero .branch-hero-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.hero-facts {
  display: grid;
  align-content: start;
  margin: 2px 0 0;
  border-top: 1px solid var(--branch-ink);
}

.hero-facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--branch-line);
}

.hero-facts dt {
  color: var(--branch-gold-deep);
  font-size: 11px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: var(--branch-muted);
  font-size: 13px;
  line-height: 1.65;
}

.branch-media {
  padding-top: 0;
}

.branch-primary-media {
  display: grid;
  gap: 20px;
  margin-top: 58px;
}

.branch-primary-media figure {
  width: min(100%, 760px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--branch-line);
  border-radius: var(--branch-radius);
  background: var(--branch-white);
}

.branch-primary-media img:not(.branch-representative-image) {
  display: block;
  width: 100%;
  height: auto;
}

.branch-primary-media figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--branch-line-soft);
  color: var(--branch-muted);
  background: var(--branch-white);
  font-size: 12px;
  line-height: 1.55;
}

.branch-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branch-media-grid.single {
  grid-template-columns: minmax(0, 720px);
}

.branch-media figure {
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--branch-line);
  border-radius: var(--branch-radius);
  background: var(--branch-white);
}

.branch-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branch-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 34px;
  padding: 14px;
  border: 1px solid var(--branch-line);
  border-radius: var(--branch-radius);
  background: var(--branch-white);
}

.branch-toc strong {
  margin-right: 4px;
  padding: 6px 9px;
  color: var(--branch-gold-deep);
  font-size: 12px;
}

.branch-toc a {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--branch-line);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.branch-toc a:hover {
  border-color: var(--branch-gold);
  background: var(--branch-gold-pale);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--branch-line);
  background: var(--branch-line);
  gap: 1px;
}

.info-list div {
  min-width: 0;
  padding: 20px;
  background: var(--branch-white);
}

.info-list dt {
  color: var(--branch-gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.info-list dd {
  margin: 7px 0 0;
  color: var(--branch-ink);
  font-size: 14px;
  line-height: 1.7;
}

.branch-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--branch-line);
  background: var(--branch-white);
}

.branch-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.branch-table-wrap th,
.branch-table-wrap td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--branch-line);
  text-align: left;
  vertical-align: top;
}

.branch-table-wrap thead th {
  color: var(--branch-white);
  background: var(--branch-ink);
  font-size: 12px;
}

.branch-table-wrap thead th:first-child,
.branch-table-wrap tbody th {
  width: 18%;
}

.branch-table-wrap tbody th {
  color: var(--branch-gold-deep);
  font-size: 14px;
}

.branch-table-wrap td {
  color: var(--branch-muted);
  font-size: 14px;
}

.branch-table-wrap tbody tr:last-child th,
.branch-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.school-grid,
.learning-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--branch-line);
  background: var(--branch-line);
}

.school-grid article,
.learning-grid article,
.related-grid a {
  min-width: 0;
  padding: 22px;
  background: var(--branch-white);
}

.school-grid h3,
.learning-grid h3,
.related-grid strong {
  margin: 0;
  font-family: var(--branch-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.school-grid ul,
.service-area ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.school-grid li,
.service-area li {
  padding: 6px 9px;
  border: 1px solid var(--branch-line);
  border-radius: 3px;
  color: var(--branch-muted);
  background: var(--branch-stone);
  font-size: 12px;
  line-height: 1.35;
}

.service-area ul {
  padding: 22px;
  border: 1px solid var(--branch-line);
  background: var(--branch-white);
}

.learning-grid article p {
  margin: 10px 0 0;
  color: var(--branch-muted);
  font-size: 13px;
  line-height: 1.75;
}

.learning-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  padding: 0;
  border: 1px solid var(--branch-line);
  background: var(--branch-line);
  list-style: none;
}

.learning-flow li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background: var(--branch-white);
}

.learning-flow b {
  color: var(--branch-gold);
  font-family: var(--branch-serif);
}

.learning-flow span {
  color: var(--branch-muted);
  font-size: 12px;
  line-height: 1.65;
}

.learning-flow strong {
  display: block;
  margin-bottom: 5px;
  color: var(--branch-ink);
  font-size: 14px;
}

.consult-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--branch-line);
  list-style: none;
}

.consult-checklist li {
  position: relative;
  padding: 17px 18px 17px 44px;
  background: var(--branch-white);
  font-size: 13px;
}

.consult-checklist li::before {
  position: absolute;
  top: 17px;
  left: 18px;
  color: var(--branch-gold-deep);
  content: "✓";
  font-weight: 900;
}

.consult-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 24px;
  color: var(--branch-white);
  background: var(--branch-ink);
}

.consult-cta strong {
  font-family: var(--branch-serif);
  font-size: 20px;
}

.consult-cta p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.consult-cta .branch-button.primary {
  flex: 0 0 auto;
  border-color: var(--branch-white);
  color: var(--branch-ink);
  background: var(--branch-white);
}

.related-grid a {
  display: grid;
  min-height: 130px;
  align-content: center;
  transition: background-color 0.18s ease;
}

.related-grid a:hover {
  background: var(--branch-gold-pale);
}

.related-grid span {
  margin-top: 9px;
  color: var(--branch-muted);
  font-size: 12px;
  line-height: 1.6;
}

.branch-footer {
  padding: 38px 20px 118px;
  border-top: 1px solid var(--branch-line);
  color: rgba(246, 242, 233, 0.72);
  background: var(--branch-ink);
  text-align: center;
}

.branch-footer strong {
  color: var(--branch-white);
  font-family: var(--branch-serif);
  font-size: 18px;
}

.branch-footer p {
  margin: 9px auto 0;
  font-size: 12px;
}

.branch-footer a {
  display: inline-block;
  margin-top: 13px;
  color: var(--branch-white);
  font-size: 14px;
  font-weight: 800;
}

.branch-body-image picture {
  display: block;
  width: 100%;
}

.branch-topic-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.branch-topic-link-grid a {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--branch-line);
  border-radius: var(--branch-radius);
  color: var(--branch-ink);
  background: var(--branch-white);
  text-decoration: none;
}

.branch-topic-link-grid a:hover,
.branch-topic-link-grid a:focus-visible {
  border-color: var(--branch-gold);
  background: var(--branch-gold-pale);
}

.branch-topic-link-grid span {
  color: var(--branch-muted);
  font-size: 12px;
  line-height: 1.55;
}

.branch-topic-hero {
  display: grid;
  gap: 18px;
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--branch-line);
}

.branch-topic-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--branch-serif);
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.branch-topic-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--branch-line);
  background: var(--branch-line);
}

.branch-topic-status > div {
  padding: 16px;
  background: var(--branch-white);
}

.branch-topic-status dt {
  color: var(--branch-gold-deep);
  font-size: 11px;
  font-weight: 800;
}

.branch-topic-status dd {
  margin: 6px 0 0;
  color: var(--branch-ink);
  font-size: 14px;
  line-height: 1.6;
}

.branch-topic-article {
  display: grid;
  gap: 18px;
}

.branch-topic-article > section {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--branch-line);
  background: var(--branch-white);
}

.branch-topic-article h2 {
  margin: 0 0 16px;
  font-family: var(--branch-serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.branch-topic-article p {
  margin: 0 0 14px;
  color: var(--branch-muted);
  font-size: 16px;
  line-height: 1.9;
}

.branch-topic-article p:last-child {
  margin-bottom: 0;
}

.branch-topic-example {
  border-left: 4px solid var(--branch-gold) !important;
  background: var(--branch-gold-pale) !important;
}

.branch-topic-related .related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .region-grid,
  .method-grid,
  .learning-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-card-grid,
  .school-grid,
  .learning-grid,
  .related-grid,
  .branch-topic-link-grid,
  .branch-topic-related .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-detail-hero {
    grid-template-columns: 1fr;
  }

  .branch-detail-hero .branch-hero-actions {
    grid-column: auto;
  }

  .hero-facts {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 146px;
  }

  .branch-breadcrumb,
  .branch-shell {
    width: min(100% - 30px, 1080px);
  }

  .branch-breadcrumb {
    padding-top: 15px;
  }

  .branch-shell {
    padding-top: 28px;
  }

  .branch-hub-hero,
  .branch-detail-hero {
    padding: 20px 0 38px;
  }

  .branch-hub-hero h1,
  .branch-detail-hero h1 {
    font-size: clamp(29px, 9vw, 38px);
    line-height: 1.28;
  }

  .branch-hub-hero > p:last-of-type,
  .branch-detail-hero .branch-lead {
    font-size: 14px;
    line-height: 1.78;
  }

  .branch-answer {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px 19px;
  }

  .branch-answer .branch-kicker {
    grid-row: auto;
  }

  .branch-section,
  .branch-search-panel,
  .branch-media,
  .branch-primary-media {
    margin-top: 46px;
  }

  .branch-system-grid,
  .branch-ai-summary {
    grid-template-columns: 1fr;
  }

  .branch-ai-summary {
    gap: 20px;
    padding: 22px 18px;
  }

  .branch-search-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 18px;
  }

  .branch-search-status {
    grid-column: 1;
    margin-top: -12px;
  }

  .branch-media-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .branch-media figure {
    aspect-ratio: 4 / 3;
  }

  .info-list,
  .consult-checklist {
    grid-template-columns: 1fr;
  }

  .branch-table-wrap th,
  .branch-table-wrap td {
    padding: 13px 11px;
  }

  .branch-table-wrap thead th:first-child,
  .branch-table-wrap tbody th {
    width: 25%;
  }

  .consult-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 18px;
  }

  .consult-cta .branch-button {
    width: 100%;
  }

  .branch-directory-page .wawa-fixed-fab-container {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
    border-top: 1px solid var(--branch-line) !important;
    background: rgba(246, 242, 233, 0.96) !important;
    backdrop-filter: blur(8px) !important;
  }

  .branch-directory-page .wawa-fab-item {
    width: 100% !important;
    max-width: none !important;
    min-height: 46px !important;
    padding: 8px 6px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 520px) {
  .branch-shell {
    padding-bottom: 86px;
  }

  .branch-kicker {
    font-size: 10px;
    letter-spacing: 0.13em;
  }

  .branch-section-head h2,
  .branch-search-panel h2 {
    font-size: 25px;
  }

  .branch-section-head > p:last-child,
  .branch-search-panel > div > p:last-child,
  .branch-answer > p:last-child {
    font-size: 14px;
  }

  .branch-hero-actions,
  .info-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .branch-button {
    width: 100%;
    min-height: 48px;
  }

  .region-grid,
  .method-grid,
  .branch-card-grid,
  .school-grid,
  .learning-grid,
  .learning-flow,
  .related-grid,
  .branch-topic-link-grid,
  .branch-topic-status,
  .branch-topic-related .related-grid {
    grid-template-columns: 1fr;
  }

  .branch-topic-link-grid a {
    min-height: 0;
    padding: 16px;
  }

  .branch-topic-hero h1 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.25;
  }

  .branch-topic-article p {
    font-size: 15px;
    line-height: 1.82;
  }

  .region-card {
    min-height: 116px;
  }

  .branch-card > a {
    min-height: 216px;
  }

  .method-grid li {
    min-height: 160px;
  }

  .branch-search-field {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .branch-search-field input {
    min-width: 0;
    padding: 0 11px;
    font-size: 13px;
  }

  .branch-search-field button {
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
  }

  .branch-toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-toc strong {
    grid-column: 1 / -1;
  }

  .branch-toc a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    text-align: center;
  }

  .info-list div,
  .school-grid article,
  .learning-grid article,
  .related-grid a {
    padding: 19px 17px;
  }

  .branch-faq summary {
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
