/* NWR Kinect: layout and component styles. Tokens come from tokens.css (inlined). */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;overflow-x:clip}
img,svg,video{max-width:100%;height:auto}
:where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #6C7788;outline-offset:3px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Visibility helpers (CSS-only, so one template adapts) */
.nwr-d-only,.nwr-nav-d{display:revert}
@media (max-width:781px){.nwr-d-only,.nwr-nav-d{display:none!important}}
.nwr-nav-m{display:none!important}
@media (max-width:781px){.nwr-nav-m{display:revert!important}}
.nwr-o1{order:1}.nwr-o2{order:2}.nwr-o3{order:3}.nwr-o4{order:4}.nwr-o5{order:5}.nwr-o6{order:6}.nwr-o7{order:7}
@media (min-width:782px){[class*=nwr-o]{order:0}}

/* Logo */
.nwr-logo{display:inline-flex;align-items:center;min-height:44px;--nwr-logo-h:26px}
.nwr-logo__img{display:block;height:var(--nwr-logo-h);width:auto;max-width:none}
.nwr-logo__img--dark{display:none}
:root[data-theme=dark] .nwr-logo__img--light{display:none}
:root[data-theme=dark] .nwr-logo__img--dark{display:block}
@media (min-width:782px){.nwr-header .nwr-logo{--nwr-logo-h:30px}}

/* Header */
.nwr-header{box-sizing:content-box;max-width:1200px;margin-inline:auto;padding:12px clamp(20px,5vw,48px);min-height:52px;gap:16px 32px}
@media (min-width:782px){.nwr-header{padding-block:16px}}
/* Sticky header: solid background (no backdrop-filter, which would trap the fixed mobile menu overlay) */
header.wp-block-template-part{position:sticky;top:0;z-index:100;background:var(--c-bg);box-shadow:0 1px 0 transparent;transition:box-shadow .2s ease}
:root[data-scrolled] header.wp-block-template-part{box-shadow:0 1px 0 var(--c-border)}
@media (prefers-reduced-motion:reduce){header.wp-block-template-part{transition:none}}
.admin-bar header.wp-block-template-part{top:var(--wp-admin--admin-bar--height,32px)}
@media (max-width:781px){.admin-bar header.wp-block-template-part{top:var(--wp-admin--admin-bar--height,46px)}}
@media (max-width:600px){.admin-bar header.wp-block-template-part{top:0}}
html{scroll-padding-top:88px}
.nwr-header__actions{gap:8px;align-items:center}
.nwr-header__actions>.nwr-toggle{order:1}
.nwr-header__actions>.nwr-nav{order:2}
.nwr-header__actions>.nwr-header__cta{order:3;display:none}
@media (min-width:782px){
  .nwr-header__actions{gap:8px 32px}
  .nwr-header__actions>.nwr-nav{order:1}
  .nwr-header__actions>.nwr-header__cta{display:flex;order:2}
  .nwr-header__actions>.nwr-toggle{order:3}
}
.nwr-toggle{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:50%;border:1px solid var(--c-strong);background:transparent;color:var(--c-text);cursor:pointer}
.nwr-toggle__sun{display:none}
:root[data-theme=dark] .nwr-toggle__sun{display:block}
:root[data-theme=dark] .nwr-toggle__moon{display:none}

/* Navigation: desktop links; overlay menu below 782px (core's own breakpoint is 600px) */
.nwr-nav .wp-block-navigation-item__content{display:inline-flex;align-items:center;min-height:44px;padding:0}
.nwr-nav .wp-block-navigation__container{gap:8px 32px}
.nwr-nav .current-menu-item>a,.nwr-nav [aria-current=page]{text-decoration:underline;text-decoration-color:var(--c-accent);text-decoration-thickness:2px;text-underline-offset:.4em}
.nwr-header .wp-block-navigation__responsive-container-open,.nwr-header .wp-block-navigation__responsive-container-close{width:44px;height:44px;border-radius:50%;border:1px solid var(--c-text);align-items:center;justify-content:center;padding:0;color:var(--c-text)}
.nwr-header .wp-block-navigation__responsive-container-open svg,.nwr-header .wp-block-navigation__responsive-container-close svg{width:20px;height:20px}
@media (min-width:600px) and (max-width:781px){
  .nwr-header .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex!important}
  .nwr-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){display:none!important}
}
@media (min-width:782px){
  .nwr-header .wp-block-navigation__responsive-container-open:not(.always-shown){display:none!important}
  .nwr-header .wp-block-navigation__responsive-container:not(.is-menu-open){display:block!important;position:static;background:none}
}
.nwr-header .wp-block-navigation__responsive-container.is-menu-open{background:#111;color:#fff;padding:12px clamp(20px,5vw,48px) 28px}
.nwr-header .is-menu-open .wp-block-navigation__responsive-container-close{border-color:#fff;color:#fff;top:12px;right:clamp(20px,5vw,48px)}
.nwr-header .is-menu-open .wp-block-navigation__responsive-dialog,.nwr-header .is-menu-open .wp-block-navigation__responsive-container-content{padding:0}
.nwr-header .is-menu-open .wp-block-navigation__responsive-container-content{padding-top:76px}
.nwr-header .is-menu-open .wp-block-navigation__container{width:100%;gap:0;border-top:1px solid #2E2E2E;align-items:stretch}
.nwr-header .is-menu-open .wp-block-navigation-item{width:100%;border-bottom:1px solid #2E2E2E}
.nwr-header .is-menu-open .wp-block-navigation-item__content{display:flex;justify-content:space-between;width:100%;min-height:64px;color:#fff;font-family:var(--wp--preset--font-family--space-grotesk);font-weight:600;font-size:32px;letter-spacing:-.02em}
.nwr-header .is-menu-open .wp-block-navigation-item:not(.nwr-nav-small) .wp-block-navigation-item__content::after{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.nwr-header .is-menu-open .nwr-nav-small{border:0;margin-top:auto}
.nwr-header .is-menu-open .nwr-nav-small .wp-block-navigation-item__content{min-height:44px;font:400 15px/1.6 var(--wp--preset--font-family--inter);color:#D9D9D9;text-decoration:underline;justify-content:flex-start}
.nwr-header .is-menu-open .nwr-nav-m{display:revert!important}
.nwr-header .is-menu-open .nwr-nav-d{display:none!important}
.nwr-header .is-menu-open .wp-block-navigation__container{flex:1;display:flex;flex-direction:column}
.nwr-header__cta{margin:0}
.nwr-btn-sm .wp-block-button__link{min-height:44px;padding:10px 22px;font-size:15px}

/* Footer */
.nwr-footer-wrap{border-top:1px solid var(--c-border)}
.nwr-footer{box-sizing:content-box;max-width:1200px;margin:0 auto;padding:36px clamp(20px,5vw,48px) 32px}
.nwr-footer,.nwr-footer__top{display:flex;flex-direction:column;gap:24px}
.nwr-footer__top{align-items:flex-start;margin:0}
.nwr-footer__brand{display:flex;flex-direction:column;gap:12px;flex:none}
@media (min-width:782px){.nwr-footer__brand{flex:1 1 280px}}
.nwr-footer__tag{margin:0;max-width:300px;font-size:15px!important}
.nwr-footer__col{display:flex;flex-direction:column;gap:6px;font-size:15px}
.nwr-label{margin:0;padding-bottom:6px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--c-text3)}
.nwr-footer__focus{order:3}.nwr-footer__explore{order:2}.nwr-footer__legal{order:5}
.nwr-footer__focus{flex-direction:row;flex-wrap:wrap;gap:0}
.nwr-footer__focus-item{margin:0;font-size:14px;color:var(--c-text3)}
.nwr-footer__focus-item+.nwr-footer__focus-item::before{content:"\00b7";margin:0 .5em}
.nwr-footer-nav .wp-block-navigation-item__content{display:flex;align-items:center;min-height:44px;padding:0}
.nwr-footer__legal .wp-block-navigation__container{flex-direction:row;flex-wrap:wrap;gap:0 16px;font-size:14px;color:var(--c-text3)}
.nwr-footer__legal .wp-block-navigation-item__content{text-decoration:underline}
.nwr-footer__copy{margin:0;order:4}
@media (min-width:782px){
  .nwr-footer{padding-block:56px 40px;gap:40px}
  .nwr-footer__top{flex-direction:row;flex-wrap:wrap;justify-content:space-between;gap:40px}
  .nwr-footer__focus,.nwr-footer__explore,.nwr-footer__legal{order:0}
  .nwr-footer__focus{flex-direction:column;gap:6px}
  .nwr-footer__focus-item{font-size:15px;color:inherit}
  .nwr-footer__focus-item+.nwr-footer__focus-item::before{content:none}
  .nwr-footer-nav .wp-block-navigation-item__content{min-height:44px;padding:0}
  .nwr-footer__legal .wp-block-navigation__container{flex-direction:column;gap:0;font-size:15px;color:inherit}
  .nwr-footer__legal .wp-block-navigation-item__content{text-decoration:none}
  .nwr-footer__copy{padding-top:24px;border-top:1px solid var(--c-border);font-size:14px}
}
.nwr-footer__copy{width:100%}
.nwr-footer>.nwr-footer__top{width:100%}

/* Ghost wordmark */
.nwr-ghost{padding:16px clamp(20px,5vw,48px) 0}
.nwr-ghost__crop{max-width:1200px;margin:0 auto;overflow:hidden;aspect-ratio:5.2/1}
.nwr-ghost__img{display:block;width:100%;height:auto}
.nwr-ghost__img--dark{display:none}
:root[data-theme=dark] .nwr-ghost__img--light{display:none}
:root[data-theme=dark] .nwr-ghost__img--dark{display:block}
@media (min-width:782px){.nwr-ghost{padding-top:28px}.nwr-ghost__crop{aspect-ratio:6.7/1}}
.nwr-main{min-height:40vh;padding-block:clamp(24px,5vw,72px)}
.nwr-footer-nav,.nwr-footer-nav .wp-block-navigation__container{gap:0;margin:0}
.nwr-footer .wp-block-group,.nwr-footer .wp-block-navigation{margin:0}
.nwr-ghost{padding-inline:clamp(20px,5vw,48px)}
@media (max-width:781px){.nwr-footer__legal .wp-block-navigation__container{gap:0 16px}}
.nwr-header .wp-block-navigation__responsive-container.is-menu-open{background:#111!important;background-color:#111!important;color:#fff!important}
.nwr-header .is-menu-open .wp-block-navigation-item__content{color:#fff!important}
.nwr-header .is-menu-open .nwr-nav-small .wp-block-navigation-item__content{color:#D9D9D9!important}
.nwr-header .is-menu-open .wp-block-navigation__responsive-container-close{color:#fff!important;border-color:#fff!important}
.nwr-main--flush{padding-block:0;min-height:0}
/* Close button sits where the open button sits, so the menu does not jump */
.nwr-header .is-menu-open .wp-block-navigation__responsive-container-close{position:absolute;top:-3px;right:0;margin:0}
.nwr-header .is-menu-open .wp-block-navigation__responsive-container-content{padding-top:76px}

/* ===== Phase f polish ===== */
/* Menu overlay: logo top-left (same spot as the header logo), privacy link pinned to the bottom */
.nwr-header .is-menu-open::before{content:"";position:absolute;top:16px;left:clamp(20px,5vw,48px);width:108px;height:26px;background:url("../images/nwr-logo-white.png") left center/contain no-repeat}
.nwr-header .is-menu-open .wp-block-navigation__responsive-dialog,.nwr-header .is-menu-open .wp-block-navigation__responsive-container-content{height:100%;box-sizing:border-box}
.nwr-header .is-menu-open .wp-block-navigation__responsive-container-content{display:flex;flex-direction:column}
.nwr-header .is-menu-open .wp-block-navigation__container{flex:1 1 auto}
.nwr-header .is-menu-open .wp-block-navigation-item.nwr-nav-small{margin-top:auto}
/* Footer on phones: © line with the legal links beside it, as in the reference */
@media (max-width:781px){
  .nwr-footer{flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:0 14px!important}
  .nwr-footer .nwr-footer__top{display:contents!important}
  .nwr-footer__brand,.nwr-footer__explore,.nwr-footer__focus{flex:0 0 100%;margin-bottom:20px}
  .nwr-footer__copy{width:auto!important;flex:0 0 auto;order:4;margin:0;padding:0}
  .nwr-footer__legal{order:5;flex:0 0 auto}
  .nwr-footer__legal .wp-block-navigation__container{gap:0 14px}
}
.nwr-header .is-menu-open .wp-block-navigation__responsive-container-content{min-height:calc(100dvh - 104px)}
@media (max-width:781px){.nwr-footer__copy{flex:0 1 auto!important;min-width:0;max-width:100%}}
/* The close button is display:block in core, which left the X at the left of the circle */
.nwr-header .is-menu-open .wp-block-navigation__responsive-container-close{display:flex!important;align-items:center;justify-content:center}
.nwr-header .wp-block-navigation__responsive-container-close svg{display:block}
