/* Shared public-site presentation. Opt-in only; never loaded by /themes/ pages.
   Keep after legacy page styles. Header/footer markup: templates/site-shell/. */
.sdr-shell {
  --sdr-bg: #f7f4ee;
  --sdr-secondary: #7facb5;
  --sdr-tertiary: #e69573;
  --sdr-text: #1f2937;
  --sdr-muted: #586774;
  --sdr-card: #fff;
  --sdr-border: #dce3e1;
  --sdr-shadow: 0 8px 28px rgb(31 41 55 / 5%);
  --text: var(--sdr-text);
  --muted: var(--sdr-muted);
  --muted2: var(--sdr-muted);
  --sdr-width: 1160px;
  --sdr-gutter: clamp(20px, 4vw, 40px);
  margin: 0;
  min-height: 100vh;
  height: auto;
  background: var(--sdr-bg);
  color: var(--sdr-text);
  font: 400 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.sdr-shell *, .sdr-shell *::before, .sdr-shell *::after { box-sizing: border-box; }
.sdr-shell :focus-visible { outline: 3px solid #365e66; outline-offset: 4px; }
.sdr-shell [id] { scroll-margin-top: 100px; }
.sdr-shell img { max-width: 100%; }
.sdr-shell h1, .sdr-shell h2, .sdr-shell h3 { color: var(--sdr-text); text-wrap: balance; }
.sdr-shell h1 { font-size: clamp(2rem, 4.3vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: break-word; }
.sdr-shell h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.25; letter-spacing: -.025em; }
.sdr-shell p { color: var(--sdr-muted); }
.sdr-shell .container { width: min(var(--sdr-width), calc(100% - 2 * var(--sdr-gutter))); max-width: var(--sdr-width); margin-inline: auto; padding-inline: 0; }
.sdr-shell main { min-width: 0; }
.sdr-shell a { text-underline-offset: .2em; }
.sdr-shell .sdr-skip { position: fixed; top: 10px; left: 16px; z-index: 200; padding: 10px 16px; background: white; border-radius: 8px; color: var(--sdr-text); transform: translateY(-160%); }
.sdr-shell .sdr-skip:focus { transform: translateY(0); }

/* A single row above 1080px; a native, keyboard-operable disclosure below it. */
.sdr-shell .sdr-header {
  display: block; position: sticky; top: 0; z-index: 100;
  margin: 0; padding: 0; width: 100%; height: auto;
  background: #f7f4ee; border: 0; border-bottom: 1px solid var(--sdr-border);
  border-radius: 0; box-shadow: none; backdrop-filter: none;
  color: var(--sdr-text); font: inherit;
}
.sdr-shell .sdr-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(var(--sdr-width), calc(100% - 2 * var(--sdr-gutter))); min-height: 84px; margin: 0 auto; position: relative; }
.sdr-shell .sdr-brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 11px; margin: 0; padding: 0; text-decoration: none; color: var(--sdr-text); font-size: 16px; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.sdr-shell .sdr-brand img { display: block; width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; border: 0; border-radius: 0; box-shadow: none; }
.sdr-shell .sdr-brand span { display: block; line-height: 1.25; }
.sdr-shell .sdr-brand small { display: block; color: var(--sdr-muted); font-size: 11px; font-weight: 450; letter-spacing: .015em; margin-top: 5px; }
.sdr-shell .sdr-desktop-nav { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }
.sdr-shell .sdr-desktop-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 9px; font: 600 13px/1.3 system-ui, sans-serif; color: var(--sdr-text); text-decoration: none; white-space: nowrap; }
.sdr-shell .sdr-desktop-nav a:hover, .sdr-shell .sdr-desktop-nav a[aria-current], .sdr-shell .sdr-desktop-nav a[data-current] { background: #e6eeec; }
.sdr-shell .sdr-desktop-nav .sdr-saved { border: 1px solid #bccfce; margin-left: 8px; }
.sdr-shell .sdr-header svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sdr-shell .sdr-menu { display: none; }

/* Footer has actual groups, rather than a dense line of ten tiny links. */
.sdr-shell .sdr-footer { display: block; width: 100%; max-width: none; margin: 64px 0 0; padding: 0; border: 0; border-top: 1px solid var(--sdr-border); border-radius: 0; background: #eaf0ed; color: var(--sdr-text); font: inherit; text-align: left; }
.sdr-shell .sdr-footer__inner { width: min(var(--sdr-width), calc(100% - 2 * var(--sdr-gutter))); margin: 0 auto; padding: 48px 0 32px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; }
.sdr-shell .sdr-footer a { color: var(--sdr-text); text-decoration: none; font-size: 14px; }
.sdr-shell .sdr-footer a:hover { text-decoration: underline; }
.sdr-shell .sdr-footer .sdr-footer__brand { font-size: 19px; font-weight: 750; letter-spacing: -.025em; }
.sdr-shell .sdr-footer p { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--sdr-muted); }
.sdr-shell .sdr-footer .sdr-footer__disclosure { font-size: 12px; max-width: 37ch; margin-top: 20px; }
.sdr-shell .sdr-footer h2 { margin: 3px 0 14px; font-size: 12px; line-height: 1.5; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; text-wrap: auto; }
.sdr-shell .sdr-footer__inner nav { display: flex; flex-direction: column; align-items: flex-start; }
.sdr-shell .sdr-footer__inner nav a { display: flex; align-items: center; min-height: 40px; padding: 5px 0; }
.sdr-shell .sdr-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; width: min(var(--sdr-width), calc(100% - 2 * var(--sdr-gutter))); margin: 0 auto; padding: 20px 0 24px; border-top: 1px solid #cedbd6; }
.sdr-shell .sdr-footer__bottom p { margin: 0; font-size: 12px; }
.sdr-shell .sdr-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.sdr-shell .sdr-footer__bottom a { display: inline-flex; align-items: center; min-height: 36px; font-size: 12px; }

/* Shared typography, surfaces, controls and content rhythm. */
.sdr-shell :is(.btn, .button, .featured-cta, .empty-state > a) { min-height: 46px; padding: 12px 19px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cbd9d7; border-radius: 12px; background: #edf2ef; color: var(--sdr-text); box-shadow: none; font: 650 14px/1.45 system-ui, sans-serif; text-align: center; text-decoration: none; }
.sdr-shell :is(.btn--primary, .btn-primary, .button.primary, .featured-cta) { background: var(--sdr-tertiary); border-color: var(--sdr-tertiary); color: var(--sdr-text); }
.sdr-shell :is(.btn, .button, .featured-cta, .empty-state > a) { white-space: normal; max-width: 100%; }
.sdr-shell :is(.btn, .button, .featured-cta, .empty-state > a):hover { filter: brightness(.97); transform: none; box-shadow: none; }
.sdr-shell :is(.card, .cardLink, .theme-card, .featured-card, .info-card, .mission-card, .feature-card, .empty-state, .nursery-search) { border-color: var(--sdr-border); box-shadow: var(--sdr-shadow); border-radius: 18px; }
.sdr-shell :is(.card-title, .cardTitle, .featured-body h3) { font-size: 17px; line-height: 1.35; color: var(--sdr-text); }
.sdr-shell :is(.card-desc, .cardDesc) { line-height: 1.6; font-size: 14px; }
.sdr-shell :is(.card-body, .cardBody, .featured-body) { padding: 20px; }
.sdr-shell :is(.eyebrow, .section-kicker) { color: #436a70; font-size: 12px; font-weight: 700; letter-spacing: .09em; }
.sdr-shell .nursery-search { background: #fff; }
.sdr-shell .saved-room-card-toggle { min-width: 44px; height: 44px; color: var(--sdr-text); border-color: #cbd9d7; background: #fff; }
.sdr-shell .saved-room-card-toggle.is-saved { background: #e6eeec; border-color: #7facb5; }
.sdr-shell .hero-actions { gap: 12px; }

/* Homepage: preserve the imagery; give the introduction room to breathe. */
.sdr-page--home main { max-width: none; margin: 0; padding: 0; }
.sdr-page--home .hero { position: static; padding: 56px 0; background: var(--sdr-bg); border: 0; }
.sdr-page--home .hero h1 { max-width: 21ch; }
.sdr-page--home .hero p { max-width: 66ch; font-size: 17px; }
.sdr-page--home .hero-visual { margin-top: 30px; border-radius: 22px; box-shadow: var(--sdr-shadow); }
.sdr-page--home :is(.mission, .themes, .how-it-works, .features) { padding-block: 48px; background: transparent; }
.sdr-page--home .mission-card { background: #edf2ef; }
.sdr-page--home .sdr-footer { margin-top: 0; }

/* Directories and families use one page width and card rhythm. */
.sdr-page--directory main.container { padding-top: 32px; }
.sdr-page--directory .hero { margin-top: 0; border-radius: 22px; box-shadow: none; }
.sdr-page--directory .hero-inner { padding: 48px 40px; }
.sdr-page--directory .hero h1 { margin-top: 0; line-height: 1.12; }
.sdr-page--directory .hero-overlay { background: linear-gradient(90deg, rgb(247 244 238 / 98%) 0%, rgb(247 244 238 / 94%) 48%, rgb(247 244 238 / 25%) 100%); }
.sdr-page--directory .section { margin-top: 48px; }
.sdr-page--directory .grid { gap: 22px; }
.sdr-page--family main { width: min(var(--sdr-width), calc(100% - 2 * var(--sdr-gutter))); max-width: var(--sdr-width); padding: 48px 0 0; margin: 0 auto; }
.sdr-page--family .hero { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 30px; }
.sdr-page--family .hero h1 { margin: 0 0 16px; max-width: 24ch; }
.sdr-page--family .sub { max-width: 65ch; font-size: 17px; }
.sdr-page--family .gridWrap { background: transparent !important; background-image: none !important; border: 0; box-shadow: none; margin-top: 0; padding: 0; }
.sdr-page--family .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 0; }
.sdr-page--family .cardLink { border: 1px solid var(--sdr-border); }
.sdr-page--family .cardImg { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.sdr-page--family .chips { margin-top: 20px; }
.sdr-shell .sdr-breadcrumb { margin: 0 0 20px; color: var(--sdr-muted); font-size: 13px; }
.sdr-shell .sdr-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; gap: 8px; color: #365e66; text-decoration: none; }
.sdr-shell .sdr-breadcrumb a:hover { text-decoration: underline; }

/* Help and policy pages use comfortable reading widths, with no brand gradients. */
.sdr-page--legal main { width: min(820px, calc(100% - 2 * var(--sdr-gutter))); max-width: 820px; margin: 40px auto 0; padding: 0; }
.sdr-page--legal main > .card { padding: clamp(24px, 5vw, 48px); background: #fff; }
.sdr-page--legal h1 { margin-top: 0; }
.sdr-page--legal main h2 { font-size: 21px; margin-top: 32px; }
.sdr-page--legal main p { line-height: 1.8; }
.sdr-page--legal main a { color: #365e66; overflow-wrap: anywhere; text-decoration: underline; }
.sdr-page--faq main { padding: 48px var(--sdr-gutter) 0; }
.sdr-page--faq .wrap { max-width: 960px; }
.sdr-page--faq .hero { padding: 0 0 26px; }
.sdr-page--faq .eyebrow { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.sdr-page--faq .title { max-width: 22ch; }
.sdr-page--faq .grid { gap: 20px; }
.sdr-page--faq .card { padding: 28px; background: #fff; }
.sdr-page--saved-rooms main { min-height: 52vh; padding-top: 24px; }
.sdr-page--saved-rooms .page-header { padding: 24px 0; }
.sdr-page--saved-rooms .empty-state { padding: clamp(24px, 5vw, 56px); background: #fff; }
.sdr-page--saved-rooms .empty-state p { max-width: 55ch; margin-inline: auto; }
.sdr-page--tiktok main { padding-top: 32px; }
.sdr-page--tiktok main > section { padding-block: 24px; }
.sdr-page--tiktok .hero { padding-top: 0; }
.sdr-page--tiktok .hero-card { box-shadow: none; border-radius: 22px; }
.sdr-page--tiktok .hero-content { padding: 32px; }
.sdr-page--tiktok .hero-image { height: 100%; max-height: 600px; object-fit: cover; }
.sdr-page--nursery-safety .hero { padding-block: 48px; background: transparent; }
.sdr-page--nursery-safety .hero h1 { max-width: 18ch; line-height: 1.12; }
.sdr-page--nursery-safety .trust-card { background: white; box-shadow: none; }
.sdr-page--nursery-safety .anchor-nav { position: static; }
.sdr-page--nursery-safety .product-card { border-radius: 18px; box-shadow: none; }

@media (max-width: 1080px) {
  .sdr-page--directory .hero-overlay { background: rgb(247 244 238 / 91%); }
  .sdr-shell .sdr-header__inner { min-height: 72px; gap: 16px; }
  .sdr-shell .sdr-desktop-nav { display: none; }
  .sdr-shell .sdr-menu { display: block; flex: 0 0 auto; }
  .sdr-shell .sdr-menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 13px; border: 1px solid #cbd9d7; border-radius: 10px; color: var(--sdr-text); background: transparent; font: 650 14px/1.4 system-ui, sans-serif; cursor: pointer; list-style: none; }
  .sdr-shell .sdr-menu summary::-webkit-details-marker { display: none; }
  .sdr-shell .sdr-menu[open] summary { background: #e6eeec; }
  .sdr-shell .sdr-menu__panel { position: absolute; top: calc(100% + 8px); right: 0; width: min(360px, 100%); padding: 12px; display: flex; flex-direction: column; gap: 3px; max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--sdr-border); border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgb(31 41 55 / 15%); }
  .sdr-shell .sdr-menu__panel a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; padding: 12px 14px; border-radius: 9px; color: var(--sdr-text); font: 600 15px/1.4 system-ui, sans-serif; text-decoration: none; }
  .sdr-shell .sdr-menu__panel a:hover, .sdr-shell .sdr-menu__panel a[aria-current], .sdr-shell .sdr-menu__panel a[data-current] { background: #edf2ef; }
  .sdr-shell .sdr-menu__panel a:last-child { border-top: 1px solid var(--sdr-border); margin-top: 4px; border-radius: 0; }
}
@media (max-width: 760px) {
  .sdr-shell .sdr-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 32px; }
  .sdr-shell .sdr-footer__intro { grid-column: 1 / -1; }
  .sdr-shell .sdr-footer .sdr-footer__disclosure { max-width: 55ch; }
  .sdr-shell .sdr-footer__bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .sdr-shell .sdr-footer { margin-top: 48px; }
  .sdr-page--family .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .sdr-page--directory .hero-inner { padding: 32px 24px; }
  .sdr-page--directory .hero-overlay { background: rgb(247 244 238 / 92%); }
  .sdr-page--directory .grid.all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdr-page--faq main { padding-top: 32px; }
  .sdr-page--home .hero { padding-block: 36px; }
}
@media (max-width: 540px) {
  .sdr-shell .sdr-header__inner { min-height: 68px; gap: 8px; }
  .sdr-shell .sdr-brand { font-size: 14px; gap: 8px; }
  .sdr-shell .sdr-brand img { width: 31px; height: 36px; flex-basis: 31px; }
  .sdr-shell .sdr-brand small { display: none; }
  .sdr-shell .sdr-menu summary { padding: 9px 10px; font-size: 13px; gap: 7px; }
  .sdr-shell .sdr-header svg { width: 17px; height: 17px; }
  .sdr-shell .sdr-menu__panel { width: 100%; }
  .sdr-page--family main { padding-top: 32px; }
  .sdr-page--family .grid, .sdr-page--directory .grid.all, .sdr-page--directory .grid.newest { grid-template-columns: minmax(0, 1fr); }
  .sdr-page--directory .grid { gap: 20px; }
  .sdr-page--directory .section { margin-top: 36px; }
  .sdr-page--tiktok .hero-content { padding: 24px; }
  .sdr-page--faq .card { padding: 24px; }
  .sdr-page--home :is(.mission, .themes, .how-it-works, .features) { padding-block: 32px; }
  .sdr-shell .hero-actions > a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sdr-shell *, .sdr-shell *::before, .sdr-shell *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
