/*
Theme Name: North Shore Local
Theme URI: https://northshorelocal.example.com
Author: Webcity Technologies LLP
Author URI: https://webcitytech.com
Description: A newspaper / community-magazine WordPress theme converted from a Figma design. Editorial layout with a featured hero, latest-news rail, and category-driven sections (Local News, People & Places, The Shore). Built with EB Garamond for an editorial feel.
Version: 2.9.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: north-shore-local
Tags: news, magazine, blog, two-columns, custom-menu, featured-images, editor-style, threaded-comments
*/

/* ==========================================================================
   Design tokens (from Figma)
   ========================================================================== */
:root {
  --nsl-navy:        #002742;
  --nsl-navy-deep:   #003153;
  --nsl-cream:       #f5f1d8;
  --nsl-cream-soft:  #f1f2ea;
  --nsl-ink:         #101115;
  --nsl-white:       #ffffff;
  --nsl-line:        #d9d9d9;
  --nsl-card-shadow: 4px 4px 10px 3px rgba(0, 0, 0, 0.1);
  --nsl-radius:      10px;
  --nsl-maxw:        calc(40vw + 678px);
  --nsl-pagew:       calc(40vw + 686px);
  --nsl-gutter-bg:   #d5d5d5;
  --nsl-page-shadow: 0 0 30px rgba(0, 0, 0, 0.22);
  --nsl-serif:       'EB Garamond', Georgia, 'Times New Roman', serif;
}

/* ==========================================================================
   Base / reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--nsl-serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--nsl-ink);
  background: var(--nsl-gutter-bg);
}

/* Boxed "newspaper" page: centered white sheet on the grey gutters,
   with a soft drop shadow on all sides. Full-bleed bands (nav, footer)
   reach the sheet edges; .nsl-container content stays inset. */
.nsl-site {
  max-width: var(--nsl-pagew);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--nsl-white);
  box-shadow: var(--nsl-page-shadow);
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--nsl-navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; color: #000; line-height: 1.1; margin: 0 0 .4em; }

.nsl-container {
  max-width: var(--nsl-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--nsl-navy); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==========================================================================
   Top bar (socials + banner ads + search)
   ========================================================================== */
/* Top banner row (full width, two ads side by side) */
.nsl-topbar {
  padding: 20px 0 14px;
}
.nsl-ads {
  display: grid;
  gap: 22px;
}
.nsl-ads--double { grid-template-columns: 1fr 1fr; }
.nsl-ads--single { grid-template-columns: 1fr; }

/* Second banner row (below the utility bar, as in the Figma) */
.nsl-subbanner { padding: 14px 0 20px; }

/* Utility bar: socials on the left, search on the right (below the nav) */
.nsl-utility-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 16px; padding-bottom: 16px;
}
.nsl-socials { display: flex; align-items: center; gap: 22px; }
.nsl-socials a { display: inline-flex; color: var(--nsl-navy); }
.nsl-socials svg { width: 46px; height: 46px; fill: currentColor; }
.nsl-socials .nsl-social-img { width: 46px; height: 46px; display: block; object-fit: contain; }
.nsl-banner-ad {
  border-radius: var(--nsl-radius);
  overflow: hidden;
  background: var(--nsl-line);
  position: relative;
}
/* Header / sub-header banner heights (taller, newspaper-style). */
.nsl-ads--double .nsl-banner-ad { aspect-ratio: 648 / 220; }
.nsl-ads--single .nsl-banner-ad { aspect-ratio: 1320 / 330; }
/* Taller bands between sections (match the decorative strip height). */
.nsl-section-ads.nsl-ads--double .nsl-banner-ad { aspect-ratio: 648 / 280; }
.nsl-section-ads.nsl-ads--single .nsl-banner-ad { aspect-ratio: 1323 / 300; }
.nsl-banner-ad img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.nsl-banner-ad .nsl-widget,
.nsl-banner-ad figure,
.nsl-banner-ad a { margin: 0; padding: 0; }
.nsl-banner-ad .nsl-ad-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #555;
}

.nsl-search {
  display: flex; align-items: center; gap: 12px;
  width: 480px; max-width: 100%;
  border: 2px solid var(--nsl-navy-deep);
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 0 5px 5px rgba(0,0,0,.12);
}
.nsl-search svg { width: 24px; height: 24px; fill: var(--nsl-navy); flex: none; }
.nsl-search input[type="search"] {
  border: 0; outline: 0; background: transparent;
  font-family: var(--nsl-serif); font-size: 22px; color: var(--nsl-navy);
  width: 100%;
}

/* ==========================================================================
   Primary nav — menu spread full width with the logo centered on top
   ========================================================================== */
.nsl-nav { background: var(--nsl-cream); position: relative; }
.nsl-nav-inner {
  display: flex; align-items: center; justify-content: center;
  min-height: 132px; gap: 44px;
}
.nsl-nav-side {
  flex: 1 1 0; min-width: 0;
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 14px;
}
.nsl-nav-side.left  { justify-content: space-between; padding-left: 4px; }
.nsl-nav-side.right { justify-content: space-between; padding-right: 4px; }
.nsl-nav-side a {
  font-weight: 700; font-size: 24px; color: var(--nsl-navy); white-space: nowrap;
}
.nsl-nav-side li.current a { text-decoration: underline; text-underline-offset: 6px; }

.nsl-brand {
  flex: 0 0 auto;
  width: 290px; min-height: 124px;
  margin: -2px 0;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--nsl-navy); color: #fff;
  padding: 12px 24px; border-radius: 8px; line-height: 1;
  font-weight: 800; letter-spacing: 1px; text-align: center;
  position: relative; z-index: 2;
}
.nsl-brand:hover { text-decoration: none; }
.nsl-brand .nsl-brand-top { font-size: 17px; letter-spacing: 5px; }
.nsl-brand .nsl-brand-bottom { font-size: 46px; letter-spacing: 2px; margin-top: 6px; }
.nsl-brand img { max-height: 64px; width: auto; }

.nsl-menu-toggle { display: none; }

/* ==========================================================================
   Mobile header (shown < 900px; see media query). Bar = socials | logo | tools
   ========================================================================== */
.nsl-header-mobile { display: none; }

.nsl-mbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding-top: 8px; padding-bottom: 8px;
}
.nsl-msocials { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.nsl-msocials svg { width: 26px; height: 26px; fill: var(--nsl-navy); }
.nsl-msocials .nsl-social-img { width: 26px; height: 26px; display: block; object-fit: contain; }
.nsl-msocials a { display: inline-flex; color: var(--nsl-navy); }

.nsl-mtools { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.nsl-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--nsl-navy);
}
.nsl-icon-btn svg { width: 30px; height: 30px; fill: var(--nsl-navy); }
.nsl-burger { display: inline-block; width: 34px; height: 22px; position: relative; }
.nsl-burger span {
  position: absolute; left: 0; height: 3px; width: 100%; background: var(--nsl-navy); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nsl-burger span:nth-child(1) { top: 0; }
.nsl-burger span:nth-child(2) { top: 9px; }
.nsl-burger span:nth-child(3) { top: 18px; }
.nsl-mmenu-toggle.is-active .nsl-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nsl-mmenu-toggle.is-active .nsl-burger span:nth-child(2) { opacity: 0; }
.nsl-mmenu-toggle.is-active .nsl-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nsl-brand--mobile { width: auto; min-height: 0; margin: 0; padding: 3px 10px; border-radius: 6px; }
.nsl-brand--mobile .nsl-brand-top { font-size: 6px; letter-spacing: 1.2px; }
.nsl-brand--mobile .nsl-brand-bottom { font-size: 13px; letter-spacing: 0.6px; margin-top: 2px; }

.nsl-msearch { padding: 10px 0 4px; }
.nsl-msearch .nsl-search { width: 100%; }

.nsl-mmenu { background: var(--nsl-cream); border-top: 1px solid rgba(0,0,0,.08); }
.nsl-mmenu ul { list-style: none; margin: 0; padding: 8px 0; }
.nsl-mmenu li { border-bottom: 1px solid rgba(0,0,0,.08); }
.nsl-mmenu li:last-child { border-bottom: 0; }
.nsl-mmenu a { display: block; padding: 14px 24px; font-size: 20px; font-weight: 700; color: var(--nsl-navy); }
.nsl-mmenu li.current a { text-decoration: underline; text-underline-offset: 5px; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.nsl-section { padding: 24px 0 28px; }
.nsl-section-head {
  display: flex; align-items: center; gap: 44px; margin: 0 0 28px;
}
.nsl-section-title {
  font-size: 60px; color: #000; margin: 0; white-space: nowrap;
}
.nsl-section-head .nsl-rule {
  flex: 1 1 auto; height: 0; border: 0; border-bottom: 2px solid #a6a6a6;
}
.nsl-section-head .nsl-viewall { font-size: 16px; font-weight: 700; white-space: nowrap; }
.nsl-divider { border: 0; border-top: 3px solid var(--nsl-navy); margin: 8px 0 28px; }

/* Full-width decorative photo strip between sections */
.nsl-strip-wrap { padding: 4px 0; }
.nsl-strip {
  border-radius: var(--nsl-radius); overflow: hidden; background: var(--nsl-line);
  aspect-ratio: 1323 / 259;
}
.nsl-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Hero
   ========================================================================== */
.nsl-hero {
  display: grid;
  grid-template-columns: 1.8fr 1.5fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.nsl-hero-feature {
  position: relative; border-radius: var(--nsl-radius); overflow: hidden;
  min-height: 360px; color: #fff;
}
.nsl-hero-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nsl-hero-feature .nsl-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.75) 100%);
}
.nsl-hero-feature .nsl-hero-text {
  position: absolute; left: 32px; right: 32px; bottom: 36px;
}
.nsl-hero-feature h2 { color: #fff; font-size: 44px; line-height: 1; text-shadow: 0 4px 4px rgba(0,0,0,.25); }
.nsl-hero-feature p { font-size: 22px; line-height: 1.2; margin: 14px 0 18px; max-width: 480px; }
.nsl-readmore { font-weight: 700; color: #fff; font-size: 15px; letter-spacing: .5px; }
.nsl-readmore:hover { text-decoration: underline; }

/* center stacked cards — grow to fill the column, like the Figma (even spacing, bottoms align) */
.nsl-hero-stack { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.nsl-mini {
  background: #fff; border-radius: var(--nsl-radius); box-shadow: var(--nsl-card-shadow);
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px; align-items: stretch;
  flex: 0 0 auto;
}
.nsl-mini .nsl-mini-thumb {
  width: 120px; height: 100%; min-height: 0; align-self: stretch;
  border-radius: var(--nsl-radius); overflow: hidden; background: var(--nsl-line);
}
.nsl-mini .nsl-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nsl-mini > div { align-self: start; }
.nsl-mini h3 { font-size: 20px; line-height: 1.15; margin: 0 0 8px; }
.nsl-mini h3 a { color: #000; }
.nsl-mini p { font-size: 18px; margin: 0; line-height: 1.4; color: #333; }

/* latest news rail — items spread to fill, "View all" pinned to the bottom */
.nsl-rail {
  background: var(--nsl-cream); border-radius: var(--nsl-radius);
  box-shadow: var(--nsl-card-shadow); padding: 16px 20px;
  line-height: 1.2;
}
.nsl-rail h2 { font-size: 21px; color: var(--nsl-navy); margin: 0 0 2px; }
.nsl-rail ul { list-style: none; margin: 0; padding: 0; }
.nsl-rail li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.25); }
.nsl-rail li:last-child { border-bottom: 0; }
.nsl-rail a { font-weight: 600; font-size: 16px; color: #000; line-height: 1.2; }
.nsl-rail .nsl-viewall { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 15px; }

/* ==========================================================================
   Card grids
   ========================================================================== */
.nsl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.nsl-card {
  background: #fff; border-radius: 14px; box-shadow: var(--nsl-card-shadow);
  overflow: hidden; display: flex; flex-direction: column;
  padding: 8px 8px 0;
}
.nsl-card .nsl-card-thumb { aspect-ratio: 296 / 240; background: var(--nsl-line); overflow: hidden; border-radius: 10px; }
.nsl-card .nsl-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nsl-card--titleonly .nsl-card-thumb { aspect-ratio: 296 / 195; }
.nsl-card .nsl-card-body { padding: 16px 14px 24px; }
.nsl-card h3 {
  font-size: 24px; line-height: 1.2; margin: 0 0 6px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; min-height: 2.4em;
}
.nsl-card h3 a { color: #000; }
.nsl-card p {
  font-size: 20px; line-height: 1.35; margin: 0; color: #333;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; min-height: 4.05em;
}
/* title-only side cards: just the title block, no reserved excerpt */
.nsl-card--titleonly p { display: none; }
.nsl-card--titleonly h3 {
  font-size: 24px; line-height: 1.18; margin: 0;
  -webkit-line-clamp: 5; min-height: 0;
}

/* feature + small mixed grid (People & Places / The Shore) */
.nsl-mixed {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.nsl-mixed-col { display: flex; flex-direction: column; gap: 24px; }
.nsl-mixed-col .nsl-card { flex: 1 1 0; }
.nsl-mixed-col .nsl-card .nsl-card-body { flex: 1 1 auto; }
.nsl-grid--row { margin-top: 28px; }
.nsl-card-tall .nsl-card-thumb { aspect-ratio: 296 / 240; }

.nsl-feature {
  background: #fff; border-radius: var(--nsl-radius); box-shadow: var(--nsl-card-shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.nsl-feature .nsl-feature-thumb { aspect-ratio: 622 / 381; background: var(--nsl-line); overflow: hidden; display: block; flex: 0 0 auto; }
.nsl-feature .nsl-feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nsl-feature .nsl-feature-body { padding: 24px 30px 30px; flex: 1 1 auto; }
.nsl-feature h3 { font-size: 45px; line-height: 1.05; margin: 0 0 14px; color: var(--nsl-ink); }
.nsl-feature p { font-size: 22px; line-height: 1.2; margin: 0 0 18px; }
.nsl-feature .nsl-readmore { color: var(--nsl-navy); font-size: 18px; }

/* alt section background */
.nsl-section--alt { background: var(--nsl-cream-soft); }

/* ==========================================================================
   Newsletter footer
   ========================================================================== */
.nsl-footer { background: var(--nsl-cream); padding: 48px 0 30px; color: var(--nsl-navy); }

/* Row 1 — newsletter: label left, email + subscribe right */
.nsl-footer-news {
  display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.nsl-newsletter-heading { font-size: 30px; color: var(--nsl-navy); font-weight: 800; margin: 0; flex: 0 0 auto; }
.nsl-newsletter-form { display: flex; flex: 1 1 auto; max-width: 680px; min-width: 320px; box-shadow: 0 4px 6px rgba(0,0,0,.10); border-radius: 10px; }
.nsl-newsletter-form input[type="email"] {
  flex: 1; border: 1.5px solid var(--nsl-navy-deep); border-right: 0;
  border-radius: 10px 0 0 10px; padding: 16px 22px; font-family: var(--nsl-serif);
  font-size: 19px; color: var(--nsl-navy); outline: 0; background: #fff;
}
.nsl-newsletter-form button {
  border: 0; background: var(--nsl-navy-deep); color: #fff;
  font-family: var(--nsl-serif); font-weight: 700; font-size: 21px; letter-spacing: 1px;
  padding: 0 40px; border-radius: 0 10px 10px 0; cursor: pointer;
}
.nsl-news-msg { margin: 10px 0 0; color: var(--nsl-navy); font-weight: 600; }

/* Row 2 — logo | links | back to top */
.nsl-footer-mid {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 30px 0 26px;
}
.nsl-brand--footer { width: 300px; min-height: 128px; margin: 0; }
.nsl-brand--footer img { max-height: 128px; }
.nsl-footer-links { font-size: 28px; font-weight: 700; color: var(--nsl-navy); display: flex; align-items: center; gap: 16px; }
.nsl-footer-links a { color: var(--nsl-navy); }
.nsl-footer-links .nsl-sep { color: var(--nsl-navy); }
.nsl-footer-menu { display: flex; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.nsl-backtotop { font-size: 22px; font-weight: 500; color: var(--nsl-navy); white-space: nowrap; }

/* Divider + copyright */
.nsl-footer-rule { border: 0; border-top: 1.5px solid var(--nsl-navy); margin: 0 0 22px; }
.nsl-footer-bottom { font-size: 18px; font-weight: 700; color: var(--nsl-navy); text-align: center; }
.nsl-footer-bottom a { color: var(--nsl-navy); }

/* ==========================================================================
   Single / archive / generic content
   ========================================================================== */
/* ===== Section / category list (Figma section page) ===== */
.nsl-list { display: flex; flex-direction: column; }
.nsl-list-item {
  display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start;
  padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid #c7c7c7;
}
.nsl-list-item:last-child { border-bottom: 0; margin-bottom: 0; }
.nsl-infeed-ad { margin: 4px 0 28px; }
.nsl-infeed-ad .nsl-widget { width: 100%; }
.nsl-infeed-ad img { width: 100%; height: auto; display: block; border-radius: var(--nsl-radius); }
.nsl-list-thumb {
  display: block; width: 320px; aspect-ratio: 5 / 4;
  border-radius: var(--nsl-radius); overflow: hidden; background: var(--nsl-line);
}
.nsl-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nsl-list-title {
  font-size: 36px; line-height: 1.1; margin: 0 0 10px; color: #000;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nsl-list-title a { color: inherit; }
.nsl-list-title a:hover { text-decoration: underline; }
.nsl-list-excerpt {
  font-size: 20px; line-height: 1.45; margin: 0; color: #333;
}

/* ===== Single article page ===== */
.nsl-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 40px; row-gap: 0; align-items: start; }
.nsl-article-main { min-width: 0; grid-column: 1; grid-row: 2; }
.nsl-article-title { grid-column: 1; grid-row: 1; max-width: 860px; font-family: var(--nsl-serif); font-weight: 700; font-size: 44px; line-height: 1.08; margin: 0 0 16px; color: #000; }
.nsl-article { max-width: 860px; margin: 0; }
.nsl-dek { font-size: 21px; line-height: 1.4; color: #555; margin: 0 0 24px; }
.nsl-article-figure { margin: 0; }
.nsl-article-figure img { width: 100%; height: auto; display: block; border-radius: var(--nsl-radius); }
.nsl-article-caption { font-size: 19px; font-family: var(--nsl-serif); color: #555; margin: 10px 2px 0; line-height: 1.4; }
.nsl-byline { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.nsl-byline-author { font-family: var(--nsl-serif); font-size: 19px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #000; }
.nsl-byline-date { font-family: var(--nsl-serif); font-size: 20px; color: #666; }
.nsl-article-rule { border: 0; border-top: 2px solid #c7c7c7; margin: 10px 0; }
.nsl-article .entry-content { font-family: var(--nsl-serif); font-size: 22px; line-height: 1.5; color: #000; }
.nsl-article .entry-content p { margin: 0 0 1.3em; }
.nsl-article .entry-content img { max-width: 100%; height: auto; border-radius: var(--nsl-radius); margin: 1em 0; }
.nsl-article .entry-content a { color: var(--nsl-navy); text-decoration: underline; }
.nsl-tags { margin-top: 24px; font-size: 14px; color: #666; }

/* desktop ad rail */
.nsl-article-sidebar { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 20px; }
.nsl-article-sidebar img { width: 100%; height: auto; display: block; border-radius: var(--nsl-radius); }
.nsl-article-sidebar .nsl-widget { width: 100%; }

/* comment form */
.nsl-comments { max-width: 860px; margin: 44px 0 0; }
.nsl-comments-formtitle { font-size: 20px; font-weight: 700; color: var(--nsl-navy); margin: 0 0 14px; }
.nsl-comments .comment-form p { margin: 0 0 12px; }
.nsl-comments textarea,
.nsl-comments input[type="text"],
.nsl-comments input[type="email"],
.nsl-comments input[type="url"] {
  width: 100%; border: 1px solid #c7c7c7; border-radius: 6px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: #222; background: #fff; box-sizing: border-box;
}
.nsl-comments textarea { min-height: 96px; resize: vertical; }
.nsl-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #555; }
.nsl-comments .comment-form-cookies-consent input { width: auto; }
.nsl-comments .comment-form-cookies-consent label { margin: 0; }
.nsl-comment-submit {
  background: var(--nsl-navy); color: #fff; border: 0; border-radius: 6px; padding: 12px 30px;
  font-weight: 700; letter-spacing: .5px; cursor: pointer; font-size: 15px;
}
.nsl-comment-submit:hover { opacity: .92; }

/* comment list */
.nsl-comments-title { font-size: 22px; font-weight: 700; margin: 40px 0 18px; color: #000; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 14px 0 0 28px; padding: 0; }
.nsl-comment { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid #ececec; }
.nsl-comment-head { font-size: 14px; margin: 0 0 6px; }
.nsl-comment-author { font-weight: 700; color: #000; }
.nsl-comment-sep { color: #aaa; margin: 0 6px; }
.nsl-comment-time { color: #888; }
.nsl-comment-moderation { font-size: 13px; color: #b00; margin: 0 0 6px; }
.nsl-comment-body { font-size: 15px; line-height: 1.5; color: #333; }
.nsl-comment-body p { margin: 0 0 .6em; }
.nsl-comment-reply { margin-top: 6px; font-size: 13px; font-weight: 700; }
.nsl-comment-reply a { color: var(--nsl-navy); }

/* more from */
.nsl-morefrom { margin: 56px 0 0; }
.nsl-morefrom-title { font-size: 30px; margin: 0 0 24px; color: #000; }
.nsl-morefrom-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }

.nsl-pagination { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 40px; }
.nsl-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  background: var(--nsl-cream); color: var(--nsl-navy);
  font-size: 15px; font-weight: 600; line-height: 1; border: 0; border-radius: 6px; text-decoration: none;
}
.nsl-pagination a.page-numbers:hover { background: #ece6c4; }
.nsl-pagination .current { background: var(--nsl-navy); color: #fff; }
.nsl-pagination .dots { background: none; color: #777; min-width: 0; padding: 0 2px; }
.nsl-pagination .prev, .nsl-pagination .next {
  background: none; color: var(--nsl-navy); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; padding: 0 6px;
}
.nsl-pagination .prev:hover, .nsl-pagination .next:hover { background: none; text-decoration: underline; }

.nsl-noresults { padding: 60px 0; text-align: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: tighten the desktop grids */
@media (max-width: 1100px) {
  .nsl-hero { grid-template-columns: 1fr 1fr; }
  .nsl-rail { grid-column: 1 / -1; }
  .nsl-grid { grid-template-columns: repeat(2, 1fr); }
  .nsl-mixed { grid-template-columns: 1fr 1fr; }
  .nsl-mixed .nsl-feature { grid-column: 1 / -1; order: -1; }
  .nsl-section-title { font-size: 44px; }
  .nsl-feature h3 { font-size: 34px; }
}

/* Switch to the mobile header + single-column layout */
@media (max-width: 900px) {
  .nsl-header-desktop { display: none; }
  .nsl-header-mobile { display: block; }
  .nsl-header-mobile .custom-logo { max-height: 54px; width: auto; height: auto; }

  /* Page fills the screen on mobile: no grey gutters / shadow */
  body { background: var(--nsl-white); }
  .nsl-site { box-shadow: none; max-width: 100%; }

  .nsl-container { padding: 0 14px; }
  .nsl-topbar { padding: 14px 0 8px; }
  .nsl-subbanner { padding: 8px 0 6px; }
  .nsl-main > .nsl-hero-section { padding-top: 8px; }
  .nsl-ads { gap: 8px; }

  /* Single-column stacked stories everywhere */
  .nsl-hero { grid-template-columns: 1fr; gap: 24px; }
  .nsl-hero-feature { display: none; } /* big featured story is desktop-only */
  .nsl-hero-feature h2 { font-size: 32px; }
  .nsl-grid { grid-template-columns: 1fr; gap: 15px; }
  .nsl-mixed { grid-template-columns: 1fr; gap: 15px; }
  .nsl-mixed .nsl-feature { order: 0; }
  .nsl-mixed-col { gap: 15px; }
  .nsl-hero-stack { gap: 15px; }

  /* Mini cards become full-width stacked story cards */
  .nsl-mini { grid-template-columns: 1fr; box-shadow: none; padding: 0; gap: 12px; }
  .nsl-mini .nsl-mini-thumb { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .nsl-mini h3 { font-size: 28px; }
  .nsl-mini p { font-size: 19px; }

  /* Cards: flatten to image + text, dividers between */
  .nsl-card, .nsl-feature {
    box-shadow: none; border-radius: 0; background: transparent;
    padding: 0;
  }
  .nsl-card h3, .nsl-card p { min-height: 0; }
  .nsl-mixed-col .nsl-card { flex: 0 0 auto; }
  .nsl-card .nsl-card-thumb, .nsl-feature .nsl-feature-thumb { border-radius: var(--nsl-radius); }
  .nsl-card .nsl-card-body { padding: 14px 0 0; }
  .nsl-card h3 { font-size: 28px; }
  .nsl-card p { font-size: 19px; }
  .nsl-feature .nsl-feature-body { padding: 14px 0 0; }
  .nsl-feature h3 { font-size: 30px; }
  .nsl-feature p { font-size: 20px; }
  .nsl-readmore { display: none; }

  /* Figma divider: short centered line below every post */
  .nsl-mini::after, .nsl-card::after, .nsl-feature::after {
    content: ""; display: block;
    width: 65%; max-width: 300px; height: 2px; background: #c7c7c7;
    margin-left: auto; margin-right: auto;
  }
  .nsl-card::after, .nsl-feature::after { margin-top: 14px; }
  .nsl-mini::after { margin-top: 2px; }

  /* Section list: stack image on top, short centered divider below */
  .nsl-list-item {
    grid-template-columns: 1fr; gap: 12px; align-items: stretch;
    border-bottom: 0; padding: 0; margin: 0 0 15px;
  }
  .nsl-list-thumb { width: 100%; aspect-ratio: 16 / 9; }
  .nsl-list-title { font-size: 26px; }
  .nsl-list-excerpt { font-size: 18px; }
  .nsl-list-item::after {
    content: ""; display: block; grid-column: 1 / -1;
    width: 65%; max-width: 300px; height: 2px; background: #c7c7c7; margin: 13px auto 0;
  }
  .nsl-list-item:last-child::after { display: none; }

  /* Centered section titles, like the comp */
  .nsl-section-head { justify-content: center; margin-bottom: 12px; }
  .nsl-section-head .nsl-rule { display: none; }
  .nsl-section-title { font-size: 40px; text-align: center; white-space: normal; }
  .nsl-divider { display: none; }

  /* Footer — compact horizontal layout, matching the mobile Figma */
  .nsl-footer { padding: 22px 0 16px; }
  .nsl-footer-news { gap: 10px; align-items: center; flex-wrap: nowrap; }
  .nsl-newsletter-heading { font-size: 14px; line-height: 1.15; flex: 1 1 38%; }
  .nsl-newsletter-form { min-width: 0; flex: 1 1 58%; max-width: none; box-shadow: none; }
  .nsl-newsletter-form input[type="email"] { padding: 9px 12px; font-size: 12px; min-width: 0; }
  .nsl-newsletter-form button { padding: 0 14px; font-size: 12px; letter-spacing: .5px; flex: 0 0 auto; white-space: nowrap; }
  .nsl-footer-mid { flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin: 16px 0; }
  .nsl-footer-mid .custom-logo { max-height: 44px; width: auto; height: auto; }
  .nsl-footer-links { font-size: 13px; gap: 7px; }
  .nsl-footer-menu { gap: 7px; }
  .nsl-backtotop { font-size: 12px; }
  .nsl-footer-rule { margin: 0 0 12px; }
  .nsl-footer-bottom { text-align: center; font-size: 10px; }
}

/* Phones */
@media (max-width: 560px) {
  .nsl-section { padding: 14px 0; }
  .nsl-section-title { font-size: 34px; }
  .nsl-hero-feature h2 { font-size: 28px; }
  .nsl-article-title { font-size: 33px; max-width: 100%; }
  .nsl-article-layout { grid-template-columns: 1fr; gap: 0; }
  .nsl-article-title, .nsl-article-main, .nsl-article-sidebar { grid-column: 1; grid-row: auto; }
  .nsl-article-sidebar { display: none; }
  .nsl-article, .nsl-comments { max-width: 100%; }
  .nsl-dek { font-size: 17px; margin-bottom: 18px; }
  .nsl-article .entry-content { font-size: 20px; }
  .nsl-morefrom { margin-top: 40px; }
  .nsl-morefrom-title { font-size: 24px; margin-bottom: 18px; }
  .nsl-morefrom-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  /* keep More-from items as compact cards (not flattened list rows) */
  .nsl-morefrom .nsl-card { box-shadow: var(--nsl-card-shadow); border-radius: var(--nsl-radius); background: #fff; padding: 8px 8px 0; }
  .nsl-morefrom .nsl-card::after { display: none; }
  .nsl-morefrom .nsl-card .nsl-card-body { padding: 12px 10px 16px; }
  .nsl-morefrom .nsl-card h3 { font-size: 20px; min-height: 0; -webkit-line-clamp: 3; }
  .nsl-morefrom .nsl-card p { font-size: 16px; min-height: 0; -webkit-line-clamp: 3; }
}
