/*
 * Next homepage (templates/home-next.php). QTG's layout in MSD's teal and
 * periwinkle. Every rule is scoped to .msdn, so the shared stylesheets and
 * the site header stay untouched. All motion stops under reduced motion.
 */

@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/figtree-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.msdn {
    --n-ink: #0e2a38;
    --n-text: #2f4652;
    --n-muted: #4c6372;
    --n-teal: #0b5f7b;
    --n-teal-2: #08485e;
    --n-deep: #072f3e;
    --n-peri: #758fc4;
    --n-peri-2: #a8b8e0;
    --n-mist: #eef4f7;
    --n-line: #d8e3e9;
    --n-green: #16794a;
    --n-radius: 16px;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--n-text);
    font-size: 17px;
    line-height: 1.6;
    background: #fff;
    padding-top: 90px;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.msdn *, .msdn *::before, .msdn *::after { box-sizing: border-box; }
.msdn h1, .msdn h2, .msdn h3 { font-family: inherit; color: var(--n-ink); margin: 0; text-transform: none; letter-spacing: -0.015em; }
.msdn h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.msdn h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; font-weight: 750; }
.msdn h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
.msdn p { margin: 0; }
.msdn a { color: var(--n-teal); }
.msdn ul, .msdn ol { margin: 0; padding: 0; list-style: none; }
.msdn img { display: block; max-width: 100%; height: auto; }
.msdn svg { width: 18px; height: 18px; flex: none; }
.msdn :focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

.msdn-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.msdn-narrow > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.msdn-center { text-align: center; }
.msdn-section { padding: 80px 0; }
.msdn-tint { background: var(--n-mist); }
.msdn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.msdn-head p { margin-top: 8px; max-width: 640px; color: var(--n-muted); }
.msdn-more {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--n-line);
    font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; color: var(--n-teal);
    transition: border-color .2s, transform .2s;
}
.msdn-more:hover { border-color: var(--n-teal); transform: translateX(2px); }

.msdn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; padding: 0 26px; border-radius: 12px; border: 0;
    background: var(--n-teal); color: #fff !important; font: inherit; font-weight: 700; font-size: 17px;
    text-decoration: none; cursor: pointer; box-shadow: 0 8px 22px rgba(11, 95, 123, .28);
    transition: background .2s, transform .2s, box-shadow .2s;
}
.msdn-btn:hover { background: var(--n-teal-2); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 95, 123, .32); }
.msdn-btn-ghost { background: rgba(255, 255, 255, .85); color: var(--n-teal) !important; border: 1.5px solid var(--n-teal); box-shadow: none; }
.msdn-btn-ghost:hover { background: #fff; box-shadow: none; }
.msdn-btn-light { background: #fff; color: var(--n-teal) !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.msdn-btn-light:hover { background: #f2f7fa; }

/* Header content lines up with the page content (the menus are 1200px too). */
@media (min-width: 1025px) {
    body:has(main.msdn) .msd-nav-container { box-sizing: border-box; max-width: 1200px; padding: 0 24px; }
}

/* Hero: light fade on the left into cycling office photos on the right. */
.msdn-hero { position: relative; min-height: min(760px, calc(100vh - 90px)); display: flex; flex-direction: column; justify-content: center; background: #f4f8fa; overflow: hidden; }
.msdn-slides { position: absolute; top: 0; bottom: 0; right: 0; left: 46%; overflow: hidden; }
.msdn-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.msdn-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 4.8s ease-out; }
.msdn-slide.is-on { opacity: 1; }
.msdn-slide.is-on img { transform: scale(1); }
.msdn-slides::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, #f4f8fa 0%, rgba(244, 248, 250, .7) 14%, rgba(244, 248, 250, 0) 34%);
}
.msdn-hero-inner { width: 100%; padding-top: 56px; padding-bottom: 96px; }
.msdn-hero-text { position: relative; max-width: min(620px, calc(46vw - 40px)); }
.msdn-hero-text > * { animation: msdn-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.msdn-hero-text > :nth-child(2) { animation-delay: .1s; }
.msdn-hero-text > :nth-child(3) { animation-delay: .2s; }
.msdn-hero-text > :nth-child(4) { animation-delay: .3s; }
.msdn-hero-text > :nth-child(n+5) { animation-delay: .4s; }
.msdn-lede { margin-top: 20px !important; font-size: 1.2rem; line-height: 1.55; color: var(--n-text); max-width: 560px; }
.msdn-chip-deadline {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 24px !important;
    padding: 9px 16px; border-radius: 999px; background: #fff6dc; border: 1px solid #f1d58a;
    color: #7a4f00; font-size: 15px; font-weight: 600; line-height: 1.35;
}
.msdn-chip-deadline svg { color: #c8890a; }
.msdn-chip-deadline[hidden] { display: none; }
.msdn-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.msdn-start { margin-top: 20px !important; font-size: 16px; }
.msdn-start a { font-weight: 700; color: var(--n-ink); text-decoration: underline; text-decoration-color: var(--n-peri); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.msdn-start a:hover { color: var(--n-teal); }
.msdn-live { margin-top: 10px !important; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--n-muted); }
.msdn-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--n-green); box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); animation: msdn-ping 2.2s infinite; flex: none; }
.msdn-live.is-closed .msdn-dot { background: var(--n-peri); animation: none; }

.msdn-hero-foot { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.msdn-dots { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; background: rgba(14, 42, 56, .45); backdrop-filter: blur(6px); }
.msdn-dot-btn { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .35s, background .35s; }
.msdn-dot-btn[aria-current] { width: 26px; background: #fff; }
.msdn-pause { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; margin-left: 4px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; }
.msdn-pause svg { width: 12px; height: 12px; }
.msdn-pause.is-paused svg rect:last-child { display: none; }
.msdn-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
    background: #fff; color: var(--n-ink) !important; font-size: 15px; font-weight: 600; text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .16); transition: transform .2s;
}
.msdn-pill:hover { transform: translateY(-2px); }
.msdn-pill svg { width: 16px; height: 16px; color: var(--n-teal); }

/* Numbers strip. */
.msdn-stats { background: linear-gradient(100deg, var(--n-deep), var(--n-teal) 60%, #3c6fa3); color: #fff; }
.msdn-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.msdn-stats-row div { display: flex; flex-direction: column; gap: 2px; }
.msdn-stats strong { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.msdn-stats span { font-size: 15px; color: rgba(255, 255, 255, .82); }

/* Connected visit steps. */
.msdn-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.msdn-steps li {
    position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--n-line); border-radius: var(--n-radius);
    box-shadow: 0 10px 30px rgba(14, 42, 56, .06); display: flex; flex-direction: column; gap: 8px;
    transition: transform .25s, box-shadow .25s, border-color .25s, opacity .7s;
}
.msdn-steps li:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(14, 42, 56, .1); border-color: var(--n-peri-2); }
.msdn-steps li:not(:last-child)::after {
    content: ''; position: absolute; top: 50px; right: -18px; width: 18px; height: 2px;
    background: linear-gradient(90deg, var(--n-peri), var(--n-teal));
}
.msdn-step-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--n-mist), #e4ebf8); color: var(--n-teal); margin-bottom: 6px; }
.msdn-step-icon svg { width: 22px; height: 22px; }
.msdn-steps p { font-size: 15.5px; color: var(--n-muted); flex: 1; }
.msdn-steps a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; }
.msdn-steps a svg { width: 16px; height: 16px; transition: transform .2s; }
.msdn-steps a:hover svg { transform: translateX(3px); }

/* Dentists rail. */
.msdn-rail-nav { display: flex; gap: 8px; }
.msdn-rail-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--n-line); background: #fff; color: var(--n-teal); cursor: pointer; transition: background .2s, color .2s; }
.msdn-rail-btn:hover { background: var(--n-teal); color: #fff; }
.msdn-docs-btn svg { width: 14px; height: 14px; }
.msdn-docs-btn.is-paused svg rect:last-child { display: none; }
.msdn-docs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.msdn-docs::-webkit-scrollbar { display: none; }
.msdn-doc { scroll-snap-align: start; }
.msdn-doc a, .msdn-doc-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--n-radius); overflow: hidden; text-decoration: none; background: #cfdce4; box-shadow: 0 10px 26px rgba(14, 42, 56, .12); }
.msdn-doc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(var(--z, 1)); transform-origin: var(--fx, 50%) var(--fy, 20%); transition: transform .6s ease; }
.msdn-doc a:hover img { transform: scale(calc(var(--z, 1) * 1.06)); }
.msdn-doc a::after, .msdn-doc-card::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(180deg, rgba(7, 47, 62, 0), rgba(7, 47, 62, .9)); }
.msdn-doc-text { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 68px; z-index: 1; display: flex; flex-direction: column; color: #fff; }
.msdn-doc-name { font-weight: 750; font-size: 17px; line-height: 1.2; }
.msdn-doc-role { font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, .85); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msdn-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--n-teal); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.4; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msdn-chips { margin-top: 22px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--n-muted); }
.msdn-chips a { padding: 5px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--n-line); color: var(--n-ink); font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.msdn-chips a:hover { border-color: var(--n-teal); color: var(--n-teal); }

/* Treatment photo cards. */
.msdn-treat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.msdn-tcard { display: flex; flex-direction: column; border-radius: var(--n-radius); overflow: hidden; background: #fff; border: 1px solid var(--n-line); text-decoration: none; color: inherit; box-shadow: 0 10px 26px rgba(14, 42, 56, .06); transition: transform .25s, box-shadow .25s, opacity .7s; }
.msdn-tcard:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(14, 42, 56, .12); }
.msdn-tphoto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #cfdce4; }
.msdn-tphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.msdn-tcard:hover .msdn-tphoto img { transform: scale(1.06); }
.msdn-tbody { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.msdn-tbody strong { color: var(--n-ink); font-size: 18px; }
.msdn-tbody span { font-size: 15px; color: var(--n-muted); line-height: 1.5; }

/* Offices band: dark teal around a bright illustrated panorama. */
.msdn-band { background: radial-gradient(120% 140% at 85% 10%, #12607c 0%, var(--n-deep) 55%, #061f2a 100%); color: #fff; padding: 72px 0; overflow: hidden; }
.msdn-band h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.msdn-band .msdn-head p { color: rgba(255, 255, 255, .82); font-size: 1.08rem; }
.msdn-band .msdn-rail-nav { align-items: center; gap: 12px; }
.msdn-band .msdn-rail-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.msdn-band .msdn-rail-btn:hover { background: #fff; color: var(--n-teal); }
.msdn-scene-btn svg { width: 14px; height: 14px; }
.msdn-scene-btn.is-paused svg rect:last-child { display: none; }
.msdn-scene { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: #a7c4ef; }
.msdn-scene svg { display: block; width: 100%; height: auto; }
.msdn-zone { fill: #0e2a38; font: 800 22px 'Figtree', sans-serif; letter-spacing: -.01em; }
.msdn-zone-sub { fill: #2f4652; font: 600 14px 'Figtree', sans-serif; }
.msdn-pin { cursor: pointer; }
.msdn-pin-ring { fill: #fff; }
.msdn-pin-mark { fill: var(--n-teal); stroke: #fff; stroke-width: 3; }
.msdn-pin-chip { fill: #fff; filter: drop-shadow(0 4px 8px rgba(14, 42, 56, .25)); transition: fill .2s; }
.msdn-pin text { fill: var(--n-ink); font: 700 15px 'Figtree', sans-serif; transition: fill .2s; }
.msdn-pin:hover .msdn-pin-chip, .msdn-pin:focus-visible .msdn-pin-chip { fill: var(--n-teal); }
.msdn-pin:hover text, .msdn-pin:focus-visible text { fill: #fff; }
.msdn-js .msdn-pin-drop { opacity: 0; }
.msdn-scene.is-in .msdn-pin-drop { animation: msdn-drop .7s cubic-bezier(.3, 1.4, .5, 1) both; }

/* Reviews, moving strip. */
.msdn-stars { color: #f2a705; letter-spacing: 2px; }
.msdn-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.msdn-marquee { overflow-x: auto; scrollbar-width: none; }
.msdn-marquee.is-moving { overflow: hidden; }
.msdn-marquee-track { display: flex; gap: 18px; width: max-content; padding: 6px 24px 14px; will-change: transform; }
.msdn-marquee-btn svg { width: 14px; height: 14px; }
.msdn-marquee-btn.is-paused svg rect:last-child { display: none; }
.msdn-review { width: 360px; margin: 0; padding: 22px 22px 18px; background: #fff; border: 1px solid var(--n-line); border-radius: var(--n-radius); box-shadow: 0 8px 22px rgba(14, 42, 56, .06); display: flex; flex-direction: column; gap: 10px; }
.msdn-review blockquote { margin: 0; padding: 0; border: 0; font-size: 16px; line-height: 1.55; color: var(--n-ink); flex: 1; font-style: normal; }
.msdn-review figcaption { font-size: 14px; color: var(--n-muted); }
.msdn-review figcaption strong { color: var(--n-ink); }

/* Patient tools and the membership banner. */
.msdn-tint h2.msdn-reveal { margin-bottom: 26px; }
.msdn-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.msdn-tool { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--n-line); border-radius: 14px; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s, opacity .7s; }
.msdn-tool:hover { border-color: var(--n-peri); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(14, 42, 56, .08); }
.msdn-tool > span { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--n-mist); color: var(--n-teal); }
.msdn-tool strong { color: var(--n-ink); font-size: 16.5px; }
.msdn-tool em { font-style: normal; font-size: 14.5px; color: var(--n-muted); }
.msdn-promo {
    margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
    padding: 34px 38px; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(110deg, var(--n-teal) 0%, #3f74a8 55%, var(--n-peri) 100%);
}
.msdn-promo::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -220px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.msdn-promo > * { position: relative; }
.msdn-promo h2 { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.msdn-promo p { margin-top: 8px; color: rgba(255, 255, 255, .9); max-width: 620px; }

/* FAQ. */
.msdn-faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.msdn-faq details { background: #fff; border: 1px solid var(--n-line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.msdn-faq details[open] { border-color: var(--n-peri-2); box-shadow: 0 10px 24px rgba(14, 42, 56, .06); }
.msdn-faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--n-ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.msdn-faq summary::-webkit-details-marker { display: none; }
.msdn-faq summary::after { content: '+'; font-size: 22px; font-weight: 500; color: var(--n-teal); transition: transform .25s; }
.msdn-faq details[open] summary::after { transform: rotate(45deg); }
.msdn-faq details p { padding: 0 22px 20px; color: var(--n-text); }

/* End call to action. */
.msdn-end { padding: 0 0 80px; }
.msdn-end-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px 44px; border-radius: 24px; background: linear-gradient(110deg, var(--n-deep), var(--n-teal)); color: #fff; max-width: 1152px; }
.msdn-end-box h2 { color: #fff; }
.msdn-end-box p { margin-top: 8px; color: rgba(255, 255, 255, .85); }

/* ---------- Service pages (templates/service-next.php) ---------- */
.msdn-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14.5px; color: var(--n-muted); }
.msdn-crumbs a { color: var(--n-muted); text-decoration: none; }
.msdn-crumbs a:hover { color: var(--n-teal); text-decoration: underline; }
.msdn-crumbs [aria-current] { color: var(--n-ink); font-weight: 600; }
.msdn-service .msdn-hero { min-height: min(640px, calc(100vh - 90px)); }
.msdn-h2-gap { margin-bottom: 26px !important; }

.msdn-intro { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: start; }
.msdn-intro h2 { margin-bottom: 16px; }
.msdn-intro-text { font-size: 1.12rem; line-height: 1.7; color: var(--n-text); }
.msdn-who { padding: 24px; border-radius: 20px; background: linear-gradient(160deg, var(--n-mist), #e9eef9); border: 1px solid var(--n-line); }
.msdn-who h3 { margin-bottom: 14px; }
.msdn-who ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.msdn-who li a { display: flex; align-items: center; gap: 14px; padding: 8px; margin: -8px; border-radius: 14px; text-decoration: none; transition: background .2s; }
.msdn-who li a:hover { background: rgba(255, 255, 255, .7); }
.msdn-who-photo { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #cfdce4; box-shadow: 0 0 0 3px #fff; }
.msdn-who-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(var(--z, 1)); transform-origin: var(--fx, 50%) var(--fy, 20%); }
.msdn-who li span { display: flex; flex-direction: column; line-height: 1.3; }
.msdn-who strong { color: var(--n-ink); font-size: 16px; }
.msdn-who em { font-style: normal; color: var(--n-muted); font-size: 14px; }
.msdn-who ul:has(li:nth-child(5)) { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.msdn-who ul:has(li:nth-child(5)) em { display: none; }
.msdn-who ul:has(li:nth-child(5)) .msdn-who-photo { width: 44px; height: 44px; }
.msdn-who ul:has(li:nth-child(5)) strong { font-size: 14.5px; }

.msdn-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.msdn-option { position: relative; padding: 24px 22px; background: #fff; border: 1px solid var(--n-line); border-radius: var(--n-radius); box-shadow: 0 10px 26px rgba(14, 42, 56, .06); transition: transform .25s, box-shadow .25s, border-color .25s, opacity .7s; }
.msdn-option:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(14, 42, 56, .1); border-color: var(--n-peri-2); }
.msdn-option-badge { display: inline-block; margin-bottom: 12px; padding: 4px 11px; border-radius: 999px; background: var(--n-teal); color: #fff; font-size: 12.5px; font-weight: 700; }
.msdn-option h3 { margin-bottom: 6px; }
.msdn-option > p { color: var(--n-muted); font-size: 15.5px; margin-bottom: 12px; }
.msdn-checks { display: flex; flex-direction: column; gap: 8px; }
.msdn-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.msdn-checks svg { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 50%; background: #e3f1f5; color: var(--n-teal); box-sizing: content-box; }
.msdn-checks-lg { margin: 18px 0 26px; gap: 12px; }
.msdn-checks-lg li { font-size: 16.5px; }

.msdn-problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.msdn-problem { padding: 26px 22px; border-radius: var(--n-radius); background: linear-gradient(160deg, #fff, var(--n-mist)); border: 1px solid var(--n-line); transition: opacity .7s, transform .7s; }
.msdn-problem-num { font-size: clamp(2.2rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1; color: var(--n-teal); letter-spacing: -.02em; }
.msdn-problem-num sup { font-size: 13px; font-weight: 700; margin-left: 3px; vertical-align: super; }
.msdn-problem-num sup a { text-decoration: none; color: var(--n-peri); }
.msdn-problem-what { margin: 6px 0 14px !important; font-size: 14.5px; color: var(--n-muted); }
.msdn-problem h3 { margin-bottom: 6px; }
.msdn-problem-fix { font-size: 15.5px; }

.msdn-step-num { font-size: 20px; font-weight: 800; }
.msdn-steps-3 { grid-template-columns: repeat(3, 1fr); }
.msdn-steps-5 { grid-template-columns: repeat(5, 1fr); }

.msdn-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.msdn-split-photo { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: 0 24px 48px rgba(14, 42, 56, .16); }
.msdn-split-photo img { width: 100%; height: 100%; object-fit: cover; }

.msdn-related { padding: 40px 0 56px; }
.msdn-related .msdn-chips { margin-top: 0 !important; }
.msdn-sources { margin-top: 22px; font-size: 14px; color: var(--n-muted); }
.msdn-sources summary { cursor: pointer; font-weight: 700; color: var(--n-ink); }
.msdn-sources ol { margin: 10px 0 0 20px; padding: 0; list-style: decimal; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Office pages (templates/location-next.php) ---------- */
.msdn-office-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.msdn-office-facts a { display: inline-flex; align-items: center; gap: 7px; color: var(--n-ink); font-weight: 600; font-size: 15.5px; text-decoration: none; }
.msdn-office-facts a:hover { color: var(--n-teal); text-decoration: underline; }
.msdn-hero-address { margin-top: 16px !important; }
.msdn-hero-address a { display: inline-flex; align-items: center; gap: 7px; color: var(--n-ink); font-weight: 600; font-size: 15.5px; text-decoration: underline; text-decoration-color: var(--n-peri-2); text-underline-offset: 4px; }
.msdn-hero-address a:hover { color: var(--n-teal); text-decoration-color: var(--n-teal); }
.msdn-hero-address svg { color: var(--n-teal); }
.msdn-office-facts svg { color: var(--n-teal); }
.msdn-docs-1, .msdn-docs-2, .msdn-docs-3, .msdn-docs-4 { grid-auto-columns: calc((100% - 3 * 18px) / 4); }

.msdn-video { margin: 0; }
.msdn-video-btn, .msdn-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 22px; overflow: hidden; background: #0e2a38; cursor: pointer; box-shadow: 0 24px 48px rgba(14, 42, 56, .18); }
.msdn-video-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s, opacity .3s; }
.msdn-video-btn:hover img { transform: scale(1.04); opacity: 1; }
.msdn-video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--n-teal); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s; }
.msdn-video-btn:hover .msdn-video-play { transform: scale(1.08); }
.msdn-video-play svg { width: 30px; height: 30px; margin-left: 4px; }

.msdn-prose { font-size: 1.05rem; line-height: 1.7; }
.msdn-prose p, .msdn-prose ul { margin: 0 0 14px; }
.msdn-prose ul { padding-left: 20px; list-style: disc; }
.msdn-prose h3 { margin: 18px 0 6px; }
.msdn-extra h2 { margin-bottom: 14px; }

.msdn-specials { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.msdn-special { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: #fff; border: 1px solid var(--n-line); border-radius: 20px; box-shadow: 0 10px 26px rgba(14, 42, 56, .06); transition: transform .25s, box-shadow .25s, opacity .7s; }
.msdn-special:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(14, 42, 56, .12); }
.msdn-special.is-featured { border: 2px solid var(--n-teal); }
.msdn-special .msdn-option-badge { align-self: flex-start; margin: 0; }
.msdn-special-price { font-size: 2.4rem; font-weight: 800; line-height: 1.1; color: var(--n-teal); }
.msdn-special-price s { font-size: 1rem; font-weight: 600; color: var(--n-muted); margin-left: 6px; }
.msdn-special .msdn-checks { flex: 1; margin-bottom: 8px; }
.msdn-special-terms { font-size: 13px; line-height: 1.45; color: var(--n-muted); }
.msdn-pay-grid .msdn-intro-text { margin-bottom: 6px; }
.msdn-pay-h { margin: 20px 0 4px; font-size: 1rem; }
.msdn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.msdn-pay-grid .msdn-special-terms { margin: 10px 0 18px; }
.msdn-tags li { padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--n-line); font-size: 14px; color: var(--n-ink); }

.msdn-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.msdn-staff li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.msdn-staff-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin-bottom: 10px; box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(14, 42, 56, .14); background: #cfdce4; }
.msdn-staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.msdn-staff strong { color: var(--n-ink); }
.msdn-staff em { font-style: normal; font-size: 14px; color: var(--n-muted); }

.msdn-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px; }
.msdn-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #cfdce4; }
.msdn-gallery figure.is-big { grid-column: span 2; grid-row: span 2; }
.msdn-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.msdn-gallery figure:hover img { transform: scale(1.06); }
.msdn-gallery-more { margin-top: 16px; }
.msdn-gallery-more summary { cursor: pointer; display: inline-flex; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--n-line); font-weight: 650; color: var(--n-teal); }
.msdn-gallery-rest { margin-top: 14px; grid-auto-rows: 150px; }

.msdn-pay-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.msdn-pay-grid h2 { margin-bottom: 12px; }
.msdn-pay-grid .msdn-checks-lg { margin: 14px 0 20px; }
.msdn-promo-col { flex-direction: column; align-items: flex-start; margin-top: 0; }

.msdn-visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.msdn-visit h2 { margin-bottom: 14px; }
.msdn-visit-card { margin-top: 20px; padding: 24px; border-radius: 20px; background: var(--n-mist); border: 1px solid var(--n-line); }
.msdn-hours { width: 100%; margin: 14px 0 18px; border-collapse: collapse; font-size: 15.5px; }
.msdn-hours caption { text-align: left; font-weight: 700; color: var(--n-ink); margin-bottom: 6px; }
.msdn-hours th { text-align: left; font-weight: 500; padding: 5px 0; color: var(--n-text); }
.msdn-hours td { text-align: right; padding: 5px 0; color: var(--n-text); }
.msdn-hours tr + tr { border-top: 1px solid var(--n-line); }
.msdn-hours tr.is-today th, .msdn-hours tr.is-today td { color: var(--n-teal); font-weight: 800; }
.msdn-map-embed { border-radius: 22px; overflow: hidden; min-height: 460px; box-shadow: 0 24px 48px rgba(14, 42, 56, .14); background: #dfe8ee; }
.msdn-map-embed iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ---------- /locations/ (templates/locations-next.php) ---------- */
.msdn-band-hero { padding-top: 40px; }
.msdn-band-hero .msdn-crumbs, .msdn-band-hero .msdn-crumbs a { color: rgba(255, 255, 255, .7); }
.msdn-band-hero .msdn-crumbs [aria-current] { color: #fff; }
.msdn-band-hero h1 { color: #fff; }
.msdn-office-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.msdn-office-card { display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid var(--n-line); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 30px rgba(14, 42, 56, .07); transition: transform .25s, box-shadow .25s, opacity .7s; }
.msdn-office-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(14, 42, 56, .12); }
.msdn-office-photo { position: relative; display: block; background: #cfdce4; overflow: hidden; }
.msdn-office-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.msdn-office-card:hover .msdn-office-photo img { transform: scale(1.06); }
.msdn-office-status { top: auto; bottom: 12px; background: rgba(14, 42, 56, .8); }
.msdn-office-status.is-open { background: var(--n-green); }
.msdn-office-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.msdn-office-body h3 { font-size: 1.35rem; }
.msdn-office-body h3 a { color: var(--n-ink); text-decoration: none; }
.msdn-office-body h3 a:hover { color: var(--n-teal); }
.msdn-office-body .msdn-office-facts { flex-direction: column; gap: 6px; margin: 8px 0 6px; }
.msdn-office-docs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--n-muted); margin: 6px 0 4px !important; }
.msdn-avatars { display: flex; flex: none; }
.msdn-avatars .msdn-who-photo { width: 34px; height: 34px; box-shadow: 0 0 0 2px #fff; }
.msdn-avatars .msdn-who-photo + .msdn-who-photo { margin-left: -9px; }
.msdn-office-body .msdn-ctas { margin-top: 12px; }
.msdn-office-body .msdn-btn { min-height: 46px; padding: 0 18px; font-size: 15.5px; }

/* ---------- Content pages (templates/page-next.php) ---------- */
.msdn-page-hero { min-height: 0; }
.msdn-page-hero .msdn-hero-inner { padding-top: 64px; padding-bottom: 72px; }
.msdn-page-hero.is-plain { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200V150l90-30 80 25 120-70 90 45 110-80 100 60 120-40 90 30 130-55 100 45 170-30v150z' fill='%23dfe8f4'/%3E%3Cpath d='M0 200v-25l140-30 120 20 160-45 140 35 150-30 160 25 180-20 150 20v70z' fill='%23d3e1ec'/%3E%3C/svg%3E") bottom / 100% 120px no-repeat,
    radial-gradient(90% 120% at 100% 0%, #e4ebf8 0%, rgba(228, 235, 248, 0) 60%),
    linear-gradient(180deg, #f4f8fa, #eef4f7); }
.msdn-page-hero.is-plain .msdn-hero-text { max-width: 820px; }
.msdn-page-hero.is-plain .msdn-hero-inner { padding-bottom: 120px; }
.msdn-head-center { justify-content: center; text-align: center; }
.msdn-head-center p { margin-left: auto; margin-right: auto; }
.msdn-faq-intro { margin: 8px auto 0 !important; color: var(--n-muted); max-width: 640px; }
.msdn-faq details .msdn-prose { padding: 0 22px 18px; font-size: 1rem; }
.msdn-narrow h2 { margin-bottom: 14px; }

a.msdn-option { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.msdn-option.has-img { padding-top: 0; overflow: hidden; }
.msdn-option-img { display: block; margin: 0 -22px 18px; aspect-ratio: 16 / 9; overflow: hidden; background: #cfdce4; }
.msdn-option-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.msdn-option-img.is-logo { background: #fff; border-bottom: 1px solid var(--n-line); }
.msdn-option-img.is-logo img { object-fit: contain; padding: 22px 30px; }
.msdn-option:hover .msdn-option-img img { transform: scale(1.05); }
.msdn-option-more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--n-teal); }
.msdn-checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }

.msdn-timeline { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 0; }
.msdn-timeline::before { content: ''; position: absolute; left: 63px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--n-peri-2), var(--n-teal)); }
.msdn-timeline li { position: relative; display: grid; grid-template-columns: 128px 1fr; gap: 18px; align-items: start; }
.msdn-timeline-year { position: relative; z-index: 1; justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--n-teal); color: #fff; font-weight: 800; font-size: 15px; }
.msdn-timeline li > div { padding: 18px 22px; background: #fff; border: 1px solid var(--n-line); border-radius: var(--n-radius); }
.msdn-timeline h3 { margin-bottom: 4px; }

.msdn-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.msdn-person { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--n-line); border-radius: 20px; box-shadow: 0 10px 26px rgba(14, 42, 56, .06); transition: transform .25s, box-shadow .25s, opacity .7s; }
.msdn-person:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14, 42, 56, .1); }
.msdn-person-photo { width: 120px; height: 150px; border-radius: 14px; overflow: hidden; background: #cfdce4; }
.msdn-person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(var(--z, 1)); transform-origin: var(--fx, 50%) var(--fy, 20%); }
.msdn-person-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msdn-person-role { color: var(--n-teal); font-weight: 700; font-size: 15px; }
.msdn-person-where { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--n-muted); }
.msdn-person-where svg { width: 15px; height: 15px; color: var(--n-teal); }
.msdn-person .msdn-prose { font-size: 15px; line-height: 1.6; margin-top: 6px; }
.msdn-person .msdn-prose p { margin-bottom: 8px; }
.msdn-person .msdn-more { align-self: flex-start; margin-top: 6px; }

.msdn-quote-band { background: linear-gradient(110deg, var(--n-deep), var(--n-teal)); }
.msdn-quote { margin: 0; text-align: center; color: #fff; }
.msdn-quote blockquote { margin: 0; padding: 0; border: 0; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.45; font-weight: 600; font-style: normal; color: #fff; }
.msdn-quote blockquote::before { content: '\201C'; display: block; font-size: 4rem; line-height: .6; color: var(--n-peri-2); margin-bottom: 10px; }
.msdn-quote figcaption { margin-top: 18px; color: rgba(255, 255, 255, .8); }
.msdn-end-mid { padding: 24px 0; }
.msdn-quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.msdn-quote-card { text-align: left; padding: 26px 24px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.msdn-quote-card blockquote { font-size: 1.05rem; font-weight: 500; }
.msdn-quote-card blockquote::before { font-size: 3rem; margin-bottom: 4px; }
.msdn-end-mid.is-last { padding-bottom: 80px; }

.msdn-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.msdn-plan-office { padding: 24px; background: #fff; border: 1px solid var(--n-line); border-radius: 20px; box-shadow: 0 10px 26px rgba(14, 42, 56, .06); scroll-margin-top: 110px; }
.msdn-plan-office h3 { margin-bottom: 12px; }
.msdn-plan-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.msdn-plan-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--n-mist); }
.msdn-plan-list li.is-featured { background: #e3f1f5; box-shadow: inset 0 0 0 2px var(--n-teal); }
.msdn-plan-name { display: flex; flex-direction: column; font-weight: 700; color: var(--n-ink); line-height: 1.3; }
.msdn-plan-name em { font-style: normal; font-weight: 500; font-size: 13.5px; color: var(--n-muted); }
.msdn-plan-price { text-align: right; font-size: 1.5rem; font-weight: 800; color: var(--n-teal); line-height: 1.1; }
.msdn-plan-price small { font-size: 13px; font-weight: 600; color: var(--n-muted); }
.msdn-plan-price em { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--n-muted); }
.msdn-plan-enroll { font-size: 14.5px; color: var(--n-muted); }

.msdn-review-grid { columns: 3 300px; column-gap: 18px; }
.msdn-review-grid .msdn-review { width: auto; break-inside: avoid; margin: 0 0 18px; }
.msdn-ratings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.msdn-rating { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 20px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--n-line); text-decoration: none; text-align: center; transition: transform .2s, box-shadow .2s, opacity .7s; }
.msdn-rating:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14, 42, 56, .1); }
.msdn-rating strong { font-size: 2.2rem; font-weight: 800; color: var(--n-teal); line-height: 1; }
.msdn-rating span:last-child { font-size: 14px; color: var(--n-muted); }
.msdn-scene-wrap { position: relative; }
.msdn-scene-btn-over { position: absolute; z-index: 2; right: 14px; bottom: 14px; background: rgba(14, 42, 56, .5); color: #fff; border-color: transparent; }
.msdn-contact-cards .msdn-office-card { grid-template-columns: 1fr; }
.msdn-contact-cards h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.msdn-inline-status { position: static; font-size: 12px; }
.msdn-hours-sm { font-size: 14px; margin: 6px 0 4px; }
.msdn-option.is-featured { border: 2px solid var(--n-teal); }
.msdn-chips-card { margin-top: 12px !important; font-size: 14px; }
.msdn-chips-card a { padding: 4px 11px; }
.msdn-card-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px !important; font-weight: 700; font-size: 15px; }
.msdn-card-actions a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.msdn-btn-outline-light { background: transparent; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .7); box-shadow: none; }
.msdn-btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.msdn-end-box .msdn-ctas { margin-top: 0; }
.msdn-partners { background: #f8fafc; }
.msdn-partners h2 { margin-bottom: 30px; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.msdn-logos { display: grid; grid-template-columns: repeat(var(--cols, 8), 1fr); gap: 18px; align-items: center; }
.msdn-logos li { display: grid; place-items: center; height: 92px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--n-line); transition: transform .2s, box-shadow .2s, opacity .7s; }
.msdn-logos li:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(14, 42, 56, .08); }
.msdn-logos img { max-height: 56px; max-width: min(100%, 150px); width: auto; object-fit: contain; }
.msdn .msdn-logos-note { margin: 10px auto 34px; font-weight: 600; color: var(--n-muted); }
.msdn-embed { padding: 24px; background: #fff; border: 1px solid var(--n-line); border-radius: 20px; }

/* Fade-ins as sections scroll into view (only once the script runs). */
.msdn-js .msdn-reveal { opacity: 0; transform: translateX(-28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.msdn-js .msdn-reveal.is-in { opacity: 1; transform: none; }

@keyframes msdn-drop { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes msdn-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes msdn-ping { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); } 80%, 100% { box-shadow: 0 0 0 9px rgba(31, 157, 85, 0); } }

@media (max-width: 1024px) {
    .msdn-steps, .msdn-treat { grid-template-columns: repeat(2, 1fr); }
    .msdn-steps li::after { display: none; }
    .msdn-steps-3, .msdn-steps-5 { grid-template-columns: repeat(2, 1fr); }
    .msdn-intro, .msdn-split, .msdn-pay-grid, .msdn-visit { grid-template-columns: 1fr; gap: 28px; }
    .msdn-docs-1, .msdn-docs-2, .msdn-docs-3, .msdn-docs-4 { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
    .msdn-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .msdn-office-cards { grid-template-columns: 1fr; }
    .msdn-checks-grid { grid-template-columns: 1fr; }
    .msdn-ratings { grid-template-columns: repeat(2, 1fr); }
    .msdn-logos { grid-template-columns: repeat(var(--cols-t, 4), 1fr); }
    .msdn-docs { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
    .msdn-tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .msdn { padding-top: 70px; font-size: 16px; }
    .msdn-section { padding: 56px 0; }
    .msdn-hero { min-height: 0; justify-content: flex-start; }
    .msdn-slides { position: relative; inset: auto; height: 300px; }
    .msdn-hero-text { max-width: none; }
    .msdn-slides::after { background: linear-gradient(180deg, rgba(244, 248, 250, 0) 55%, #f4f8fa 100%); }
    .msdn-hero-inner { padding-top: 6px; padding-bottom: 36px; }
    .msdn-hero-foot { top: 250px; bottom: auto; justify-content: space-between; }
    .msdn-dot-btn { display: none; }
    .msdn-dots { padding: 4px; }
    .msdn-pause { margin: 0; }
    .msdn-pill { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 52px); }
    .msdn-pill span { overflow: hidden; text-overflow: ellipsis; }
    .msdn-lede { font-size: 1.08rem; }
    .msdn-stats-row { grid-template-columns: repeat(2, 1fr); }
    .msdn-head { flex-direction: column; align-items: flex-start; }
    .msdn-promo, .msdn-end-box { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
@media (max-width: 600px) {
    .msdn-wrap { padding: 0 16px; }
    .msdn-logos { grid-template-columns: repeat(var(--cols-p, 4), 1fr); }
    .msdn-steps, .msdn-treat, .msdn-tools, .msdn-steps-3, .msdn-steps-5 { grid-template-columns: 1fr; }
    .msdn-docs, .msdn-docs-1, .msdn-docs-2, .msdn-docs-3, .msdn-docs-4 { grid-auto-columns: 62%; }
    .msdn-staff { grid-template-columns: repeat(2, 1fr); }
    .msdn-office-card { grid-template-columns: 1fr; }
    .msdn-office-photo { aspect-ratio: 16 / 9; }
    .msdn-people { grid-template-columns: 1fr; }
    .msdn-person { grid-template-columns: 88px 1fr; padding: 16px; }
    .msdn-person-photo { width: 88px; height: 110px; }
    .msdn-timeline::before { left: 20px; }
    .msdn-timeline li { grid-template-columns: 1fr; gap: 8px; }
    .msdn-map-embed, .msdn-map-embed iframe { min-height: 320px; }
    .msdn-ctas .msdn-btn { flex: 1 1 100%; }
    .msdn-pill { font-size: 13px; padding: 8px 12px; }
    .msdn-review { width: 290px; }
    .msdn-chip-deadline { font-size: 14px; border-radius: 14px; }
    .msdn-scene { overflow-x: auto; scrollbar-width: none; border-radius: 18px; }
    .msdn-scene svg { width: 960px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .msdn *, .msdn *::before, .msdn *::after { animation: none !important; transition: none !important; }
    .msdn-slide img { transform: none; }
    .msdn-js .msdn-pin-drop { opacity: 1; }
}

/* Card rows sized by page-next.php so the last row isn't a lone card. */
@media (min-width: 1025px) {
    .msdn-options[style*="--cols"] { grid-template-columns: repeat(var(--cols), 1fr); }
}
