/* Nyt-tag Design Preview 1.0.10. Loaded ONLY for opted-in administrators. */
body.ntdp-active{--ntdp-navy:#152b3d;--ntdp-blue:#216d91;--ntdp-border:#e2e9ed;--ntdp-muted:#61717d;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ntdp-navy);background:#fff}
body.ntdp-active .boxed-container>.header__container,body.ntdp-active .boxed-container>.footer{display:none!important}
body.ntdp-active .boxed-container{max-width:none!important;overflow:visible}
body.ntdp-active #ntdp-header,body.ntdp-active #ntdp-footer{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
#ntdp-header *,#ntdp-footer *{box-sizing:border-box}
#ntdp-header{position:relative;z-index:1003;background:#fff;border-bottom:1px solid var(--ntdp-border);box-shadow:0 5px 22px rgba(15,38,54,.05)}
#ntdp-header .ntdp-navwrap{max-width:1360px;margin:auto;min-height:86px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:26px}
#ntdp-header a{text-decoration:none!important;font-weight:500}
#ntdp-header .ntdp-brand{display:flex;align-items:center;gap:10px;white-space:nowrap;color:var(--ntdp-navy);font-size:24px;font-weight:850;letter-spacing:-.05em}
#ntdp-header .ntdp-brand img{max-width:180px;max-height:64px;height:auto;width:auto;object-fit:contain}
#ntdp-header .ntdp-logoicon{background:var(--ntdp-blue);color:#fff;width:37px;height:37px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}
#ntdp-header .ntdp-branddot{color:var(--ntdp-blue)}
#ntdp-header .ntdp-menu{display:flex;align-items:center;gap:3px;margin-left:auto}
#ntdp-header .ntdp-navgroup{position:relative}
#ntdp-header .ntdp-navtrigger{font:700 13px/1.2 Inter,system-ui,Arial,sans-serif;color:var(--ntdp-navy);background:transparent;border:0;border-radius:8px;white-space:nowrap;padding:15px 11px;cursor:pointer}
#ntdp-header .ntdp-navtrigger:hover,#ntdp-header .ntdp-navgroup.is-open>.ntdp-navtrigger{background:#eef5f7;color:var(--ntdp-blue)}
#ntdp-header .ntdp-navtrigger span{margin-left:4px;color:#607780}
#ntdp-header .ntdp-cta{display:inline-flex;align-items:center;gap:8px;padding:13px 16px;background:var(--ntdp-blue);border-radius:9px;color:#fff!important;font-size:13px;font-weight:750!important;white-space:nowrap;margin-left:8px}
#ntdp-header .ntdp-cta:hover{background:#155475}
#ntdp-header .ntdp-mega{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(92vw,840px);min-width:355px;padding:25px;display:none;grid-template-columns:repeat(2,minmax(180px,1fr));gap:28px;background:white;border:1px solid var(--ntdp-border);border-radius:14px;box-shadow:0 20px 55px rgba(15,38,54,.16)}
/* Continuous hover bridge across the 10px visual gap. */
@media (min-width:991px) and (hover:hover){
 #ntdp-header .ntdp-mega::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px;display:block;background:transparent}
}
#ntdp-header .ntdp-navgroup.is-open .ntdp-mega{display:grid}
#ntdp-header .ntdp-navgroup:nth-child(2) .ntdp-mega{grid-template-columns:repeat(3,minmax(175px,1fr))}
#ntdp-header .ntdp-megacol{display:flex;flex-direction:column;gap:12px}
#ntdp-header .ntdp-megacol strong{font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:var(--ntdp-navy);border-bottom:1px solid #e8eef1;padding-bottom:11px}
#ntdp-header .ntdp-megacol>a{font-size:13px;color:#506373;font-weight:550!important;line-height:1.35}
#ntdp-header .ntdp-megacol>a:hover{color:var(--ntdp-blue);text-decoration:underline!important}
#ntdp-header .ntdp-mobile-toggle{display:none;background:var(--ntdp-blue);border:0;border-radius:9px;color:#fff;padding:10px 15px;font-size:17px}
/* Only the empty GrowthPress slider wrapper and its old bottom spacing are removed. */
body.ntdp-active .alternative-slider:empty{display:none!important}
/* GrowthPress outputs a whitespace-only alternative-slider above the first Gutenberg cover.
   :empty does not reliably match that markup; :not(:has(*)) matches a wrapper with no element children.
   Keep real sliders (with child elements) visible. */
body.ntdp-active .alternative-slider:not(:has(*)){display:none!important;margin:0!important;padding:0!important}
body.ntdp-active .content-area{margin-bottom:0!important}
/* Keep Gutenberg cover text legible on dark image overlays. */
body.ntdp-active .article__content .wp-block-cover .wp-block-cover__inner-container :is(h1,h2,h3,h4){color:#fff}
/* Prevent a full-viewport Gutenberg cover from producing page-wide horizontal overflow. */
body.ntdp-active{overflow-x:clip}
body.ntdp-active .boxed-container{overflow-x:clip}
/* Desktop hero: remove any blank gap caused by the old content wrapper. */
body.ntdp-active .alternative-slider:empty + .content-area{padding-top:0}
/* Content skin: scoped to Gutenberg article content, no generic input/form CSS. */
body.ntdp-active .article__content{color:#263c4c;font-size:16px;line-height:1.72}
body.ntdp-active .article__content h1,body.ntdp-active .article__content h2,body.ntdp-active .article__content h3,body.ntdp-active .article__content h4{color:#152b3d;line-height:1.22;letter-spacing:-.025em;font-weight:750}
body.ntdp-active .article__content h2{font-size:clamp(26px,2.6vw,38px)}
body.ntdp-active .article__content h3{font-size:clamp(21px,2vw,27px)}
body.ntdp-active .article__content a:not(.wp-block-button__link){text-underline-offset:3px}
body.ntdp-active .article__content .wp-block-button__link{border-radius:10px!important;background:#216d91!important;color:#fff!important;text-decoration:none!important;font-size:15px;line-height:1.35;font-weight:750;padding:14px 23px;transition:background .16s,transform .16s}
body.ntdp-active .article__content .wp-block-button__link:hover{background:#155475!important;transform:translateY(-1px)}
body.ntdp-active .article__content .wp-block-image img{border-radius:11px;max-width:100%;height:auto}
/* Gutenberg Media & Text images have a separate media wrapper; restore matching image corners. */
body.ntdp-active .article__content .wp-block-media-text__media img{border-radius:11px;max-width:100%;height:auto}
/* Gutenberg global image-fill-element fix: the rendered image follows the document flow.
   Scope is the block type, never a specific attachment ID. */
body.ntdp-active .article__content .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
  position:relative;
  min-height:0!important;
  height:auto!important;
  overflow:hidden;
  border-radius:11px;
}
body.ntdp-active .article__content .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media > img {
  position:static!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:420px;
  object-fit:contain;
  object-position:center;
  margin:0!important;
  border-radius:11px;
}
body.ntdp-active .article__content .wp-block-table{max-width:100%;overflow-x:auto}
body.ntdp-active .article__content .wp-block-table table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e2e9ed;border-radius:10px;overflow:hidden;font-size:14px}
body.ntdp-active .article__content .wp-block-table th{background:#edf3f6;color:#152b3d;font-weight:750}
body.ntdp-active .article__content .wp-block-table th,body.ntdp-active .article__content .wp-block-table td{padding:13px 15px;border-color:#e2e9ed}
body.ntdp-active .article__content .wp-block-quote{border-left:4px solid #216d91;padding:18px 24px;background:#f5f8fa;border-radius:0 10px 10px 0}
body.ntdp-active .article__content .wp-block-separator{border-color:#e2e9ed}
body.ntdp-active .article__content .wp-block-columns{column-gap:clamp(18px,3vw,42px)}
/* Do not style #fbuilder, .cp_cff*, calculators, custom HTML, forms, or buttons inside them. */
#ntdp-footer{background:#152b3d;color:#eef4f7;padding:60px 24px 22px;margin-top:0}
#ntdp-footer .ntdp-footgrid{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:45px}
#ntdp-footer .ntdp-footgrid>div{display:flex;flex-direction:column;gap:12px}
#ntdp-footer .ntdp-footbrand{font-size:24px;letter-spacing:-.04em;font-weight:850}
#ntdp-footer .ntdp-footbrand span{color:#9bd6ee}
#ntdp-footer p{color:#c3d1da;font-size:14px;line-height:1.7}
#ntdp-footer strong{color:#fff;font-size:13px;margin-bottom:8px}
#ntdp-footer a{color:#d5e2e9;text-decoration:none!important;font-size:13px}
#ntdp-footer a:hover{color:#fff;text-decoration:underline!important}
#ntdp-footer .ntdp-footbottom{max-width:1180px;margin:42px auto 0;padding-top:20px;border-top:1px solid #33495a;color:#b8c7d0;font-size:12px}
#ntdp-footer .ntdp-footbottom span{float:right}
@media(min-width:991px){#ntdp-header .ntdp-navgroup:last-of-type .ntdp-mega{left:auto;right:0;transform:none}}
@media(max-width:1150px) and (min-width:991px){#ntdp-header .ntdp-navwrap{padding:0 14px;gap:10px}#ntdp-header .ntdp-navtrigger{font-size:11px;padding:14px 7px}#ntdp-header .ntdp-brand img{max-width:140px}}
@media(max-width:990px){
 #ntdp-header .ntdp-navwrap{min-height:72px;padding:10px 20px;flex-wrap:wrap}
 #ntdp-header .ntdp-mobile-toggle{display:inline-flex;gap:6px;align-items:center;cursor:pointer;margin-left:auto}
 #ntdp-header .ntdp-menu{display:none;width:100%;margin:0;padding:10px 0 18px;flex-direction:column;align-items:stretch;max-height:calc(100vh - 95px);overflow-y:auto}
 #ntdp-header .ntdp-menu.is-open{display:flex}
 #ntdp-header .ntdp-navgroup{width:100%}
 #ntdp-header .ntdp-navtrigger{width:100%;text-align:left;display:flex;justify-content:space-between;font-size:15px;padding:15px 12px;border-bottom:1px solid #e8eef1}
 #ntdp-header .ntdp-mega,#ntdp-header .ntdp-navgroup:nth-child(2) .ntdp-mega{position:static;display:none;transform:none!important;min-width:0;max-width:none;width:100%;padding:18px;grid-template-columns:1fr 1fr;box-shadow:none;border-radius:8px;background:#f5f8fa;gap:24px}
 #ntdp-header .ntdp-navgroup.is-open .ntdp-mega{display:grid}
 #ntdp-header .ntdp-cta{margin:15px 0 0;justify-content:center}
 #ntdp-footer .ntdp-footgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:580px){#ntdp-header .ntdp-mega,#ntdp-header .ntdp-navgroup:nth-child(2) .ntdp-mega{grid-template-columns:1fr}#ntdp-footer .ntdp-footgrid{grid-template-columns:1fr 1fr;gap:28px}#ntdp-footer .ntdp-footgrid>div:first-child{grid-column:span 2}#ntdp-footer .ntdp-footbottom span{display:block;float:none;margin-top:7px}}
@media(prefers-reduced-motion:reduce){body.ntdp-active .article__content .wp-block-button__link{transition:none}}

/* V1.0.8: every desktop mega menu is bounded by viewport edges.
   JS computes the required horizontal offset for each individual trigger.
   All text remains readable; no clipping of the menu itself. */
@media(min-width:991px){
 #ntdp-header .ntdp-mega,
 #ntdp-header .ntdp-navgroup:nth-child(2) .ntdp-mega,
 #ntdp-header .ntdp-navgroup:last-of-type .ntdp-mega{
   box-sizing:border-box;
   left:var(--ntdp-mega-left,0px);
   right:auto;
   transform:none;
   width:min(740px,calc(100vw - 32px));
   min-width:0;
   max-width:calc(100vw - 32px);
   max-height:min(78vh,720px);
   overflow-x:hidden;
   overflow-y:auto;
   overscroll-behavior:contain;
   grid-template-columns:repeat(3,minmax(0,1fr));
   gap:22px;
   padding:24px;
 }
 #ntdp-header .ntdp-navgroup:nth-child(2) .ntdp-mega{
   width:min(1100px,calc(100vw - 32px));
   grid-template-columns:repeat(4,minmax(0,1fr));
 }
 #ntdp-header .ntdp-megacol{min-width:0;gap:8px}
 #ntdp-header .ntdp-megacol strong{line-height:1.35;overflow-wrap:anywhere}
 #ntdp-header .ntdp-megacol>a{overflow-wrap:anywhere;word-break:normal}
}
@media(max-width:990px){
 #ntdp-header .ntdp-mega,#ntdp-header .ntdp-navgroup:nth-child(2) .ntdp-mega{
   min-width:0;max-width:100%;max-height:none;overflow:visible;
 }
 #ntdp-header .ntdp-megacol>a{overflow-wrap:anywhere}
}

/* V1.0.9 – Global top bar + consistent separation on all page templates.
   Uses the exact two labels and #152b3d background from HTML mockup V2.
   Only active in private admin preview. */
body.ntdp-active #ntdp-topbar,
body.ntdp-active #ntdp-topbar *{box-sizing:border-box}
body.ntdp-active #ntdp-topbar{
  position:relative;
  z-index:1004;
  background:#152b3d;
  color:#e7f0f5;
  font:400 12px/1.45 Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
body.ntdp-active #ntdp-topbar .ntdp-topbar-inner{
  width:min(1180px,calc(100% - 44px));
  min-height:36px;
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
}
body.ntdp-active #ntdp-topbar span{opacity:.9}
/* The content gap belongs to the GrowthPress content wrapper, not to Gutenberg blocks.
   This avoids changing block spacers, full-width blocks or custom calculator markup. */
body.ntdp-active #primary.content-area{
  padding-top:32px!important;
}
/* Keep slider or archive content separated from the navigation too. */
body.ntdp-active .alternative-slider:not(:empty){margin-top:32px}
/* V1.0.10: Full-width first Gutenberg cover is a hero, not a standard text page.
   Keep the global content spacing for all other pages, but never add a stripe
   between navigation and a first-block hero. Match GrowthPress content markup. */
body.ntdp-active #primary.content-area:has(> .article__content > .wp-block-cover:first-child){
  padding-top:0!important;
}
/* Footer is emitted by wp_footer outside GrowthPress .boxed-container. */
body.ntdp-active #ntdp-footer{margin-top:48px!important}
@media(max-width:767px){
  body.ntdp-active #ntdp-topbar .ntdp-topbar-inner{
    width:calc(100% - 32px);
    min-height:36px;
    justify-content:center;
    text-align:center;
    flex-wrap:wrap;
    padding:8px 0;
    gap:2px 12px;
  }
  body.ntdp-active #ntdp-topbar span{display:block}
  body.ntdp-active #primary.content-area{padding-top:24px!important}
  body.ntdp-active .alternative-slider:not(:empty){margin-top:24px}
  body.ntdp-active #ntdp-footer{margin-top:36px!important}
}

/* V1.0.11: Make the external content-to-footer spacing genuinely transparent.
   GrowthPress can paint its boxed layout background into the footer margin area.
   Keep all spacing unchanged and allow the underlying page background to show. */
body.ntdp-active .boxed-container{background-color:transparent!important}

/* V1.0.12: Restore a white site canvas beneath transparent layout spacing.
   GrowthPress can specify a grey background on html/body through its theme
   styles. Keep the .boxed-container transparent (V1.0.11), but paint its
   underlying canvas white. Do not override explicit Gutenberg backgrounds,
   including the #nt-home-hero custom HTML section. */
html:has(> body.ntdp-active),
body.ntdp-active {
  background-color:#ffffff!important;
  background-image:none!important;
}

/* 1.0.15: explicit desktop column count, independent of menu order. */
@media(min-width:991px){
#ntdp-header .ntdp-navgroup .ntdp-mega.ntdp-cols-1{grid-template-columns:repeat(1,minmax(0,1fr));width:min(355px,calc(100vw - 32px));}
#ntdp-header .ntdp-navgroup .ntdp-mega.ntdp-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));width:min(540px,calc(100vw - 32px));}
#ntdp-header .ntdp-navgroup .ntdp-mega.ntdp-cols-3{grid-template-columns:repeat(3,minmax(0,1fr));width:min(740px,calc(100vw - 32px));}
#ntdp-header .ntdp-navgroup .ntdp-mega.ntdp-cols-4{grid-template-columns:repeat(4,minmax(0,1fr));width:min(1100px,calc(100vw - 32px));}
}
