/* Theme and layout enhancements (from the approved V7 design).
   Order matters: these rules follow the original core component/page styles. */

/* Visual language: typography, clinical surfaces, glass accents and gradient.
   Shared component definitions are in components.css; palette tokens are in tokens.css. */
html {
  font-size: 21px
}

body {
  font-family: var(--font-th);
  line-height: 1.46;
  font-size: 1.08rem;
  font-weight: 400;
  background: radial-gradient(circle at 84% 4%, rgba(190, 231, 249, .36), transparent 24%), radial-gradient(circle at 5% 18%, rgba(203, 245, 220, .3), transparent 27%), #f6f9fc
}

strong {
  font-weight: 700
}

a,
button {
  transition: color .18s ease, background .2s ease, border-color .2s ease, transform .2s ease
}

.app-header {
  background: rgba(255, 255, 255, .89);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(220, 233, 241, .85);
  position: relative;
  z-index: 2
}

.brand {
  gap: 12px
}

.brand-text strong {
  font-family: var(--font-th);
  font-size: 1.12rem;
  letter-spacing: 0;
  line-height: 1.05
}

.brand-text small {
  font-family: var(--font-th);
  font-size: .89rem;
  line-height: 1.12;
  margin-top: 4px
}

.brand-mark {
  background: linear-gradient(140deg, #2360a3, #20a18d);
  box-shadow: 0 4px 12px rgba(46, 122, 166, .15)
}

.desktop-nav a {
  font-size: .87rem
}

.header-contact {
  font-size: .9rem
}

.overline {
  font: .7rem/1.2 var(--font-en);
  font-weight: 700;
  letter-spacing: .05em
}

.hero-home {
  padding-block: 50px 38px
}

.hero-home h1 {
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.12
}

.hero-home h1 span {
  color: var(--ink)
}

.hero-home p {
  font-size: 1rem;
  line-height: 1.38
}

.hero-meta {
  font-size: .88rem
}

.hero-motif {
  background: linear-gradient(139deg, #dbf0ff, #daf8ef 55%, #fcece5);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px #2f7a9b12;
  transform: rotate(2deg)
}

.hero-motif::before {
  border-color: #ffffffb8
}

.motif-disc {
  background: #ffffffdb;
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 18px #356ca219
}

.motif-caption {
  font-size: .68rem
}

.subpage-heading h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0
}

.subpage-heading p {
  font-size: .97rem
}

.back-link {
  font-size: .9rem
}

.page-icon {
  background: linear-gradient(140deg, #e7f2ff, #e5fbef);
  border: 1px solid white;
  box-shadow: 0 8px 25px #287cb814
}

.content-panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px)
}

.section-heading h2 {
  font-size: 1.42rem;
  letter-spacing: 0
}

.section-heading p {
  font-size: .94rem
}

.section-heading {
  margin-bottom: 19px
}

.service-grid {
  gap: 14px
}

.service-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 253, 255, .87));
  border: 1px solid #e0ebf3;
  border-radius: 21px;
  box-shadow: 0 5px 18px rgba(40, 75, 107, .034);
  min-height: 186px;
  overflow: hidden
}

.service-card:before {
  content: "";
  position: absolute;
  right: -28px;
  top: -45px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(145deg, #daf2ff9a, #e1f8ee70);
  pointer-events: none
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(38, 94, 129, .09);
  border-color: #b6d8e8
}

.card-icon {
  position: relative;
  background: linear-gradient(135deg, #ecf4ff, #dcf3fb);
  border: 1px solid #ffffffec;
  border-radius: 16px;
  box-shadow: inset 0 1px #fff
}

.tone-teal .card-icon {
  background: linear-gradient(135deg, #d5f5e8, #e7fafd)
}

.tone-sky .card-icon {
  background: linear-gradient(135deg, #e2f5ff, #e4f2ff)
}

.tone-navy .card-icon {
  background: linear-gradient(135deg, #e2e9fe, #e9f8fc)
}

.card-copy strong {
  font-size: 1.18rem;
  line-height: 1.11
}

.card-copy small {
  font-size: .94rem;
  line-height: 1.25
}

.card-action {
  z-index: 1
}

.support-strip {
  background: linear-gradient(112deg, #eaf6ff, #e7f8ef);
  border-color: #d8e8f3;
  border-radius: 17px
}

.support-strip strong {
  font-size: 1.08rem
}

.support-strip small {
  font-size: .91rem
}

.support-symbol {
  box-shadow: 0 3px 10px #1555780c
}

.callout {
  font-size: 1rem;
  line-height: 1.3
}

.list-row {
  background: rgba(255, 255, 255, .9);
  border-color: #dfe9f0;
  min-height: 84px;
  border-radius: 16px
}

.list-row:hover {
  background: linear-gradient(110deg, #fff, #f5fbff)
}

.row-icon {
  background: linear-gradient(135deg, #e7f3fe, #dff9f1)
}

.row-content strong {
  font-size: 1.11rem;
  line-height: 1.13
}

.row-content small {
  font-size: .9rem;
  line-height: 1.25
}

.accordion-body {
  font-size: .98rem;
  line-height: 1.4
}

.micro-note {
  font-size: .92rem;
  line-height: 1.34
}

.download-hint {
  font-size: .92rem
}

.footer strong {
  font-family: var(--font-th);
  font-size: .95rem
}

.footer span,
.footer p {
  font-size: .85rem
}

.menu-heading h2 {
  font-size: 1.4rem
}

.menu-links a {
  font-size: 1rem
}

.menu-dialog {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(20px)
}

.glass-panel {
  background: linear-gradient(143deg, rgba(255, 255, 255, .92), rgba(249, 253, 255, .74));
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 10px 29px rgba(45, 79, 112, .075), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px)
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--brand-teal);
  line-height: 1.05
}

/* Page: detailed dental steps */
.feature-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 26px
}

.feature-heading-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #244b91;
  background: linear-gradient(130deg, #dceeff, #d7fae9);
  border: 1px solid white
}

.feature-heading-icon svg {
  width: 31px;
  height: 31px
}

.feature-heading h2 {
  font-size: 1.64rem;
  margin: 1px 0 3px
}

.feature-heading p {
  font-size: .97rem;
  color: var(--ink-muted)
}

.dental-steps {
  display: grid;
  gap: 17px;
  position: relative
}

.dental-steps::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 50px;
  bottom: 68px;
  width: 2px;
  background: linear-gradient(#c4e2f2, #c2f2dc);
  z-index: 0
}

.dental-step {
  position: relative;
  z-index: 1;
  border-radius: 23px;
  padding: 20px 23px 22px
}

.dental-step-top {
  display: flex;
  align-items: center;
  gap: 17px
}

.dental-step-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 73px;
  height: 73px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 2rem;
  color: #17538b;
  background: linear-gradient(135deg, #deefff, #c6eaf6)
}

.dental-step-2 .dental-step-number {
  background: linear-gradient(135deg, #e2dcff, #f2defe);
  color: #69449a
}

.dental-step-3 .dental-step-number {
  background: linear-gradient(135deg, #d8f5e8, #e3f9d8);
  color: #168165
}

.dental-step-title {
  flex: 1
}

.dental-step-title h2 {
  font-size: 1.35rem;
  line-height: 1.09;
  margin-top: 5px
}

.dental-step-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #e4edf4;
  background: #fff;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #4879a3
}

.dental-step-details {
  margin-left: 90px;
  margin-top: 13px;
  display: grid;
  gap: 11px
}

.dental-step-details p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.23
}

.dental-location {
  display: flex;
  align-items: start;
  gap: 10px
}

.dental-location>svg {
  margin-top: 3px;
  color: #2b87a7;
  width: 20px;
  height: 20px
}

.dental-location strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.2
}

.dental-location span {
  display: block;
  color: var(--ink-muted);
  font-size: .92rem;
  line-height: 1.2
}

.dental-detail-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #76508f;
  font-size: 1rem
}

.dental-detail-line svg {
  width: 19px;
  height: 19px
}

.dental-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  border-radius: 12px;
  background: #e5f2fc;
  color: #1f5486;
  padding: 7px 12px;
  font-size: 1rem;
  font-weight: 700
}

.dental-phone svg {
  width: 18px;
  height: 18px
}

/* Page: 4 stages */
.place-summary {
  background: linear-gradient(112deg, #ecf6ff, #e6f8ee);
  border-color: #d6e9f0
}

.place-summary strong {
  font-size: 1.17rem
}

.place-summary small,
.place-summary span:last-child:not(.place-icon) {
  font-size: .9rem
}

.overview-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 8px 0 27px;
  position: relative
}

.overview-timeline::before {
  position: absolute;
  content: "";
  height: 3px;
  background: #e2eaf0;
  top: 23px;
  left: 12%;
  right: 12%;
  z-index: 0
}

.overview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  position: relative;
  z-index: 1
}

.overview-item>span {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 0 0 1px #e1e9ef;
  display: grid;
  place-items: center;
  background: #eaeef4;
  font-size: 1.3rem;
  font-weight: 700;
  color: #475a78
}

.overview-amber>span {
  background: #fff0d9;
  color: #c47619
}

.overview-coral>span {
  background: #ffe3e4;
  color: #b64f5c
}

.overview-mint>span {
  background: #d9f8eb;
  color: #168567
}

.overview-item strong {
  font-size: .97rem;
  line-height: 1.12
}

.overview-item small {
  font-size: .78rem;
  line-height: 1.18;
  color: var(--ink-muted);
  max-width: 158px
}

.service-process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px
}

.process-panel {
  border-radius: 21px;
  padding: 20px 21px 21px;
  min-width: 0;
  position: relative;
  border: 1px solid #dae7ef
}

.process-full {
  grid-column: 1/-1
}

.process-amber {
  border-top: 4px solid #e9ad69
}

.process-coral {
  border-top: 4px solid #df8793
}

.process-mint {
  border-top: 4px solid #63cdb0
}

.process-slate {
  border-top: 4px solid #9ab2c9
}

.process-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 14px;
  margin-bottom: 13px;
  border-bottom: 1px solid #e9eff4
}

.process-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 15px;
  background: #f8e8d8;
  color: #b76c13;
  font-size: 1.35rem;
  font-weight: 700
}

.process-coral .process-num {
  background: #ffe8ea;
  color: #a94d5b
}

.process-mint .process-num {
  background: #e0faef;
  color: #178866
}

.process-slate .process-num {
  background: #e9f1f8;
  color: #526f87
}

.process-heading>div {
  flex: 1
}

.process-heading h3 {
  font-size: 1.2rem;
  line-height: 1.1;
  margin-top: 2px
}

.process-heading>svg {
  color: #6f93a8;
  width: 26px;
  height: 26px
}

.process-panel>p {
  font-size: .98rem;
  line-height: 1.33;
  color: var(--ink-muted)
}

.process-panel>p strong {
  color: var(--ink)
}

.process-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff4e6;
  color: #8d5920;
  padding: 8px 11px;
  border-radius: 10px;
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 700
}

.process-chip svg {
  width: 19px;
  height: 19px
}

.process-panel .attention-line {
  color: #b55640;
  font-weight: 700;
  margin-top: 11px
}

.rights-list {
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  list-style: none
}

.rights-list li {
  display: flex;
  gap: 9px;
  align-items: start;
  font-size: .92rem;
  line-height: 1.2
}

.bullet-tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5f7ef;
  color: #187b60;
  flex-shrink: 0
}

.bullet-tick svg {
  width: 13px;
  height: 13px
}

.rights-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 25px
}

.right-track {
  background: #f4fbf8;
  border: 1px solid #e1f1ea;
  border-radius: 16px;
  padding: 19px
}

.right-track h4,
.right-item h4 {
  font-size: 1.13rem;
  color: #185e64;
  line-height: 1.13
}

.right-track>p,
.right-item p {
  font-size: .95rem;
  line-height: 1.3;
  color: var(--ink-muted);
  margin-top: 6px
}

.track-task {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 16px
}

.track-task span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(130deg, #b6f0d9, #cdeffa);
  color: #116c70;
  font-size: 1.12rem;
  font-weight: 700
}

.track-task p {
  font-size: .95rem;
  line-height: 1.26
}

.track-task p strong {
  display: block
}

.other-rights {
  display: grid;
  gap: 15px
}

.right-item {
  display: flex;
  gap: 12px
}

.right-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(140deg, #d9f2ec, #ddecff);
  color: #168575;
  display: grid;
  place-items: center
}

.right-item-icon svg {
  width: 20px;
  height: 20px
}

.process-info,
.process-warning {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  margin-top: 17px;
  border-radius: 13px;
  background: #dff7ef;
  color: #175d60
}

.process-info svg,
.process-warning svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px
}

.process-info p,
.process-warning p {
  font-size: .95rem;
  line-height: 1.3
}

.process-warning {
  background: #fff0ed;
  color: #a6534d;
  margin-top: 8px
}

.process-slate>p {
  font-size: 1.02rem
}

/* Page: OPD floors */
.opd-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 17px;
  padding: 18px;
  margin-bottom: 27px
}

.opd-intro-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(130deg, #e6f1ff, #e1f9f0);
  color: #285c8c
}

.opd-intro-icon svg {
  width: 25px;
  height: 25px
}

.opd-intro strong {
  font-size: 1.18rem
}

.opd-intro p {
  font-size: .94rem;
  color: var(--ink-muted)
}

.floor-list {
  gap: 11px
}

.floor-row {
  background: linear-gradient(120deg, rgba(255, 255, 255, .98), rgba(250, 253, 255, .88));
  border-color: #e0eaf0;
  border-radius: 17px;
  min-height: 90px;
  box-shadow: 0 2px 10px #38789d08;
  gap: 16px
}

.floor-row:hover {
  transform: translateX(2px);
  border-color: #b6d7e9;
  background: #fafdff
}

.floor-pill {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(140deg, #d5f9ed, #dbf7fc);
  color: #127b79;
  font-size: 1.85rem;
  font-weight: 700
}

.floor-green .floor-pill {
  background: linear-gradient(145deg, #e1f4d5, #ccf2dd);
  color: #488a4c
}

.floor-lilac .floor-pill {
  background: linear-gradient(145deg, #f0e6ff, #e8eaff);
  color: #7560a2
}

.floor-amber .floor-pill {
  background: linear-gradient(145deg, #fff0d3, #ffe3ca);
  color: #b26e30
}

.floor-sky .floor-pill {
  background: linear-gradient(145deg, #dfecff, #d5f5fb);
  color: #3b75ae
}

.floor-name small {
  font-size: .84rem;
  line-height: 1.14
}

.floor-name strong {
  font-size: 1.12rem;
  line-height: 1.08;
  margin-top: 3px
}

.floor-preview {
  display: block;
  font-size: .88rem;
  line-height: 1.2;
  color: var(--ink-muted);
  margin-top: 4px
}

.floor-badge {
  display: inline-block;
  background: #e1f5ed;
  color: #137b60;
  border-radius: 99px;
  padding: 2px 7px;
  margin-left: 6px;
  font-size: .7rem
}

.floor-details {
  background: #fbfeff;
  border-color: #d7e6f1;
  padding: 16px 20px 18px 94px;
  font-size: .97rem;
  line-height: 1.3
}

.floor-details>p {
  font-weight: 700;
  color: var(--brand-teal);
  margin-bottom: 10px
}

.floor-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px
}

.floor-details li {
  display: flex;
  align-items: start;
  gap: 7px
}

.floor-details li svg {
  color: #1f947f;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0
}

.floor-inline-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 700;
  color: #22629a;
  background: #edf5ff;
  border-radius: 10px;
  margin-top: 15px;
  padding: 8px 12px;
  font-size: .91rem
}

.floor-inline-link svg {
  width: 17px;
  height: 17px
}

/* Visual polish / animation — never communicate state by animation alone */
@media(prefers-reduced-motion:no-preference) {

  .content-panel,
  .hero-content,
  .page-icon {
    animation: soft-in .42s cubic-bezier(.22, .9, .3, 1) both
  }

  .service-card,
  .dental-step,
  .process-panel,
  .floor-accordion {
    animation: card-in .45s cubic-bezier(.22, .9, .3, 1) both
  }

  .service-card:nth-child(2),
  .dental-step:nth-child(2),
  .process-panel:nth-child(2),
  .floor-accordion:nth-child(2) {
    animation-delay: .05s
  }

  .service-card:nth-child(3),
  .dental-step:nth-child(3),
  .process-panel:nth-child(3),
  .floor-accordion:nth-child(3) {
    animation-delay: .09s
  }

  .service-card:nth-child(4),
  .process-panel:nth-child(4),
  .floor-accordion:nth-child(4) {
    animation-delay: .12s
  }

  .row-accordion[open] .row-action,
  .floor-accordion[open] .floor-chevron {
    transform: rotate(90deg)
  }

  .floor-chevron,
  .row-action {
    transition: transform .22s ease
  }

  @keyframes soft-in {
    from {
      opacity: .3;
      transform: translateY(8px)
    }

    to {
      opacity: 1;
      transform: translateY(0)
    }
  }

  @keyframes card-in {
    from {
      opacity: .5;
      transform: translateY(10px)
    }

    to {
      opacity: 1;
      transform: translateY(0)
    }
  }
}

@media(max-width:900px) {
  .brand-text strong {
    font-size: 1.06rem
  }
}

@media(max-width:650px) {
  html {
    font-size: 20px
  }

  .site {
    padding-bottom: calc(102px + env(safe-area-inset-bottom))
  }

  .layout {
    width: calc(100% - 32px)
  }

  .header-inner {
    min-height: 74px;
    gap: 9px
  }

  .brand-mark {
    width: 39px;
    height: 39px
  }

  .brand-text strong {
    font-size: .98rem;
    line-height: 1
  }

  .brand-text small {
    font-size: .81rem;
    margin-top: 5px
  }

  .header-contact {
    flex-shrink: 0
  }

  .hero-home {
    padding-top: 32px;
    padding-bottom: 30px
  }

  .hero-home h1 {
    font-size: 2.25rem;
    line-height: 1.08
  }

  .hero-home p {
    font-size: 1rem;
    line-height: 1.3
  }

  .hero-meta {
    font-size: .83rem
  }

  .hero-page {
    padding-block: 16px 24px
  }

  .subpage-heading h1 {
    font-size: 1.83rem
  }

  .subpage-heading p {
    font-size: .96rem
  }

  .subpage-heading .overline {
    font-size: .72rem
  }

  .content-panel {
    width: calc(100% - 16px);
    border-radius: 24px;
    padding: 25px 16px 31px;
    margin-inline: auto;
    box-shadow: 0 5px 20px #255c8c09;
    background: rgba(255, 255, 255, .93);
    min-height: calc(100svh - 330px)
  }

  .service-grid {
    gap: 11px
  }

  .service-card {
    min-height: 168px;
    padding: 15px;
    border-radius: 17px
  }

  .card-copy strong {
    font-size: 1.14rem
  }

  .card-copy small {
    font-size: .91rem
  }

  .card-copy {
    padding-top: 14px
  }

  .section-heading h2 {
    font-size: 1.32rem
  }

  .section-heading p {
    font-size: .95rem
  }

  .support-strip strong {
    font-size: 1.08rem
  }

  .support-strip small {
    font-size: .9rem
  }

  .callout {
    font-size: 1rem
  }

  .list-row {
    min-height: 82px
  }

  .row-content strong {
    font-size: 1.07rem
  }

  .row-content small {
    font-size: .9rem
  }

  .accordion-body {
    font-size: .99rem
  }

  .bottom-nav {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: #e2eaf1
  }

  .bottom-item {
    font-size: .8rem;
    gap: 3px;
    min-height: 56px
  }

  .bottom-item svg {
    width: 21px;
    height: 21px
  }

  .footer strong {
    font-size: .92rem
  }

  .footer span,
  .footer p {
    font-size: .82rem
  }

  .feature-heading {
    gap: 11px;
    margin-bottom: 20px
  }

  .feature-heading-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px
  }

  .feature-heading h2 {
    font-size: 1.48rem
  }

  .feature-heading p {
    font-size: .91rem
  }

  .dental-steps {
    gap: 12px
  }

  .dental-steps:before {
    left: 27px;
    top: 50px;
    bottom: 50px
  }

  .dental-step {
    padding: 16px;
    border-radius: 17px
  }

  .dental-step-top {
    gap: 11px
  }

  .dental-step-number {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    font-size: 1.57rem
  }

  .dental-step-title h2 {
    font-size: 1.17rem
  }

  .dental-step-icon {
    width: 33px;
    height: 33px;
    border-radius: 10px
  }

  .dental-step-icon svg {
    width: 18px;
    height: 18px
  }

  .dental-step-details {
    margin-left: 0;
    padding-left: 66px;
    margin-top: 13px;
    gap: 9px
  }

  .dental-location strong {
    font-size: 1.08rem
  }

  .dental-location span {
    font-size: .91rem
  }

  .dental-detail-line {
    font-size: .99rem
  }

  .dental-step-details p {
    font-size: .96rem
  }

  .overview-timeline {
    gap: 3px;
    margin-bottom: 22px
  }

  .overview-item>span {
    width: 41px;
    height: 41px;
    font-size: 1.13rem;
    border-width: 4px
  }

  .overview-timeline:before {
    top: 20px
  }

  .overview-item strong {
    font-size: .83rem
  }

  .overview-item small {
    font-size: .69rem;
    line-height: 1.13
  }

  .service-process {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .process-full {
    grid-column: auto
  }

  .process-panel {
    padding: 17px;
    border-radius: 17px
  }

  .process-heading h3 {
    font-size: 1.25rem
  }

  .process-panel>p,
  .rights-list li,
  .right-track>p,
  .right-item p,
  .track-task p,
  .process-info p,
  .process-warning p {
    font-size: .98rem
  }

  .rights-layout {
    grid-template-columns: 1fr;
    gap: 19px
  }

  .right-track {
    padding: 15px
  }

  .right-item h4,
  .right-track h4 {
    font-size: 1.14rem
  }

  .process-info,
  .process-warning {
    padding: 12px
  }

  .opd-intro {
    padding: 13px
  }

  .opd-intro strong {
    font-size: 1.1rem
  }

  .opd-intro p {
    font-size: .92rem
  }

  .floor-row {
    min-height: 85px;
    padding: 11px 12px;
    gap: 11px
  }

  .floor-pill {
    width: 49px;
    height: 49px;
    border-radius: 13px;
    font-size: 1.58rem
  }

  .floor-name small {
    font-size: .8rem
  }

  .floor-name strong {
    font-size: 1.09rem
  }

  .floor-preview {
    font-size: .86rem
  }

  .floor-details {
    padding: 15px;
    font-size: .97rem
  }

  .floor-details ul {
    grid-template-columns: 1fr
  }

  .floor-inline-link {
    font-size: .88rem
  }
}

@media(max-width:350px) {
  .brand-mark {
    width: 34px;
    height: 34px
  }

  .brand-text strong {
    font-size: .89rem
  }

  .brand-text small {
    font-size: .75rem
  }

  .dental-step-icon {
    display: none
  }

  .floor-preview {
    font-size: .8rem
  }

  .overview-item strong {
    font-size: .74rem
  }

  .overview-item small {
    font-size: .65rem
  }

  .bottom-item {
    font-size: .72rem
  }
}


/* Desktop and mobile layout composition */
/* VERSION 4 / UX-first healthcare journey
 * Principles: one obvious reading path, scannable service facts, quiet pastel surfaces,
 * transparent desktop masthead, visible focus, and reduced-motion support.
 * Modify palette only in tokens.css; this file uses tokens and route-scoped components.
 */
:root {
  --brand-mahidol: #23468f;
  --brand-deep: #1c3d72;
  --brand-teal: #176e69;
  --brand-blue: #3c76b9;
  --brand-sky: #eff8fc;
  --canvas: #f8fbfc;
  --surface-teal: #e9f7f1;
  --surface-blue: #edf5ff;
  --ink: #17374b;
  --ink-muted: #526879;
  --ink-subtle: #587487;
  --border: #dbe8ee;
  --shadow-soft: 0 16px 50px rgba(34, 85, 108, .065), 0 2px 10px rgba(34, 85, 108, .025);
  --v4-ease: cubic-bezier(.22, 1, .36, 1);
}

body {
  background: #f8fbfc;
  line-height: 1.42
}

.site {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: radial-gradient(ellipse 58% 470px at 93% 1%, rgba(217, 235, 255, .72), transparent 95%),
    radial-gradient(ellipse 52% 470px at 6% 7%, rgba(215, 249, 235, .72), transparent 90%),
    linear-gradient(180deg, #f9fcfd 0%, #f7fafb 50%, #fff 100%)
}

.layout {
  width: min(calc(100% - 48px), 1140px)
}

/* TRANSPARENT desktop masthead: no navigation bar or opaque strip */
.app-header {
  position: relative;
  z-index: 4;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin-bottom: -89px
}

.header-inner {
  min-height: 89px;
  justify-content: space-between
}

.desktop-nav {
  display: none !important
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #244c91, #1a9c95);
  box-shadow: 0 5px 15px rgba(35, 88, 133, .12);
  border-radius: 15px
}

.brand-text strong {
  font-size: 1.1rem;
  color: var(--brand-deep)
}

.brand-text small {
  font-size: .88rem;
  color: var(--ink-muted)
}

.header-contact {
  background: transparent !important;
  border: 1px solid rgba(64, 119, 143, .18) !important;
  border-radius: 100px;
  padding: 9px 15px;
  gap: 8px;
  box-shadow: none;
  font-size: .91rem;
  color: var(--brand-deep)
}

.header-contact:hover {
  background: rgba(255, 255, 255, .48) !important;
  border-color: rgba(44, 124, 139, .42) !important
}

/* Heroes and page headers connect visually into the transparent masthead */
.hero-home {
  padding-top: 151px;
  padding-bottom: 47px
}

.hero-page {
  padding-top: 118px;
  padding-bottom: 31px
}

.hero-home h1 {
  font-size: clamp(2.5rem, 4.8vw, 3.75rem);
  max-width: 780px
}

.hero-home h1 span {
  color: var(--brand-teal)
}

.hero-home p {
  max-width: 640px
}

.hero-meta {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .94);
  width: fit-content;
  border-radius: 100px;
  padding: 9px 14px;
  box-shadow: 0 4px 15px rgba(46, 106, 137, .04)
}

.hero-motif {
  background: linear-gradient(145deg, #dff2ff, #d6f6e8 68%, #f8ede8);
  box-shadow: 0 18px 60px rgba(35, 95, 120, .08)
}

.hero-page .subpage-heading {
  margin-top: 16px
}

.hero-page .subpage-heading h1 {
  font-size: clamp(2.05rem, 4vw, 3.05rem);
  line-height: 1.07
}

.hero-page .subpage-heading p {
  font-size: 1.02rem;
  line-height: 1.35
}

.hero-page .page-icon {
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 8px 24px rgba(39, 99, 125, .06);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 22px
}

.back-link {
  padding: 2px 9px 2px 0;
  font-size: .94rem;
  color: var(--brand-deep)
}

/* Main surfaces: consistent across all pages */
.content-panel {
  border: 1px solid rgba(222, 236, 239, .75) !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 16px 64px rgba(37, 80, 108, .047) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 30px;
  padding: 40px 44px 47px
}

.page-column {
  max-width: 880px
}

.route-arrival .page-column,
.route-dental .page-column {
  max-width: none
}

.route-arrival,
.route-dental {
  padding: 43px 44px 49px
}

/* Existing screens kept familiar: gently tuned rhythm */
.service-card {
  border-radius: 20px;
  border: 1px solid rgba(212, 231, 238, .78);
  box-shadow: 0 6px 24px rgba(40, 95, 110, .035)
}

.service-card:hover {
  transform: translateY(-2px)
}

.row-content strong {
  line-height: 1.16
}

.row-content small {
  line-height: 1.28
}

.list-row {
  border-radius: 18px
}

.callout,
.support-strip {
  border-radius: 18px
}

/* Common guided-process components */
.guide-head {
  min-height: 222px;
  border-radius: 27px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 35px;
  background: linear-gradient(113deg, #eff8f5 2%, #e7f5f8 58%, #eaf1ff 100%);
  border: 1px solid #dcedef
}

.guide-head::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  width: 265px;
  height: 265px;
  right: -70px;
  top: -86px;
  pointer-events: none
}

.guide-head::before {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  width: 190px;
  height: 190px;
  right: -24px;
  top: -43px;
  pointer-events: none
}

.dental-guide {
  background: linear-gradient(112deg, #f4f7ff, #f2f9ff 48%, #effaf6 100%)
}

.guide-head-copy {
  position: relative;
  z-index: 1;
  max-width: 730px
}

.guide-kicker,
.mini-kicker {
  display: block;
  color: #227b7a;
  font-family: var(--font-en);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.3
}

.guide-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  line-height: 1.04;
  color: #1b4769;
  margin: 10px 0 8px;
  font-weight: 700;
  letter-spacing: 0
}

.guide-head h2 em {
  font-style: normal;
  color: #157a75
}

.guide-head p {
  max-width: 580px;
  color: #4c6877;
  font-size: 1rem;
  line-height: 1.25
}

.guide-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 17px
}

.guide-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .87rem;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 99px;
  border: 1px solid #ffffffc7;
  background: #ffffff9c;
  color: #285879;
  line-height: 1.05
}

.guide-tags svg {
  width: 17px;
  height: 17px;
  color: #187a75
}

.guide-visual {
  width: 115px;
  height: 115px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .54);
  border: 1px solid #ffffffd6;
  box-shadow: 0 15px 40px #49818d10;
  flex-shrink: 0;
  transform: rotate(6deg);
  color: #267b91;
  position: relative;
  z-index: 1
}

.guide-visual svg {
  width: 62px;
  height: 62px;
  stroke-width: 1.15
}

.guide-section-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 37px 0 23px
}

.section-count {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 92px;
  padding: 8px 15px;
  border-radius: 100px;
  background: #ecf7f3;
  border: 1px solid #d7ede6;
  color: #16766d;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .03em
}

.guide-section-heading h2 {
  color: #203e53;
  line-height: 1.06;
  font-size: 1.48rem;
  letter-spacing: 0
}

.guide-section-heading p {
  color: var(--ink-muted);
  font-size: .94rem;
  margin-top: 5px;
  line-height: 1.25
}

.guided-journey {
  padding: 0 0 0 6px;
  margin: 0;
  display: grid;
  gap: 21px;
  list-style: none;
  position: relative
}

.guided-journey::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 27px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg, #9dded0, #ccdfed 64%, #d6e1ee);
  pointer-events: none
}

.journey-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 17px;
  position: relative;
  min-width: 0;
  scroll-margin-top: 20px
}

.journey-marker {
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  margin: 14px 0 0 0;
  background: #e5f6ef;
  color: #087468;
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 700;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px #d7ebe5, 0 4px 12px #1d8c7e0c
}

.journey-item:nth-child(2) .journey-marker {
  background: #eaf1ff;
  color: #2a5599;
  border-color: #fff;
  box-shadow: 0 0 0 1px #dce6f8
}

.journey-item:nth-child(3) .journey-marker {
  background: #e6f8f4;
  color: #127968
}

.journey-item:nth-child(4) .journey-marker {
  background: #edf3fc;
  color: #426a8e
}

.journey-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dae9ef;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(35, 84, 111, .044), 0 1px 2px rgba(35, 84, 111, .025);
  padding: 24px 27px 25px;
  min-width: 0
}

.journey-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 17px;
  margin-bottom: 18px
}

.journey-label {
  display: block;
  margin-bottom: 5px;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #147d77
}

.journey-card-header h3 {
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: 0;
  color: #1c405b;
  font-weight: 700
}

.journey-intro {
  font-size: .97rem;
  line-height: 1.25;
  margin-top: 5px;
  color: #667b87
}

.journey-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #ecf7f5;
  color: #207e78;
  border: 1px solid #e0f0e9
}

.journey-symbol svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.6
}

.journey-item:nth-child(2) .journey-symbol {
  background: #edf4ff;
  color: #356baa;
  border-color: #e4eff9
}

.journey-facts {
  display: grid;
  gap: 10px;
  margin-top: 4px
}

.journey-facts.has-two {
  grid-template-columns: 1.35fr 1fr
}

.journey-fact {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid #e2eef0;
  background: #f8fcfc
}

.journey-fact:nth-child(2) {
  background: #f8faff;
  border-color: #e5ebf7
}

.fact-glyph {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #e8f5f0;
  color: #24776d
}

.journey-fact:nth-child(2) .fact-glyph {
  background: #e9f0ff;
  color: #416db2
}

.fact-glyph svg {
  width: 19px;
  height: 19px
}

.journey-fact>div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px
}

.fact-label {
  font-size: .83rem;
  line-height: 1.14;
  color: #6b8190
}

.journey-fact strong {
  font-size: 1.09rem;
  line-height: 1.12;
  color: #1d4861
}

.journey-fact div>span:last-child:not(.fact-label) {
  font-size: .93rem;
  color: #526a7a;
  line-height: 1.19
}

.journey-description {
  font-size: 1.04rem;
  line-height: 1.35;
  color: #536a7b;
  margin: 0 0 18px
}

.journey-description strong {
  color: #1e455c
}

.subsection-label {
  font-size: 1.12rem;
  color: #193e59;
  font-weight: 700;
  margin-bottom: 10px
}

.journey-advice,
.journey-notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border-radius: 15px;
  margin-top: 12px;
  padding: 13px 16px;
  line-height: 1.35
}

.journey-advice {
  background: #f0f8f4;
  border: 1px solid #dbece4;
  color: #225e5b
}

.journey-advice p,
.journey-notice p {
  font-size: .98rem;
  line-height: 1.32
}

.journey-advice>svg,
.journey-notice>svg,
.advice-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #23786e
}

.advice-mark {
  display: grid;
  place-items: center
}

.advice-mark svg {
  width: 21px;
  height: 21px
}

.journey-notice.notice-peach {
  background: #fff7f0;
  border: 1px solid #f6e6d8;
  color: #864f35
}

.journey-notice.notice-peach>svg {
  color: #bc7a4b
}

.journey-notice.notice-mint {
  background: #edf8f3;
  border: 1px solid #d5ecdf;
  color: #24645e
}

.journey-notice>svg {
  margin-top: 2px
}

.inline-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  color: #245d92;
  background: #edf5fd;
  border: 1px solid #daeafb;
  border-radius: 12px;
  margin-top: 14px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: .91rem
}

.inline-phone svg {
  width: 17px;
  height: 17px
}

.inline-phone svg:last-child {
  margin-left: 8px
}

.inline-phone:hover {
  background: #e3efff
}

/* Dental: more space for sequential directions instead of equal-weight blocks. */
.dental-journey {
  max-width: 1000px
}

.dental-item .journey-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, .99), rgba(252, 254, 255, .96))
}

.dental-item:nth-child(1) .journey-card {
  border-color: #dbece6
}

.dental-item:nth-child(2) .journey-card {
  border-color: #dce6fa
}

.dental-item:nth-child(3) .journey-card {
  border-color: #deeae8
}

/* Arrival: progressive disclosure through visual grouping, no information deleted. */
.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: 25px;
  align-items: start
}

.journey-layout .guided-journey {
  gap: 18px
}

.eligibility-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none
}

.eligibility-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f7fbfd;
  border: 1px solid #e1edf1;
  border-radius: 13px;
  padding: 12px 13px;
  font-size: .91rem;
  line-height: 1.23;
  color: #35566b;
  min-height: 77px
}

.option-dot {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #177d70;
  background: #e4f4ea;
  border-radius: 100px;
  margin-top: 1px
}

.option-dot svg {
  width: 14px;
  height: 14px
}

.entitlement-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 4px
}

.entitlement-primary {
  padding: 21px;
  border-radius: 17px;
  border: 1px solid #dbeee7;
  background: linear-gradient(145deg, #f0faf5, #f8fcfa)
}

.entitlement-primary h4 {
  font-size: 1.21rem;
  margin: 6px 0;
  color: #1d635d;
  line-height: 1.1
}

.entitlement-primary>p {
  font-size: .98rem;
  color: #57736e;
  line-height: 1.25
}

.substeps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 17px 0 0
}

.substeps li {
  display: flex;
  align-items: start;
  gap: 10px;
  background: #fff;
  border: 1px solid #e0efe9;
  padding: 13px 12px;
  border-radius: 13px
}

.substeps b {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #d5f3e7;
  color: #177666;
  font-size: 1.05rem;
  line-height: 1
}

.substeps li p {
  font-size: .9rem;
  line-height: 1.22;
  color: #556d65
}

.substeps li p strong {
  display: block;
  color: #1d5c55;
  margin-bottom: 4px
}

.entitlement-secondary {
  border: 1px solid #e1ebf2;
  border-radius: 18px;
  padding: 21px;
  background: #fbfdff
}

.entitlement-stack {
  display: grid;
  gap: 14px;
  margin-top: 12px
}

.entitlement-detail {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start
}

.entitlement-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  color: #297d78;
  background: #e6f6f1
}

.entitlement-icon svg {
  width: 19px;
  height: 19px
}

.entitlement-detail h4 {
  font-size: 1.04rem;
  line-height: 1.12;
  color: #245d68;
  margin-top: 1px
}

.entitlement-detail p {
  font-size: .9rem;
  line-height: 1.26;
  color: #5b7180;
  margin-top: 4px
}

/* Quiet secondary journey index on desktop; not a top navigation bar */
.journey-sidebar {
  position: sticky;
  top: 20px;
  min-width: 0
}

.sidebar-inner {
  border-radius: 22px;
  padding: 19px 15px 16px;
  background: rgba(242, 249, 250, .92);
  border: 1px solid #e0edf1;
  box-shadow: 0 6px 26px rgba(32, 73, 88, .033)
}

.sidebar-inner>h3 {
  font-size: 1.23rem;
  line-height: 1.1;
  margin: 5px 0 12px;
  color: #234b5f
}

.sidebar-inner .mini-kicker {
  font-size: .7rem
}

.sidebar-inner nav {
  display: grid;
  gap: 4px
}

.sidebar-inner nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 53px;
  padding: 9px 7px;
  color: #355d6d;
  border-radius: 12px;
  line-height: 1.13
}

.sidebar-inner nav a:hover,
.sidebar-inner nav a:focus-visible {
  background: #fff
}

.sidebar-inner nav a span {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #e1f2ed;
  color: #1d786e;
  font-weight: 700;
  font-size: .85rem
}

.sidebar-inner nav a strong {
  font-size: .83rem;
  font-weight: 600;
  flex: 1
}

.sidebar-inner nav a svg {
  width: 14px;
  height: 14px;
  color: #8a9fa9
}

.sidebar-contact {
  border-top: 1px solid #dbe9eb;
  padding: 15px 4px 2px;
  margin-top: 13px;
  display: flex;
  gap: 10px;
  align-items: center
}

.sidebar-contact>span {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #1e7c75;
  flex-shrink: 0
}

.sidebar-contact svg {
  width: 19px;
  height: 19px
}

.sidebar-contact small {
  display: block;
  font-size: .77rem;
  color: #6f8491
}

.sidebar-contact a {
  font-size: 1.13rem;
  font-weight: 700;
  color: #205e83;
  line-height: 1
}

.guide-endnote {
  margin: 25px 0 0 70px;
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 15px;
  background: #f5f9fc;
  border: 1px solid #e6edf4;
  color: #5b7280;
  line-height: 1.32
}

.guide-endnote svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: #44899f
}

.guide-endnote p {
  font-size: .91rem
}

.guide-endnote a {
  color: #1d648b;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px
}

/* Motion: short, meaningful, never necessary for understanding. */
@media(prefers-reduced-motion:no-preference) {
  .journey-card {
    animation: journey-reveal .48s var(--v4-ease) both
  }

  .journey-item:nth-child(2) .journey-card {
    animation-delay: .055s
  }

  .journey-item:nth-child(3) .journey-card {
    animation-delay: .095s
  }

  .journey-item:nth-child(4) .journey-card {
    animation-delay: .135s
  }

  .journey-card,
  .journey-fact,
  .sidebar-inner nav a,
  .inline-phone {
    transition: border-color .24s ease, box-shadow .24s ease, background .24s ease, transform .24s ease
  }

  .journey-card:hover {
    border-color: #c4dee8;
    box-shadow: 0 13px 38px rgba(37, 92, 113, .075)
  }

  .guide-visual {
    animation: visual-enter .7s var(--v4-ease) both
  }

  @keyframes journey-reveal {
    from {
      opacity: .15;
      transform: translateY(10px)
    }

    to {
      opacity: 1;
      transform: translateY(0)
    }
  }

  @keyframes visual-enter {
    from {
      opacity: .1;
      transform: rotate(10deg) translateY(12px)
    }

    to {
      opacity: 1;
      transform: rotate(6deg) translateY(0)
    }
  }
}

@media(max-width:1060px) {
  .journey-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px
  }

  .route-arrival,
  .route-dental {
    padding: 30px 26px
  }

  .journey-card {
    padding: 20px
  }

  .journey-sidebar nav a strong {
    font-size: .76rem
  }
}

@media(max-width:900px) {
  .journey-layout {
    display: block
  }

  .journey-sidebar {
    display: none
  }

  .route-arrival,
  .route-dental {
    padding: 25px 23px 32px
  }

  .journey-layout .guided-journey {
    gap: 16px
  }

  .substeps {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:650px) {
  .layout {
    width: calc(100% - 28px)
  }

  .app-header {
    margin-bottom: -77px
  }

  .header-inner {
    min-height: 77px;
    gap: 7px
  }

  .brand {
    gap: 8px
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px
  }

  .brand-mark svg {
    width: 21px;
    height: 21px
  }

  .brand-text strong {
    font-size: .93rem;
    line-height: 1.05
  }

  .brand-text small {
    font-size: .76rem;
    margin-top: 3px
  }

  .header-contact {
    width: 42px;
    height: 42px;
    padding: 0;
    border-color: #cfe2e7 !important;
    justify-content: center
  }

  .header-contact span {
    display: none
  }

  .hero-home {
    padding-top: 117px;
    padding-bottom: 32px
  }

  .hero-page {
    padding-top: 99px;
    padding-bottom: 24px
  }

  .hero-home h1 {
    font-size: 2.19rem
  }

  .hero-home p {
    line-height: 1.29
  }

  .hero-meta {
    border-radius: 15px;
    line-height: 1.28;
    padding: 9px 11px
  }

  .hero-page .subpage-heading {
    margin-top: 9px;
    gap: 10px
  }

  .hero-page .subpage-heading h1 {
    font-size: 1.82rem;
    line-height: 1.06
  }

  .hero-page .subpage-heading p {
    font-size: .92rem
  }

  .hero-page .page-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px
  }

  .content-panel {
    width: calc(100% - 14px);
    padding: 24px 17px 30px;
    border-radius: 24px;
    min-height: calc(100svh - 330px)
  }

  .route-arrival,
  .route-dental {
    padding: 16px 13px 27px
  }

  .guide-head {
    min-height: 0;
    padding: 23px 18px 20px;
    border-radius: 19px;
    gap: 3px
  }

  .guide-head h2 {
    font-size: 1.87rem;
    margin: 8px 0 9px
  }

  .guide-head p {
    font-size: .96rem;
    line-height: 1.22;
    max-width: 95%
  }

  .guide-kicker {
    font-size: .7rem
  }

  .guide-head::after {
    right: -155px;
    top: -97px
  }

  .guide-head::before {
    right: -105px;
    top: -76px
  }

  .guide-visual {
    width: 53px;
    height: 53px;
    border-radius: 16px;
    align-self: flex-start;
    background: #ffffff88;
    margin-top: 12px;
    position: absolute;
    right: 15px;
    top: 12px;
    opacity: .65
  }

  .guide-visual svg {
    width: 29px;
    height: 29px
  }

  .guide-head-copy {
    padding-right: 0
  }

  .guide-head h2 {
    padding-right: 53px
  }

  .guide-tags {
    gap: 6px;
    margin-top: 15px
  }

  .guide-tags span {
    font-size: .82rem;
    padding: 7px 10px;
    line-height: 1.12
  }

  .guide-section-heading {
    gap: 11px;
    align-items: flex-start;
    margin: 27px 3px 17px
  }

  .section-count {
    min-width: 70px;
    padding: 8px 9px;
    font-size: .73rem
  }

  .guide-section-heading h2 {
    font-size: 1.28rem;
    line-height: 1.12
  }

  .guide-section-heading p {
    font-size: .89rem;
    line-height: 1.22
  }

  .guided-journey {
    gap: 15px;
    padding-left: 0
  }

  .guided-journey::before {
    left: 19px;
    top: 26px;
    bottom: 28px
  }

  .journey-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 7px
  }

  .journey-marker {
    width: 36px;
    height: 36px;
    margin-top: 13px;
    border-radius: 13px;
    font-size: 1rem;
    border-width: 3px
  }

  .journey-card {
    padding: 17px 13px 16px;
    border-radius: 17px
  }

  .journey-card-header {
    gap: 9px;
    margin-bottom: 14px
  }

  .journey-card-header h3 {
    font-size: 1.24rem;
    line-height: 1.08
  }

  .journey-label {
    font-size: .73rem;
    margin-bottom: 4px
  }

  .journey-intro {
    font-size: .9rem;
    line-height: 1.18
  }

  .journey-symbol {
    width: 33px;
    height: 33px;
    border-radius: 11px
  }

  .journey-symbol svg {
    width: 19px;
    height: 19px
  }

  .journey-facts.has-two {
    grid-template-columns: 1fr
  }

  .journey-facts {
    gap: 8px
  }

  .journey-fact {
    padding: 10px 11px;
    gap: 8px;
    border-radius: 12px
  }

  .fact-glyph {
    width: 31px;
    height: 31px;
    border-radius: 10px
  }

  .fact-glyph svg {
    width: 18px;
    height: 18px
  }

  .fact-label {
    font-size: .78rem
  }

  .journey-fact strong {
    font-size: 1rem;
    line-height: 1.13
  }

  .journey-fact div>span:last-child:not(.fact-label) {
    font-size: .88rem
  }

  .journey-description {
    font-size: .95rem;
    line-height: 1.29;
    margin-bottom: 14px
  }

  .subsection-label {
    font-size: 1.02rem;
    line-height: 1.18
  }

  .eligibility-list {
    grid-template-columns: 1fr;
    gap: 7px
  }

  .eligibility-option {
    min-height: 0;
    padding: 9px 10px;
    font-size: .91rem;
    line-height: 1.22
  }

  .option-dot {
    width: 21px;
    height: 21px
  }

  .entitlement-primary,
  .entitlement-secondary {
    padding: 13px;
    border-radius: 13px
  }

  .entitlement-primary h4 {
    font-size: 1.1rem
  }

  .entitlement-primary>p {
    font-size: .91rem
  }

  .entitlement-layout {
    gap: 9px
  }

  .substeps {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px
  }

  .substeps li {
    padding: 10px;
    gap: 8px
  }

  .substeps li p {
    font-size: .91rem
  }

  .entitlement-detail {
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 8px
  }

  .entitlement-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px
  }

  .entitlement-icon svg {
    width: 16px;
    height: 16px
  }

  .entitlement-detail h4 {
    font-size: 1.03rem
  }

  .entitlement-detail p {
    font-size: .9rem;
    line-height: 1.22
  }

  .journey-notice,
  .journey-advice {
    padding: 10px 11px;
    gap: 8px;
    border-radius: 12px
  }

  .journey-advice p,
  .journey-notice p {
    font-size: .9rem;
    line-height: 1.25
  }

  .journey-advice>svg,
  .journey-notice>svg {
    width: 18px;
    height: 18px
  }

  .inline-phone {
    font-size: .9rem;
    padding: 9px 10px
  }

  .guide-endnote {
    margin: 19px 3px 0 47px;
    padding: 11px;
    font-size: .89rem;
    gap: 7px
  }

  .guide-endnote p {
    font-size: .86rem
  }

  .footer {
    padding-bottom: 24px
  }
}

@media(max-width:350px) {
  .brand-text strong {
    font-size: .85rem
  }

  .brand-text small {
    font-size: .71rem
  }

  .guide-head h2 {
    font-size: 1.7rem
  }

  .guide-head h2 {
    padding-right: 38px
  }

  .guide-visual {
    right: 10px;
    top: 9px;
    width: 43px;
    height: 43px
  }

  .guide-visual svg {
    width: 23px;
    height: 23px
  }

  .journey-item {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 5px
  }

  .journey-marker {
    width: 32px;
    height: 32px;
    font-size: .9rem
  }

  .guided-journey::before {
    left: 16px
  }

  .journey-card {
    padding: 14px 10px
  }

  .journey-card-header h3 {
    font-size: 1.15rem
  }

  .journey-symbol {
    width: 29px;
    height: 29px
  }

  .guide-endnote {
    margin-left: 39px
  }
}

/* Keep the first actionable stage higher on a small screen. */
@media(max-width:650px) {
  .guide-head {
    padding-top: 18px;
    padding-bottom: 17px
  }

  .guide-head h2 {
    font-size: 1.69rem;
    margin: 7px 0 7px
  }

  .guide-tags {
    margin-top: 11px
  }

  .guide-section-heading {
    margin-top: 21px;
    margin-bottom: 14px
  }
}