/* Visible paths and a touch-first bottom navigation, with native safe areas. */
:root{--bottom-nav-height:0px;--bottom-nav-bar:74px;--site-masthead-height:134px}
html{scroll-padding-top:calc(var(--site-masthead-height) + env(safe-area-inset-top,0px) + 16px)}
.site-masthead{position:sticky;top:0;z-index:30;background:#f2edf9;padding-top:env(safe-area-inset-top,0px)}
.site-masthead .site-header{position:static;-webkit-backdrop-filter:blur(10px)}
.shorts-sidebar,.reading-rail,.article-toc{top:calc(var(--site-masthead-height) + env(safe-area-inset-top,0px) + 16px)}
dialog:not([open]){display:none}
.site-utility{background:#f2edf9;border-bottom:1px solid #eee7f5;min-height:38px;color:#7251a1}
.site-utility-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:38px}
.site-utility-inner>span{display:flex;gap:7px;align-items:center;font-size:.875rem}
.site-utility-inner>span .icon{width:17px;height:17px}
.site-utility-links{display:flex;align-items:center;gap:24px}
.site-utility-links>a{display:flex;align-items:center;min-height:38px;font-size:.875rem;font-weight:550;white-space:nowrap}
.site-utility-links>a:hover,.site-utility-links>a[aria-current=page]{color:var(--purple-dark);text-decoration:underline;text-underline-offset:5px}
.mobile-bottom-nav{display:none}
.nav-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.nav-feature-link{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:19px 17px;border:1px solid transparent;border-radius:17px;min-width:0}
.nav-feature-link>span{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#ffffffb0;color:var(--purple);margin-bottom:5px}
.nav-feature-link>span .icon{width:24px;height:24px}
.nav-feature-link>strong{font-size:1.05rem;color:var(--ink)}
.nav-feature-link>small{font-size:.875rem;color:#7c7189;line-height:1.9}
.nav-feature-link[aria-current=page],.nav-feature-link:hover{border-color:#aa88d2}
.nav-feature-lilac{background:#f1eafa}.nav-feature-mint{background:#edf5e9}.nav-feature-peach{background:#fff1e8}
.nav-feature-mint>span{color:#65834f}.nav-feature-peach>span{color:#a37552}
.nav-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.nav-directory-link{display:flex;align-items:center;gap:12px;border:1px solid #eae4f1;border-radius:13px;padding:13px 14px;min-height:78px;min-width:0;background:#fff}
.nav-directory-link[aria-current=page],.nav-directory-link:hover{background:#fbf8ff;border-color:#c5b0df}
.nav-directory-symbol{display:flex;align-items:center;justify-content:center;width:39px;height:39px;background:#f6f2fc;color:var(--purple);border-radius:11px;flex-shrink:0}
.nav-directory-symbol .icon{width:21px;height:21px}
.nav-directory-link>span:last-child{min-width:0}
.nav-directory-link strong{font-size:.95rem;display:block;font-weight:650}
.nav-directory-link small{display:block;font-size:.875rem;color:#817589;line-height:1.8;margin-top:3px}
dialog.site-more-dialog{position:fixed;inset:auto 0 0;width:600px;max-width:100%;max-height:90vh;max-height:90dvh;margin:0 auto;padding:0;border:0;border-radius:25px 25px 0 0;overflow:hidden;background:#fff;box-shadow:0 -15px 65px #30204430;color:var(--ink)}
dialog.site-more-dialog::backdrop{background:#281b3a77;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.nav-sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:23px 24px 18px;border-bottom:1px solid #eee7f5}
.nav-sheet-heading h2{font-size:1.6rem}.nav-sheet-heading .eyebrow{font-size:.875rem;margin-bottom:4px}
.nav-sheet-heading .icon-button{width:44px;height:44px;flex-shrink:0;background:#f6f2fc}
.nav-sheet-scroll{padding:20px 24px 24px;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-height:calc(90vh - 103px);max-height:calc(90dvh - 103px)}
.nav-sheet-divider{color:#85778f;font-size:.875rem;margin:23px 0 13px;display:flex;align-items:center;gap:14px}
.nav-sheet-divider:after{content:"";height:1px;flex:1;background:#eee7f5}
.nav-explore-link{display:flex;justify-content:center;align-items:center;gap:8px;min-height:48px;margin-top:16px;color:var(--purple);font-weight:600;font-size:.95rem;border:1px solid #e4d8f0;border-radius:11px}
.nav-sheet-bottom{display:flex;justify-content:center;align-items:center;gap:8px;color:#93869f;font-size:.875rem;margin-top:20px}
.nav-sheet-bottom img{width:30px;height:30px;object-fit:contain}
.explore-page{padding-bottom:55px}.explore-heading{background:#f5f0fc;border:1px solid #eae0f4;border-radius:25px;padding:38px 42px;margin-bottom:30px}
.explore-heading h1{font-size:3rem;line-height:1.4}.explore-heading h1>span{color:var(--purple)}.explore-heading p{font-size:1rem;margin-top:15px;max-width:600px}
.explore-primary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.explore-primary-card{border:1px solid #e4dbef;padding:27px;border-radius:19px;background:#fff;min-width:0}
.explore-primary-card:nth-child(2){background:#f4f9f0}.explore-primary-card:nth-child(3){background:#f4f0fc}
.explore-primary-card>span{width:51px;height:51px;background:#f3ebfc;color:var(--purple);display:flex;align-items:center;justify-content:center;border-radius:14px;margin-bottom:16px}
.explore-primary-card>span .icon{width:28px;height:28px}.explore-primary-card h2{font-size:1.65rem}.explore-primary-card p{font-size:1rem;margin-top:9px}
.explore-family-section,.explore-other-section{margin-top:36px}
.explore-page .nav-feature-link{padding:25px}.explore-page .nav-directory-link{padding:19px}
@media(max-width:1120px){
  :root{--bottom-nav-height:calc(var(--bottom-nav-bar) + env(safe-area-inset-bottom,0px));--site-masthead-height:124px}
  .site-utility,.site-utility-inner,.site-utility-links>a{min-height:44px}
  body{padding-bottom:var(--bottom-nav-height)}
  html{scroll-padding-bottom:calc(var(--bottom-nav-height) + 16px)}
  .header-inner #main-nav,.header-inner #main-nav.is-open{display:none!important}
  .header-inner .menu-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0}
  .site-header{height:78px}.header-inner{gap:15px}.header-actions{gap:10px}
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;min-height:var(--bottom-nav-height);padding:4px max(8px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));z-index:45;background:#fffffff7;border-top:1px solid #e9e1f0;box-shadow:0 -5px 24px #4b2b6c0b;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
  .bottom-nav-item{min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#887892;font-size:.875rem;line-height:1.45;font-weight:550;border-radius:12px;min-width:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
  .bottom-nav-symbol{display:flex;align-items:center;justify-content:center;width:43px;height:33px;border-radius:11px;transition:background .16s}
  .bottom-nav-symbol .icon{width:24px;height:24px;stroke-width:1.8}
  .bottom-nav-item.is-current{color:var(--purple-dark);font-weight:750}
  .bottom-nav-item.is-current .bottom-nav-symbol{background:#eee5f8;color:var(--purple)}
  .bottom-nav-shorts .bottom-nav-symbol{background:var(--purple);color:white;box-shadow:0 3px 0 #5f4198}
  .bottom-nav-shorts.is-current .bottom-nav-symbol{background:var(--yellow);color:#5f4219;box-shadow:0 3px 0 #dda535}
  .bottom-nav-more[aria-expanded=true]{color:var(--purple);background:#f4eefb}
  .bottom-nav-item:focus-visible{outline:3px solid #a386dc;outline-offset:-3px}
  .shorts-viewer-open .mobile-bottom-nav,.field-editing .mobile-bottom-nav{visibility:hidden;pointer-events:none}
  .toast{bottom:calc(var(--bottom-nav-height) + 16px);max-width:calc(100% - 32px)}
}
@media(max-width:700px){
  :root{--site-masthead-height:118px}
  .site-utility-inner{width:100%;justify-content:center;min-height:44px;padding-inline:8px}
  .site-utility-inner>span{display:none}.site-utility-links{width:100%;justify-content:center;gap:22px}
  .site-utility-links>a{min-height:44px;font-size:.875rem}
  .site-header{height:72px}.header-inner{gap:8px}.header-actions{gap:4px}
  .header-actions .search-toggle,.header-actions .menu-toggle{width:44px;height:44px;display:flex}
  .header-actions .child-toggle{display:none}.header-inner .parent-link{display:none}
  .brand small{font-size:.65rem}.brand strong{font-size:1.6rem}.brand img{width:43px;height:43px}
  .nav-sheet-heading{padding:18px 17px 16px}.nav-sheet-heading h2{font-size:1.45rem}.nav-sheet-heading .eyebrow{font-size:.875rem}
  .nav-sheet-scroll{padding:17px 16px 20px;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));max-height:calc(90vh - 96px);max-height:calc(90dvh - 96px)}
  .nav-feature-grid{gap:9px}.nav-feature-link{padding:15px 10px;gap:4px;border-radius:13px}
  .nav-feature-link>strong{font-size:.95rem}.nav-feature-link>small{font-size:.875rem;line-height:1.8}.nav-feature-link>span{width:41px;height:41px;margin-bottom:4px}
  .nav-directory-grid{gap:9px}.nav-directory-link{padding:11px;gap:8px;min-height:80px}.nav-directory-symbol{width:32px;height:36px;border-radius:9px}.nav-directory-symbol .icon{width:20px;height:20px}
  .nav-directory-link strong{font-size:.875rem}.nav-directory-link small{font-size:.875rem;line-height:1.8}
  .nav-sheet-bottom{font-size:.875rem;gap:5px}.nav-sheet-bottom img{width:27px;height:27px}
  .explore-heading{padding:28px 23px;border-radius:20px;margin-bottom:23px}.explore-heading h1{font-size:2.2rem}.explore-heading p{font-size:1rem;line-height:1.95}
  .explore-primary-grid{gap:13px;grid-template-columns:1fr}.explore-primary-card{padding:22px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:4px 16px;align-items:center}.explore-primary-card>span{grid-row:1/3;margin:0;width:47px;height:47px}.explore-primary-card h2{font-size:1.5rem}.explore-primary-card p{margin:0;font-size:1rem}
  .explore-page .nav-feature-link{padding:18px 12px}.explore-page .nav-directory-link{padding:16px}.explore-family-section,.explore-other-section{margin-top:30px}
}
@media(max-width:359px){
  .site-utility-links{gap:15px}.site-utility-links>a{font-size:.875rem}.header-inner .brand small{font-size:.58rem}.header-inner .brand strong{font-size:1.45rem}.header-inner .brand img{width:38px;height:38px}.header-actions{gap:0}
  .bottom-nav-item{font-size:.875rem}.mobile-bottom-nav{padding-inline:3px}.bottom-nav-symbol{width:38px}.bottom-nav-symbol .icon{width:23px;height:23px}
  .nav-feature-grid{grid-template-columns:1fr}.nav-feature-link{display:grid;grid-template-columns:44px minmax(0,1fr);gap:1px 12px;align-items:center;padding:13px 15px}.nav-feature-link>span{grid-row:1/3;margin:0}.nav-feature-link>small{grid-column:2}
  .nav-directory-grid{grid-template-columns:1fr}.nav-directory-link{min-height:68px}.explore-page .nav-directory-link{padding:13px 15px}
  .nav-sheet-heading h2{font-size:1.28rem}.nav-sheet-heading .eyebrow{font-size:.875rem}.nav-sheet-heading{gap:5px;padding-inline:14px}
}
@media(max-height:500px) and (max-width:1120px){
  :root{--bottom-nav-bar:63px}.bottom-nav-item{min-height:53px;gap:0}.bottom-nav-symbol{height:28px}.bottom-nav-symbol .icon{height:21px;width:21px}
  dialog.site-more-dialog{max-height:97vh;max-height:97dvh}.nav-sheet-heading{padding-block:12px}.nav-sheet-heading .eyebrow{display:none}.nav-sheet-scroll{max-height:calc(97vh - 68px);max-height:calc(97dvh - 68px)}
}
@media(prefers-reduced-motion:reduce){.bottom-nav-symbol{transition:none}}

.nav-sheet-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid #eee7f5}.nav-sheet-tools .button{font-size:.875rem;min-height:46px;padding:10px 14px}.nav-sheet-tools .text-link{font-size:.875rem;min-height:44px}.nav-sheet-tools .icon{width:20px;height:20px}@media(max-width:359px){.nav-sheet-tools{flex-direction:column;align-items:stretch}.nav-sheet-tools .text-link{justify-content:center}}

@media(orientation:landscape) and (max-width:1120px){
 .site-masthead .container,.site-footer .container{width:auto;max-width:1224px;margin-inline-start:max(24px,env(safe-area-inset-right,0px));margin-inline-end:max(24px,env(safe-area-inset-left,0px))}
 dialog.site-more-dialog{padding-inline:env(safe-area-inset-right,0px) env(safe-area-inset-left,0px)}
}
