/* ============================================================
   LAYOUT — header, footer, nav, hero, blog, contact, legal
   ============================================================ */

/* —— Utility bar —————————————————————————————————————————— */
.nwl-utility-bar { background: var(--nwl-ink-900); color: rgba(255,255,255,0.72); font-size: 13px; }
.nwl-utility-bar__row { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nwl-utility-bar__left { display: flex; align-items: center; gap: 24px; }
.nwl-utility-bar__right { display: flex; align-items: center; gap: 18px; }
.nwl-utility-bar a { color: inherit; display: inline-flex; align-items: center; gap: 8px; }
.nwl-utility-bar a:hover { color: #fff; text-decoration: none; }
.nwl-utility-bar__sep { width: 1px; height: 16px; background: rgba(255,255,255,0.18); }
.nwl-utility-bar__social { display: flex; gap: 10px; }
.nwl-utility-bar__social a { width: auto; height: auto; color: rgba(255,255,255,0.72); }

/* —— Header ———————————————————————————————————————————— */
.nwl-header { background: var(--surface-dark); box-shadow: 0 1px 0 rgba(255,255,255,0.06); z-index: 300; }
.nwl-header.is-sticky { position: sticky; top: 0; }
/* min-height (not height) so a tall Customizer logo or a title/menu that
   wraps to a second line grows the bar instead of spilling out of it. */
.nwl-header__row { min-height: 86px; padding-block: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px 28px; }

/* flex: 0 1 auto + min-width: 0 lets the title/tagline shrink and wrap
   under a real logo image, a long site name, or a narrow phone screen,
   instead of overflowing the header row and pushing the hamburger button
   off-screen (it was flex:none with no wrapping, which is exactly what
   made the mobile menu disappear). */
.nwl-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.nwl-logo__mark { flex: none; }
.nwl-logo__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; min-width: 0; }
/* Font/size/colour come from Customizer > Site Identity (--nwl-title-* /
   --nwl-tagline-*, inc/template-tags.php); each already resolves to the
   theme's shipped look when left unset. Long names/taglines wrap onto extra
   lines (the row's min-height grows) rather than being ellipsis-truncated
   mid-word as before, so they stay fully readable at every width. */
.nwl-logo__name, .nwl-logo__sub { max-width: 100%; overflow-wrap: break-word; }
.nwl-logo__name { font-family: var(--nwl-title-font); font-weight: 900; font-size: var(--nwl-title-size); letter-spacing: 0.02em; color: var(--nwl-title-color); line-height: 1.12; }
.nwl-logo__sub { font-family: var(--nwl-tagline-font); font-weight: 700; font-size: var(--nwl-tagline-size); letter-spacing: 0.35em; color: var(--nwl-tagline-color); margin-top: 3px; line-height: 1.3; }
/* Height comes from the Customizer's "Logo height" field (--nwl-logo-height,
   inc/template-tags.php); width is left to scale proportionally. !important
   guards against the uploaded logo's own width/height attributes — or any
   plugin/global-styles "img{height:auto}" rule loaded after this one — from
   rendering it at its native, usually much larger, size. */
.nwl-logo img {
  display: block; height: var(--nwl-logo-height) !important; width: auto !important;
  max-width: none !important; max-height: none !important;
}
/* "Round the logo's corners" Customizer toggle (Header Options). */
.nwl-logo img.is-rounded { border-radius: 8px; }

/* flex: 1 1 auto + wrapping list: when the row runs out of width (long menu,
   big logo, medium screens) the items flow onto a second line instead of
   overflowing or being clipped. Font/size/colour come from Customizer >
   Header (--nwl-nav-*, inc/template-tags.php). */
.nwl-nav { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 0; }
.nwl-nav ul { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 2px 28px; list-style: none; margin: 0; padding: 0; }
.nwl-nav li { position: relative; }
.nwl-nav a {
  background: none; border: none; border-bottom: 2px solid transparent; color: var(--nwl-nav-color);
  font-family: var(--nwl-nav-font); font-weight: 600; font-size: var(--nwl-nav-size); letter-spacing: -0.005em;
  padding: 7px 0 5px; cursor: pointer; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center;
  text-decoration: none;
}
.nwl-nav a:hover, .nwl-nav .current-menu-item > a { color: #fff; text-decoration: none; }
.nwl-nav .current-menu-item > a { border-bottom-color: var(--accent); }
.nwl-nav .menu-item-has-children > a::after {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.nwl-nav .sub-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: #fff; box-shadow: var(--shadow-lg); padding: 8px; width: 128px;
  display: grid; grid-template-columns: 1fr; gap: 2px; z-index: 200;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease-out);
  list-style: none; margin: 0;
}
.nwl-nav .sub-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nwl-nav li:hover > .sub-menu, .nwl-nav li:focus-within > .sub-menu, .nwl-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; }
.nwl-nav .sub-menu a {
  text-align: left; color: var(--text-body); padding: 8px 8px 8px 16px; font-size: 12.5px; font-weight: 600; line-height: 1.3;
  display: block; position: relative; border-bottom: none; white-space: normal;
}
.nwl-nav .sub-menu a::before { content:""; position: absolute; left: 0; top: 13px; width: 5px; height: 5px; background: var(--accent); }
.nwl-nav .sub-menu a:hover { background: var(--surface-muted); color: var(--text-body); }
.nwl-nav--cols-2 .sub-menu {
  width: 380px; grid-template-columns: 1fr 1fr; padding: 14px; gap: 2px 14px;
}
.nwl-nav--cols-2 .sub-menu a { padding: 8px 8px 8px 18px; font-size: 14px; }

.nwl-header__right { display: flex; align-items: center; gap: 16px; flex: none; }
.nwl-hamburger { background: none; border: none; cursor: pointer; color: #fff; padding: 6px; display: none; flex: none; }

.nwl-mobile-drawer { background: var(--surface-dark); overflow: hidden; max-height: 0; transition: max-height var(--dur-base) var(--ease-out); }
.nwl-mobile-drawer.is-open { max-height: 600px; }
.nwl-mobile-drawer__inner { padding: 14px 24px 26px; border-top: 1px solid rgba(255,255,255,0.12); }
.nwl-mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.nwl-mobile-drawer a {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.88);
  font-family: var(--nwl-nav-font); font-weight: 600; font-size: 17px; padding: 15px 0;
  cursor: pointer; text-decoration: none;
}
.nwl-mobile-drawer .current-menu-item > a { color: var(--accent); }
.nwl-mobile-drawer .sub-menu { padding-left: 14px; }
.nwl-mobile-drawer__cta { margin-top: 16px; }
.nwl-mobile-drawer__tel { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; color: rgba(255,255,255,0.8); font-weight: 600; text-decoration: none; }

/* —— Header layout variants (Customizer → Header → Header layout) ————
   Default ("inline", no modifier class) is logo left / menu centred / CTA
   right on one row. The variants only rearrange the same three blocks. */
.nwl-header--center .nwl-header__row { flex-wrap: wrap; justify-content: center; row-gap: 4px; padding-block: 14px; }
.nwl-header--center .nwl-logo { flex-basis: 100%; justify-content: center; }
.nwl-header--nav-below .nwl-header__row { flex-wrap: wrap; row-gap: 0; padding-block: 12px; }
.nwl-header--nav-below .nwl-logo { margin-right: auto; }
.nwl-header--nav-below .nwl-header__right { order: 2; }
.nwl-header--nav-below .nwl-nav { order: 3; flex-basis: 100%; justify-content: flex-start; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); }
.nwl-header--nav-below .nwl-nav ul { justify-content: flex-start; }

@media (max-width: 979px) {
  .nwl-utility-bar, .nwl-nav, .nwl-header__cta { display: none; }
  .nwl-hamburger { display: flex; }
  /* With the menu collapsed into the drawer, every layout variant reduces to
     the same logo + hamburger row — undo the variant re-arrangements so the
     hamburger doesn't end up centred under a full-width logo. */
  .nwl-header--center .nwl-header__row, .nwl-header--nav-below .nwl-header__row { flex-wrap: nowrap; justify-content: space-between; }
  .nwl-header--center .nwl-logo { flex-basis: auto; justify-content: flex-start; }
}
@media (max-width: 479px) {
  .nwl-header__row { min-height: 68px; gap: 12px; }
  .nwl-logo { gap: 9px; }
  .nwl-logo__sub { display: none; }
}
/* A logo sized for desktop (the Customizer allows up to 120px) would either
   spill out of the bar or leave barely any room for the title on a phone —
   cap it there while leaving the desktop size untouched. */
@media (max-width: 639px) {
  .nwl-logo img { height: min(var(--nwl-logo-height), 48px) !important; }
}

/* —— Inner page header (breadcrumb + title) ———————————————— */
.nwl-inner-header { background: var(--surface-dark); padding: clamp(22px,3vw,36px) 0; }
.nwl-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 10px; flex-wrap: wrap; }
.nwl-breadcrumb a { color: rgba(255,255,255,0.6); }
.nwl-breadcrumb a:hover { color: #fff; text-decoration: none; }
.nwl-breadcrumb .is-current { color: var(--accent); }
.nwl-inner-header h1 { font-size: clamp(1.8rem,2.8vw,2.5rem); color: #fff; margin: 0; letter-spacing: -0.02em; }
.nwl-inner-header__sub { font-size: 16px; color: rgba(255,255,255,0.78); margin: 8px 0 0; max-width: 54ch; }

/* —— Hero (home) ———————————————————————————————————————— */
.nwl-hero { background: var(--color-bg-warm); }
/* padding-block (not the padding shorthand) on every row that shares its
   element with .nwl-container — the shorthand's horizontal "0" would wipe
   out the container's --gutter side padding (see .nwl-section in base.css). */
.nwl-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,4vw,56px); align-items: center; padding-block: clamp(30px,4vw,52px); }
.nwl-hero h1 { font-size: var(--text-hero); line-height: 1.02; letter-spacing: -0.02em; margin: 14px 0 14px; }
.nwl-hero__lede { font-size: clamp(1.02rem,1.3vw,1.15rem); line-height: 1.55; color: var(--text-muted); max-width: 38ch; margin: 0 0 20px; }
.nwl-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.nwl-hero__rating { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nwl-hero__stars { display: flex; gap: 3px; }
.nwl-hero__media { position: relative; }
.nwl-hero__media-bg { position: absolute; left: -22px; top: -22px; width: 55%; height: 60%; background: var(--surface-dark); z-index: 0; }
.nwl-hero__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.nwl-hero__badge { position: absolute; right: -16px; bottom: -22px; z-index: 2; background: var(--accent); color: #fff; padding: 18px 22px; }
.nwl-hero__badge-n { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; }
.nwl-hero__badge-l { font-size: 13px; letter-spacing: 0.02em; margin-top: 4px; }

@media (max-width: 979px) { .nwl-hero__grid, .nwl-split { grid-template-columns: 1fr !important; } }

/* —— Split section (why-us / about) ———————————————————————— */
.nwl-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,5vw,72px); align-items: center; }
.nwl-split__media { position: relative; }
.nwl-split__media-bg { position: absolute; z-index: 0; }
.nwl-split__media-bg--accent { background: var(--accent); right: -22px; bottom: -22px; width: 50%; height: 55%; }
.nwl-split__media-bg--dark { background: var(--surface-dark); left: -22px; top: -22px; width: 50%; height: 55%; }
.nwl-split__media img { position: relative; z-index: 1; width: 100%; object-fit: cover; }

/* The offset "floating card" panels are sized for desktop's wide gutter
   (--gutter maxes at 4rem); at the ~20px mobile gutter a -22px offset
   pokes past the viewport edge. Shrinking the offset keeps the effect
   inside the gutter. Must stay AFTER the base .nwl-split__media-bg--*
   rules — at equal specificity the later declaration wins, and this
   block previously sat before them, so it never took effect. */
@media (max-width: 639px) {
  .nwl-hero__media-bg { left: -10px; top: -10px; }
  .nwl-hero__badge { right: -8px; bottom: -10px; padding: 14px 16px; }
  .nwl-split__media-bg--accent { right: -10px; bottom: -10px; }
  .nwl-split__media-bg--dark { left: -10px; top: -10px; }
}

/* —— Reviews band ————————————————————————————————————————— */
.nwl-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 20px; }

/* —— CTA band ———————————————————————————————————————————— */
.nwl-cta-band { background: var(--accent); }
.nwl-cta-band__row { padding-block: clamp(26px,3.5vw,44px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.nwl-cta-band h2, .nwl-cta-band p { color: #fff; margin: 0; }
.nwl-cta-band h2 { margin-bottom: 8px; }

/* —— Footer ———————————————————————————————————————————— */
.nwl-footer-top { background: var(--surface-dark); color: rgba(255,255,255,0.74); }
.nwl-footer-top__grid { padding-block: clamp(28px,3.5vw,44px); display: grid; gap: clamp(24px,3vw,40px); }
.nwl-footer-col__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 12px; }
.nwl-footer-links { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nwl-footer-links a { color: rgba(255,255,255,0.72); font-family: var(--font-body); font-size: 15px; }
.nwl-footer-links a:hover { color: var(--accent); text-decoration: none; }
.nwl-footer-about { font-size: 15px; line-height: 1.55; margin: 0 0 14px; max-width: 30ch; }
.nwl-footer-contact { display: grid; gap: 10px; font-size: 15px; list-style: none; margin: 0; padding: 0; }
.nwl-footer-contact li { display: flex; gap: 10px; }
.nwl-footer-contact a { color: inherit; display: flex; gap: 10px; }
.nwl-footer-contact a:hover { text-decoration: none; }
.nwl-footer-contact svg { flex: none; margin-top: 2px; color: var(--accent); }
/* Widgets dropped into the dark footer columns must sit directly on the
   footer's navy — the default light widget card (and its dark text) read as
   an out-of-place white box there. Every text/link/border inside is
   re-tinted for the dark surface. */
.nwl-footer-top .widget { background: transparent; padding: 0; margin-bottom: 24px; }
.nwl-footer-top .widget:last-child { margin-bottom: 0; }
.nwl-footer-top .widget, .nwl-footer-top .widget p { color: rgba(255,255,255,0.74); }
.nwl-footer-top .widget a { color: rgba(255,255,255,0.72); }
.nwl-footer-top .widget a:hover { color: var(--accent); text-decoration: none; }
.nwl-footer-top .widget .widget-title { color: #fff; }
/* Block widgets (the default widget editor) emit their own <h1>–<h6> instead
   of the registered .widget-title wrapper — on the navy footer the theme's
   dark heading colour made them unreadable, and the content-scale heading
   size dwarfed the other footer column titles. Match both to the footer's
   own column-title look. */
.nwl-footer-top .widget h1, .nwl-footer-top .widget h2, .nwl-footer-top .widget h3,
.nwl-footer-top .widget h4, .nwl-footer-top .widget h5, .nwl-footer-top .widget h6 {
  color: #fff; font-size: 16px; margin: 0 0 12px;
}
.nwl-footer-top .tm-recent-post__title { color: rgba(255,255,255,0.88); }
.nwl-footer-top .tm-recent-post__date, .nwl-footer-top .widget_recent_entries .post-date { color: rgba(255,255,255,0.5); }
.nwl-footer-top .widget_categories li, .nwl-footer-top .widget_archive li,
.nwl-footer-top .widget-toc a { border-bottom-color: rgba(255,255,255,0.14); }
.nwl-footer-top .widget_tag_cloud .tagcloud a { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.72); }
.nwl-footer-top .widget_search input[type="search"] { border-color: transparent; }
.nwl-footer-top .widget-cta { background: var(--surface-dark-raised); padding: 22px; }

.nwl-footer-bottom { background: var(--nwl-ink-900); color: rgba(255,255,255,0.6); }
.nwl-footer-bottom__row { padding-block: 14px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.nwl-footer-bottom__copy { font-size: 13px; }
.nwl-footer-bottom__links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.nwl-footer-bottom__links a { color: rgba(255,255,255,0.6); font-size: 13px; }
.nwl-footer-bottom__links a:hover { color: var(--accent); text-decoration: none; }

@media (min-width: 980px) {
  .nwl-footer-top__grid.cols-4 { grid-template-columns: repeat(4,1fr); }
  .nwl-footer-top__grid.cols-3 { grid-template-columns: repeat(3,1fr); }
  .nwl-footer-top__grid.cols-2 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 979px) { .nwl-footer-top__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .nwl-footer-top__grid { grid-template-columns: 1fr; } .nwl-footer-bottom__links { justify-content: flex-start; } }

/* —— Blog / legal sidebar layout ———————————————————————————— */
.nwl-with-sidebar { display: grid; gap: clamp(32px,4vw,56px); grid-template-columns: minmax(0,1fr) 320px; }
.nwl-with-sidebar.sidebar-left { grid-template-columns: 320px minmax(0,1fr); }
/* Two sidebars (per-page "Two sidebars — left & right" layout): DOM order is
   left aside → content → right aside, so no order overrides are needed. */
.nwl-with-sidebar.sidebar-both { grid-template-columns: 280px minmax(0,1fr) 280px; }
.nwl-with-sidebar.sidebar-left .nwl-content { order: 2; }
.nwl-with-sidebar.sidebar-left .nwl-sidebar { order: 1; }
.nwl-with-sidebar.no-sidebar { grid-template-columns: minmax(0,1fr); }
@media (max-width: 979px) { .nwl-with-sidebar { grid-template-columns: minmax(0,1fr) !important; } .nwl-with-sidebar .nwl-content, .nwl-with-sidebar .nwl-sidebar { order: initial !important; } }

.nwl-post-list { display: grid; gap: 20px; }
.nwl-post-card { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 24px; background: #fff; overflow: hidden; }
.nwl-post-card__media { aspect-ratio: 4/3; overflow: hidden; }
.nwl-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nwl-post-card__body { padding: 20px 22px 20px 0; }
.nwl-post-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.nwl-post-card__date { font-size: 13px; color: var(--text-muted); }
.nwl-post-card h3 { font-size: 21px; margin: 0 0 10px; line-height: 1.25; }
.nwl-post-card p { font-size: 15px; color: var(--text-muted); line-height: 1.55; margin: 0 0 14px; }
.nwl-post-card__more { color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 14px; }
@media (max-width: 639px) { .nwl-post-card { grid-template-columns: 1fr; } .nwl-post-card__body { padding: 0 20px 22px; } }

/* —— Single post / page content ———————————————————————————— */
.nwl-entry-content { background: #fff; padding: clamp(28px,4vw,48px); }
/* Intro card placed above a page's built-in grid (Testimonials page,
   "Above the testimonials" position): the full section-y padding plus the
   card's own padding reads as a huge blank band on the white page, so
   tighten both vertically. Declared after .nwl-entry-content to win. */
.nwl-intro-above { padding-block: clamp(1rem, 2vw, 1.5rem); }
.nwl-intro-above .nwl-entry-content { padding-block: clamp(14px, 2vw, 22px); }
/* Projects-page intro: the main content card collapses to ~3 lines of text
   (top padding + 3 × the 1.62 body line-height) behind a "Read more"
   toggle. The full text stays in the markup for search engines; main.js
   opens the card and hides the toggle when the text already fits. */
.nwl-content-clamp { position: relative; max-height: calc(clamp(28px,4vw,48px) + 4.9em); overflow: hidden; }
.nwl-content-clamp::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.nwl-content-clamp.is-open { max-height: none; }
.nwl-content-clamp.is-open::before { content: none; }
.nwl-clamp-toggle { margin-top: 14px; }
/* .nwl-link-arrow's display would otherwise beat the UA's [hidden] rule. */
.nwl-clamp-toggle[hidden] { display: none; }
/* Prose links: --link (navy) is nearly the same shade as body text, so
   without an underline a link inside a paragraph is invisible. Underline
   them in the accent gold. :where() keeps specificity at 0,1,1 so the
   button/tag-cloud rules (which set their own text-decoration) still win,
   while the :not()s stop the rule from ever matching button-like links. */
.nwl-entry-content a:where(:not(.nwl-btn):not(.wp-block-button__link):not(.nwl-link-arrow)) {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.nwl-entry-content a:where(:not(.nwl-btn):not(.wp-block-button__link):not(.nwl-link-arrow)):hover {
  color: var(--accent);
}
.nwl-entry-content > *:first-child { margin-top: 0; }
.nwl-entry-content h2, .nwl-entry-content h3 { margin-top: 1.3em; }
.nwl-entry-content img { margin: 1.2em 0; }
/* WordPress's own alignment/caption classes (added by the classic editor's
   image toolbar and the image block) were never styled here, so a right-
   or left-aligned image just fell back to the plain block img rule above —
   full-width and stacked instead of floated beside the text, matching how
   it looked in the editor. These are WP's standard class names, not
   theme-specific markup. */
.nwl-entry-content .alignright { float: right; margin: 0.3em 0 1.2em 2em; }
.nwl-entry-content .alignleft { float: left; margin: 0.3em 2em 1.2em 0; }
.nwl-entry-content .aligncenter { display: block; float: none; margin: 1.2em auto; }
.nwl-entry-content .alignnone { margin: 1.2em 0; }
.nwl-entry-content .alignright, .nwl-entry-content .alignleft { max-width: 50%; }
.nwl-entry-content::after { content: ""; display: table; clear: both; }
.nwl-entry-content .wp-caption { max-width: 100%; }
.nwl-entry-content .wp-caption.alignright, .nwl-entry-content .wp-caption.alignleft { max-width: 50%; }
.nwl-entry-content .wp-caption img { display: block; width: 100%; margin: 0; }
.nwl-entry-content .wp-caption-text,
.nwl-entry-content .wp-caption-dd { font-size: 13px; color: var(--text-muted); line-height: 1.5; padding: 8px 2px 0; margin: 0; }
@media (max-width: 639px) {
  .nwl-entry-content .alignright, .nwl-entry-content .alignleft { float: none; max-width: 100%; margin: 1.2em 0; }
}
.nwl-legal-section { margin-bottom: 30px; }
.nwl-legal-section h3 { font-size: 21px; margin: 0 0 10px; }
.nwl-legal-section p { font-size: 16px; color: var(--text-muted); line-height: 1.65; margin: 0; }
.nwl-legal-updated { font-size: 14px; color: var(--text-muted); margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }

/* —— Contact page ———————————————————————————————————————————— */
.nwl-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,4vw,60px); align-items: start; }
@media (max-width: 979px) { .nwl-contact-grid { grid-template-columns: 1fr; } }
.nwl-contact-info { display: grid; gap: 20px; }
.nwl-contact-info__row { display: flex; gap: 16px; align-items: flex-start; }
.nwl-contact-info__icon { flex: none; width: 44px; height: 44px; background: var(--surface-dark); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.nwl-contact-info__label { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.nwl-contact-info__value { font-size: 15px; color: var(--text-muted); }
.nwl-contact-map { margin-top: 20px; aspect-ratio: 16/9; background: var(--surface-muted); position: relative; overflow: hidden; }
.nwl-contact-map img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.nwl-contact-map__pin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--surface-dark); }
.nwl-contact-map__pin span { font-family: var(--font-display); font-weight: 700; font-size: 14px; }

/* The form sections carry their own visual weight (heading block + dark
   panel), so they get only a minimal 10px breathing space; the flush-top
   re-assert below keeps stacked forms collapsing correctly despite this
   rule's higher specificity. */
.nwl-form-section .nwl-section-tight { padding-block: 10px; }
.nwl-form-section .nwl-section--flush-top { padding-top: 0; }
.nwl-form-panel { background: var(--surface-dark); clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%); padding: 40px clamp(24px,3vw,36px) 30px; }
.nwl-form-panel h3 { color: #fff; font-size: 22px; margin: 0 0 6px; }
/* The panel is always painted dark navy, so field labels must stay light even
   when the form's admin "style" option is "light" — that option tints the
   section around the panel, not the panel itself. Without this, light-style
   forms rendered near-invisible navy-on-navy labels. */
.nwl-form-panel .nwl-field__label { color: #fff; }
.nwl-form-panel__hint { color: rgba(255,255,255,0.66); font-size: 15px; margin: 0 0 18px; }
.nwl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 639px) { .nwl-form-row { grid-template-columns: 1fr; } }
.nwl-form-success { text-align: center; padding: 28px 0; }
.nwl-form-success__icon { width: 56px; height: 56px; background: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.nwl-form-success h3 { color: #fff; font-size: 24px; margin: 0 0 10px; }
.nwl-form-success p { color: rgba(255,255,255,0.8); font-size: 16px; margin: 0; }
.nwl-form-error { background: #C0392B; color: #fff; padding: 14px 18px; margin-bottom: 18px; font-size: 14px; }

/* —— Cookie banner ———————————————————————————————————————— */
.nwl-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: var(--surface-dark); color: #fff; box-shadow: 0 -10px 30px -18px rgba(0,0,0,0.6);
  transform: translateY(0); transition: transform var(--dur-base) var(--ease-out);
}
.nwl-cookie-banner.is-hidden { transform: translateY(100%); }
.nwl-cookie-banner__row { padding-block: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.nwl-cookie-banner p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.82); max-width: 60ch; line-height: 1.5; }
.nwl-cookie-banner p a { color: var(--accent); text-decoration: underline; }
.nwl-cookie-banner__actions { display: flex; gap: 12px; }

/* —— Misc grids ———————————————————————————————————————————— */
.nwl-projects-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 18px; }
/* auto-fit + justify-content:center (not auto-fill/1fr) so a partial last
   row — or a page with only a handful of members — sits centered instead
   of being stretched/pinned to the left edge of the container. */
/* Card width follows --nwl-team-card-w (Customizer > Team Page > Member
   Cards); min(240px, …) keeps the columns collapsing responsively on small
   screens even when a wider card is chosen. */
.nwl-team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(240px, var(--nwl-team-card-w, 280px)), var(--nwl-team-card-w, 280px))); justify-content: center; gap: 20px; }
.nwl-accreditations { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; justify-content: center; }
.nwl-accreditations__label { font-family: var(--font-display); font-weight: 700; color: var(--text-muted); font-size: 14px; letter-spacing: 0.04em; }
.nwl-accreditations span.acc { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--surface-dark); opacity: 0.62; }
.nwl-join-band { margin-top: 36px; background: var(--surface-dark); padding: clamp(24px,3vw,38px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.nwl-join-band h2 { color: #fff; font-size: var(--text-h3); margin: 0 0 8px; }
.nwl-join-band p { color: rgba(255,255,255,0.78); margin: 0; max-width: 48ch; }

/* —— Pagination ———————————————————————————————————————————— */
.nwl-pagination { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.nwl-pagination a, .nwl-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--border-strong); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-body); }
.nwl-pagination .current { background: var(--surface-dark); color: #fff; border-color: var(--surface-dark); }
.nwl-pagination a:hover { background: var(--surface-muted); text-decoration: none; }

/* Core nav-links markup output by the_posts_navigation()/the_posts_pagination() */
.navigation.posts-navigation, .navigation.pagination, .post-navigation { margin-top: 28px; }
.nav-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--border-strong); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-body); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--surface-dark); color: #fff; border-color: var(--surface-dark); }
.nav-links a.page-numbers:hover { background: var(--surface-muted); }
