/* ==========================================================================
   CONESAM: page components added on top of the shared NAMIS design system
   (style.css, responsive.css, animations.css are identical to NAMIS 2026).
   CONESAM red from the logo is used sparingly as a third accent.
   ========================================================================== */
:root { --conesam-red: #d63a33; }

/* NAMIS 2026 strip above the header */
.namis-strip { background: var(--ink); color: rgba(255, 255, 255, .85); font-size: var(--fs-xs); }
.namis-strip__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 38px; flex-wrap: wrap; padding-block: var(--s-1); }
.namis-strip strong { color: var(--lime); }
.namis-strip a { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--lime); text-decoration: none; white-space: nowrap; }
.namis-strip a .icon { width: 14px; height: 14px; }
.namis-strip a:hover { text-decoration: underline; }

/* Home hero */
.hero--conesam { min-height: calc(92svh - var(--header-h)); }
.hero__inner--single { grid-template-columns: minmax(0, 1fr) !important; }
.hero--conesam .hero__copy { max-width: 760px; }
.hero--conesam .hero__title { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.25rem); max-width: 16ch; }
.hero--conesam .hero__title em { font-size: inherit; line-height: inherit; letter-spacing: inherit; display: inline; color: var(--lime); }

/* Light value cards */
.values--light .value { background: var(--white); border-color: var(--line); }
.values--light .value:hover { background: var(--white); border-color: var(--green-600); box-shadow: var(--shadow-2); }
.values--light .value__icon { background: var(--green-900); }
.values--light .value p { color: var(--muted); }
@media (min-width: 900px) {
  .values--4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .values--4 .value, .values--4 .value:nth-child(4), .values--4 .value:nth-child(5) { grid-column: auto !important; }
}

/* Programme cards */
.progs { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
.prog-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.prog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.prog-card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6) var(--s-5); flex: 1; }
.prog-card__tag { font: 800 var(--fs-h3)/1 var(--font-display); color: var(--green-800); letter-spacing: -.01em; }
.prog-card h3 { font-size: var(--fs-sm); font-family: var(--font-body); font-weight: 600; color: var(--muted); margin: 0; letter-spacing: 0; }
.prog-card p { margin: 0; color: var(--ink-2); }
.prog-card .link-arrow { margin-top: auto; }

/* NAMIS feature */
.namis-feature__grid { display: grid; gap: var(--s-7); align-items: center; }
.namis-feature h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); margin-top: var(--s-4); }
.namis-feature .lead { color: rgba(255, 255, 255, .82); }

/* Stats */
.stats { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: var(--s-2); align-content: start; }
.stat__num { font: 800 clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--green-800); }
.stat__label { color: var(--muted); font-size: var(--fs-sm); }
.stat--light { background: rgba(255, 255, 255, .05); border-color: var(--line-dark); }
.stat--light .stat__num { color: var(--lime); }
.stat--light .stat__label { color: rgba(255, 255, 255, .75); }
.source-note { margin-top: var(--s-5); font-size: var(--fs-xs); color: var(--muted); }
.source-note--dark { color: rgba(255, 255, 255, .6); }

/* Steps */
.steps-row { list-style: none; display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); counter-reset: none; margin-bottom: var(--s-7); }
.step { background: var(--white); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); border: 1px solid var(--line); }
.step__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--ink); font: 800 1.25rem/1 var(--font-display); margin-bottom: var(--s-4); }
.step h3 { margin-bottom: var(--s-2); }
.step p { margin: 0; color: var(--muted); }
.center { text-align: center; }

/* FAQ */
.faq-wrap { display: grid; gap: var(--s-7); }
.acc-item--faq .acc-trigger { grid-template-columns: minmax(0, 1fr) auto; }
.acc-item--faq .acc-label strong { font-size: var(--fs-base); }
.acc-item--faq .acc-panel__content { padding-bottom: var(--s-5); }
.acc-item--faq .acc-panel__content p { margin: 0; color: var(--ink-2); }
.faq { gap: var(--s-3); }

/* About */
.mv { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
.mv__card { padding: var(--s-7) var(--s-6); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.mv__card h3 { font-size: var(--fs-h3); }
.mv__card p { margin: 0; font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); }
.mv__card--dark { background: var(--green-900); border-color: var(--green-900); }
.mv__card--dark h3 { color: var(--lime); }
.mv__card--dark p { color: rgba(255, 255, 255, .88); }
.split { display: grid; gap: var(--s-7); align-items: center; }
.split--top { align-items: start; margin-bottom: var(--s-8); }
.split__img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.org { list-style: none; display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
.org__item { padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green-600); }
.org__item h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.org__item p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.org--cards { margin: var(--s-6) 0 var(--s-7); }
.compare--simple { min-width: 0; }
.compare--simple tbody th { width: 45%; }

/* Programmes */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-2) 0; }
.subnav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--s-4); border-radius: var(--r-pill); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.subnav a:hover { background: var(--green-100); color: var(--green-800); }
.eds { list-style: none; display: grid; gap: var(--s-3); margin: var(--s-6) 0 var(--s-6); }
.ed { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-4); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.ed__year { grid-row: span 2; font: 800 1.5rem/1 var(--font-display); color: var(--green-800); align-self: center; }
.ed span:last-child { color: var(--muted); font-size: var(--fs-sm); }
.ed--now { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.ed--now .ed__year { color: var(--lime); }
.ed--now span:last-child { color: rgba(255, 255, 255, .75); }
.band--ink .gallery__head h3 { color: var(--white); }
.band--ink .gallery .icon-btn { background: rgba(255, 255, 255, .06); color: var(--white); border-color: var(--line-dark); }
.band--ink .hero__ctas { margin-top: var(--s-6); }
.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Join */
.ways { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
.way { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-7) var(--s-6) var(--s-6); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); scroll-margin-top: calc(var(--header-h) + 24px); }
.way .value__icon { background: var(--green-900); color: var(--lime); }
.way h3 { margin: 0; font-size: var(--fs-h3); }
.way p { margin: 0 0 var(--s-4); color: var(--muted); }
.way .btn { margin-top: auto; }
.checklist--dark { border-color: var(--line-dark); margin-top: var(--s-5); }
.checklist--dark .icon { color: var(--lime); }
.checklist--dark li { color: rgba(255, 255, 255, .88); font-size: var(--fs-base); }

@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .progs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .namis-feature__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-8); }
  .faq-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
  .mv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
  .org { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subnav { top: var(--header-h); }
}
