/* Page-specific refinements: preserved V7 visual cascade.
   Add new changes here by component/page, not by release number. */

/* Service workflows and mobile touch layouts */
/* Mobile-first — Mobile-first refinement, visually restrained health-service app.
 * Responsive disclosures are native <details>; all source text stays in scripts/data.js.
 * Colors follow design tokens; only transform/opacity are animated for background motion. */
:root {
  --v5-navy: #1b4078;
  --v5-teal: #167f76;
  --v5-focus: #2368b7;
  --v5-line: #dcebef;
  --v5-soft: #f5faf9
}

body {
  background: #f9fcfc
}

.site {
  overflow: clip;
  background: linear-gradient(180deg, #f6fafc 0%, #fbfdfc 57%, #fff 100%)
}

.site::before,
.site::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  opacity: .75;
  transform: translate3d(0, 0, 0)
}

.site::before {
  width: min(72vw, 1050px);
  height: 580px;
  left: -23%;
  top: -145px;
  background: radial-gradient(ellipse at 55% 45%, #d9f7ed 0%, rgba(228, 249, 243, .65) 33%, transparent 71%)
}

.site::after {
  width: min(65vw, 950px);
  height: 650px;
  right: -24%;
  top: -175px;
  background: radial-gradient(ellipse at 40% 40%, #e1eeff 0%, rgba(229, 242, 255, .56) 42%, transparent 74%)
}

@media(prefers-reduced-motion:no-preference) {
  .site::before {
    animation: airyMint 24s ease-in-out infinite alternate
  }

  .site::after {
    animation: airyBlue 30s ease-in-out infinite alternate
  }

  @keyframes airyMint {
    from {
      transform: translate3d(0, 0, 0)
    }

    to {
      transform: translate3d(8%, 6%, 0)
    }
  }

  @keyframes airyBlue {
    from {
      transform: translate3d(0, 0, 0)
    }

    to {
      transform: translate3d(-8%, 9%, 0)
    }
  }
}

/* Focus and tap feedback. */
:where(a, button, summary):focus-visible {
  outline: 3px solid var(--v5-focus);
  outline-offset: 3px
}

:where(a, button, summary) {
  -webkit-tap-highlight-color: transparent
}

/* Clear primary actions, even when the masthead floats on the hero. */
.header-contact {
  background: linear-gradient(115deg, #234b91, #166f92) !important;
  color: #fff !important;
  border: 1px solid rgba(24, 69, 122, .1) !important;
  box-shadow: 0 8px 22px rgba(23, 82, 132, .17) !important;
  min-height: 46px;
  font-weight: 700;
  padding: 10px 19px
}

.header-contact:hover,
.header-contact:focus-visible {
  background: linear-gradient(115deg, #1d407d, #136d78) !important;
  border-color: #1e5386 !important;
  box-shadow: 0 9px 24px rgba(29, 81, 139, .22) !important
}

.header-contact svg {
  color: currentColor;
  stroke-width: 2.1
}

.hero-home {
  padding-top: 122px;
  padding-bottom: 20px
}

.hero-home h1 {
  font-size: clamp(2.55rem, 4vw, 3.35rem);
  line-height: 1.04
}

.hero-home p {
  margin-top: 13px;
  font-size: 1.02rem;
  line-height: 1.35
}

.hero-meta {
  margin-top: 15px;
  box-shadow: none;
  background: rgba(255, 255, 255, .85)
}

.hero-motif {
  width: 150px;
  height: 150px;
  opacity: .77
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 20px;
  position: relative;
  z-index: 2
}

.hero-ctas a {
  min-height: 48px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: .96rem;
  white-space: nowrap;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease
}

.hero-ctas svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0
}

.cta-primary {
  background: linear-gradient(115deg, #224a91, #1c659a);
  color: #fff;
  box-shadow: 0 8px 18px #28548924
}

.cta-secondary {
  background: #fff;
  color: #204f79;
  border: 1px solid #cadfe9;
  box-shadow: 0 3px 12px rgba(36, 73, 98, .035)
}

.hero-ctas .cta-book {
  background: #e7f6f0;
  color: #11695f;
  border-color: #c7e7dd
}

.hero-ctas a:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(36, 84, 132, .12)
}

.home-panel {
  padding-top: 29px;
  padding-bottom: 34px
}

.home-panel .section-heading {
  margin-bottom: 16px
}

.home-panel .section-heading h2 {
  font-size: 1.47rem
}

.home-panel .section-heading p {
  font-size: .97rem
}

.service-grid {
  gap: 13px
}

.service-card {
  min-height: 148px;
  padding: 19px 18px;
  border-color: #dfebee;
  background: rgba(255, 255, 255, .9);
  border-radius: 17px
}

.card-icon {
  width: 47px;
  height: 47px;
  border-radius: 14px
}

.card-icon svg {
  width: 24px;
  height: 24px
}

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

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

.support-strip {
  margin-top: 20px
}

/* Inner pages: no redundant decorative hero card. Stronger hierarchy. */
.hero-page {
  padding-top: 113px;
  padding-bottom: 19px
}

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

.hero-page .subpage-heading h1 {
  font-size: clamp(2.1rem, 3vw, 2.75rem)
}

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

.route-arrival,
.route-dental {
  padding: 27px 35px 34px
}

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

.process-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 23px;
  margin-bottom: 22px;
  border-radius: 18px;
  border: 1px solid #d6e9e9;
  background: linear-gradient(105deg, #ecf8f3, #edf7fc 80%, #f9fbff)
}

.process-kicker {
  display: block;
  font-size: .73rem;
  letter-spacing: .08em;
  color: #198179;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px
}

.process-intro h2 {
  font-size: 1.65rem;
  line-height: 1.08;
  color: #1d4263
}

.process-intro h2 span {
  color: #187f76
}

.process-intro p {
  font-size: 1.02rem;
  color: #48667b;
  line-height: 1.26;
  margin-top: 6px;
  max-width: 590px
}

.process-intro-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  text-align: right
}

.process-intro-side strong {
  display: inline-flex;
  background: #fff;
  color: #1a6d74;
  padding: 7px 12px;
  border-radius: 40px;
  border: 1px solid #d3eae7;
  font-size: .92rem
}

.process-intro-side small {
  font-size: .86rem;
  color: #557687;
  line-height: 1.2
}

.route-arrival .guided-journey,
.route-dental .guided-journey {
  gap: 15px
}

.route-arrival .journey-card,
.route-dental .journey-card {
  border-radius: 18px;
  padding: 20px 23px 21px;
  box-shadow: 0 3px 14px rgba(31, 84, 107, .035);
  border-color: #dae8ee
}

.route-arrival .journey-card-header,
.route-dental .journey-card-header {
  margin-bottom: 0
}

.route-arrival .journey-marker,
.route-dental .journey-marker {
  margin-top: 8px
}

.route-arrival .journey-card-header h3,
.route-dental .journey-card-header h3 {
  font-size: 1.39rem;
  line-height: 1.15
}

.route-arrival .journey-label,
.route-dental .journey-label {
  font-size: .77rem;
  letter-spacing: 0
}

.route-arrival .journey-facts,
.route-dental .journey-facts {
  margin-top: 12px
}

.route-arrival .journey-fact,
.route-dental .journey-fact {
  border: 1px solid #e5eff0;
  background: #f9fcfc
}

/* Responsive details: always expanded on desktop; actionable short summary on phone. */
.mobile-step-key {
  display: none
}

.step-disclosure {
  margin-top: 12px
}

.step-detail-toggle {
  display: none;
  cursor: pointer;
  list-style: none
}

.step-detail-toggle::-webkit-details-marker {
  display: none
}

.step-detail-content {
  display: grid;
  gap: 0
}

.step-detail-content .journey-notice,
.step-detail-content .journey-advice {
  margin-top: 11px
}

.step-detail-content .entitlement-layout {
  margin-top: 2px
}

.step-detail-content .inline-phone {
  margin-top: 12px
}

.route-dental .guide-endnote,
.route-arrival .guide-endnote {
  margin-top: 22px
}

/* Tone down repeated nested glass panels, especially for eligibility content. */
.entitlement-primary {
  background: #f4fbf8;
  border: 1px solid #dfefe9
}

.entitlement-secondary {
  background: #fbfdff
}

.journey-layout {
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 23px
}

.sidebar-inner {
  background: #f3faf9;
  border: 1px solid #dcece9
}

.journey-sidebar {
  top: 20px
}

/* Preserve spacious desktop composition without hiding home service buttons below fold. */
@media(min-width:1100px) {
  .home-panel .page-column {
    max-width: none
  }

  .home-panel .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .home-panel .service-card {
    min-height: 142px
  }

  .hero-home {
    min-height: 0
  }
}

@media(max-width:900px) {
  .hero-motif {
    opacity: .56
  }

  .route-arrival,
  .route-dental {
    padding: 24px 20px 29px
  }

  .journey-layout {
    display: block
  }

  .journey-sidebar {
    display: none
  }
}

@media(max-width:700px) {

  /* Glass blur on full-screen panels was costly and dulled text clarity. */
  .content-panel,
  .glass-panel,
  .menu-dialog {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important
  }

  .site::before {
    left: -85%;
    top: -130px;
    width: 150%;
    height: 630px;
    opacity: .68
  }

  .site::after {
    right: -95%;
    top: -50px;
    width: 155%;
    height: 630px;
    opacity: .5
  }

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

  .header-inner {
    min-height: 74px
  }

  .header-contact {
    min-width: 42px;
    min-height: 42px;
    background: #214b8b !important;
    border-radius: 13px !important;
    box-shadow: 0 4px 13px rgba(35, 81, 139, .15) !important
  }

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

  .hero-home {
    padding-top: 101px;
    padding-bottom: 17px
  }

  .hero-home .overline {
    font-size: .69rem
  }

  .hero-home h1 {
    font-size: 2.08rem;
    line-height: 1.05;
    margin-top: 12px
  }

  .hero-home p {
    font-size: .97rem;
    margin-top: 13px;
    max-width: 390px
  }

  .hero-meta {
    margin-top: 13px;
    padding: 8px 10px;
    line-height: 1.25;
    font-size: .83rem;
    border-radius: 13px
  }

  .hero-meta svg {
    width: 16px;
    height: 16px
  }

  .hero-ctas {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
  }

  .hero-ctas a {
    padding: 9px 8px;
    min-height: 45px;
    font-size: .87rem;
    border-radius: 12px;
    white-space: normal;
    text-align: center;
    gap: 6px
  }

  .hero-ctas svg {
    width: 18px;
    height: 18px
  }

  .hero-ctas .cta-book {
    display: none
  }

  .hero-motif {
    display: none
  }

  .home-panel {
    padding: 21px 15px 27px
  }

  .home-panel .section-heading {
    margin-bottom: 15px
  }

  .home-panel .section-heading h2 {
    font-size: 1.33rem
  }

  .service-grid {
    gap: 9px
  }

  .service-card {
    border-radius: 16px;
    min-height: 129px;
    padding: 14px 13px
  }

  .service-card .card-icon {
    width: 43px;
    height: 43px;
    border-radius: 13px
  }

  .service-card .card-copy strong {
    font-size: 1.04rem;
    line-height: 1.15
  }

  .service-card .card-copy small {
    font-size: .86rem
  }

  .hero-page {
    padding-top: 93px;
    padding-bottom: 16px
  }

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

  .hero-page .subpage-heading h1 {
    font-size: 1.86rem
  }

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

  .hero-page .page-icon {
    width: 46px;
    height: 46px
  }

  .hero-page .page-icon svg {
    width: 25px;
    height: 25px
  }

  .content-panel {
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 5px 16px rgba(30, 83, 113, .035) !important
  }

  .route-arrival,
  .route-dental {
    padding: 14px 13px 22px;
    width: calc(100% - 14px)
  }

  .process-intro {
    margin: 0 0 14px;
    padding: 12px 13px;
    gap: 8px;
    border-radius: 14px
  }

  .process-kicker {
    display: none
  }

  .process-intro h2 {
    font-size: 1.2rem;
    line-height: 1.1
  }

  .process-intro p {
    display: none
  }

  .process-intro-side {
    min-width: 74px;
    align-items: flex-end
  }

  .process-intro-side strong {
    font-size: .81rem;
    padding: 6px 9px
  }

  .process-intro-side small {
    display: none
  }

  .route-arrival .guided-journey,
  .route-dental .guided-journey {
    gap: 10px;
    padding-left: 0
  }

  .guided-journey::before {
    display: none
  }

  .journey-item {
    display: block
  }

  .journey-marker {
    display: none !important
  }

  .route-arrival .journey-card,
  .route-dental .journey-card {
    border-radius: 15px;
    padding: 15px 14px 12px;
    box-shadow: 0 2px 8px rgba(31, 77, 111, .023)
  }

  .journey-card-header {
    gap: 9px !important
  }

  .journey-label {
    font-size: .77rem !important;
    color: #237e75;
    margin-bottom: 4px
  }

  .route-arrival .journey-card-header h3,
  .route-dental .journey-card-header h3 {
    font-size: 1.27rem;
    line-height: 1.12
  }

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

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

  .mobile-step-key {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #f3faf8;
    border: 1px solid #e5f0ec;
    border-radius: 11px;
    color: #2b5267;
    padding: 10px 11px;
    margin-top: 13px;
    line-height: 1.2
  }

  .mobile-step-key>svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #258780;
    margin-top: 2px
  }

  .mobile-step-key span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: .91rem
  }

  .mobile-step-key strong {
    font-size: 1.06rem;
    color: #174d60;
    line-height: 1.12
  }

  .mobile-step-key span span {
    font-size: .87rem;
    line-height: 1.24;
    color: #587180
  }

  .step-disclosure {
    margin-top: 9px
  }

  .step-detail-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 2px 5px;
    color: #225999;
    font-size: .91rem;
    font-weight: 700;
    min-height: 38px
  }

  .step-detail-toggle svg {
    width: 17px;
    height: 17px;
    transition: transform .2s ease;
    color: #3478a0
  }

  .step-disclosure[open] .step-detail-toggle svg {
    transform: rotate(90deg)
  }

  .step-disclosure .expand-close {
    display: none
  }

  .step-disclosure[open] .expand-close {
    display: inline
  }

  .step-disclosure[open] .expand-open {
    display: none
  }

  .step-detail-content {
    padding-top: 10px;
    border-top: 1px solid #e9f1f1;
    margin-top: 5px
  }

  .route-arrival .journey-facts,
  .route-dental .journey-facts {
    margin-top: 0
  }

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

  .journey-fact {
    padding: 10px !important;
    border-radius: 11px !important
  }

  .entitlement-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
  }

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

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

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

  .eligibility-option {
    min-height: 0;
    padding: 9px 10px
  }

  .guide-endnote {
    margin-left: 0 !important;
    margin-top: 15px !important;
    border-radius: 13px
  }

  .route-arrival .guide-endnote p,
  .route-dental .guide-endnote p {
    font-size: .91rem;
    line-height: 1.3
  }

  .journey-advice,
  .journey-notice {
    border-radius: 11px
  }

  .journey-card:hover {
    box-shadow: 0 2px 8px rgba(31, 77, 111, .025) !important
  }

  .footer {
    padding-bottom: 85px
  }
}

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

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

  .hero-ctas a {
    font-size: .83rem;
    padding: 8px 5px
  }

  .hero-ctas svg {
    width: 16px
  }

  .route-arrival .journey-card,
  .route-dental .journey-card {
    padding: 12px 11px
  }

  .route-arrival .journey-card-header h3,
  .route-dental .journey-card-header h3 {
    font-size: 1.19rem
  }

  .mobile-step-key strong {
    font-size: 1rem
  }
}

@media(prefers-reduced-motion:reduce) {

  .site::before,
  .site::after,
  .hero-ctas a,
  .step-detail-toggle svg {
    animation: none !important;
    transition: none !important
  }
}


/* Simplified typography, spacing and reduced animation */
/* Visual consistency — calm healthcare. Single navy/teal palette, clear service path, no hidden steps.
 * Contains presentation only; content stays in scripts/data.js.
 */
:root {
  --brand-mahidol: #214c8e;
  --brand-deep: #1c4074;
  --brand-teal: #19776f;
  --brand-blue: #376fa6;
  --ink: #203c53;
  --ink-muted: #577080;
  --ink-subtle: #627b89;
  --border: #dce9eb;
  --v6-mint: #edf8f4;
  --v6-blue: #eff6fc;
  --v6-stroke: #dce9eb;
}

html {
  scroll-behavior: smooth
}

body {
  background: #f8fbfc
}

/* Bring back static V4 gradient. No large animated pseudo layers. */
.site {
  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%)
}

.site::before,
.site::after {
  display: none !important;
  animation: none !important
}

/* Consistent visual language (navy action, teal information; neutral cards). */
.brand-mark {
  background: linear-gradient(135deg, #224b88, #178881)
}

.header-contact {
  background: #214c8e !important;
  border: 1px solid #214c8e !important;
  color: #fff !important;
  box-shadow: 0 5px 17px rgba(28, 64, 116, .12) !important
}

.header-contact:hover {
  background: #193d75 !important;
  border-color: #193d75 !important
}

.hero-home {
  padding-top: 129px;
  padding-bottom: 28px;
  min-height: unset
}

.hero-home .overline,
.hero-page .overline {
  color: #167a73;
  letter-spacing: .075em
}

.hero-home h1 {
  margin-top: 15px
}

.hero-home p {
  max-width: 690px;
  font-size: 1.08rem;
  color: #557080;
  line-height: 1.45;
  margin-top: 16px
}

.hero-motif {
  background: linear-gradient(140deg, #e9f3fe, #e5f7f0);
  opacity: .74
}

.home-panel {
  padding-top: 29px
}

.service-card {
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--v6-stroke);
  box-shadow: 0 4px 20px rgba(31, 74, 100, .035);
  border-radius: 19px
}

.service-card:hover {
  border-color: #b7d7db;
  box-shadow: 0 9px 28px rgba(31, 74, 100, .075)
}

.card-copy strong {
  color: #22435e
}

.card-copy small {
  color: #5b7787
}

.card-icon {
  border-radius: 15px
}

.tone-navy .card-icon,
.tone-blue .card-icon {
  background: #eaf1fd !important;
  color: #285c9a !important
}

.tone-sky .card-icon {
  background: #eaf5fc !important;
  color: #2875a0 !important
}

.tone-teal .card-icon {
  background: #e7f7f2 !important;
  color: #167c73 !important
}

.support-strip {
  background: #edf7f4;
  border: 1px solid #d9ece5
}

/* Concise top heading on the guides. */
.hero-page {
  padding-top: 109px;
  padding-bottom: 18px
}

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

.process-intro {
  background: #f1f8f7;
  border-color: #dcece7;
  border-radius: 17px;
  margin-bottom: 19px;
  padding: 17px 20px
}

.process-intro h2 {
  font-size: 1.42rem
}

.process-intro-side strong {
  background: #fff;
  color: #1c716c
}

.process-intro-side small {
  color: #63808b
}

/* Every step is readable immediately, without redundant summary / disclosure UI. */
.mobile-step-key,
.step-detail-toggle {
  display: none !important
}

.step-disclosure {
  margin-top: 13px !important
}

.step-detail-content {
  display: block !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important
}

.route-arrival .journey-card,
.route-dental .journey-card {
  background: #fff;
  border: 1px solid #dce9eb;
  box-shadow: 0 3px 15px rgba(28, 64, 90, .034)
}

.route-arrival .journey-card-header,
.route-dental .journey-card-header {
  margin-bottom: 9px
}

.route-arrival .journey-card-header h3,
.route-dental .journey-card-header h3 {
  color: #204760
}

.route-arrival .journey-label,
.route-dental .journey-label {
  color: #16766e
}

.journey-symbol {
  background: #edf8f4;
  color: #19766d;
  border-color: #dfede8
}

.journey-item:nth-child(2) .journey-symbol {
  background: #edf4fc;
  color: #32669d;
  border-color: #e1eaf4
}

.journey-fact,
.route-arrival .journey-fact,
.route-dental .journey-fact {
  background: #f5fafb !important;
  border: 1px solid #e5eff0 !important
}

.journey-fact:nth-child(2) {
  background: #f3f8fc !important
}

.fact-glyph {
  background: #e5f4ee !important;
  color: #19776f !important
}

.fact-label {
  color: #637f8c
}

.journey-fact strong {
  color: #244960
}

.journey-advice {
  background: #f1f9f5;
  color: #24675f;
  border-color: #dceee5
}

.journey-notice.notice-mint {
  background: #f0f9f6;
  border-color: #ddede7;
  color: #215f5c
}

.journey-notice.notice-peach {
  background: #fff8f3;
  border-color: #f4e6dc;
  color: #7a5743
}

.eligibility-list {
  gap: 8px
}

.eligibility-option {
  background: #f7fafb;
  border-color: #e6eef1
}

.entitlement-primary {
  background: #f3f9f7;
  border-color: #e1eee7
}

.entitlement-secondary {
  background: #f8fbfd;
  border-color: #e1edf1
}

.entitlement-detail {
  border-color: #e7eff0
}

.substeps b {
  background: #e3f3ed;
  color: #1a786f
}

.guide-endnote {
  background: #f1f7fb;
  border: 1px solid #deebf3;
  color: #35647b
}

/* Consistency for OPD floors: two tones, with floor 4 emphasized. */
.floor-row {
  background: #fff;
  border: 1px solid #dce9ed;
  box-shadow: 0 2px 11px rgba(31, 74, 100, .03)
}

.floor-accordion .floor-pill,
.floor-accordion.floor-mint .floor-pill,
.floor-accordion.floor-green .floor-pill,
.floor-accordion.floor-lilac .floor-pill,
.floor-accordion.floor-amber .floor-pill,
.floor-accordion.floor-sky .floor-pill {
  background: #eaf5f5 !important;
  color: #19766f !important
}

.floor-accordion:nth-child(even) .floor-pill {
  background: #edf3fc !important;
  color: #2b5d94 !important
}

.floor-accordion.floor-amber .floor-pill {
  background: #dff4ec !important;
  color: #156f67 !important
}

.floor-accordion.floor-amber .floor-row {
  border-color: #b8dfd4;
  background: #f7fcfa
}

.floor-accordion.floor-amber[open] .floor-row {
  border-color: #94caba
}

.floor-name small {
  color: #64808d
}

.floor-name strong {
  color: #204760
}

.floor-preview {
  display: none !important
}

.floor-badge {
  background: #e4f5ee;
  color: #167263
}

.floor-details {
  background: #fafdfd;
  border-color: #dce9ed
}

.floor-inline-link {
  background: #ecf5f9
}

/* Restrained focus + hover. */
:where(a, button, summary):focus-visible {
  outline: 3px solid #2766a0;
  outline-offset: 3px
}

@media(min-width:1100px) {
  .hero-home {
    padding-top: 140px;
    padding-bottom: 25px
  }

  .hero-home .hero-content {
    max-width: 765px
  }

  .home-panel {
    padding-top: 27px
  }

  .home-panel .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:700px) {
  html {
    scroll-behavior: auto
  }

  .hero-home {
    padding-top: 108px;
    padding-bottom: 24px
  }

  .hero-home .overline {
    font-size: .69rem
  }

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

  .hero-home p {
    font-size: 1.01rem;
    line-height: 1.35;
    max-width: 390px;
    margin-top: 12px
  }

  .home-panel {
    padding-top: 22px
  }

  .hero-page {
    padding-top: 92px;
    padding-bottom: 17px
  }

  .hero-page .subpage-heading h1 {
    font-size: 1.86rem
  }

  .route-arrival,
  .route-dental {
    padding: 16px 13px 24px;
    width: calc(100% - 14px)
  }

  .process-intro {
    padding: 11px 13px;
    margin-bottom: 13px;
    background: #f0f8f5;
    border: 1px solid #dfeee8
  }

  .process-intro h2 {
    font-size: 1.13rem;
    line-height: 1.13
  }

  .process-intro-side strong {
    font-size: .8rem
  }

  .journey-marker {
    display: none !important
  }

  .route-arrival .guided-journey,
  .route-dental .guided-journey {
    gap: 11px
  }

  .route-arrival .journey-card,
  .route-dental .journey-card {
    border-radius: 16px;
    padding: 15px 14px 16px
  }

  .route-arrival .journey-card-header,
  .route-dental .journey-card-header {
    margin-bottom: 9px
  }

  .route-arrival .journey-card-header h3,
  .route-dental .journey-card-header h3 {
    font-size: 1.18rem;
    line-height: 1.2
  }

  .journey-label {
    font-size: .78rem !important
  }

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

  .step-disclosure {
    margin-top: 5px !important
  }

  .step-detail-content {
    display: block !important
  }

  .journey-facts.has-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px
  }

  .journey-fact,
  .route-arrival .journey-fact,
  .route-dental .journey-fact {
    padding: 10px 11px !important;
    border-radius: 12px !important;
    gap: 9px
  }

  .fact-glyph {
    width: 29px;
    height: 29px;
    border-radius: 9px
  }

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

  .fact-label {
    font-size: .75rem;
    line-height: 1.12
  }

  .journey-fact strong {
    font-size: 1.00rem;
    line-height: 1.16
  }

  .journey-fact div>span:last-child:not(.fact-label) {
    font-size: .85rem;
    line-height: 1.2
  }

  .journey-notice,
  .journey-advice {
    margin-top: 9px !important;
    padding: 10px 11px;
    gap: 8px;
    line-height: 1.28
  }

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

  .journey-description {
    font-size: .91rem;
    line-height: 1.35;
    margin: 10px 0 12px
  }

  .subsection-label {
    font-size: 1rem;
    margin: 9px 0 9px
  }

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

  .eligibility-option {
    padding: 10px 11px;
    border-radius: 11px;
    font-size: .90rem;
    line-height: 1.25
  }

  .eligibility-option .option-dot {
    width: 18px;
    height: 18px
  }

  .entitlement-layout {
    grid-template-columns: 1fr;
    gap: 11px
  }

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

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

  .entitlement-primary p,
  .entitlement-secondary p,
  .entitlement-detail p {
    font-size: .90rem;
    line-height: 1.32
  }

  .entitlement-detail {
    padding: 10px 0;
    gap: 10px
  }

  .entitlement-detail h4 {
    font-size: .99rem;
    line-height: 1.18
  }

  .entitlement-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px
  }

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

  .substeps li {
    gap: 10px
  }

  .substeps p {
    font-size: .89rem;
    line-height: 1.3
  }

  .journey-card:hover {
    transform: none !important
  }

  .floor-list {
    gap: 9px
  }

  .floor-row {
    min-height: 76px;
    padding: 11px 11px;
    border-radius: 15px;
    gap: 10px
  }

  .floor-pill {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.38rem
  }

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

  .floor-name strong {
    font-size: 1.02rem;
    line-height: 1.16
  }

  .floor-name .floor-badge {
    font-size: .69rem;
    line-height: 1.2
  }

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

  .floor-details ul {
    grid-template-columns: 1fr;
    gap: 8px
  }

  /* Avoid mobile blur and strong shadow layer cost. */
  .content-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, .97) !important
  }
}

@media(max-width:365px) {
  .hero-home h1 {
    font-size: 1.88rem
  }

  .route-arrival .journey-card,
  .route-dental .journey-card {
    padding: 13px 11px
  }

  .route-arrival .journey-card-header h3,
  .route-dental .journey-card-header h3 {
    font-size: 1.12rem
  }

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

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


/* Unified accordions, service timelines and mobile refinements */


/* Single disclosure / linked-row component for documents AND OPD. */
.rows,
.unified-list {
  display: grid;
  gap: 11px
}

.unified-entry {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ui-outline);
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(27, 65, 84, .025);
  color: var(--ui-ink)
}

.unified-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 80px;
  padding: 13px 16px;
  text-align: left;
  list-style: none;
  outline-offset: -3px;
  transition: background-color .15s ease
}

.unified-trigger::-webkit-details-marker {
  display: none
}

.unified-trigger:hover {
  background: #f8fcfd
}

.unified-entry[open] {
  border-color: var(--ui-outline-active)
}

.unified-entry[open]>.unified-trigger {
  background: #f7fbfa
}

.unified-symbol {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #e7f6f2;
  color: var(--ui-teal)
}

.unified-symbol>svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8
}

.unified-entry:nth-child(even) .unified-symbol {
  background: #edf4fb;
  color: var(--ui-blue)
}

.unified-floor-num {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1
}

.unified-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px
}

.unified-copy strong {
  font-size: 1.07rem;
  line-height: 1.16;
  font-weight: 700;
  color: #24455d
}

.unified-copy small {
  font-size: .85rem;
  line-height: 1.25;
  color: #627c8b
}

.unified-kicker {
  font-size: .77rem;
  line-height: 1.25;
  font-weight: 700;
  color: #56808b
}

.unified-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 3px 8px;
  background: #e1f4e9;
  border-radius: 20px;
  color: #1d786b;
  font-size: .72rem
}

.unified-action {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #35678b;
  transition: transform .18s ease
}

.unified-action svg {
  width: 18px;
  height: 18px
}

.unified-entry[open]>.unified-trigger .unified-action {
  transform: rotate(90deg)
}

.unified-body {
  border-top: 1px solid #e8eff1;
  background: #fcfefe;
  padding: 15px 18px 18px 80px;
  color: #536d7b;
  font-size: .97rem;
  line-height: 1.38
}

.unified-body>p {
  line-height: 1.4
}

.unified-featured {
  border-color: #bcded6
}

.unified-featured[open]>.unified-trigger {
  background: #f1f9f5
}

.unified-featured .unified-symbol {
  background: #def4eb !important;
  color: #16746a !important
}

.unified-body-label {
  font-weight: 700;
  color: #216e69;
  margin-bottom: 10px
}

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

.unified-unit-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.3
}

.unified-unit-list svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--ui-teal)
}

.unified-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .94rem;
  font-weight: 700;
  background: #eaf5f6;
  color: #195d73
}

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

.unified-inline-link:hover {
  background: #daedef
}

:where(.unified-trigger, .unified-inline-link):focus-visible {
  outline: 3px solid #3574a6;
  outline-offset: -3px
}

/* Service/Dental: the number of steps follows the page subtitle directly. */
.page-process-meta.process-intro-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 11px;
  min-width: 0;
  margin-top: 15px;
  flex-wrap: wrap
}

.page-process-meta.process-intro-side strong {
  background: #e9f6f2;
  color: #19756c;
  border: 1px solid #d4eae3;
  font-size: .92rem;
  padding: 6px 13px;
  line-height: 1.15
}

.page-process-meta.process-intro-side small {
  display: block;
  font-size: .91rem;
  color: #597887;
  line-height: 1.25
}

.hero-page .subpage-copy {
  min-width: 0
}

.route-arrival,
.route-dental {
  padding-top: 31px
}

.route-arrival .guided-journey,
.route-dental .guided-journey {
  margin-top: 0
}

/* Non-process pages no longer carry a redundant OPD description card. */
.route-opd .section-heading {
  margin-bottom: 19px
}

/* Simplification of nested cards for small screens. One stage, one main boundary. */
@media(max-width:700px) {

  .rows,
  .unified-list {
    gap: 10px
  }

  .unified-entry {
    border-radius: 15px;
    box-shadow: none
  }

  .unified-trigger {
    min-height: 74px;
    gap: 11px;
    padding: 11px 12px
  }

  .unified-symbol {
    width: 45px;
    height: 45px;
    border-radius: 12px
  }

  .unified-symbol svg {
    width: 21px;
    height: 21px
  }

  .unified-floor-num {
    font-size: 1.4rem
  }

  .unified-copy {
    gap: 2px
  }

  .unified-copy strong {
    font-size: 1.04rem;
    line-height: 1.17
  }

  .unified-copy small {
    font-size: .84rem
  }

  .unified-kicker {
    font-size: .76rem
  }

  .unified-action {
    width: 20px
  }

  .unified-body {
    padding: 13px 13px 16px 68px;
    font-size: .95rem;
    line-height: 1.36
  }

  .unified-unit-list {
    grid-template-columns: 1fr;
    gap: 9px
  }

  .unified-inline-link {
    font-size: .87rem;
    line-height: 1.25;
    flex-wrap: wrap
  }

  /* Keep summary just under subtitle; no separate boxed intro. */
  .hero-page .subpage-heading {
    align-items: flex-start
  }

  .hero-page .subpage-heading p {
    line-height: 1.3
  }

  .page-process-meta.process-intro-side {
    margin-top: 11px;
    gap: 6px 10px;
    align-items: center
  }

  .page-process-meta.process-intro-side strong {
    font-size: .84rem;
    padding: 6px 10px
  }

  .page-process-meta.process-intro-side small {
    font-size: .85rem;
    line-height: 1.25
  }

  /* Drop full-page outer box on phone and preserve one card per step. */
  .route-arrival.content-panel,
  .route-dental.content-panel {
    width: calc(100% - 28px);
    padding: 0 0 26px;
    min-height: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .route-arrival .guided-journey,
  .route-dental .guided-journey {
    gap: 12px
  }

  .route-arrival .journey-card,
  .route-dental .journey-card {
    background: #fff;
    border: 1px solid var(--ui-outline);
    border-radius: 17px;
    box-shadow: 0 3px 12px rgba(27, 65, 84, .026) !important;
    padding: 17px 16px 17px;
  }

  .route-arrival .journey-card-header,
  .route-dental .journey-card-header {
    margin-bottom: 11px
  }

  .route-arrival .journey-card-header h3,
  .route-dental .journey-card-header h3 {
    line-height: 1.18
  }

  .journey-symbol {
    width: 35px;
    height: 35px;
    box-shadow: none
  }

  .route-arrival .step-disclosure,
  .route-dental .step-disclosure {
    margin-top: 6px !important
  }

  .route-arrival .journey-facts,
  .route-dental .journey-facts {
    gap: 0;
    margin-top: 3px
  }

  .route-arrival .journey-fact,
  .route-dental .journey-fact {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e5edef !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    gap: 10px;
  }

  .journey-fact:last-child {
    border-bottom: 0 !important
  }

  .route-arrival .fact-glyph,
  .route-dental .fact-glyph {
    width: 30px;
    height: 30px;
    background: #e9f6f3 !important;
    color: #1d776e !important
  }

  .journey-fact strong {
    font-size: 1.01rem
  }

  .journey-fact div>span:last-child:not(.fact-label) {
    font-size: .92rem;
    line-height: 1.25
  }

  .journey-fact .fact-label {
    font-size: .79rem
  }

  .route-arrival .journey-description {
    margin: 10px 0 11px
  }

  .route-arrival .subsection-label {
    margin: 12px 0 7px
  }

  /* Rights + substeps behave like a readable plain list, not cards-in-cards. */
  .route-arrival .eligibility-list {
    gap: 0
  }

  .route-arrival .eligibility-option {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #ebf1f2;
    border-radius: 0;
    min-height: 0;
    padding: 9px 0;
  }

  .route-arrival .eligibility-option:last-child {
    border-bottom: 0
  }

  .route-arrival .entitlement-layout {
    gap: 17px
  }

  .route-arrival .entitlement-primary,
  .route-arrival .entitlement-secondary {
    background: transparent !important;
    border: 0 !important;
    padding: 1px 0 0 !important;
    border-radius: 0 !important;
  }

  .route-arrival .entitlement-secondary {
    border-top: 1px solid #e5edef !important;
    padding-top: 15px !important
  }

  .route-arrival .substeps {
    gap: 0;
    margin-top: 10px
  }

  .route-arrival .substeps li {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e5edef !important;
    padding: 12px 0 !important;
    border-radius: 0 !important;
  }

  .route-arrival .substeps li:last-child {
    border-bottom: 0 !important
  }

  .route-arrival .entitlement-stack {
    gap: 0
  }

  .route-arrival .entitlement-detail {
    border-top: 1px solid #e5edef;
    padding: 11px 0
  }

  .route-arrival .entitlement-detail:first-child {
    border-top: 0
  }

  /* Only important exceptions receive a quiet, single accent edge. */
  .route-arrival .journey-notice,
  .route-dental .journey-advice,
  .route-arrival .journey-advice {
    box-shadow: none !important;
    border: 0 !important;
    border-left: 3px solid #8ecab8 !important;
    background: #f1f9f6 !important;
    border-radius: 4px 10px 10px 4px !important;
    padding: 10px 11px !important;
    gap: 9px;
  }

  .route-arrival .journey-notice.notice-peach {
    border-left-color: #e2ad8f !important;
    background: #fff8f3 !important;
  }

  .route-arrival .guide-endnote,
  .route-dental .guide-endnote {
    margin: 13px 0 0 !important;
    border-radius: 12px
  }
}

@media(max-width:365px) {
  .unified-trigger {
    padding: 10px;
    gap: 9px
  }

  .unified-body {
    padding-left: 14px
  }

  .page-process-meta.process-intro-side small {
    flex-basis: 100%
  }

  .route-arrival .journey-card,
  .route-dental .journey-card {
    padding: 15px 12px
  }
}

@media(prefers-reduced-motion:reduce) {

  .unified-trigger,
  .unified-action {
    transition: none
  }
}