/* ============================================================
   NOVI MARINE · THE LOG (blog)
   Signature device: a ship's log, not a generic blog grid. Entries are a
   vertical dated list — the date IS the sequence, so no arbitrary 01/02/03
   numbering is needed. Reuses the exact tokens from vessel-detail/voorraad
   (navy #031d30/#051f30, cyan #00c6ff, Titillium Web + Inter) — this must
   read as the same site, not a bolted-on blog.
   ============================================================ */

:root {
  --nml-ink:    #031d30;
  --nml-navy:   #051f30;
  --nml-navy2:  #07273b;
  --nml-body:   #5a7080;
  --nml-muted:  #8fa5b5;
  --nml-line:   #e8edf2;
  --nml-accent: #0088cc;
  --nml-accent2:#00c6ff;
  --nml-ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- shared: eyebrow / pulse-dot (matches sitewide pattern) ---------- */
.nm-blog-hero .nm-eyebrow,
.nm-post-hero .nm-eyebrow {
  display: inline-flex; align-items: center; color: var(--nml-accent2);
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 600;
  font-family: 'Titillium Web', sans-serif; margin: 0 0 18px;
}
.nm-blog-hero .nm-pulse-dot, .nm-post-hero .nm-pulse-dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 10px;
  border-radius: 50%; background: var(--nml-accent2); position: relative;
}
.nm-blog-hero .nm-pulse-dot::after, .nm-post-hero .nm-pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,198,255,0.6); animation: nml-pulse 1.8s infinite ease-out;
}
@keyframes nml-pulse { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(2.5); opacity: 0; } 100% { opacity: 0; } }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ============================================================
   ARCHIVE — "From the Bridge"
   ============================================================ */
.nm-blog-hero {
  background: var(--nml-navy);
  color: #ffffff;
  padding: 150px 0 64px !important;
  position: relative;
  overflow: hidden;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
}
.nm-blog-hero::before {
  content: "";
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse, rgba(0,136,204,0.22), transparent 68%);
  pointer-events: none;
}
.nm-blog-hero-inner {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 0 48px;
}
.nm-blog-title {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.02 !important;
  letter-spacing: -0.01em;
  margin: 0 0 18px !important;
}
.nm-blog-deck {
  color: rgba(255,255,255,0.62) !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  max-width: 540px;
  margin: 0 !important;
}

.nm-blog-page {
  background: #ffffff;
  padding: 64px 0 72px !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
}
.nm-blog-layout {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 48px;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.nm-log {
  min-width: 0;
  margin: 0 !important;
}

/* Archive filter rail — intentionally lighter than the single-post sidebar:
   it is a navigation aid, not a competing content card. */
.nm-blog-filter {
  position: sticky;
  top: 112px;
  padding: 26px;
  border: 1px solid var(--nml-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fbfd, #ffffff);
  box-shadow: 0 18px 42px rgba(3,29,48,0.08);
}
.nm-blog-filter__section + .nm-blog-filter__section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--nml-line);
}
.nm-blog-filter__title {
  margin: 0 0 14px !important;
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nml-ink) !important;
}
.nm-blog-search { margin: 0; }
.nm-blog-search__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  border: 1px solid #d8e3eb;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nm-blog-search__control:focus-within {
  border-color: var(--nml-accent);
  box-shadow: 0 0 0 3px rgba(0,136,204,0.11);
}
.nm-blog-search__control input {
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 4px 0 14px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font: 500 14px/1.2 'Inter', sans-serif;
  color: var(--nml-ink);
  box-shadow: none;
  -webkit-appearance: none;
}
.nm-blog-search__control input::placeholder { color: var(--nml-muted); opacity: 1; }
.nm-blog-search__control input::-webkit-search-cancel-button { display: none; }
.nm-blog-search__control button {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--nml-navy);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.nm-blog-search__control button:hover { background: var(--nml-accent); }
.nm-blog-search__control button:focus-visible {
  outline: 3px solid rgba(0,198,255,0.35);
  outline-offset: -3px;
}
.nm-blog-search__control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.nm-blog-filter__clear {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--nml-accent) !important;
  text-decoration: none !important;
}
.nm-blog-filter__clear:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.nm-blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nm-blog-category {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #dbe5ec;
  border-radius: 999px;
  background: #ffffff;
  font-family: 'Titillium Web', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nml-body) !important;
  text-decoration: none !important;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--nml-ease);
}
.nm-blog-category:hover {
  transform: translateY(-1px);
  border-color: rgba(0,136,204,0.38);
  background: #eef8fd;
  color: var(--nml-accent) !important;
}
.nm-blog-category.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--nml-accent), var(--nml-accent2));
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(0,136,204,0.20);
}
.nm-blog-category:focus-visible {
  outline: 3px solid rgba(0,198,255,0.28);
  outline-offset: 2px;
}
.nm-blog-empty {
  padding: 36px;
  border: 1px solid var(--nml-line);
  border-radius: 18px;
  background: #f8fbfd;
}
.nm-blog-empty h2 {
  margin: 0 0 8px !important;
  font: 800 1.45rem/1.2 'Titillium Web', sans-serif !important;
  color: var(--nml-ink) !important;
}
.nm-blog-empty p { margin: 0 0 18px !important; color: var(--nml-body); }
.nm-blog-empty a {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  color: var(--nml-accent) !important;
  text-decoration: none !important;
}

/* The log list — no card grid. A hairline above each entry (matches
   .sec-rule elsewhere on the site) is the only structural divider. */
.nm-log .wp-block-post-template {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.nm-log-entry {
  padding: 40px 0;
  border-top: 1px solid var(--nml-line);
}
.nm-log .wp-block-post-template > li:first-child .nm-log-entry {
  border-top: none;
  padding-top: 0;
}

.nm-log-entry__meta {
  display: flex; align-items: center; gap: 16px;
  margin: 4px 0 16px !important;
}
.nm-log-entry__date {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--nml-ink) !important;
  letter-spacing: -0.01em;
}
.nm-log-entry__date time { font-variant-numeric: tabular-nums; }
.nm-log-entry__cat {
  display: inline-flex;
}
.nm-log-entry__cat a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1f7fb;
  border: 1px solid var(--nml-line);
  color: var(--nml-accent) !important;
  font-family: 'Titillium Web', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  transition: all 0.25s ease;
}
.nm-log-entry__cat a:hover {
  background: var(--nml-navy);
  border-color: var(--nml-navy);
  color: #ffffff !important;
}

.nm-log-entry__body {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 40px;
  align-items: start;
}
.nm-log-entry__img {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef3f7;
}
.nm-log-entry__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--nml-ease);
}
.nm-log-entry a:hover .nm-log-entry__img img { transform: scale(1.05); }
/* single cyan corner bracket — a quiet nod to the vessel-gallery registration
   marks, without needing extra markup a native post-featured-image can't carry */
.nm-log-entry__img::before {
  content: "";
  position: absolute; top: 10px; left: 10px;
  width: 16px; height: 16px;
  border-top: 1.5px solid rgba(255,255,255,0.85);
  border-left: 1.5px solid rgba(255,255,255,0.85);
  z-index: 1; pointer-events: none;
}

.nm-log-entry__title {
  margin: 0 0 10px !important;
}
.nm-log-entry__title a {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: var(--nml-ink) !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: color 0.25s ease;
}
.nm-log-entry__title a:hover { color: var(--nml-accent) !important; }

.nm-log-entry__excerpt {
  color: var(--nml-body) !important;
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
  margin: 0 0 14px !important;
}
.nm-log-entry__excerpt p { margin: 0 !important; }

.nm-log-entry__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--nml-accent);
  font-family: 'Titillium Web', sans-serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--nml-accent) !important;
  text-decoration: none !important;
  transition: all 0.25s var(--nml-ease);
}
.nm-log-entry__cta:hover {
  background: var(--nml-accent);
  border-color: var(--nml-accent);
  color: #ffffff !important;
}
.nm-log-entry__cta a { color: inherit !important; text-decoration: none !important; }

.nm-log .wp-block-query-pagination {
  margin: 28px 0 0 !important;
  padding-top: 28px;
  border-top: 1px solid var(--nml-line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nm-log .wp-block-query-pagination .wp-block-query-pagination-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}
.nm-log .wp-block-query-pagination .page-numbers,
.nm-log .wp-block-query-pagination-previous,
.nm-log .wp-block-query-pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0 !important;
  padding: 0 14px;
  border: 1px solid #dbe5ec;
  border-radius: 12px;
  background: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 7px 18px rgba(3,29,48,0.05);
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--nml-body) !important;
  text-decoration: none !important;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--nml-ease), box-shadow 0.2s ease;
}
.nm-log .wp-block-query-pagination-previous,
.nm-log .wp-block-query-pagination-next {
  min-width: auto;
  padding-inline: 18px;
}
.nm-log .wp-block-query-pagination .page-numbers.current {
  border-color: var(--nml-accent);
  background: linear-gradient(135deg, var(--nml-accent), var(--nml-accent2));
  box-shadow: 0 10px 24px rgba(0,136,204,0.22);
  color: #ffffff !important;
}
.nm-log .wp-block-query-pagination a:hover {
  border-color: rgba(0,136,204,0.42);
  background: #f1f8fc;
  color: var(--nml-accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(3,29,48,0.09);
}
.nm-log .wp-block-query-pagination a:focus-visible {
  outline: 3px solid rgba(0,198,255,0.3);
  outline-offset: 2px;
}

/* Empty state: no posts yet */
.nm-log .wp-block-query > p {
  color: var(--nml-muted);
  font-style: normal;
  padding: 40px 0;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.nm-post-hero {
  background: var(--nml-navy);
  color: #ffffff;
  padding: 150px 0 110px !important;
  position: relative;
  overflow: hidden;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
}
.nm-post-hero::before {
  content: "";
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse, rgba(0,136,204,0.22), transparent 68%);
  pointer-events: none;
}
.nm-post-hero-inner {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 0 48px;
}
/* breadcrumb — quiet trail back to the archive; labels mirror Yoast's
   BreadcrumbList schema (visible trail and structured data must match) */
.nm-post-crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.10em;
  margin: 0 0 22px;
}
.nm-post-crumb a {
  color: rgba(255,255,255,0.55) !important;
  text-decoration: none !important;
  transition: color 0.25s ease;
}
.nm-post-crumb a:hover { color: var(--nml-accent2) !important; }
.nm-post-crumb__sep { color: rgba(255,255,255,0.25); }
.nm-post-crumb__current {
  color: rgba(255,255,255,0.35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 340px;
}

.nm-post-cat { margin: 10px 0 16px !important; }
.nm-post-cat a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--nml-accent2) !important;
  font-family: 'Titillium Web', sans-serif;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none !important;
}
.nm-post-title {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: clamp(2rem, 4.2vw, 3.2rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.08 !important;
  letter-spacing: -0.01em;
  margin: 0 0 22px !important;
}
.nm-post-meta {
  display: flex; align-items: center; gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.nm-post-date {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.55) !important;
  letter-spacing: 0.02em;
}
.nm-post-author {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--nml-accent2) !important;
}
.nm-post-author a { color: inherit !important; text-decoration: none !important; }

/* Posts without a featured image do not need the large image overlap zone.
   Keep this state body-scoped so image-led articles retain their exact layout. */
.nm-post-no-featured .nm-post-hero {
  padding-bottom: 64px !important;
}
.nm-post-no-featured .nm-post-page {
  padding-top: 64px !important;
}
.nm-post-no-featured .nm-post-sidebar {
  margin-top: 0 !important;
}

.nm-post-page {
  background: #ffffff;
  padding: 0 0 20px !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
}
.nm-post-grid {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 48px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.nm-post-inner {
  max-width: none;
}

/* ---------- sidebar ---------- */
.nm-post-sidebar {
  position: sticky;
  top: 110px;
  margin-top: -64px !important;
  background: var(--nml-navy);
  border-radius: 20px;
  padding: 32px;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 0 0 1px rgba(0,198,255,0.06),
    0 25px 60px rgba(0,198,255,0.10),
    0 30px 70px rgba(0,40,75,0.18);
}
.nm-sidebar-block + .nm-sidebar-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.nm-sidebar-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 14px !important;
}
.nm-share-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #0088cc, #00c6ff);
  color: #ffffff; font-family: 'Titillium Web', sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform 0.25s var(--nml-ease), box-shadow 0.25s var(--nml-ease);
}
.nm-share-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(0,136,204,0.4); }
.nm-share-confirm {
  margin: 12px 0 0 !important;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--nml-accent2);
  animation: nmShareConfirmFade 0.3s ease;
}
@keyframes nmShareConfirmFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nm-sidebar-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.nm-sidebar-social {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  transition: all 0.25s ease;
}
.nm-sidebar-social svg { width: 18px; height: 18px; }
.nm-sidebar-social:hover { background: var(--nml-accent2); border-color: var(--nml-accent2); color: var(--nml-navy); }

.nm-sidebar-contact { display: flex; flex-direction: column; gap: 14px; }
.nm-sidebar-contact__row {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 14.5px;
  color: #ffffff; text-decoration: none;
}
.nm-sidebar-contact__row svg { flex-shrink: 0; color: var(--nml-accent2); }
.nm-sidebar-contact__row:hover { color: var(--nml-accent2); }
.nm-post-featured {
  margin: -64px 0 48px !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,40,75,0.20);
  position: relative;
}
.nm-post-featured img { width: 100%; height: auto; display: block; }
.nm-post-featured::before {
  content: "";
  position: absolute; top: 14px; left: 14px;
  width: 20px; height: 20px;
  border-top: 1.5px solid rgba(255,255,255,0.85);
  border-left: 1.5px solid rgba(255,255,255,0.85);
  z-index: 1; pointer-events: none;
}
.nm-post-featured::after {
  content: "";
  position: absolute; bottom: 14px; right: 14px;
  width: 20px; height: 20px;
  border-bottom: 1.5px solid rgba(255,255,255,0.85);
  border-right: 1.5px solid rgba(255,255,255,0.85);
  z-index: 1; pointer-events: none;
}

.nm-post-content {
  color: var(--nml-body);
  font-size: 1.06rem;
  line-height: 1.85;
}
/* !important required: .wp-block-post-content > * in novimarine.css forces
   margin-block-end:0 !important on every direct child (added to prevent gaps
   between page sections) — without !important here, that rule always wins
   regardless of this selector's higher specificity, silently no-op'ing any
   margin value tried. */
.nm-post-content p { margin: 0 0 20px !important; }
.nm-post-content p:last-child { margin-bottom: 0; }
.nm-post-content h2 {
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: var(--nml-ink);
  margin: 52px 0 22px !important; line-height: 1.2;
}
.nm-post-content h3 {
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: var(--nml-ink);
  margin: 32px 0 14px !important;
}
.nm-post-content a { color: var(--nml-accent); text-decoration: underline; text-underline-offset: 2px; }
.nm-post-content a:hover { color: var(--nml-accent2); }
.nm-post-content figure { margin: 32px 0 !important; }
.nm-post-content img { width: 100%; height: auto; display: block; }
.nm-post-content figcaption {
  font-size: 13px; color: var(--nml-muted); text-align: center; margin-top: 10px;
}
.nm-post-content .wp-block-embed {
  box-shadow: 0 20px 45px rgba(0,40,75,0.14);
}
.nm-post-content .wp-block-embed iframe { display: block; width: 100%; }
.nm-post-content blockquote {
  border-left: 3px solid var(--nml-accent2);
  padding: 4px 0 4px 22px;
  margin: 32px 0 !important;
  font-style: italic;
  color: var(--nml-ink);
}

/* Closing CTA — reuses the sitewide Inquire routing (initInquireButtons in
   novimarine.js): the button's href/target resolves per-site/per-page there,
   so nothing here hardcodes a URL that would break on /en/. */
.nm-post-cta {
  background: var(--nml-navy);
  padding: 64px 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
}
.nm-post-cta-inner {
  max-width: 640px; margin: 0 auto; padding: 0 24px;
  text-align: center;
}
.nm-post-cta-title {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: clamp(1.5rem, 2.6vw, 2rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 14px !important;
}
.nm-post-cta-sub {
  color: rgba(255,255,255,0.6) !important;
  font-size: 1rem !important;
  margin: 0 0 28px !important;
}
.nm-post-cta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: #ffffff !important; text-decoration: none !important;
  background: linear-gradient(135deg, #0088cc, #00c6ff);
  transition: transform 0.3s var(--nml-ease), box-shadow 0.3s var(--nml-ease);
}
.nm-post-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(0,136,204,0.4); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nm-blog-layout { grid-template-columns: 1fr; gap: 36px; }
  .nm-blog-filter {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 32px;
  }
  .nm-blog-filter__section + .nm-blog-filter__section {
    margin: 0;
    padding: 0 0 0 32px;
    border-top: 0;
    border-left: 1px solid var(--nml-line);
  }
  .nm-log-entry__body { grid-template-columns: minmax(0, 520px) 1fr; }
}
@media (max-width: 900px) {
  .nm-blog-hero, .nm-post-hero { padding-top: 130px !important; }
  .nm-log-entry__body { grid-template-columns: 1fr; }
  .nm-log-entry__img { aspect-ratio: 16 / 9; }
  .nm-post-featured { margin-top: -40px !important; }

  /* Sidebar moves below the article and un-sticks — no room for a floating
     rail once the layout is single-column. */
  .nm-post-grid { grid-template-columns: 1fr !important; gap: 40px; }
  .nm-post-inner { max-width: 100%; }
  .nm-post-sidebar { position: static; top: auto; margin-top: 0 !important; }
  .nm-post-no-featured .nm-post-hero { padding-bottom: 52px !important; }
  .nm-post-no-featured .nm-post-page { padding-top: 48px !important; }
}
@media (max-width: 720px) {
  .nm-blog-filter { grid-template-columns: 1fr; gap: 26px; }
  .nm-blog-filter__section + .nm-blog-filter__section {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--nml-line);
  }
}
@media (max-width: 640px) {
  .nm-blog-hero, .nm-post-hero { padding-top: 116px !important; }
  .nm-post-meta { flex-wrap: wrap; gap: 10px; }
  .nm-blog-page { padding-bottom: 56px !important; }
  .nm-blog-layout { padding: 0 22px; }
  .nm-blog-filter { padding: 22px; border-radius: 16px; }
  .nm-blog-categories { gap: 7px; }
  .nm-blog-category { min-height: 32px; padding: 6px 10px; }
  .nm-log .wp-block-query-pagination {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 6px;
    padding-top: 22px;
  }
  .nm-log .wp-block-query-pagination .wp-block-query-pagination-numbers {
    grid-column: 2;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nm-log .wp-block-query-pagination .wp-block-query-pagination-numbers::-webkit-scrollbar { display: none; }
  .nm-log .wp-block-query-pagination .page-numbers,
  .nm-log .wp-block-query-pagination-previous,
  .nm-log .wp-block-query-pagination-next {
    min-width: 36px;
    height: 40px;
    padding: 0 8px;
    border-radius: 10px;
  }
  .nm-log .wp-block-query-pagination-previous,
  .nm-log .wp-block-query-pagination-next {
    width: 40px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  .nm-log .wp-block-query-pagination-previous { grid-column: 1; grid-row: 1; }
  .nm-log .wp-block-query-pagination-next { grid-column: 3; grid-row: 1; }
  .nm-log .wp-block-query-pagination-previous::before {
    content: "\2190";
    font-size: 18px;
  }
  .nm-log .wp-block-query-pagination-next::after {
    content: "\2192";
    font-size: 18px;
  }
}
