/* User-supplied UNIDAYAN masthead and footer; other sections retain their styles. */
:root { --header: 80px; }
.dayan-header { height: var(--header); background: #fff; border-bottom: 1px solid #eef0f4; }
.dayan-header .header-inner { width: calc(100% - var(--page-gutter) * 2); max-width: var(--content-max); gap: 24px; }
.dayan-brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; }
.brand-logo-image { display: block; width: 72px; height: auto; aspect-ratio: 2140 / 1520; flex-shrink: 0; }
.brand-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dayan-footer .brand-logo-image { width: 108px; }
.dayan-header .nav { display: flex; flex: 1; justify-content: center; gap: 20px; }
.dayan-header .nav a { font-size: 14px; font-weight: 600; color: #3d4959; }
.dayan-header .nav a:hover { color: #205591; }
.dayan-header .nav a::after { background: #258caf; }
.appointment-link { flex-shrink: 0; min-height: 48px; padding: 12px 22px; font-size: 15px; white-space: nowrap; }
.dayan-header .mobile-toggle { display: none; }
.dayan-header a:focus-visible,.dayan-header button:focus-visible,.dayan-footer a:focus-visible { outline: 2px solid #205591; outline-offset: 5px; }

.dayan-footer { padding: 56px 0 24px; background: #f0f0f0; color: #5c6269; }
.dayan-footer-main { display: grid; grid-template-columns: 1.6fr .85fr .85fr 1.35fr; gap: 36px; }
.dayan-footer h3 { font-size: 16px; font-weight: 650; line-height: 1.5; color: #25282d; margin-bottom: 22px; }
.dayan-footer .dayan-footer-company h3 { margin-bottom: 28px; }
.dayan-footer p,.dayan-footer address { color: inherit; font-size: 13px; line-height: 1.9; font-style: normal; }
.dayan-footer p { margin-bottom: 4px; }
.dayan-footer-links a { display: block; width: fit-content; max-width: 100%; padding-block: 7px; font-size: 13px; line-height: 1.9; }
.dayan-footer-links h3 { margin-bottom: 15px; }
.dayan-footer a:hover { color: #205591; text-decoration: underline; text-underline-offset: 4px; }
.dayan-footer-follow { min-width: 0; }
.dayan-footer-follow a { overflow-wrap: anywhere; }
.footer-follow-copy { max-width: 31ch; margin-bottom: 14px !important; }
.footer-qr-grid { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.footer-qr-grid img { display: block; width: 94px; height: 94px; object-fit: contain; background: #fff; }
.dayan-footer-legal { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 68px; }
.dayan-footer-legal p { color: #62676e; font-size: 12px; margin: 0; }
.dayan-footer-legal p:last-child { flex-shrink: 0; }
.legal-divider { display: inline-block; margin-inline: 6px; }
#contact { scroll-margin-top: 100px; }

@media (max-width: 1100px) {
  :root { --header: 72px; }
  .dayan-brand .brand-logo-image { width: 64px; }
  .dayan-header .header-inner { gap: 16px; }
  .dayan-header .appointment-link { margin-left: auto; }
  .dayan-header .mobile-toggle { display: flex; order: initial; width: 44px; height: 44px; padding: 10px; align-items: center; flex-shrink: 0; }
  .dayan-header .mobile-toggle span { width: 22px; height: 2px; transition: transform .2s; }
  .dayan-header .mobile-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .dayan-header .mobile-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .dayan-header .nav { display: none; position: absolute; inset: var(--header) 0 auto; height: auto; max-height: calc(100dvh - var(--header)); overflow-y: auto; padding: 16px 24px 24px; grid-template-columns: 1fr 1fr; gap: 6px 20px; background: #fff; box-shadow: 0 16px 24px #253b5914; }
  .dayan-header .nav.open { display: grid; }
  .dayan-header .nav a { width: 100%; height: auto; min-height: 46px; padding: 10px 4px; font-size: 15px; }
  .dayan-footer-main { grid-template-columns: 1.4fr 1fr; gap: 36px 48px; }
  .dayan-footer-company { grid-column: 1/-1; }
  .dayan-footer-follow { grid-column: 1/-1; }
}

@media (max-width: 680px) {
  .dayan-header .header-inner { gap: 8px; }
  .dayan-brand { gap: 8px; }
  .dayan-header .appointment-link { min-height: 44px; padding: 9px 14px; font-size: 13px; }
  .dayan-header .nav { padding-inline: 20px; gap: 6px 16px; }
  .dayan-footer { padding: 40px 0 28px; }
  .dayan-footer-main { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .dayan-footer h3 { font-size: 16px; margin-bottom: 14px; }
  .dayan-footer-links h3 { margin-bottom: 6px; }
  .dayan-footer-links a { min-height: 44px; padding-block: 10px; }
  .dayan-footer-legal { flex-direction: column; gap: 12px; margin-top: 36px; }
  .footer-qr-grid img { width: 88px; height: 88px; }
}

/* Shared section-heading scale for the expanded 1200–1600px content layout. */
#main h2 { font-size: var(--module-title-size); line-height: 1.35; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
#main .resource-cta { gap: 24px; }
#main .title-phrase { display: inline-block; }
#models .study-content { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 44px 42px; }
#models .study-benefits { padding: 0; }
#models .study-plan-button { align-self: center; margin-top: 44px; min-height: 44px; }
@media (min-width: 681px) and (max-width: 980px) {
  #models .study-content { padding: 32px 26px; }
}
@media (max-width: 680px) {
  #models .study-content { padding: 30px 28px; }
  #models .study-plan-button { margin-top: 32px; }
}
@media (min-width: 681px) {
  #experience .experience-sticky { top: var(--experience-sticky-top, 104px); }
}
@media (max-width: 1180px) {
  :root { --module-title-size: 36px; }
}
@media (max-width: 680px) {
  :root { --module-title-size: 28px; }
  #main .resource-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  :root { --module-title-size: 26px; }
}
