/* NatureTech magazine-hub — v2 (Sprint 6).
   Source: design/v2/magazine-hub/index.html style block.
   Removed body/global resets (handled by tokens.css/main.css).
   Top-level selectors namespaced under .nt-magazine-hub (added by the matching
   template) so we don't collide with .hero / .card / .eyebrow etc. used
   elsewhere in the theme. */


:root{
  --purple:#2D1B4E; --purple-deep:#1E1236; --purple-bright:#6B3FA0;
  --green:#2D6A4F; --green-deep:#1E4D38;
  --gold:#E6B149; --gold-deep:#C4922A;
  --cream:#F7F3E9; --lavender:#F0EBF7; --canvas:#FAF9FC; --ink:#1A1628;
  --heading:'IBM Plex Sans Hebrew', sans-serif;
  --body:'Heebo', sans-serif;
  --mono:'IBM Plex Mono', monospace;
}


.nt-magazine-hub h1, .nt-magazine-hub h2, .nt-magazine-hub h3, .nt-magazine-hub h4{font-family:var(--heading);font-weight:600;line-height:1.2;color:var(--ink)}
.nt-magazine-hub a{color:inherit;text-decoration:none}
.nt-magazine-hub .wrap{max-width:1920px;margin:0 auto;padding:0 32px}
.nt-magazine-hub .eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:0.12em;text-transform:uppercase;font-weight:500;color:var(--gold-deep)}
.nt-magazine-hub .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 32px;border-radius:999px;font-family:var(--body);font-weight:500;font-size:15px;transition:transform .15s ease,background .15s ease,color .15s ease;cursor:pointer;border:none}
.nt-magazine-hub .btn-gold{background:var(--gold);color:var(--ink)}
.nt-magazine-hub .btn-gold:hover{background:var(--gold-deep);color:#fff}
.nt-magazine-hub .btn-outline{background:transparent;color:var(--ink);border:1.5px solid var(--ink)}
.nt-magazine-hub .btn-outline:hover{background:var(--ink);color:#fff}
.nt-magazine-hub .btn-outline-white{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.7)}
.nt-magazine-hub .btn-outline-white:hover{background:#fff;color:var(--purple-deep)}
.nt-magazine-hub .tag{display:inline-block;font-family:var(--mono);font-size:11px;letter-spacing:0.1em;text-transform:uppercase;padding:4px 12px;border-radius:999px;background:var(--lavender);color:var(--purple-bright);font-weight:500}
/* ============ 1. MASTHEAD ============ */
.nt-magazine-hub .masthead{background:linear-gradient(135deg,var(--purple-deep) 0%,var(--purple) 55%,var(--green-deep) 100%);color:#fff;padding:120px 0 140px;position:relative;overflow:hidden}
.nt-magazine-hub .masthead::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%, rgba(230,177,73,.15), transparent 55%);pointer-events:none}
.nt-magazine-hub .masthead .wrap{position:relative;z-index:2;text-align:center}
.nt-magazine-hub .masthead .eyebrow{color:var(--gold);margin-bottom:32px;display:inline-block}
.nt-magazine-hub .masthead h1.tagline{font-family:var(--heading);font-size:22px;font-weight:400;color:rgba(255,255,255,.85);margin-bottom:24px;letter-spacing:.01em}
.nt-magazine-hub .masthead h2.headline{font-family:var(--heading);font-size:clamp(42px,6vw,78px);font-weight:700;color:#fff;max-width:900px;margin:0 auto 32px;line-height:1.1}
.nt-magazine-hub .masthead h2.headline em{color:var(--gold);font-style:normal}
.nt-magazine-hub .masthead p.sub{font-size:18px;color:rgba(255,255,255,.75);max-width:620px;margin:0 auto;font-weight:300}

/* ============ 2. FEATURED ============ */
.nt-magazine-hub .featured{background:var(--cream);padding:0}
.nt-magazine-hub .featured-grid{display:grid;grid-template-columns:1fr 1fr;min-height:560px}
.nt-magazine-hub .featured-img{background:linear-gradient(45deg,var(--green),var(--green-deep));display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.5);font-family:var(--mono);font-size:13px;letter-spacing:.1em}
.nt-magazine-hub .featured-body{padding:80px 72px;display:flex;flex-direction:column;justify-content:center;background:var(--cream)}
.nt-magazine-hub .featured-body .eyebrow{margin-bottom:24px}
.nt-magazine-hub .featured-body h3{font-size:clamp(32px,3.5vw,46px);font-weight:600;margin-bottom:24px;color:var(--ink);line-height:1.15}
.nt-magazine-hub .featured-body p.excerpt{font-size:17px;color:#555;margin-bottom:32px;line-height:1.7}
.nt-magazine-hub .featured-meta{font-family:var(--mono);font-size:12px;color:#888;letter-spacing:.08em;margin-bottom:32px;text-transform:uppercase}
.nt-magazine-hub .featured-meta span.cat{color:var(--green);font-weight:500}
.nt-magazine-hub .featured-body .btn{align-self:flex-start}
.nt-magazine-hub .ph-text{color:#aaa;font-family:var(--mono);font-size:13px;font-style:normal}

/* ============ 3. FOUR CATEGORIES ============ */
.nt-magazine-hub .categories{background:#fff;padding:120px 0 100px}
.nt-magazine-hub .categories .section-head{text-align:center;max-width:720px;margin:0 auto 72px}
.nt-magazine-hub .categories .eyebrow{margin-bottom:16px;display:inline-block}
.nt-magazine-hub .categories h2{font-size:clamp(36px,4.5vw,56px);margin-bottom:20px;line-height:1.15}
.nt-magazine-hub .categories h2 em{color:var(--gold-deep);font-style:normal}
.nt-magazine-hub .categories p.intro{font-size:18px;color:#666}
/* Tabs */
.nt-magazine-hub .tabs{display:flex;justify-content:center;gap:0;border-bottom:1px solid rgba(26,22,40,.1);margin-bottom:48px;flex-wrap:wrap}
.nt-magazine-hub .tab{background:none;border:none;padding:20px 32px;font-family:var(--heading);font-size:18px;font-weight:500;color:#888;cursor:pointer;position:relative;transition:color .2s ease;border-bottom:3px solid transparent;margin-bottom:-1px}
.nt-magazine-hub .tab:hover{color:var(--ink)}
.nt-magazine-hub .tab.active{color:var(--ink);border-bottom-color:var(--gold);font-weight:600}
.nt-magazine-hub .tab-panel{animation:fadeIn .25s ease}
.nt-magazine-hub .tab-panel.hidden{display:none}
@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.nt-magazine-hub .panel-desc{text-align:center;font-size:17px;color:#666;max-width:620px;margin:0 auto 32px;font-weight:300}
.nt-magazine-hub .subcats{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:56px}
.nt-magazine-hub .subcat{background:transparent;border:1.5px solid rgba(26,22,40,.15);padding:10px 22px;border-radius:999px;font-family:var(--body);font-size:14px;font-weight:500;color:#555;cursor:pointer;transition:all .18s ease}
.nt-magazine-hub .subcat:hover{border-color:var(--ink);color:var(--ink)}
.nt-magazine-hub .subcat.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.nt-magazine-hub .tab-articles{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-bottom:48px}
.nt-magazine-hub .tab-articles .art-card{background:#fff;border:1px solid rgba(26,22,40,.08);border-radius:14px;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.nt-magazine-hub .tab-articles .art-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(26,22,40,.08)}
.nt-magazine-hub .tab-articles .art-img{aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.55);font-family:var(--mono);font-size:12px;letter-spacing:.08em}
.nt-magazine-hub .tab-articles .art-body{padding:22px 24px 24px}
.nt-magazine-hub .tab-articles h4{font-size:19px;font-weight:600;margin-bottom:10px;line-height:1.3}
.nt-magazine-hub .panel-cta{text-align:center}
.nt-magazine-hub .panel-cta .cat-name{font-weight:600;margin:0 4px}

/* ============ 4. LATEST ARTICLES ============ */
.nt-magazine-hub .latest{background:var(--lavender);padding:120px 0}
.nt-magazine-hub .latest .section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:56px;flex-wrap:wrap;gap:24px}
.nt-magazine-hub .latest .section-head .eyebrow{margin-bottom:12px;display:block;color:var(--purple-bright)}
.nt-magazine-hub .latest .section-head h2{font-size:clamp(36px,4.5vw,52px);max-width:560px}
.nt-magazine-hub .latest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.nt-magazine-hub .art-card{background:#fff;border-radius:14px;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.nt-magazine-hub .art-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(26,22,40,.08)}
.nt-magazine-hub .art-card .art-img{aspect-ratio:16/10;background:linear-gradient(135deg,#D5C9E8,#B39DD8);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.6);font-family:var(--mono);font-size:12px;letter-spacing:.08em}
.nt-magazine-hub .art-card .art-img.v2{background:linear-gradient(135deg,#C9D9CF,#8FAE9C)}
.nt-magazine-hub .art-card .art-img.v3{background:linear-gradient(135deg,#F0D9A0,#D9AC5E)}
.nt-magazine-hub .art-card .art-img.v4{background:linear-gradient(135deg,#BFAEC9,#8F7AA6)}
.nt-magazine-hub .art-card .art-img.v5{background:linear-gradient(135deg,#D0E0D5,#7FA28C)}
.nt-magazine-hub .art-card .art-img.v6{background:linear-gradient(135deg,#E8DCC0,#C9A870)}
.nt-magazine-hub .art-card .art-body{padding:24px 28px 28px}
.nt-magazine-hub .art-card .tag{margin-bottom:12px}
.nt-magazine-hub .art-card h4{font-size:20px;font-weight:600;margin-bottom:12px;line-height:1.3;color:var(--ink)}
.nt-magazine-hub .art-card .art-meta{font-family:var(--mono);font-size:11px;color:#888;letter-spacing:.08em;text-transform:uppercase}
.nt-magazine-hub .latest-cta{text-align:center;margin-top:64px}

/* ============ 4.5 VIDEOS CAROUSEL ============ */
.nt-magazine-hub .videos{background:#fff;padding:120px 0 100px;overflow:hidden}
.nt-magazine-hub .videos .section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:48px;flex-wrap:wrap;gap:24px;max-width:1920px;margin-left:auto;margin-right:auto;padding:0 32px}
.nt-magazine-hub .videos .section-head h2{font-size:clamp(36px,4.5vw,52px);max-width:560px}
.nt-magazine-hub .videos .section-head .eyebrow{margin-bottom:12px;display:block;color:var(--gold-deep)}
.nt-magazine-hub .videos .head-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.nt-magazine-hub .carousel-controls{display:flex;gap:8px}
.nt-magazine-hub .carousel-btn{width:48px;height:48px;border-radius:999px;border:1.5px solid rgba(26,22,40,.18);background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .18s ease;color:var(--ink)}
.nt-magazine-hub .carousel-btn:hover{border-color:var(--ink);background:var(--ink);color:#fff}
.nt-magazine-hub .carousel-btn:disabled{opacity:.35;cursor:not-allowed}
.nt-magazine-hub .carousel-btn:disabled:hover{background:#fff;color:var(--ink);border-color:rgba(26,22,40,.18)}
.nt-magazine-hub .carousel-btn svg{width:18px;height:18px}
.nt-magazine-hub .video-track-wrap{overflow:hidden;padding:8px 0;width:100%}
.nt-magazine-hub .video-track{display:flex;gap:24px;transition:transform .45s cubic-bezier(.4,.0,.2,1);padding:0 32px;will-change:transform}
.nt-magazine-hub .video-card{flex:0 0 calc((100% - 32px*2 - 24px*2) / 3);min-width:280px;background:#fff;border-radius:14px;overflow:hidden;border:1px solid rgba(26,22,40,.08);transition:transform .2s ease,box-shadow .2s ease;cursor:pointer}
.nt-magazine-hub .video-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(26,22,40,.1)}
.nt-magazine-hub .video-thumb{aspect-ratio:16/9;background-size:cover;background-position:center;position:relative;display:flex;align-items:center;justify-content:center}
.nt-magazine-hub .video-thumb::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 50%,rgba(0,0,0,.6) 100%);pointer-events:none}
.nt-magazine-hub .video-play{position:relative;z-index:2;width:64px;height:64px;border-radius:999px;background:rgba(255,255,255,.95);display:flex;align-items:center;justify-content:center;transition:transform .2s ease}
.nt-magazine-hub .video-card:hover .video-play{transform:scale(1.1)}
.nt-magazine-hub .video-play svg{width:22px;height:22px;color:var(--ink);margin-right:-2px}
.nt-magazine-hub .video-duration{position:absolute;bottom:12px;left:12px;z-index:3;background:rgba(0,0,0,.78);color:#fff;font-family:var(--mono);font-size:11px;padding:4px 8px;border-radius:4px;letter-spacing:.05em}
.nt-magazine-hub .video-body{padding:20px 22px 22px}
.nt-magazine-hub .video-body .tag{margin-bottom:10px}
.nt-magazine-hub .video-body h4{font-size:17px;font-weight:600;margin-bottom:10px;line-height:1.35;color:var(--ink)}
.nt-magazine-hub .video-meta{font-family:var(--mono);font-size:11px;color:#888;letter-spacing:.06em;text-transform:uppercase}

/* ============ 5. NEWSLETTER ============ */
.nt-magazine-hub .newsletter{background:linear-gradient(135deg,var(--purple-deep) 0%,var(--purple) 55%,var(--green-deep) 100%);color:#fff;padding:120px 0;position:relative;overflow:hidden}
.nt-magazine-hub .newsletter::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%, rgba(230,177,73,.15), transparent 55%);pointer-events:none}
.nt-magazine-hub .newsletter .wrap{position:relative;z-index:2;max-width:780px;text-align:center}
.nt-magazine-hub .newsletter .eyebrow{color:var(--gold);margin-bottom:28px;display:inline-block;font-size:16px;letter-spacing:0.18em}
.nt-magazine-hub .newsletter h2{font-family:var(--heading);font-size:clamp(38px,5vw,64px);color:#fff;margin-bottom:24px;font-weight:600;line-height:1.15}
.nt-magazine-hub .newsletter p.sub{font-size:18px;color:rgba(255,255,255,.8);margin-bottom:48px;font-weight:300}
.nt-magazine-hub .newsletter-form{display:flex;gap:12px;max-width:520px;margin:0 auto;flex-wrap:wrap;justify-content:center}
.nt-magazine-hub .newsletter-form input{flex:1;min-width:240px;padding:18px 28px;border-radius:999px;border:1.5px solid rgba(255,255,255,.25);background:rgba(255,255,255,.05);color:#fff;font-family:var(--body);font-size:17px;outline:none;transition:border-color .2s}
.nt-magazine-hub .newsletter-form input:focus{border-color:var(--gold)}
.nt-magazine-hub .newsletter-form input::placeholder{color:rgba(255,255,255,.5)}
.nt-magazine-hub .newsletter-form .btn{font-size:17px;padding:18px 36px}

.nt-magazine-hub section{position:relative}

@media (max-width:860px){
  .featured-grid{grid-template-columns:1fr}
  .featured-body{padding:56px 32px}
  .tab-articles{grid-template-columns:1fr}
  .latest-grid{grid-template-columns:1fr}
  .masthead{padding:80px 0 100px}
  .wrap{padding:0 20px}
  .tab{padding:16px 18px;font-size:16px}
  .video-card{flex:0 0 80%}
  .videos .section-head{padding:0 20px}
  .video-track{padding:0 20px}
}

/* ============ MAIN + SIDEBAR GRID ============ */
/* Two-column wrapper used by the homepage (below hero), single posts,
   archives, and search. Main is the wider column; aside is a narrow rail.
   Stacks vertically on narrow screens. */
.nt-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 3.5vw, 64px);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(32px, 4vw, 64px);
}
.nt-with-sidebar__main { min-width: 0; }
.nt-with-sidebar__aside { min-width: 0; }

@media (max-width: 1100px) {
  .nt-with-sidebar { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 900px) {
  .nt-with-sidebar { grid-template-columns: 1fr; }
}

/* Inside the wrapper, the inner .container keeps its own gutter so content
   doesn't sit flush against colored section backgrounds (.latest lavender,
   .booklets lavender, etc). The wrapper's gutter is the *viewport*-edge
   gutter; the .container's gutter is the section-edge gutter. Both are
   needed for editorial breathing — keep this empty so we don't over-strip. */

/* ============ SIDEBAR ============ */
.nt-sidebar {
  position: sticky;
  top: clamp(80px, 8vh, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 2.4vw, 40px);
  font-family: var(--font-body);
  font-size: 14px;
}
@media (max-width: 900px) {
  .nt-sidebar { position: static; }
}
.nt-sidebar-section { display: block; }
.nt-sidebar-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* --- Categories list --- */
.nt-sidebar-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nt-sidebar-cat-list li {
  border-bottom: 1px dashed var(--line);
}
.nt-sidebar-cat-list li:last-child { border-bottom: 0; }
.nt-sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.nt-sidebar-cat-list a:hover { color: var(--green); }
.nt-sidebar-cat-name { font-weight: 500; }
.nt-sidebar-cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: .04em;
}

/* --- Recent posts list --- */
.nt-sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nt-sidebar-post {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  text-decoration: none;
  color: var(--ink);
}
.nt-sidebar-post-thumb {
  aspect-ratio: 4/3;
  background: var(--lavender);
  overflow: hidden;
  border-radius: 4px;
}
.nt-sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.nt-sidebar-post:hover .nt-sidebar-post-thumb img {
  transform: scale(1.05);
}
.nt-sidebar-post-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nt-sidebar-post-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}
.nt-sidebar-post-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s var(--ease);
}
.nt-sidebar-post:hover .nt-sidebar-post-title { color: var(--green); }

/* --- Newsletter card --- */
.nt-sidebar-newsletter-card {
  background: var(--lavender);
  border-radius: 8px;
  padding: 24px;
}
.nt-sidebar-newsletter-card .nt-sidebar-title {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 8px;
  color: var(--purple-deep);
}
.nt-sidebar-newsletter-lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.nt-sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nt-sidebar-newsletter-input {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
}
.nt-sidebar-newsletter-input:focus {
  outline: 2px solid var(--purple-bright);
  outline-offset: 1px;
}
.nt-sidebar-newsletter-submit {
  padding: 10px 12px;
  background: var(--purple-deep);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.nt-sidebar-newsletter-submit:hover { background: var(--purple-bright); }

/* ============================================================
   ARCHIVE / PAGE MASTHEAD + BREADCRUMBS
   Used by archive.php (category, tag, author, date), page.php,
   and any template that opens with .nt-mag-masthead.
   ============================================================ */
.nt-mag-masthead {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 55%, var(--green-deep) 100%);
  color: #fff;
  padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.nt-mag-masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(230,177,73,.18), transparent 55%);
  pointer-events: none;
}
.nt-mag-masthead .nt-container { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.nt-mag-masthead .nt-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
  display: inline-block;
}
.nt-mag-masthead-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -.005em;
}
.nt-mag-masthead-lede {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 60ch;
  margin: 0;
  font-weight: 300;
}
.nt-mag-masthead-lede p { margin: 0 0 12px; }
.nt-mag-masthead-lede p:last-child { margin: 0; }

.nt-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin: 0 0 24px;
}
.nt-breadcrumbs a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.nt-breadcrumbs a:hover { color: var(--gold); }
.nt-breadcrumbs span[aria-hidden="true"] { color: rgba(255,255,255,.4); }
.nt-breadcrumbs > span:not([aria-hidden]) { color: #fff; font-weight: 500; }

/* ============================================================
   ARCHIVE GRID (category / tag / author / date)
   ============================================================ */
.nt-mag-archive { padding: clamp(48px, 6vw, 88px) 0; background: var(--canvas, #FAF9FC); }
.nt-mag-archive .container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.nt-mag-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 32px);
  margin: 0 0 clamp(40px, 5vw, 64px);
}
@media (min-width: 980px) { .nt-mag-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .nt-mag-archive-grid { grid-template-columns: 1fr; } }

.nt-mag-pagination {
  display: flex;
  justify-content: center;
  margin: clamp(32px, 4vw, 56px) 0 0;
}
.nt-mag-pagination ul.page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.nt-mag-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line, rgba(26,22,40,.1));
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: all .15s var(--ease);
}
.nt-mag-pagination a.page-numbers:hover {
  background: var(--purple-deep);
  color: #fff;
  border-color: var(--purple-deep);
  transform: translateY(-1px);
}
.nt-mag-pagination .page-numbers.current {
  background: var(--purple-deep);
  color: #fff;
  border-color: var(--purple-deep);
}
.nt-mag-pagination .page-numbers.dots {
  background: transparent;
  border: 0;
  color: var(--ink-muted, #888);
}

.nt-muted { color: var(--ink-muted, #888); font-size: 16px; padding: 32px 0; }

/* ============================================================
   STATIC PAGES (page.php)
   ============================================================ */
.nt-magazine-page-hero {
  width: 100%;
  aspect-ratio: 21/9;
  max-height: 480px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream, #F7F3E9);
}
.nt-magazine-page-body {
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 7vw, 96px);
  background: #fff;
}
.nt-magazine-page-body .container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.nt-page-content {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  min-width: 0;
}
.nt-page-content > * + * { margin-top: 1.4em; }
.nt-page-content h1,
.nt-page-content h2,
.nt-page-content h3,
.nt-page-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.005em;
  margin: 1.8em 0 .5em;
}
.nt-page-content h1 { font-size: clamp(28px, 3vw, 36px); }
.nt-page-content h2 { font-size: clamp(24px, 2.4vw, 30px); }
.nt-page-content h3 { font-size: 22px; }
.nt-page-content h4 { font-size: 18px; }
.nt-page-content p  { font-size: 17px; line-height: 1.85; color: #2a2632; margin: 0 0 1.2em; }
.nt-page-content a  { color: var(--purple-bright); text-decoration: underline; text-underline-offset: 3px; transition: color .15s var(--ease); }
.nt-page-content a:hover { color: var(--purple-deep); }
.nt-page-content ul,
.nt-page-content ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.nt-page-content li { margin: .35em 0; }
.nt-page-content blockquote {
  border-inline-start: 3px solid var(--gold);
  padding: 8px 22px;
  margin: 1.6em 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}
.nt-page-content img,
.nt-page-content figure img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.6em auto;
  box-shadow: 0 2px 12px rgba(26,22,40,.06);
}
.nt-page-content figure { margin: 1.6em 0; }
.nt-page-content figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted, #888);
  text-align: center;
  margin-top: 8px;
  letter-spacing: .04em;
}
.nt-page-pagination { margin-top: 2em; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.nt-page-pagination a { color: var(--purple-bright); text-decoration: none; margin: 0 4px; }

/* ============================================================
   MOBILE POLISH — applied to all magazine surfaces
   - Tighter masthead padding so the gradient strip doesn't eat
     half the viewport on phones.
   - Single-column archive grid below 720px (already in archive
     section, repeated for clarity / no-grid-flicker).
   - Disable hover-lift transforms on touch devices so cards
     don't stick in their hover state after a tap.
   - 44px minimum touch target for icon-sized tap zones.
   ============================================================ */
@media (max-width: 640px) {
  .nt-mag-masthead { padding: clamp(40px, 12vw, 64px) 0 clamp(28px, 8vw, 40px); }
  .nt-mag-masthead-title { font-size: clamp(26px, 7vw, 36px); }
  .nt-mag-masthead-lede  { font-size: 14px; }
  .nt-breadcrumbs        { font-size: 12px; gap: 6px; }

  .nt-magazine-page-hero { aspect-ratio: 4/3; max-height: 320px; }
  .nt-magazine-page-body { padding: 40px 0 56px; }

  .nt-mag-card-body  { padding: 18px 18px 20px; gap: 8px; }
  .nt-mag-card-title { font-size: 18px; }

  .nt-mag-pagination .page-numbers { min-width: 38px; height: 38px; font-size: 13px; }
}

/* Touch devices: drop hover lifts so cards don't stay raised after tap. */
@media (hover: none) {
  .nt-mag-card:hover { transform: none; box-shadow: none; }
  .nt-mag-card:hover .nt-mag-card-img { transform: none; }
  .nt-mag-card:active { transform: scale(.99); }
}

/* Always-on: prevent body scroll-bounce during nav drawer open + safer
   iOS-style font-rendering so Hebrew on Retina screens stays crisp. */
.nt-magazine-hub, .nt-magazine-article, .nt-magazine-page {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   ARTICLE CARDS (.nt-mag-card)
   Used by archive.php, search.php, anywhere we need a generic
   article card. The hero/feature variants on the homepage are
   styled separately by their own section CSS.
   ============================================================ */
.nt-mag-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(26,22,40,.06);
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nt-mag-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(26,22,40,.08);
}
.nt-mag-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--cream, #F7F3E9);
}
.nt-mag-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.nt-mag-card:hover .nt-mag-card-img { transform: scale(1.04); }
.nt-mag-card--no-thumb .nt-mag-card-media {
  background: linear-gradient(135deg, var(--lavender, #F0EBF7), var(--cream, #F7F3E9));
}
.nt-mag-card .nt-block--green {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45,106,79,.18), rgba(107,63,160,.12));
}
.nt-mag-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.nt-mag-card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-bright);
  font-weight: 500;
  text-decoration: none;
  align-self: flex-start;
  transition: color .15s var(--ease);
}
.nt-mag-card-cat:hover { color: var(--purple-deep); }
.nt-mag-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
  letter-spacing: -.005em;
}
.nt-mag-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.nt-mag-card-title a:hover { color: var(--purple-bright); }
.nt-mag-card-lede {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted, #5b5670);
  margin: 0;
}
.nt-mag-card-meta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted, #888);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(26,22,40,.06);
}
.nt-mag-card-meta time { font-feature-settings: "tnum" 1; }

/* Hero variant — used for the first card on archives etc. */
.nt-mag-card--hero { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .nt-mag-card--hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; }
  .nt-mag-card--hero .nt-mag-card-media { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .nt-mag-card--hero .nt-mag-card-body  { padding: clamp(28px, 3vw, 44px); justify-content: center; gap: 14px; }
  .nt-mag-card--hero .nt-mag-card-title { font-size: clamp(24px, 2.4vw, 32px); }
  .nt-mag-card--hero .nt-mag-card-lede  { font-size: 15px; }
}
