/* ==========================================================================
   Mahallu App — inner-page theme  (pages.css)
   Load order on every inner page:
     style.css  →  islamic.css  →  (page's own small <style>)  →  pages.css
   index.html does NOT load this file and is not affected by it.
   Everything is scoped to  body.page  so nothing here can leak into index.
   :where(.page) is used so these rules have low specificity: a page's own
   variants (e.g. .pain-card.old) can still win over the shared look.
   ========================================================================== */

:root {
  /* variables the old page stylesheets used but style.css never defined */
  --line: rgba(26, 107, 60, .12);
  --red: #c94c4c;
  --paper: #fffdf8;
}

/* ───────────────────────── Language (Malayalam / English) ─────────────────────────
   style.css makes .ml inline and .en display:none for index's 5-language system.
   Inner pages only have ml + en, so they get their own rules.                      */
body.page .ml,
body.page .en { display: revert; }
body.page .section-label.ml, body.page .section-label.en,
body.page .opt-tag.ml, body.page .opt-tag.en,
body.page .req-tag.ml, body.page .req-tag.en { display: inline-block; }
body.page .wave-badge-text.ml, body.page .wave-badge-text.en { display: block; }
body.page .ml { font-family: 'Noto Sans Malayalam', 'DM Sans', sans-serif; }
body.page .hi, body.page .ta, body.page .kn { display: none !important; }
body.page.lang-en .ml { display: none !important; }
body.page:not(.lang-en) .en { display: none !important; }

/* ───────────────────────── Base ───────────────────────── */
body.page { background: var(--ivory); color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.6; }
body.page section { padding: 0; transition: none; }
body.page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
body.page :is(h1, h2) { font-family: 'Amiri', 'Playfair Display', serif; font-weight: 700; }
body.page :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
body.page img { max-width: 100%; height: auto; }

/* ───────────────────────── Hero (same night sky as index) ───────────────────────── */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #12402b 0%, var(--night2) 45%, var(--night) 100%);
  padding: 150px 5% 124px;
}
.page-hero .hero-bg-pattern {
  position: absolute; inset: -50%; z-index: 0; pointer-events: none;
  background-image: var(--pat-y); background-size: 110px; opacity: .7;
  animation: spin 240s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 55%);
  mask-image: radial-gradient(circle, #000 10%, transparent 55%);
}
.page-hero .lantern.l3 { display: none; }
.page-hero .moon { top: 16%; }
.hero-inner, .article-hero-inner { position: relative; z-index: 5; }
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }

.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  background: rgba(212,175,90,.12); border: 1px solid rgba(212,175,90,.4); color: var(--gold-light);
  padding: 6px 18px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .6px;
  backdrop-filter: blur(6px);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.35; color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.page-hero h1 .accent {
  display: inline-block; padding-bottom: .12em;
  background: linear-gradient(100deg, #e9c76d, #fff3c4, #d4af5a, #fff3c4, #e9c76d); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: gold 6s linear infinite;
}
.page-hero .hero-inner > p, .page-hero p.lede {
  margin: 18px auto 0; max-width: 620px; font-size: 1.08rem; line-height: 1.8; color: rgba(255,255,255,.74);
}
.page-hero .hero-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.page-hero .hero-trustrow { display: flex; justify-content: center; gap: 12px 26px; flex-wrap: wrap; margin-top: 38px; }
.page-hero .hero-trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: .84rem; }
.page-hero .hero-trust-item i { color: var(--gold-light); }

.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; font-size: .82rem; color: rgba(255,255,255,.55); }
.breadcrumb a { color: var(--gold-light); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: .6rem; color: rgba(212,175,90,.6); }

/* article hero is left-aligned and sits above the reading toolbar */
.article-hero { padding: 138px 5% 0; }
.article-hero-inner { max-width: 880px; margin: 0 auto; padding-bottom: 96px; text-align: left; }
.article-hero .breadcrumb { justify-content: flex-start; }
.article-hero .article-title { font-family: 'Amiri', 'Playfair Display', serif; font-weight: 700; line-height: 1.4; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.article-hero .article-title.en { font-family: 'Amiri', 'Playfair Display', serif; }
.article-hero .article-tag { letter-spacing: .6px; text-transform: none; font-size: .78rem; }
.article-hero .author-avatar { background: linear-gradient(160deg, #0f5c4a, #0b2418); color: var(--gold-light); box-shadow: 0 0 0 2px rgba(212,175,90,.5); }
.article-hero .wave-badge { background: rgba(212,175,90,.1); border-color: rgba(212,175,90,.35); backdrop-filter: blur(6px); }
.article-hero .article-meta-row { border-top-color: rgba(212,175,90,.25); }

/* ───────────────────────── Sections ───────────────────────── */
body.page .section-wrap { max-width: 1140px; margin: 0 auto; padding: 76px 5%; }
body.page section { background-color: var(--ivory); background-image: var(--pat-g); }
body.page section.alt { background-color: #fff; background-image: none; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.section-head .section-title::after { margin-inline: auto; }
.section-head .section-sub { margin: 14px auto 0; color: var(--text-mid); line-height: 1.75; }
.section-title { line-height: 1.3; }

/* ───────────────────────── Cards (light surface) ───────────────────────── */
:where(.page) :is(.story-card, .feat-card, .role-card, .pm-card, .scenario-card, .tally-card, .asset-card, .pg-enroll-step, .step-box, .author-card, .more-card, .blog-card) {
  background: linear-gradient(160deg, #fff, #fdf7e6);
  border: 1px solid rgba(212,175,90,.4); border-radius: 22px;
  box-shadow: 0 6px 24px rgba(26,107,60,.08);
}
:where(.page) :is(.benefit-item, .checklist-item, .info-card, .field-chip, .pg-doc-item) {
  background: linear-gradient(160deg, #fff, #fdf7e6);
  border: 1px solid rgba(212,175,90,.4); border-radius: 16px; box-shadow: 0 4px 16px rgba(26,107,60,.06);
}
:where(.page) .role-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212,175,90,.5), 0 10px 30px rgba(212,175,90,.2); }
/* only genuinely clickable cards move on hover */
:where(.page) :is(.blog-card, .more-card) { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .3s; }
:where(.page) :is(.blog-card, .more-card):hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 20px 44px rgba(26,107,60,.16), 0 0 0 1px rgba(212,175,90,.35); }
.page .more-card { border-style: solid; }

/* dark cards */
:where(.page) :is(.rule-card, .stat-card) {
  background: linear-gradient(160deg, #0f5c4a, #0b2418);
  border: 1px solid rgba(212,175,90,.4); border-radius: 22px; box-shadow: 0 10px 30px rgba(11,36,24,.25);
}
:where(.page) .stat-card { border-radius: 18px; }
:where(.page) .rule-card .rule-num { font-family: 'Amiri', serif; color: var(--gold-light); }

/* icon medallions — same arch shape as index */
.page :is(.feat-icon, .role-icon, .asset-icon, .card-icon, .featured-icon, .more-card .ic, .pm-card .pm-icon) {
  border-radius: 50% 50% 14px 14px;
  background: linear-gradient(160deg, #0f5c4a, #0b2418); color: var(--gold-light);
  box-shadow: 0 8px 20px rgba(11,36,24,.3);
}
.page .pg-step-icon { color: var(--gold-light); }
.page .step-box .pg-step-icon { border-radius: 50% 50% 12px 12px; background: linear-gradient(160deg, #0f5c4a, #0b2418); }
/* numbered badges */
.page :is(.step-badge, .pg-enroll-step-num, .article-eyebrow .num, .scenario-num) {
  background: linear-gradient(160deg, #0f5c4a, #0b2418); color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(212,175,90,.55); font-family: 'Amiri', serif;
}
.page .pg-step-num { box-shadow: 0 6px 18px rgba(212,175,90,.4); font-family: 'Amiri', serif; }
.page .story-num { font-family: 'Amiri', serif; }
.page :is(.step-header h2, .featured-text h2, .grid-head h2, .more-head h2) { font-family: 'Amiri', 'Playfair Display', serif; }
.page .article-body h2 { font-family: 'Amiri', 'Playfair Display', serif; font-size: 1.7rem; }

/* chips */
.page .ward-chip, .page .tag-chip { background: rgba(212,175,90,.12); border: 1px solid rgba(212,175,90,.5); color: var(--night); }
.page .card-tag { color: #8a6a1e; }

/* ───────────────────────── Tables ───────────────────────── */
.page :is(.class-table, .sit-table) {
  width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid rgba(212,175,90,.45); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 24px rgba(26,107,60,.08);
}
.page :is(.class-table, .sit-table) th { background: linear-gradient(160deg, #0f5c4a, #0b2418); color: var(--gold-light); text-transform: none; letter-spacing: .3px; }
.page :is(.class-table, .sit-table) th:first-child,
.page :is(.class-table, .sit-table) th:last-child { border-radius: 0; }
.page :is(.class-table, .sit-table) tr:nth-child(even) td { background: rgba(212,175,90,.07); }
.page .class-table td.amount { color: #0f5c4a; }

/* ───────────────────────── Callouts & quotes ───────────────────────── */
.page :is(.note-callout, .pg-info-note) {
  background: linear-gradient(135deg, rgba(212,175,90,.14), rgba(212,175,90,.05));
  border: 1px solid rgba(212,175,90,.45); border-left: 4px solid var(--gold); border-radius: 18px;
}
.page .pull-quote { border-left-color: var(--gold); border-radius: 18px; background: linear-gradient(135deg, rgba(26,107,60,.06), rgba(212,175,90,.1)); }
.page .pull-quote p, .page .closing-quote p, .page .testimonial-quote { font-family: 'Amiri', 'Playfair Display', serif; }
.page .pull-quote.ml p { font-family: 'Noto Sans Malayalam', sans-serif; }
.page .pg-pay-method { border-radius: 16px; }
.page .rule-pill { background: rgba(212,175,90,.1); border-color: rgba(212,175,90,.35); backdrop-filter: blur(6px); }

/* ───────────────────────── FAQ ───────────────────────── */
.page .faq-item { border-color: rgba(212,175,90,.4); }
.page .faq-q { font-family: 'DM Sans', sans-serif; }
.page .faq-q .chevron { color: var(--gold); }
.page .faq-item.open .faq-q .chevron { color: #0f5c4a; }

/* ───────────────────────── Night panels: CTA banners, closing notes ───────────────────────── */
:where(.page) :is(.cta-banner, .closing-note, .contact-box-inner, .featured-card) {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 50% 0, #12402b, var(--night2));
  border: 1px solid rgba(212,175,90,.5); border-radius: 22px; box-shadow: 0 16px 44px rgba(11,36,24,.28);
}
:where(.page) :is(.cta-banner, .closing-note, .contact-box-inner, .featured-card)::before {
  content: ""; position: absolute; inset: 0; background: var(--pat-y); background-size: 70px; opacity: .6; pointer-events: none;
}
:where(.page) :is(.cta-banner, .closing-note, .contact-box-inner, .featured-card) > * { position: relative; }
.page .cta-banner h2, .page .closing-note h3, .page .contact-box-text h3, .page .featured-text h2 { font-family: 'Amiri', 'Playfair Display', serif; color: #fff; }
.page .featured-icon { background: linear-gradient(160deg, #0f5c4a, #0b2418); border: 1px solid rgba(212,175,90,.5); }
.page .featured-tag { background: rgba(212,175,90,.15); border: 1px solid rgba(212,175,90,.45); color: var(--gold-light); }
/* buttons inside night panels */
.page :is(.cta-banner a, .btn-contact, .featured-btn) {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--night);
  border-radius: 999px; font-weight: 700; box-shadow: 0 8px 26px rgba(212,175,90,.35);
}
.page :is(.cta-banner a, .btn-contact, .featured-btn):hover { transform: translateY(-3px); }
.page .btn-contact-outline { background: rgba(212,175,90,.08); border: 1.5px solid var(--gold); color: var(--gold-light); border-radius: 999px; }
.page .btn-contact-outline:hover { background: rgba(212,175,90,.2); }
.page .contact-box { padding-bottom: 8px; }

/* ───────────────────────── Blog index ───────────────────────── */
.page-blog-index .hero { padding-bottom: 132px; }
.page .grid-head h2::after { content: ""; display: block; width: 110px; height: 12px; margin-top: 10px; background: no-repeat left center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 16'%3E%3Cg fill='none' stroke='%23d4af5a' stroke-width='1.4'%3E%3Cpath d='M0 8H58M92 8H150'/%3E%3Cpath d='M75 1l4.5 7-4.5 7-4.5-7z' fill='%23d4af5a'/%3E%3C/g%3E%3C/svg%3E"); }

/* ───────────────────────── Blog article ───────────────────────── */
.progress-track { z-index: 1100; height: 3px; background: transparent; }
.progress-bar { background: linear-gradient(90deg, #1a6b3c, var(--gold), var(--gold-light)); box-shadow: 0 0 12px var(--gold); }
.page .toolbar { border-radius: 22px; }
.page .lang-switch button.active { background: linear-gradient(160deg, #0f5c4a, #0b2418); color: var(--gold-light); box-shadow: 0 4px 14px rgba(11,36,24,.35); }
.page .icon-btn:hover { background: #0f5c4a; border-color: #0f5c4a; }
.page .share-band { border-color: rgba(212,175,90,.4); }
.page .article-body > .content-block:first-child .article-eyebrow { margin-top: 0; }
.page .toast { background: var(--night); border: 1px solid rgba(212,175,90,.5); }
.page .content:not(.active) { display: none; }

/* ───────────────────────── Footer (same as index) ───────────────────────── */
footer.site-footer { display: block; padding: 0; margin-top: 0; text-align: left; }
.site-footer .sf-grid { max-width: 1100px; margin: 0 auto; padding: 46px 5% 30px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer .footer-brand { font-size: 1.3rem; color: #fff; }
.site-footer .sf-about { margin-top: 10px; max-width: 280px; line-height: 1.6; color: rgba(255,255,255,.5); font-size: .85rem; }
.site-footer .sf-title { color: var(--gold-light); font-weight: 700; font-size: .82rem; margin: 22px 0 14px; letter-spacing: .5px; text-transform: uppercase; }
.site-footer .sf-grid > div > .sf-title:first-child { margin-top: 0; }
.site-footer .sf-links { display: flex; flex-direction: column; gap: 9px; }
.site-footer .sf-links a { color: rgba(255,255,255,.55); font-size: .83rem; transition: color .2s; }
.site-footer .sf-links a.sf-strong { color: rgba(255,255,255,.78); font-weight: 600; }
.site-footer .sf-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 5%; text-align: center; }
.site-footer .sf-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 900px) {
  .page-hero .moon { top: 92px; right: 4%; width: 52px; opacity: .55; }
  .page-hero { padding: 128px 22px 100px; }
  .article-hero { padding: 116px 22px 0; }
  .article-hero-inner { padding-bottom: 84px; }
  .site-footer .sf-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .sf-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .page :is(.class-table, .sit-table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 640px) {
  body.page .section-wrap { padding: 56px 22px !important; }
  .site-footer .sf-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 38px; }
  .page .toolbar-wrap { padding: 0 16px; }
  .page .toolbar { padding: 12px 14px; border-radius: 18px; }
  .page .toolbar-actions { flex-wrap: wrap; gap: 8px; }
  .page .lang-switch button { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero .hero-bg-pattern, .page-hero h1 .accent { animation: none !important; }
}

/* ==========================================================================
   Additions: legal pages (privacy, terms), about, resources, 404
   ========================================================================== */

/* ── legal hero (left-aligned like article pages) ── */
.page-hero-inner { max-width: 860px; margin: 0 auto; padding-bottom: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
.page-hero .page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,175,90,.12); border: 1px solid rgba(212,175,90,.4); color: var(--gold-light);
  padding: 6px 18px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .6px; backdrop-filter: blur(6px);
}
.page-hero .page-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); animation: pulse 2s ease-in-out infinite; }
.page-hero .page-title { font-family: 'Amiri', 'Playfair Display', serif; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.3; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.page-hero .page-title .highlight {
  display: inline-block; padding-bottom: .12em;
  background: linear-gradient(100deg, #e9c76d, #fff3c4, #d4af5a, #fff3c4, #e9c76d); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: gold 6s linear infinite;
}
.page-hero .page-meta-item { color: rgba(255,255,255,.7); }
.page-hero .page-meta-item i { color: var(--gold-light); }
.page-legal .page-hero { padding-bottom: 124px; }
.page-legal .lang-wrap { position: relative; z-index: 2; padding-top: 30px; }
.page-legal .lang-switch { border-color: rgba(212,175,90,.5); box-shadow: 0 10px 30px rgba(11,36,24,.18); }
.page-legal .content-wrap { padding-top: 34px; }
.page-legal #btn-pdf { background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important; color: var(--night) !important; box-shadow: 0 8px 26px rgba(212,175,90,.35) !important; }

/* policy sections */
:where(.page) .policy-section {
  background: linear-gradient(160deg, #fff, #fdf7e6); border: 1px solid rgba(212,175,90,.4);
  border-radius: 22px; box-shadow: 0 6px 24px rgba(26,107,60,.08);
}
.page .policy-section::before { background: linear-gradient(180deg, var(--gold), var(--gold-light)); }
.page .section-header h2 { font-size: 1.45rem; line-height: 1.3; }
.page .section-num { background: linear-gradient(160deg, #0f5c4a, #0b2418); color: var(--gold-light); box-shadow: 0 0 0 2px rgba(212,175,90,.55); font-family: 'Amiri', serif; font-size: 1.1rem; border-radius: 50%; }
.page .policy-list li .li-icon { color: #8a6a1e; }
:where(.page) .note-box { background: linear-gradient(135deg, rgba(212,175,90,.14), rgba(212,175,90,.05)); border: 1px solid rgba(212,175,90,.45); border-left: 4px solid var(--gold); border-radius: 18px; }

/* trust strip + closing contact box on legal pages = night panels */
:where(.page) :is(.trust-strip, .pg-trust-panel, .pg-about-us-cta) {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 50% 0, #12402b, var(--night2));
  border: 1px solid rgba(212,175,90,.5); border-radius: 22px; box-shadow: 0 16px 44px rgba(11,36,24,.28);
}
:where(.page) :is(.trust-strip, .pg-trust-panel, .pg-about-us-cta)::before { content: ""; position: absolute; inset: 0; background: var(--pat-y); background-size: 70px; opacity: .6; pointer-events: none; }
:where(.page) :is(.trust-strip, .pg-trust-panel, .pg-about-us-cta) > * { position: relative; }
.page .trust-strip-text h3 { font-family: 'Amiri', serif; }
.page .trust-strip-icon { background: linear-gradient(160deg, #0f5c4a, #0b2418); border: 1px solid rgba(212,175,90,.5); border-radius: 50% 50% 14px 14px; }
.page .trust-badge { background: rgba(212,175,90,.1); border-color: rgba(212,175,90,.4); }
.page-legal .contact-box {
  position: relative; overflow: hidden; max-width: none; margin: 8px 0 0; padding: 32px 36px; color: #fff;
  background: radial-gradient(circle at 50% 0, #12402b, var(--night2)); border: 1px solid rgba(212,175,90,.5); border-radius: 22px;
  box-shadow: 0 16px 44px rgba(11,36,24,.28); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.page-legal .contact-box::before { content: ""; position: absolute; inset: 0; background: var(--pat-y); background-size: 70px; opacity: .6; pointer-events: none; }
.page-legal .contact-box > * { position: relative; }
.page-legal .contact-box-text h3 { font-family: 'Amiri', serif; color: #fff; }
@media (max-width: 640px) { .page-legal .contact-box { padding: 24px 20px; } .page-legal .lang-wrap { padding-left: 16px; padding-right: 16px; } }

/* ── about ── */
.page .hero-highlight { background: rgba(212,175,90,.1); border-color: rgba(212,175,90,.4); color: rgba(255,255,255,.88); backdrop-filter: blur(6px); }
:where(.page) :is(.pg-company-card, .pg-location-card, .pg-commitment-card, .pg-legal-card) {
  background: linear-gradient(160deg, #fff, #fdf7e6); border: 1px solid rgba(212,175,90,.4);
  border-radius: 22px; box-shadow: 0 6px 24px rgba(26,107,60,.08);
}
.page :is(.pg-loc-icon, .pg-c-icon, .pg-company-logo-badge) { border-radius: 50% 50% 14px 14px; background: linear-gradient(160deg, #0f5c4a, #0b2418); color: var(--gold-light); box-shadow: 0 8px 20px rgba(11,36,24,.3); }
.page .pg-company-pill { background: rgba(212,175,90,.12); border: 1px solid rgba(212,175,90,.5); color: var(--night); }
.page .pg-company-logo-row h3 { font-family: 'Amiri', serif; }
.page .pg-trust-panel-header h3 { font-family: 'Amiri', serif; }
.page .pg-about-us-cta a { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--night); border-radius: 999px; font-weight: 700; box-shadow: 0 8px 26px rgba(212,175,90,.35); }

/* ── resources ── */
.page-resources section:nth-of-type(even) { background-color: #fff; background-image: none; }
.page .pg-badge-chip { background: rgba(212,175,90,.12); border: 1px solid rgba(212,175,90,.5); color: var(--night); }
:where(.page) .pg-green-bar { background: linear-gradient(135deg, rgba(212,175,90,.14), rgba(212,175,90,.05)); border: 1px solid rgba(212,175,90,.45); border-radius: 18px; color: var(--night); }
.page .pg-btn-download { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--night); border-radius: 999px; box-shadow: 0 8px 26px rgba(212,175,90,.35); }
.page .pg-btn-download:disabled { opacity: .7; }
.page .pg-legal-link { color: #0f5c4a; }

/* ── 404 ── */
.page-notfound .page-hero { min-height: 78vh; display: flex; align-items: center; justify-content: center; padding-bottom: 130px; }
.nf-code { font-family: 'Amiri', serif; font-size: clamp(5.5rem, 18vw, 10rem); line-height: 1; font-weight: 700; letter-spacing: 4px;
  background: linear-gradient(100deg, #e9c76d, #fff3c4, #d4af5a, #fff3c4, #e9c76d); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: gold 6s linear infinite; margin-bottom: 4px; }
.nf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 800px) { .nf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .nf-grid { grid-template-columns: 1fr; } }
.nf-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: linear-gradient(160deg, #fff, #fdf7e6); border: 1px solid rgba(212,175,90,.4); border-radius: 22px; box-shadow: 0 6px 24px rgba(26,107,60,.08); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .3s; }
.nf-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 20px 44px rgba(26,107,60,.16); }
.nf-card .nf-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50% 50% 14px 14px; background: linear-gradient(160deg, #0f5c4a, #0b2418); color: var(--gold-light); box-shadow: 0 8px 20px rgba(11,36,24,.3); margin-bottom: 4px; }
.nf-card h3 { font-family: 'Amiri', serif; font-size: 1.3rem; color: var(--night); }
.nf-card p { font-size: .9rem; color: var(--text-mid); line-height: 1.6; }

/* style.css tints #about-us mint for index; inner pages keep the shared ivory pattern */
body.page section#about-us { background-color: var(--ivory); background-image: var(--pat-g); }

/* centred headings that were centred with inline styles keep a centred ornament */
.page [style*="text-align:center"] > .section-title::after,
.page [style*="text-align: center"] > .section-title::after { margin-inline: auto; }
/* style.css colours some section ids for index; inner pages keep the shared ivory / white rhythm */
body.page-resources :is(#certificates, #samples, #export, #legal) { background-color: var(--ivory); background-image: var(--pat-g); }
body.page-resources :is(#certificates, #samples, #export, #legal):nth-of-type(even) { background-color: #fff; background-image: none; }
