/* ============================================
   ELRISA — Product catalogue pages (hero, section bar, grade tabs, tables, forms, FAQ)
   Used by pages/polyols.html together with js/catalogue.js
   ============================================ */
/* Section bar: sits under the hero, then pins under the site header once scrolled past
   (done in script: the site's overflow-x: hidden on html/body rules out position: sticky) */
.page-nav-slot { min-height: 58px; }
.page-nav { position: relative; z-index: 900; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--clr-border); box-shadow: 0 6px 18px rgba(11,29,38,0.06); transition: top 0.3s ease; }
.page-nav.is-pinned { position: fixed; top: var(--nav-h, 72px); left: 0; right: 0; }
.page-nav .container { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.page-nav .container::-webkit-scrollbar { display: none; }
.page-nav a { flex: 0 0 auto; font-size: 0.86rem; font-weight: 600; color: var(--clr-slate); text-decoration: none; padding: 8px 14px; border-radius: var(--radius-full); white-space: nowrap; transition: var(--transition); }
.page-nav a:hover { color: var(--clr-forest); background: var(--clr-light); }
.page-nav a.is-active { color: var(--clr-white); background: var(--clr-forest); }
.page-nav .pn-cta { margin-left: auto; background: var(--clr-emerald); color: var(--clr-white); }
.page-nav .pn-cta:hover { background: var(--clr-forest); color: var(--clr-white); }
main > section { scroll-margin-top: 130px; }

/* Hero */
.pr-hero { position: relative; min-height: 660px; display: flex; align-items: flex-end; padding: 170px 0 64px; overflow: hidden; background: var(--clr-deep); }
.pr-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.pr-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,29,38,0.95) 0%, rgba(11,29,38,0.84) 40%, rgba(11,29,38,0.35) 75%, rgba(11,29,38,0.2) 100%), linear-gradient(0deg, rgba(11,29,38,0.85) 0%, rgba(11,29,38,0) 45%); }
.pr-hero .container { position: relative; z-index: 1; width: 100%; }
.pr-hero h1 { color: var(--clr-white); font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.08; margin-bottom: 18px; max-width: 780px; }
.pr-hero .h1-kicker { display: block; font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-emerald); margin-bottom: 16px; line-height: 1.5; }
.pr-hero .lede { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 620px; line-height: 1.7; }
.pr-hero .breadcrumb a, .pr-hero .breadcrumb .sep { color: rgba(255,255,255,0.65); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 44px; max-width: 820px; border-radius: var(--radius-md); overflow: hidden; background: rgba(255,255,255,0.14); }
.hero-stats div { padding: 16px 18px; background: rgba(11,29,38,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--clr-white); line-height: 1.1; }
.hero-stats span { font-size: 0.78rem; color: rgba(255,255,255,0.72); }
@media (max-width: 700px) {
  .pr-hero { min-height: 600px; padding-top: 140px; }
  .pr-hero::after { background: linear-gradient(0deg, rgba(11,29,38,0.96) 0%, rgba(11,29,38,0.78) 60%, rgba(11,29,38,0.6) 100%); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* Intro + choosing */
.lead-text { font-size: 1.05rem; color: var(--clr-slate); line-height: 1.8; }
.choose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.choose-card { background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: 24px; }
.choose-card h3 { font-size: 1rem; margin-bottom: 8px; }
.choose-card p { font-size: 0.88rem; color: var(--clr-muted); line-height: 1.7; }
.choose-card .tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clr-forest); background: var(--clr-light); border-radius: var(--radius-full); padding: 3px 10px; margin-bottom: 12px; }
.need-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--clr-white); border-radius: var(--radius-md); overflow: hidden; }
.need-table th, .need-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--clr-border); vertical-align: top; }
.need-table thead th { background: var(--clr-deep); color: var(--clr-white); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.need-table a { color: var(--clr-forest); font-weight: 600; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; align-items: start; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* Small tab switchers (How to choose) */
.mini-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-full); margin-bottom: 26px; max-width: 100%; overflow-x: auto; }
.mini-tab { font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--clr-slate); background: none; border: 0; border-radius: var(--radius-full); padding: 9px 18px; cursor: pointer; white-space: nowrap; }
.mini-tab[aria-selected="true"] { background: var(--clr-forest); color: var(--clr-white); }
.mini-tab:focus-visible { outline: 2px solid var(--clr-emerald); outline-offset: 2px; }
.mini-panel[hidden] { display: none; }

/* Optional form fields tucked away */
.more { border: 1.5px dashed var(--clr-border); border-radius: var(--radius-md); margin: 4px 0 18px; }
.more > summary { cursor: pointer; list-style: none; padding: 12px 16px; font-size: 0.88rem; font-weight: 700; color: var(--clr-forest); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; font-size: 1.2rem; color: var(--clr-emerald); }
.more[open] > summary::after { content: "–"; }
.more > summary small { font-weight: 500; color: var(--clr-muted); }
.more-body { padding: 4px 16px 4px; }

/* Grade catalogue */
.finder { background: var(--clr-offwhite); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.finder-search { flex: 1 1 240px; position: relative; }
.finder-search input { width: 100%; padding: 11px 14px 11px 38px; font: inherit; font-size: 0.9rem; border: 1.5px solid var(--clr-border); border-radius: var(--radius-full); background: var(--clr-white); outline: none; }
.finder-search input:focus { border-color: var(--clr-emerald); box-shadow: 0 0 0 4px rgba(16,185,129,0.12); }
.finder-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--clr-muted); }
.finder-empty { display: none; padding: 24px; text-align: center; color: var(--clr-muted); }
@media (max-width: 640px) { .finder { padding: 10px; } }
/* Family tabs: one table at a time */
.fam-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.fam-tab { font: inherit; display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--clr-slate); background: var(--clr-white); border: 1.5px solid var(--clr-border); border-radius: var(--radius-full); padding: 8px 14px; cursor: pointer; white-space: nowrap; transition: var(--transition); }
.fam-tab:hover { border-color: var(--clr-emerald); color: var(--clr-forest); }
.fam-tab[aria-selected="true"] { background: var(--clr-forest); border-color: var(--clr-forest); color: var(--clr-white); }
.fam-tab:focus-visible { outline: 2px solid var(--clr-emerald); outline-offset: 2px; }
.fam-count { font-size: 0.7rem; font-weight: 700; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: var(--radius-full); background: var(--clr-light); color: var(--clr-forest); }
.fam-tab[aria-selected="true"] .fam-count { background: rgba(255,255,255,0.2); color: var(--clr-white); }
.is-searching .fam-tabs { opacity: 0.45; }
@media (max-width: 640px) { .fam-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 4px; scrollbar-width: none; } .fam-tabs::-webkit-scrollbar { display: none; } }
.family { margin-bottom: 36px; scroll-margin-top: 140px; }
.family[hidden] { display: none; }
.swipe-hint { display: none; font-size: 0.78rem; font-weight: 600; color: var(--clr-muted); margin-bottom: 6px; }
@media (max-width: 900px) { .swipe-hint { display: block; } }
.family-head { max-width: 860px; margin-bottom: 16px; }
.family-series { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-emerald); margin-bottom: 6px; }
.family-head h3 { font-size: 1.35rem; margin-bottom: 8px; }
.family-head p { font-size: 0.93rem; color: var(--clr-slate); line-height: 1.75; }
/* translateZ: without it, mobile Chrome counts the pinned first column as page overflow and zooms the page out */
.table-wrap { transform: translateZ(0); overflow-x: auto; border: 1px solid var(--clr-border); border-radius: var(--radius-md); background: var(--clr-white); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 2px solid var(--clr-emerald); outline-offset: 2px; }
.grade-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 860px; }
.grade-table th, .grade-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--clr-border); white-space: nowrap; vertical-align: middle; }
.grade-table thead th { background: var(--clr-forest); color: var(--clr-white); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: normal; }
.grade-table tbody tr { background: var(--clr-white); }
.grade-table tbody tr:nth-child(even) { background: var(--clr-offwhite); }
.grade-table tbody tr:hover { background: var(--clr-light); }
.grade-table tbody tr:target { background: #FEF3C7; }
.grade-table tbody th { font-weight: 700; color: var(--clr-deep); }
/* Keep the grade name in view while the table is swiped sideways */
.grade-table tbody th, .grade-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: inherit; box-shadow: 1px 0 0 var(--clr-border); }
.grade-table thead th:first-child { background: var(--clr-forest); }
.g-name { white-space: nowrap; }
.g-char { white-space: normal !important; min-width: 180px; color: var(--clr-slate); }
.grade-table.particles { min-width: 720px; }
.grade-table.particles thead th { text-transform: none; font-size: 0.8rem; }
.grade-table.particles tbody th { font-weight: 600; color: var(--clr-slate); white-space: nowrap; }
.grade-table.particles tr.sub th { background: var(--clr-light); color: var(--clr-forest); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.table-notes { font-size: 0.78rem; color: var(--clr-muted); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tds-btn { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 0.76rem; font-weight: 700; padding: 6px 11px; border-radius: var(--radius-full); border: 1.5px solid var(--clr-emerald); color: var(--clr-forest); background: var(--clr-white); text-decoration: none; cursor: pointer; transition: var(--transition); }
.tds-btn:hover { background: var(--clr-emerald); color: var(--clr-white); }
.tds-btn.is-off, .tds-btn.is-off:hover { border-color: var(--clr-border); color: var(--clr-muted); background: var(--clr-offwhite); cursor: not-allowed; font-weight: 600; }
.row-actions { display: flex; gap: 6px; }
.act { font: inherit; font-size: 0.76rem; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-full); border: 0; background: var(--clr-deep); color: var(--clr-white); cursor: pointer; transition: var(--transition); }
.act:hover { background: var(--clr-forest); }
.act-order { background: var(--clr-emerald); }
.act-order:hover { background: var(--clr-forest); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.catalogue-note { font-size: 0.82rem; color: var(--clr-muted); line-height: 1.7; border-left: 3px solid var(--clr-border); padding-left: 14px; }

/* Applications */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.app-card { position: relative; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: var(--clr-white); background: var(--clr-deep); }
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.7s ease; }
.app-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,29,38,0.1) 0%, rgba(11,29,38,0.55) 40%, rgba(11,29,38,0.95) 85%); }
.app-card:hover img { transform: scale(1.05); }
.app-card h3 { color: var(--clr-white); font-size: 1.05rem; margin-bottom: 6px; }
.app-card p { color: rgba(255,255,255,0.82); font-size: 0.86rem; line-height: 1.6; }
.app-card .grades { margin-top: 10px; font-size: 0.76rem; font-weight: 600; color: var(--clr-sun); }
@media (prefers-reduced-motion: reduce) { .app-card img { transition: none; } .app-card:hover img { transform: none; } }
/* Phones: swipe through the cards instead of scrolling past four tall ones */
@media (max-width: 640px) {
  .app-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .app-grid::-webkit-scrollbar { display: none; }
  .app-card { flex: 0 0 82%; min-height: 280px; scroll-snap-align: start; }
  .supply-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .supply-item { padding: 16px; }
}
@media (max-width: 400px) { .supply-grid { grid-template-columns: 1fr; } }

/* Supply strip */
.supply-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.supply-item { padding: 22px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.supply-item h3 { color: var(--clr-white); font-size: 0.98rem; margin-bottom: 6px; }
.supply-item p { color: rgba(255,255,255,0.72); font-size: 0.86rem; line-height: 1.65; }

/* Request forms */
.req-wrap { max-width: 920px; margin: 0 auto; background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.req-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--clr-offwhite); border-bottom: 1px solid var(--clr-border); }
.req-tab { font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 24px; border: 0; background: transparent; cursor: pointer; text-align: left; color: var(--clr-slate); border-bottom: 3px solid transparent; transition: var(--transition); }
.req-tab strong { font-size: 1rem; color: var(--clr-deep); }
.req-tab small { font-size: 0.78rem; }
.req-tab[aria-selected="true"] { background: var(--clr-white); border-bottom-color: var(--clr-emerald); }
.req-tab:focus-visible { outline: 2px solid var(--clr-emerald); outline-offset: -2px; }
.req-panel { padding: 30px; }
.req-panel[hidden] { display: none; }
.req-panel .form-group { margin-bottom: 16px; }
.req-panel .form-group label { font-weight: 600; font-size: 0.85rem; }
.req-panel .form-group input, .req-panel .form-group select, .req-panel .form-group textarea { padding: 12px 14px; font-size: 0.92rem; }
.req-panel .form-group textarea { min-height: 96px; }
.req-panel .form-row { gap: 0 18px; }
.row-3 { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 640px) { .row-3 { grid-template-columns: repeat(3, 1fr); } }
.opt { font-weight: 400; color: var(--clr-muted); font-size: 0.8rem; }
.req-legend { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-forest); margin: 8px 0 14px; padding-top: 18px; border-top: 1px solid var(--clr-border); }
.req-legend:first-of-type { border-top: 0; padding-top: 0; }
.lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.line { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr) 40px; gap: 10px; align-items: end; }
.line[hidden] { display: none; }
.line .form-group { margin-bottom: 0; }
.line-remove { width: 40px; height: 46px; border-radius: var(--radius-md); border: 1.5px solid var(--clr-border); background: var(--clr-white); color: var(--clr-muted); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.line-remove:hover { border-color: #EF4444; color: #B91C1C; }
.line:first-child .line-remove { visibility: hidden; }
@media (max-width: 640px) { .line { grid-template-columns: 1fr 1fr; padding: 12px; border: 1px solid var(--clr-border); border-radius: var(--radius-md); } .line .line-grade { grid-column: 1 / -1; } .line-remove { grid-column: 1 / -1; width: 100%; height: 38px; } .line:first-child .line-remove { display: none; } }
.add-line { font: inherit; font-size: 0.86rem; font-weight: 700; color: var(--clr-forest); background: none; border: 1.5px dashed #A7F3D0; border-radius: var(--radius-md); padding: 10px 16px; cursor: pointer; width: 100%; margin-bottom: 16px; }
.add-line:hover { background: var(--clr-light); }
.add-line[hidden] { display: none; }
.req-submit { width: 100%; justify-content: center; }
.req-submit[disabled] { opacity: 0.65; pointer-events: none; }
.req-foot { font-size: 0.8rem; color: var(--clr-muted); margin-top: 12px; text-align: center; }
.req-error { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: #FEF2F2; border-left: 4px solid #EF4444; color: #991B1B; font-size: 0.88rem; font-weight: 500; }
.req-error[hidden] { display: none; }
.req-done { padding: 40px 30px; text-align: center; }
.req-done[hidden] { display: none; }
.req-done .tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--clr-light); color: var(--clr-emerald); margin: 0 auto 16px; }
.req-done h3 { font-size: 1.3rem; margin-bottom: 8px; }
.req-done p { color: var(--clr-slate); max-width: 520px; margin: 0 auto 6px; }
.req-done .ref { font-family: var(--font-display); font-size: 1.1rem; color: var(--clr-forest); font-weight: 700; }
@media (max-width: 640px) { .req-panel { padding: 22px 16px; } .req-tab { padding: 14px 14px; } .req-tab small { display: none; } }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--clr-border); padding: 18px 0; }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--clr-deep); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--clr-emerald); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 10px; color: var(--clr-slate); font-size: 0.93rem; line-height: 1.75; }
  

/* Consultation section */
.consult-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .consult-grid { grid-template-columns: 1fr; } }
.consult-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-top: 24px; }
.consult-photo img { display: block; width: 100%; height: 340px; object-fit: cover; }
@media (max-width: 960px) { .consult-photo { display: none; } }
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; padding-left: 46px; font-size: 0.93rem; color: var(--clr-slate); line-height: 1.65; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--clr-forest); color: var(--clr-white); font-weight: 700; font-size: 0.85rem; }
.steps li strong { display: block; color: var(--clr-deep); font-size: 0.98rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 16px; }
.check-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--clr-border); border-radius: var(--radius-md); background: var(--clr-white); font-size: 0.87rem; cursor: pointer; transition: var(--transition); }
.check-chip:hover { border-color: var(--clr-emerald); }
.check-chip:has(input:checked) { border-color: var(--clr-emerald); background: var(--clr-light); }
.check-chip input { width: 18px; height: 18px; accent-color: var(--clr-forest); flex-shrink: 0; }
.fieldset-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--clr-text); margin-bottom: 8px; }
.req-wrap.solo .req-panel { padding-top: 30px; }

/* Africa coverage */
.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.region { padding: 20px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.region h3 { color: var(--clr-white); font-size: 0.95rem; margin-bottom: 6px; }
.region p { color: rgba(255,255,255,0.72); font-size: 0.84rem; line-height: 1.65; }
.region .ports { display: block; margin-top: 8px; color: var(--clr-sun); font-size: 0.76rem; font-weight: 600; }
.hcfc-note { margin-top: 10px; font-size: 0.8rem; color: var(--clr-muted); }

