/* =========================================================================
   GreenKhoj India — main stylesheet
   Layout concept: a calm ivory reading surface framed by a forest-green
   header and footer; content sits in one centred column (max 1180px) and
   cards fall into 1–4 columns depending on screen width.
   ========================================================================= */

/* ---------- 1. Colour and type tokens (approved brand palette) ---------- */
:root {
  /* Approved palette — do not change without the founder's permission */
  --forest: #174A35;      /* primary: header, footer, primary buttons */
  --leaf: #68A85A;        /* secondary: icons, highlights (never small text on ivory) */
  --ivory: #F7F5EC;       /* main background */
  --clay: #C47A55;        /* restrained accent: Indian materials, craft */
  --charcoal: #26332D;    /* body text and headings */

  /* Accessible helpers derived from the palette (for small text and tints) */
  --clay-text: #9A5534;   /* clay for small text on light backgrounds (5.2:1) */
  --leaf-text: #3F7A34;   /* leaf for small text on light backgrounds (4.8:1) */
  --leaf-tint: #E6EFDF;
  --clay-tint: #F5E7DE;
  --surface: #FFFEF8;     /* cards */
  --line: #DEDACB;        /* borders */
  --muted: #4E5C55;       /* secondary text (6.4:1 on ivory) */

  /* Roles used by components (dark mode changes these) */
  --bg: var(--ivory);
  --fg: var(--charcoal);
  --heading: var(--charcoal);
  --link: var(--forest);
  --btn-bg: var(--forest);
  --btn-fg: var(--ivory);
  --chrome-bg: var(--forest);       /* header and footer */
  --chrome-fg: var(--ivory);
  --chrome-accent: var(--leaf);
  --focus: var(--clay);

  --font: "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", Mangal, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121A16; --fg: #E7ECE4; --heading: #F2F5EF; --muted: #A9B8AE;
    --surface: #1A2520; --line: #2E3D35; --link: #9CCF8E;
    --leaf-tint: #1F3226; --clay-tint: #33241C; --clay-text: #E8A783; --leaf-text: #9CCF8E;
    --btn-bg: #68A85A; --btn-fg: #10180F;
    --chrome-bg: #0F2A1F; --chrome-fg: #F7F5EC;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121A16; --fg: #E7ECE4; --heading: #F2F5EF; --muted: #A9B8AE;
  --surface: #1A2520; --line: #2E3D35; --link: #9CCF8E;
  --leaf-tint: #1F3226; --clay-tint: #33241C; --clay-text: #E8A783; --leaf-text: #9CCF8E;
  --btn-bg: #68A85A; --btn-fg: #10180F;
  --chrome-bg: #0F2A1F; --chrome-fg: #F7F5EC;
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
html[lang="hi"] body { line-height: 1.8; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.22; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 750; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
html[lang="hi"] h1, html[lang="hi"] h2 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
ul { padding-left: 1.2em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--fg); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Header and navigation ---------- */
/* The founder's logo is dark green on a transparent background, so it sits on an
   ivory brand bar (in light and dark mode) above the forest-green menu bar. */
.brand-bar { background: var(--ivory); border-bottom: 1px solid #E4E0D2; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; border-radius: 6px; flex-shrink: 1; min-width: 0; }
.brand img { display: block; height: 64px; width: auto; max-width: 100%; }
@media (max-width: 700px) { .brand img { height: 50px; } }
@media (max-width: 400px) { .brand img { height: 42px; } }

.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Language switch appears only when JavaScript runs, so it is never a dead button */
.lang-switch { display: none; border: 1.5px solid var(--forest); border-radius: 999px; padding: 2px; background: #fff; }
.js .lang-switch { display: inline-flex; }
.lang-switch button {
  font: inherit; font-size: .9rem; font-weight: 650; line-height: 1; cursor: pointer;
  background: transparent; color: var(--forest); border: 0; border-radius: 999px; padding: 8px 12px; min-height: 36px;
}
.lang-switch button[aria-pressed="true"] { background: var(--forest); color: var(--ivory); }

.menu-btn {
  display: none; align-items: center; gap: 6px; cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 650;
  background: var(--forest); color: var(--ivory);
  border: 0; border-radius: 8px; padding: 8px 11px; min-height: 42px;
}
.menu-btn svg { width: 20px; height: 20px; }

.site-nav { background: var(--chrome-bg); color: var(--chrome-fg); border-bottom: 3px solid var(--chrome-accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; justify-content: space-between; }
.site-nav a {
  display: block; color: var(--chrome-fg); text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 11px 7px; border-radius: 6px; white-space: nowrap;
}
.site-nav a:hover { background: rgba(247,245,236,.1); }
.site-nav a[aria-current="page"] { background: rgba(247,245,236,.14); box-shadow: inset 0 -3px 0 var(--leaf); }
.site-nav .wrap { padding-block: 4px; }

@media (max-width: 1239px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav:not(.open) ul { display: none; }
  .js .site-nav:not(.open) { border-bottom-width: 3px; }
  .site-nav ul { flex-direction: column; padding-block: 6px; }
  .site-nav a { padding: 12px 10px; font-size: 1.02rem; }
}
@media (max-width: 460px) {
  .menu-btn .menu-label { display: none; }
  .lang-switch button { padding: 8px 8px; font-size: .85rem; }
}

/* ---------- 4. Buttons, chips and labels ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bg); border-radius: 8px; padding: 12px 20px; min-height: 48px;
}
.btn:hover { filter: brightness(1.12); }
.btn svg { width: 18px; height: 18px; }
.btn-outline { background: transparent; color: var(--link); border-color: currentColor; }
.btn-outline:hover { background: var(--leaf-tint); filter: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .8rem; font-weight: 700; line-height: 1; letter-spacing: .02em;
  padding: 6px 10px; border-radius: 999px; border: 1px solid transparent;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-planned { background: var(--leaf-tint); color: var(--leaf-text); }
.chip-research { background: var(--clay-tint); color: var(--clay-text); }
.chip-sample { background: transparent; color: var(--clay-text); border: 1.5px dashed var(--clay); }
.status-verified { background: var(--leaf-tint); color: var(--leaf-text); }
.status-manufacturer-claim { background: var(--clay-tint); color: var(--clay-text); }
.status-preliminary { background: transparent; color: var(--muted); border-color: var(--line); }
.status-awaiting { background: transparent; color: var(--clay-text); border-color: var(--clay); }
.status-estimate { background: transparent; color: var(--muted); border: 1px dashed var(--muted); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em;
  color: var(--clay-text); margin-bottom: .6rem;
}
html[lang="hi"] .eyebrow { text-transform: none; letter-spacing: .01em; font-size: .9rem; }

/* ---------- 5. Sections and grids ---------- */
.section { padding-block: clamp(44px, 6vw, 80px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid > * { min-width: 0; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.section-alt .card { background: var(--bg); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .card-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }

/* Category cards are whole-card links */
.cat-card { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.cat-card:hover { border-color: var(--leaf); transform: translateY(-2px); }
.cat-card h3 { color: var(--heading); }
.cat-card .more { color: var(--link); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: 4px; }
.cat-card .more svg { width: 16px; height: 16px; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--leaf-tint); color: var(--forest);
}
:root[data-theme="dark"] .icon-badge { color: var(--leaf); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-badge { color: var(--leaf); } }
.icon-badge svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge.clay { background: var(--clay-tint); color: var(--clay-text); }

/* ---------- 6. Home hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(32px, 4vw, 56px); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; } }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--leaf-text); }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.hero-art { max-width: 380px; width: 100%; justify-self: center; }
@media (max-width: 899px) { .hero-art { display: none; } }

.search-box { margin-top: 24px; max-width: 640px; }
.search-box label { display: block; font-weight: 700; margin-bottom: 8px; }
.search-row {
  display: flex; gap: 0; background: var(--surface); border: 2px solid var(--forest); border-radius: 10px; overflow: hidden;
}
:root[data-theme="dark"] .search-row { border-color: var(--leaf); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .search-row { border-color: var(--leaf); } }
.search-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; color: var(--fg);
  background: transparent; border: 0; padding: 12px 14px; min-height: 52px;
}
.search-row input:focus { outline: none; }
.search-row:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-row button { border-radius: 0; border: 0; min-height: 52px; }
@media (max-width: 420px) { .search-row button .btn-text { display: none; } .search-row button { padding: 12px 16px; } }
.quick-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.quick-topics span { font-size: .92rem; color: var(--muted); }
.topic-btn {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; min-height: 36px;
}
.topic-btn:hover { border-color: var(--leaf); }

/* Inline search results on the home page */
.search-results { margin-top: 18px; max-width: 760px; }
.search-results h2 { font-size: 1.15rem; }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.result-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.result-list a { font-weight: 700; }
.result-list .kind { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--clay-text); display: block; }
.result-list p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.search-note { color: var(--muted); font-size: .92rem; margin-top: 10px; }

/* ---------- 7. Notice band ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--clay-tint); border: 1px solid var(--clay); border-radius: var(--radius); padding: 16px 18px;
}
.notice svg { width: 24px; height: 24px; flex-shrink: 0; stroke: var(--clay-text); fill: none; stroke-width: 2; stroke-linecap: round; margin-top: 2px; }
.notice strong { display: block; color: var(--heading); }
.notice p { margin: 0; }

/* ---------- 8. Journey (problem → solution) ---------- */
.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .journey { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
.journey li { position: relative; padding: 18px 16px 18px; border-top: 4px solid var(--leaf); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.section-alt .journey li { background: var(--bg); }
.journey li::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--forest); color: var(--ivory); font-weight: 800; font-size: .95rem; margin-bottom: 10px;
}
.journey li:nth-child(4) { border-top-color: var(--clay); }
.journey h3 { font-size: 1.02rem; margin-bottom: 4px; }
.journey p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- 9. Feature panels ---------- */
.split { display: grid; gap: 16px; }
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.section-alt .panel { background: var(--bg); }
.panel h3 { font-size: 1.25rem; margin: 0; }
.panel ul { margin: 0; color: var(--muted); }
.panel .btn { align-self: flex-start; margin-top: auto; }
.checklist { list-style: none; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg);
}

.theme-band { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .theme-band { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.theme-levels { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.theme-levels li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.section-alt .theme-levels li { background: var(--bg); }
.theme-levels strong { color: var(--heading); }

.cta-band { background: var(--chrome-bg); color: var(--chrome-fg); border-radius: 14px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1.4fr) auto; } }
.cta-band h2 { color: var(--chrome-fg); }
.cta-band p { margin: 0; opacity: .92; max-width: 60ch; }
.cta-band .btn { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }

/* ---------- 10. Labels legend and sample card ---------- */
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.legend li { display: grid; gap: 4px; }
@media (min-width: 640px) { .legend li { grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 14px; } .legend .chip { justify-self: start; } }
.legend p { margin: 0; color: var(--muted); font-size: .97rem; }

.sample-card { border: 2px dashed var(--clay); background: transparent; }
.sample-card dl { margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.sample-card dl div { display: flex; gap: 8px; flex-wrap: wrap; }
.sample-card dt { font-weight: 700; color: var(--heading); }
.sample-card dd { margin: 0; color: var(--muted); }

/* ---------- 11. Inner pages ---------- */
.page-hero { padding-block: clamp(32px, 5vw, 60px) clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.page-hero .hero-lead { margin-bottom: 0; }
.page-hero-inner { display: flex; gap: 18px; align-items: flex-start; }
.page-hero .icon-badge { width: 60px; height: 60px; flex-shrink: 0; margin-top: 6px; }
.page-hero .icon-badge svg { width: 30px; height: 30px; }
@media (max-width: 560px) { .page-hero .icon-badge { display: none; } }
.breadcrumb { font-size: .9rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.topic-card { scroll-margin-top: 20px; }
.topic-card:target { border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-tint); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before {
  counter-increment: s; content: counter(s); display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--ivory); font-weight: 800; margin-bottom: 10px;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

.contact-box { border: 1.5px dashed var(--clay); border-radius: var(--radius); padding: 18px; background: var(--surface); display: grid; gap: 8px; justify-items: start; }
.contact-box p { margin: 0; }

/* ---------- 12. Directory ---------- */
.filters { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
@media (min-width: 700px) { .filters { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); align-items: end; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 46px;
}
.field input:focus, .field select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--forest); }
.dir-meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); }
.link-btn { font: inherit; font-weight: 700; color: var(--link); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.empty-state {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; color: var(--muted);
  display: grid; gap: 8px; justify-items: center;
}
.empty-state h3 { color: var(--heading); margin: 0; }
.empty-state p { margin: 0; max-width: 52ch; }
.empty-state svg { width: 36px; height: 36px; stroke: var(--leaf); fill: none; stroke-width: 1.8; }

.record { gap: 12px; }
.record-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.record .kind { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--clay-text); }
.record h3 { font-size: 1.15rem; }
.record dl { margin: 0; display: grid; gap: 10px; }
.record dt { font-weight: 700; color: var(--heading); font-size: .92rem; }
.record dd { margin: 0; color: var(--fg); white-space: pre-line; overflow-wrap: anywhere; }
.record details { border-top: 1px solid var(--line); padding-top: 10px; }
.record summary { cursor: pointer; font-weight: 700; color: var(--link); padding-block: 4px; }
.record details[open] summary { margin-bottom: 10px; }
.record .lang-note { font-size: .85rem; color: var(--clay-text); font-style: italic; }
.record .checked { font-size: .88rem; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-links a { font-weight: 700; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--chrome-bg); color: var(--chrome-fg); margin-top: 0; padding-block: 44px 28px; font-size: .97rem; }
.site-footer a { color: var(--chrome-fg); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand img { height: 72px; width: auto; max-width: 100%; background: var(--ivory); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: block; }
.footer-brand p { margin: 0 0 8px; opacity: .9; }
.footer-tagline { font-weight: 700; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .09em; color: var(--chrome-fg); opacity: .8; margin-bottom: 10px; }
html[lang="hi"] .site-footer h2 { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(247,245,236,.18); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .9rem; opacity: .92; }
.footer-bottom p { margin: 0; }
.email { overflow-wrap: anywhere; }

/* ---------- 14. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- 15. Small spacing helpers (no inline styles, so a strict security policy works) ---------- */
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.pt-0 { padding-top: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.search-box.search-page { margin-top: 0; }

/* ---------- 16. Article pages ---------- */
.pb-0 { padding-bottom: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 16px; color: var(--muted); font-size: .95rem; }
.brief { background: var(--leaf-tint); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 28px; }
.brief h2 { font-size: 1.1rem; margin: 0 0 8px; }
.brief ul { margin: 0; }
.brief li + li { margin-top: 6px; }
.prose li + li { margin-top: 6px; }
.source-list { padding-left: 1.3em; }
.source-list li { overflow-wrap: anywhere; }
.checked { font-size: .9rem; color: var(--muted); }

/* Creator credit (About page) */
.credit-block { border-top: 1px solid var(--line, #d9d6c8); padding-top: 24px; text-align: center; }
.credit-block .credit-label { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin-bottom: 12px; }
.credit-block img { display: block; margin: 0 auto 12px; max-width: min(360px, 100%); height: auto; border-radius: 12px; background: #fff; }

/* ===== Manufacturing explainers (How it is made) ===== */
.proc-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.proc-toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; text-decoration: none; }
.proc-toc a:hover, .proc-toc a:focus-visible { border-color: var(--forest); }
.flow { list-style: none; padding: 0; margin: 16px 0 8px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.flow li { position: relative; display: flex; align-items: center; gap: 8px; background: var(--leaf-tint); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%); color: var(--leaf-text); font-weight: 700; }
.flow-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--forest); color: var(--ivory); font-size: .8rem; flex: none; }
@media (max-width: 599px) {
  .flow { flex-direction: column; gap: 22px; }
  .flow li:not(:last-child)::after { content: "\2193"; right: auto; left: 22px; top: auto; bottom: -21px; transform: none; }
}
.lbl { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; border: 1px solid transparent; }
.lbl-verified { background: var(--leaf-tint); color: var(--leaf-text); }
.lbl-general { background: var(--surface); color: var(--muted); border-color: var(--line); }
.lbl-estimate { background: var(--clay-tint); color: var(--clay-text); }
.lbl-claim { background: var(--clay-tint); color: var(--clay-text); border-color: var(--clay); }
.lbl-needs { background: transparent; color: var(--muted); border: 1px dashed var(--muted); }
.lbl-illus { background: var(--surface); color: var(--muted); border-color: var(--line); }
.label-key { display: flex; flex-wrap: wrap; gap: 6px; }
.ref { font-size: .78rem; text-decoration: none; margin-left: 2px; }
.proc-list { padding-left: 1.1rem; }
.proc-list li { margin-bottom: 10px; }
.proc-photo { margin: 12px 0 16px; }
.proc-photo img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.proc-photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.proc-photo.missing { display: flex; gap: 10px; align-items: flex-start; border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px 14px; color: var(--muted); background: transparent; font-size: .88rem; }
.proc-photo.missing p { margin: 2px 0 0; }
.proc-photo.missing svg { flex: none; width: 20px; height: 20px; }
.proc-illus { margin: 8px 0 12px; }
.proc-illus figcaption { margin-top: 4px; }
.illus { width: 100%; height: auto; max-height: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.il-frame { fill: #8A958F; }
.il-frame-line { stroke: #8A958F; stroke-width: 8; stroke-linecap: round; fill: none; }
.il-hot { fill: #C47A55; }
.il-heat { stroke: #C47A55; stroke-width: 2; fill: none; }
.il-die { fill: #6B7770; }
.il-sheath { stroke: #9C7A3C; stroke-width: 6; fill: none; stroke-linecap: round; }
.il-sheath-bar { stroke: #4E8A44; stroke-width: 8; fill: none; stroke-linecap: round; }
.il-soil { fill: #B98B62; }
.il-block { fill: #A0714C; }
.il-roller { fill: #DDE3DE; stroke: #6B7770; stroke-width: 3; }
.il-bar { stroke: #26332D; stroke-width: 4; stroke-linecap: round; fill: none; }
.il-rot { stroke: #174A35; stroke-width: 2.5; fill: none; }
.il-fibre { stroke: #C9B27A; stroke-width: 2; fill: none; }
.il-debris { stroke: #4E8A44; stroke-width: 3; stroke-linecap: round; fill: none; }
.il-arrow { stroke: #174A35; stroke-width: 3; fill: none; }
.il-arrow-head { fill: #174A35; }
.il-lead { stroke: #8A958F; stroke-width: 1; }
.il-text { font-size: 12px; fill: #26332D; font-family: inherit; }
.il-small { font-size: 11px; }
.machine-card h3 { margin-top: 0; }
.proc-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 16px; }
.proc-steps .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head h3 { margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: var(--ivory); font-weight: 700; flex: none; }
.step-body { margin-top: 12px; }
@media (min-width: 860px) { .step-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: start; } .step-body .proc-photo { margin-top: 0; } }
.fields { margin: 0; display: grid; gap: 10px; }
.fld dt { font-weight: 700; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.fld dd { margin: 2px 0 0; }
.fld-safety { border-left: 4px solid var(--clay); padding-left: 10px; }
.video-slot { margin: 10px 0; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }
:root[data-theme="dark"] .il-text { fill: #E7ECE4; }
:root[data-theme="dark"] .illus { background: #1F2B25; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .il-text { fill: #E7ECE4; } :root:not([data-theme="light"]) .illus { background: #1F2B25; } }
.il-water { fill: #CFE3EE; }
.il-sheet { fill: #F2EEDF; stroke: #B9B19A; stroke-width: 1; }
.il-hot-core { fill: #C47A55; opacity: .55; }
.video-slot { position: relative; aspect-ratio: 16 / 9; background: #1E2B25; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.video-slot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(104,168,90,.35), transparent 60%); }
.video-slot .video-load { position: relative; z-index: 1; }
.video-slot .video-load::before { content: "\25B6"; margin-right: 8px; }
.video-slot .video-frame { position: absolute; inset: 0; height: 100%; }
.video-slot .video-load { width: auto; max-width: 85%; padding: 10px 18px; border-radius: 999px; }
/* article hero photo */
.art-hero { margin: 0 0 24px; }
.art-hero img { max-height: 300px; aspect-ratio: 16 / 9; }
.art-videos { margin-top: 12px; }
/* topic cards that link to published pages */
.topic-links { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 6px; }
.topic-links a { font-weight: 600; color: var(--forest, #174A35); text-decoration: underline; text-underline-offset: 3px; }

/* Install as an app */
.gk-install{background:#F7F5EC;color:#174A35;border:2px solid #C9A227;border-radius:999px;padding:10px 18px;font-weight:700;font-size:1rem;cursor:pointer}
.gk-install[hidden]{display:none}

/* ऊपर की इंस्टॉल पट्टी */
#iabar{display:flex;align-items:center;gap:10px;background:#174A35;color:#F7F5EC;border-bottom:1px solid #C9A227;padding:7px 12px;font-size:14px;line-height:1.3}#iabar .ia-t{flex:1;min-width:0;font-weight:600}#iabar .ia-i{flex:none;background:#C9A227;color:#174A35;border:0;border-radius:999px;padding:6px 14px;font-weight:700;font-size:14px;cursor:pointer;min-height:0;width:auto;margin:0}#iabar .ia-x{flex:none;background:none;border:0;color:#F7F5EC;opacity:.75;font-size:16px;padding:4px 6px;cursor:pointer;min-height:0;width:auto;margin:0}@media print{#iabar{display:none}}
