/* ==========================================================================
   Nayi Raah Foundation — site design system
   Premium editorial: large type, generous space, navy + blue from the logo.
   Written from scratch; shares nothing with the old template.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink:            #111B3A;
  --ink-soft:       #3A4665;
  --ink-muted:      #6B7694;
  --accent:         #2F62E0;
  --accent-deep:    #1B3FA8;
  --accent-soft:    #EAF0FE;
  --gold:           #F2B138;
  --paper:          #FFFFFF;
  --paper-tint:     #F6F8FD;
  --paper-blue:     #EEF3FC;
  --line:           rgba(17, 27, 58, .10);
  --line-strong:    rgba(17, 27, 58, .18);

  --shadow-sm: 0 1px 2px rgba(17,27,58,.06), 0 2px 8px rgba(17,27,58,.04);
  --shadow-md: 0 4px 12px rgba(17,27,58,.06), 0 12px 32px rgba(17,27,58,.07);
  --shadow-lg: 0 8px 24px rgba(17,27,58,.08), 0 28px 64px rgba(17,27,58,.10);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --shell: 1200px;
  --shell-narrow: 820px;
  --gutter: clamp(20px, 5vw, 48px);

  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- type scale ---------- */
.display   { font-size: clamp(2.6rem, 6.2vw, 4.6rem); letter-spacing: -.035em; }
.h1        { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.03em; }
.h2        { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.025em; }
.h3        { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead      { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); line-height: 1.6; }
.small     { font-size: .875rem; }

/* An italic serif phrase inside a heading — the editorial signature */
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.accent-text { color: var(--accent); }

/* eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: currentColor; opacity: .5; }

/* ---------- layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell-narrow { max-width: var(--shell-narrow); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--tint { background: var(--paper-tint); }
.section--blue { background: var(--paper-blue); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.76); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .lead { color: rgba(255,255,255,.72); }
.section--ink .eyebrow { color: #8FB3FF; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin: .7rem 0 .9rem; }

.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } }
@media (min-width: 900px) { .split--reverse > :first-child { order: 2; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1em; height: 1em; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(47,98,224,.28); }
.btn--primary:hover { background: var(--accent-deep); box-shadow: 0 10px 28px rgba(47,98,224,.34); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #0A1230; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: .62rem 1.15rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: var(--accent); font-size: .95rem;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(17,27,58,.05); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: 82px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.nr-logo { height: 52px; width: auto; }
.nr-logo-img { height: 46px; width: auto; }
.site-header .nr-logo { height: 58px; margin-block: -6px; }

.nav { margin-left: auto; display: none; align-items: center; gap: 2rem; }
@media (min-width: 1040px) { .nav { display: flex; } }
.nav a {
  position: relative; font-size: .93rem; font-weight: 600; color: var(--ink-soft);
  transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: none; align-items: center; gap: .6rem; margin-left: 1rem; }
@media (min-width: 1040px) { .header-actions { display: flex; } }

.nav-toggle {
  margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 12px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 12px;
}
@media (min-width: 1040px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 82px 0 0; z-index: 55;
  background: var(--paper);
  padding: 2rem var(--gutter) 3rem;
  overflow-y: auto;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1040px) { .mobile-nav { display: none; } }
.mobile-nav a.mobile-link {
  display: block; padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em;
}
.mobile-nav .btn-row { margin-top: 2rem; }
.mobile-nav .btn { flex: 1 1 auto; }
body.nav-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(58% 46% at 78% 8%, rgba(47,98,224,.13), transparent 70%),
    radial-gradient(46% 40% at 6% 78%, rgba(242,177,56,.10), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 100px); }
.hero .display { margin-bottom: 1.1rem; }
.hero .lead { max-width: 34rem; margin-bottom: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.6rem; }
.hero__meta div strong { display: block; font-size: 1.6rem; color: var(--ink); font-weight: 800; letter-spacing: -.03em; }
.hero__meta div span { font-size: .82rem; color: var(--ink-muted); }

.hero__art { position: relative; }
.hero__art-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--paper-blue); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero__art-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; right: -18px; bottom: 34px;
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1.25rem; border-radius: var(--r-md);
  background: #fff; box-shadow: var(--shadow-md);
}
.hero__badge i {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-style: normal; font-weight: 800;
}
.hero__badge strong { display: block; color: var(--ink); font-size: .95rem; }
.hero__badge span { font-size: .78rem; color: var(--ink-muted); }

/* ---------- cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.4rem;
  border-radius: 15px; background: var(--accent-soft); color: var(--accent);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.card p { font-size: .95rem; color: var(--ink-muted); }
.card__foot { margin-top: auto; padding-top: 1.4rem; }

/* numbered card */
.card--step .card__num {
  font-family: var(--serif); font-size: 2.6rem; line-height: 1;
  color: var(--accent); opacity: .30; margin-bottom: .8rem;
}

/* program card with image */
.program {
  overflow: hidden; padding: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.program__media { aspect-ratio: 16 / 10; background: var(--paper-blue); overflow: hidden; }
.program__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.program:hover .program__media img { transform: scale(1.05); }
.program__body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; flex: 1; }
.program__tag {
  align-self: flex-start; margin-bottom: .8rem; padding: .3rem .75rem;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.program__body h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.program__body p { font-size: .93rem; color: var(--ink-muted); }

/* ---------- stats ---------- */
.stat { text-align: center; padding: clamp(20px, 2.5vw, 28px) 1rem; }
.stat strong {
  display: block; font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 800;
  color: var(--ink); letter-spacing: -.04em; line-height: 1;
}
.section--ink .stat strong { color: #fff; }
.stat span { display: block; margin-top: .6rem; font-size: .85rem; color: var(--ink-muted); letter-spacing: .02em; }
.section--ink .stat span { color: rgba(255,255,255,.6); }
.stat-row { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink .stat-row { border-color: rgba(255,255,255,.14); }

/* ---------- quote / stories ---------- */
.quote {
  display: flex; flex-direction: column; gap: 1.4rem;
  padding: clamp(26px, 3vw, 38px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
}
.quote__mark { font-family: var(--serif); font-size: 3rem; line-height: .6; color: var(--accent); opacity: .35; }
.quote p { font-size: 1.02rem; color: var(--ink-soft); }
.quote__by { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.quote__by img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote__by strong { display: block; color: var(--ink); font-size: .95rem; }
.quote__by span { font-size: .82rem; color: var(--ink-muted); }

/* ---------- people ---------- */
.person { text-align: left; }
.person__photo {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper-blue); margin-bottom: 1.1rem;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.person:hover .person__photo img { transform: scale(1.05); }
.person h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.person span { font-size: .87rem; color: var(--ink-muted); }
.person__social { display: flex; gap: .5rem; margin-top: .8rem; }
.person__social a {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--paper-tint); color: var(--ink-muted); transition: background .2s, color .2s;
}
.person__social a:hover { background: var(--accent); color: #fff; }
.person__social svg { width: 15px; height: 15px; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  aspect-ratio: 4/3; background: var(--paper-blue);
}
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(17,27,58,.82));
  color: #fff; font-size: .85rem; font-weight: 600;
}

/* ---------- certificates ---------- */
.cert {
  overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cert:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cert__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--line);
}
.cert__head h3 { font-size: 1rem; }
.cert__media { aspect-ratio: 4/3; background: var(--paper-tint); }
.cert__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(44px, 6vw, 76px) clamp(26px, 5vw, 68px);
  border-radius: var(--r-xl); background: var(--ink); color: rgba(255,255,255,.74);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(52% 70% at 88% 12%, rgba(47,98,224,.55), transparent 68%),
    radial-gradient(42% 60% at 6% 96%, rgba(242,177,56,.20), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding-block: clamp(52px, 7vw, 84px) 0; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.3rem; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,.62); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid > :first-child { grid-column: auto; flex: 1.4; } .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .93rem; }
.footer-contact { display: grid; gap: .9rem; font-size: .93rem; }
.footer-contact div { display: flex; gap: .7rem; }
.footer-contact svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: .25rem; color: #8FB3FF; }
.social-row { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social-row a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.07); transition: background .2s, transform .2s;
}
.social-row a:hover { background: var(--accent); transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-block: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .84rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- page header (inner pages) ---------- */
.page-head { position: relative; overflow: hidden; background: var(--paper-tint); padding-block: clamp(56px, 7vw, 96px); }
.page-head::before {
  content: ''; position: absolute; inset: auto -5% -60% 55%; height: 150%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(47,98,224,.12), transparent 70%);
}
.page-head > * { position: relative; }
.crumbs { display: flex; gap: .5rem; font-size: .84rem; color: var(--ink-muted); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--accent); }

/* ---------- prose (legal & long-form pages) ---------- */
.prose { max-width: 76ch; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { margin: 2.2em 0 .7em; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--accent); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { display: grid; gap: .5em; }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .93rem; }
.prose th, .prose td { padding: .7em .9em; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--paper-tint); color: var(--ink); font-weight: 700; }

/* ---------- forms ---------- */
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1.05rem;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,98,224,.12);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- misc ---------- */
.panel { padding: clamp(26px, 3.4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.media-frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-blue); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 52px); }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); opacity: .55; }
.logo-strip img { height: 34px; width: auto; filter: grayscale(1); }

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .program:hover { transform: none; }
}

/* ==========================================================================
   Legacy prose compatibility
   The legal pages carry Bootstrap-era utility classes from the previous
   template. This neutralises them so the copy reads correctly inside .prose
   without having to rewrite every paragraph of legal text.
   ========================================================================== */
.legacy-prose .container,
.legacy-prose .container-fluid { width: 100%; max-width: none; padding: 0; margin: 0; }
.legacy-prose .row { display: block; margin: 0; }
.legacy-prose [class*="col-"] { width: 100%; max-width: none; padding: 0; flex: none; }
.legacy-prose .privacy-content,
.legacy-prose .content-section,
.legacy-prose .privacy-section,
.legacy-prose [class*="-section"] { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.legacy-prose .title-separator { display: none; }
.legacy-prose .rounded { border-radius: 0; }
.legacy-prose .text-dark { color: var(--ink); }
.legacy-prose .text-muted { color: var(--ink-muted); }
.legacy-prose .fw-bold { font-weight: 700; color: var(--ink); }
.legacy-prose .text-center { text-align: left; }
.legacy-prose .bg-warning { background: transparent !important; }
.legacy-prose ul.list-unstyled { list-style: none; padding-left: 0; }
.legacy-prose .p-4, .legacy-prose .p-md-5 { padding: 0 !important; }
.legacy-prose .mb-0 { margin-bottom: 0; }
.legacy-prose .mb-2 { margin-bottom: .5rem; }
.legacy-prose .mb-3 { margin-bottom: .9rem; }
.legacy-prose .mb-4 { margin-bottom: 1.3rem; }
.legacy-prose .mb-5 { margin-bottom: 1.8rem; }
.legacy-prose .mt-4 { margin-top: 1.3rem; }
.legacy-prose .me-2 { margin-right: .5rem; }
/* the old template's decorative headline effect has no place here */
.legacy-prose .split-collab { font-family: inherit; }

/* ---------- hero artwork & layout refinements ---------- */
.media-frame .brand-panel { min-height: 100%; }

/* Let the browser even out ragged headline lines where supported. */
.balance { text-wrap: balance; }

/* A short intro column beside a tall list should sit at the top, not float
   in the middle of a column of cards. */
.split--top { align-items: start; }
@media (min-width: 900px) {
  .sticky-col { position: sticky; top: 118px; }
}

@media (max-width: 560px) {
  .hero__badge { right: 8px; bottom: 12px; padding: .7rem 1rem; }
  .hero__badge i { width: 34px; height: 34px; }
}

/* ==========================================================================
   Catalogue
   ========================================================================== */

.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.product-card__media {
  position: relative; display: block; aspect-ratio: 1;
  background: var(--paper-tint); overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  padding: .28rem .7rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.product-card__badge--muted { background: var(--ink-muted); }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.product-card__cat {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
}
.product-card__body h3 { margin: .4rem 0 .7rem; font-size: 1rem; line-height: 1.35; }
.product-card__body h3 a { transition: color .2s; }
.product-card__body h3 a:hover { color: var(--accent); }
.product-card__price strong { font-size: 1.15rem; color: var(--ink); }
.product-card__price del { margin-left: .5rem; font-size: .88rem; color: var(--ink-muted); }
.product-card__cta { margin-top: auto; padding-top: 0; }
.product-card__body .product-card__cta { margin-top: 1.1rem; align-self: stretch; }

/* filter chips */
.chip-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  display: inline-flex; align-items: center; padding: .52rem 1.1rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip.is-active, .chip--solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active:hover, .chip--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.catalogue-bar {
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between;
  padding-bottom: 1.6rem; border-bottom: 1px solid var(--line);
}
.catalogue-search { display: flex; gap: .5rem; }
.catalogue-search input {
  min-width: 200px; padding: .6rem 1rem; font: inherit; font-size: .9rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink);
}
.catalogue-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,98,224,.12); }

/* product detail */
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: .7rem; margin-bottom: .2rem; }
.price-block strong { font-size: 2rem; color: var(--ink); letter-spacing: -.03em; }
.price-block del { font-size: 1.05rem; color: var(--ink-muted); }
.price-block__off {
  padding: .2rem .6rem; border-radius: 999px;
  background: #E8F6EC; color: #1C7A3E; font-size: .78rem; font-weight: 700;
}

.notice { margin-top: 1.2rem; padding: .85rem 1.1rem; border-radius: var(--r-sm); font-size: .92rem; }
.notice--muted { background: var(--paper-tint); color: var(--ink-soft); border: 1px solid var(--line); }

.spec-list { margin: 2.2rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.spec-list > div { display: flex; gap: 1rem; font-size: .93rem; }
.spec-list dt { flex: 0 0 130px; color: var(--ink-muted); margin: 0; }
.spec-list dd { margin: 0; color: var(--ink); font-weight: 600; }

/* hero bullet points */
.hero__points { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: .7rem; }
.hero__points li { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--ink-soft); }
.hero__points svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); }

/* pagination */
.pager nav { display: flex; justify-content: center; }
.pager svg { width: 18px; height: 18px; }
.pager .pagination { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.pager .page-item .page-link,
.pager .pagination a, .pager .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 .7rem;
  border: 1px solid var(--line-strong); border-radius: 12px;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft); background: #fff;
  transition: border-color .2s, background .2s, color .2s;
}
.pager .pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pager .page-item.active .page-link,
.pager .pagination .active span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .page-item.disabled .page-link { opacity: .45; }

@media (max-width: 600px) {
  .catalogue-bar { flex-direction: column; align-items: stretch; }
  .catalogue-search input { min-width: 0; flex: 1; }
  .spec-list dt { flex-basis: 105px; }
}

/* ---------- branded hero panel (stand-in for a product photo) ---------- */
.brand-panel { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.brand-panel__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand-panel__mark { position: relative; width: min(62%, 300px); }
.brand-panel__mark .nr-logo,
.brand-panel__mark .nr-logo-img { width: 100%; height: auto; }

/* ---------- square cards ----------
   A strict 1:1 box. Content is centred vertically so the extra height the
   square adds reads as deliberate space rather than a gap at the bottom. */
.card--square {
  aspect-ratio: 1 / 1;
  justify-content: center;
}
