/* ==========================================================================
   दिव्यांग साथी धुळे — Information pages (loaded after css/style.css)
   --------------------------------------------------------------------------
   Uses the tokens, buttons and components defined in style.css. Only new
   components for the inner pages live here, so the homepage is unaffected.

   1. Page hero & layout     5. Filters & results
   2. Prose & notes          6. Document / GR cards
   3. Table of contents      7. Scheme cards
   4. Buttons & links        8. News cards, FAQ, misc
                             9. High contrast
   ========================================================================== */

/* 1. Page hero & layout --------------------------------------------------- */
.main-nav__btn.is-section { border-bottom-color: var(--c-sun); }
.sub-menu a[aria-current="page"] { font-weight: 700; background: var(--c-primary-50); color: var(--c-primary-800); }
.nav-compact .sub-menu a[aria-current="page"] { background: var(--c-primary-600); color: #fff; }

.page-hero {
  background:
    radial-gradient(40rem 18rem at 100% 0%, rgb(255 255 255 / .08), transparent 70%),
    linear-gradient(135deg, var(--c-primary-800), var(--c-primary));
  padding-block: clamp(2rem, 5vw, 3.25rem);
}
.page-hero h1 { margin: .25rem 0 .5rem; }
.page-hero__lead { color: var(--c-on-dark-muted); font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 48rem; margin: 0; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--c-sun); }
.breadcrumb [aria-current] { color: var(--c-on-dark-muted); }
.page-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.1rem;
  font-size: .95rem; color: var(--c-on-dark-muted);
}
.page-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.page-meta a { color: #fff; }

.lang-note { display: none; }
html[lang="en"] .lang-note {
  display: block; margin: 0 0 1.5rem; padding: .75rem 1rem;
  background: var(--c-primary-50); border-left: 4px solid var(--c-primary-600); border-radius: var(--radius-sm);
}

.page-body { padding-block: clamp(2rem, 5vw, 3.5rem); }
.with-toc { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .with-toc { grid-template-columns: 1fr; } }

.content-section { scroll-margin-top: 5rem; }
.content-section + .content-section { margin-top: clamp(2.25rem, 5vw, 3.25rem); }
.content-section > h2 { position: relative; padding-bottom: .5rem; margin-bottom: 1rem; }
.content-section > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 3rem; height: 4px; border-radius: 2px; background: var(--c-accent);
}

/* 2. Prose & notes -------------------------------------------------------- */
.prose { max-width: 50rem; }
.prose p, .prose li { font-size: 1.125rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1em; display: grid; gap: .45rem; }
.prose h3 { margin-top: 1.5rem; }
.prose strong { color: var(--c-primary-800); }

.law-ref {
  display: inline-block; font-size: .85rem; font-weight: 700; white-space: nowrap;
  color: var(--c-primary-600); background: var(--c-primary-50);
  padding: 0 .5rem; border-radius: 6px; margin-left: .25rem;
}

.note {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.2rem; margin: 1.25rem 0;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-left: 5px solid var(--c-primary-600); border-radius: var(--radius-sm);
}
.note > .icon { width: 1.6rem; height: 1.6rem; color: var(--c-primary-600); margin-top: .15rem; }
.note p { margin: 0; }
.note p + p { margin-top: .5rem; }
.note--warn { border-left-color: #b45309; background: #fff8eb; }
.note--warn > .icon { color: #b45309; }
.note--source { border-left-color: var(--c-accent); }
.note--source > .icon { color: var(--c-accent); }

.fact-grid { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem !important; margin: 1rem 0 1.5rem; }
.fact {
  padding: 1.15rem 1.25rem; background: var(--c-surface);
  border: 1px solid var(--c-border); border-top: 4px solid var(--c-primary-600); border-radius: var(--radius);
}
.fact h3 { font-size: 1.12rem; margin: 0 0 .35rem; }
.fact p { margin: 0; font-size: 1.02rem !important; color: var(--c-muted); line-height: 1.6; }

.chip-cloud { list-style: none; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: .5rem !important; }
.chip-cloud li {
  padding: .3rem .85rem; border-radius: 999px; font-size: 1rem !important; font-weight: 500;
  background: var(--c-surface); border: 1px solid var(--c-border);
}

/* 3. Table of contents ---------------------------------------------------- */
.toc { position: sticky; top: 5rem; }
.toc details { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.toc summary {
  cursor: pointer; list-style: none; padding: .85rem 1.1rem; min-height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  font-weight: 700; color: var(--c-primary-800);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary .icon { transition: transform .2s; }
.toc details[open] summary .icon { transform: rotate(180deg); }
.toc ol { list-style: none; margin: 0; padding: 0 .5rem .75rem; display: grid; gap: .1rem; border-top: 1px solid var(--c-border); }
.toc a {
  display: block; padding: .45rem .6rem; border-radius: 6px;
  color: var(--c-text); text-decoration: none; font-size: 1rem; line-height: 1.4;
}
.toc a:hover { background: var(--c-primary-50); color: var(--c-primary-800); }
@media (max-width: 960px) { .toc { position: static; } }
@media (min-width: 961px) { .toc summary { cursor: default; pointer-events: none; } .toc summary .icon { display: none; } }

/* 4. Buttons & links ------------------------------------------------------ */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.btn--sm { min-height: 44px; padding: .45rem 1rem; font-size: .98rem; }
.btn--ghost { background: var(--c-surface); color: var(--c-primary); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-50); }
.btn--navy { background: var(--c-primary); color: #fff; }
.btn--navy:hover { background: var(--c-primary-600); color: #fff; }
.ext-icon { width: 1em; height: 1em; }

.cta-panel {
  display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--c-primary-50); border: 1px solid #cddbe7; border-radius: var(--radius-lg); margin: 1.5rem 0;
}
.cta-panel h3 { margin: 0; }
.cta-panel .btn-row { margin: 0; }

/* 5. Filters & results ---------------------------------------------------- */
.filters {
  display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end;
  padding: 1.25rem; margin-bottom: 1.25rem;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
}
.filters--3 { grid-template-columns: 2fr repeat(2, minmax(0, 1fr)); }
.filters--single { grid-template-columns: minmax(0, 22rem) !important; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; color: var(--c-primary-800); font-size: 1rem; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: .5rem .85rem;
  font: inherit; font-size: 1.05rem; color: var(--c-text);
  background: var(--c-surface); border: 2px solid #8a97a6; border-radius: var(--radius-sm);
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--c-primary); }
.field--search { position: relative; }
.field--search input { padding-left: 2.6rem; }
.field--search .icon { position: absolute; left: .8rem; bottom: .9rem; color: var(--c-muted); pointer-events: none; }
.filters__actions { display: flex; }
.filters__actions .btn { width: 100%; }
@media (max-width: 900px) { .filters, .filters--3 { grid-template-columns: 1fr 1fr; } .field--search { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filters, .filters--3 { grid-template-columns: 1fr; } }

.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.result-count { margin: 0; font-weight: 700; color: var(--c-primary-800); }

.empty-state {
  text-align: center; padding: 2.5rem 1.25rem; color: var(--c-muted);
  background: var(--c-surface); border: 2px dashed var(--c-border); border-radius: var(--radius);
}
.empty-state .icon { width: 2.5rem; height: 2.5rem; color: var(--c-primary-600); margin: 0 auto .75rem; }
.empty-state h3 { color: var(--c-primary-800); margin-bottom: .35rem; }
.empty-state p { margin: 0 auto; max-width: 36rem; }

/* 6. Document / GR cards -------------------------------------------------- */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.doc-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem 1.1rem; align-items: start;
  padding: 1.1rem 1.25rem; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.doc-card--plain { grid-template-columns: minmax(0, 1fr) auto; }
.doc-card__no {
  display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .4rem;
  border-radius: var(--radius-sm); background: var(--c-primary-50); color: var(--c-primary-800);
  font-weight: 700; font-size: 1rem;
}
.doc-card__title { font-size: 1.1rem; font-weight: 700; line-height: 1.5; margin: 0 0 .4rem; color: var(--c-primary-800); }
.doc-card__desc { margin: 0 0 .5rem; color: var(--c-text); font-size: 1.02rem; line-height: 1.6; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0; font-size: .95rem; color: var(--c-muted); }
.doc-meta > div { display: inline-flex; align-items: center; gap: .35rem; }
.doc-meta dt { font-weight: 700; color: var(--c-text); }
.doc-meta dd { margin: 0; }
.doc-meta .icon { width: 1.05em; height: 1.05em; color: var(--c-primary-600); }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; list-style: none; padding: 0; }
.tag-list li {
  font-size: .85rem; font-weight: 700; padding: .05rem .6rem; border-radius: 999px;
  background: var(--c-accent-50); color: var(--c-accent-700);
}
.doc-card__actions { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; }
.badge-obsolete {
  display: inline-block; margin-left: .35rem; font-size: .8rem; font-weight: 700; vertical-align: middle;
  padding: 0 .5rem; border-radius: 6px; background: #eef0f2; color: #3d4652; border: 1px solid #c4cad1;
}
@media (max-width: 700px) {
  .doc-card { grid-template-columns: auto minmax(0, 1fr); }
  .doc-card--plain { grid-template-columns: minmax(0, 1fr); }
  .doc-card__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .doc-card { grid-template-columns: 1fr; }
  .doc-card__no { justify-self: start; }
}

.load-more { display: flex; justify-content: center; margin-top: 1.25rem; }

/* 7. Scheme cards --------------------------------------------------------- */
.cat-nav { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-nav a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .35rem 1rem;
  border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-primary-800); font-weight: 600; text-decoration: none;
}
.cat-nav a:hover { border-color: var(--c-primary); background: var(--c-primary-50); }
.cat-nav .count { font-size: .85rem; color: var(--c-muted); font-weight: 700; }

.cat-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.cat-head .cat-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; flex-shrink: 0;
  border-radius: 50%; background: var(--c-primary-50); color: var(--c-primary);
}
.cat-head .cat-icon .icon { width: 1.5rem; height: 1.5rem; }
.cat-head h2 { margin: 0; }
.cat-intro { color: var(--c-muted); max-width: 50rem; }

.scheme-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.scheme {
  background: var(--c-surface); border: 1px solid var(--c-border); border-top: 5px solid var(--c-primary);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: 5rem;
}
.scheme__head { padding: 1.25rem 1.4rem .25rem; }
.scheme__labels { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; list-style: none; padding: 0; }
.scheme__labels li { font-size: .85rem; font-weight: 700; padding: .05rem .6rem; border-radius: 999px; background: var(--c-primary-50); color: var(--c-primary-800); }
.scheme__title { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); margin: 0 0 .5rem; }
.scheme__purpose { margin: 0; }
.scheme__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; padding: 1rem 1.4rem; }
.scheme__grid h4 { font-size: 1.02rem; margin: 0 0 .4rem; display: flex; align-items: center; gap: .4rem; }
.scheme__grid h4 .icon { color: var(--c-accent); }
.scheme__grid ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.scheme__grid li { font-size: 1.02rem; line-height: 1.55; }
.scheme__benefit { background: #f1f7f2; border: 1px solid #cfe3d3; border-radius: var(--radius-sm); padding: .85rem 1rem; }
.scheme__benefit h4 .icon { color: #1f7a3a; }
.scheme details { border-top: 1px solid var(--c-border); }
.scheme summary {
  cursor: pointer; padding: .85rem 1.4rem; min-height: 48px; font-weight: 700; color: var(--c-primary-600);
  display: flex; align-items: center; gap: .5rem; list-style: none;
}
.scheme summary::-webkit-details-marker { display: none; }
.scheme summary .icon { transition: transform .2s; }
.scheme details[open] summary .icon { transform: rotate(180deg); }
.scheme summary:hover { background: var(--c-primary-50); }
.scheme details .scheme__grid { padding-top: 0; }
.scheme__apply { padding: 1rem 1.4rem 1.25rem; background: var(--c-tint); display: grid; gap: .6rem; }
.scheme__apply p { margin: 0; }
.scheme__apply .btn-row { margin: .25rem 0 0; }
.scheme__contact { font-size: 1rem; }
.scheme__contact a { font-weight: 700; }
.scheme .note { margin: 0 1.4rem 1rem; }
@media (max-width: 760px) { .scheme__grid { grid-template-columns: 1fr; } }

.related { margin-top: 1rem; }
.related h3 { font-size: 1.1rem; }

/* 8. News cards, FAQ, misc ------------------------------------------------ */
.news-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1.1rem; }
.news-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.25rem 1.3rem;
}
.news-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
.news-card__cat { font-size: .85rem; font-weight: 700; padding: .1rem .65rem; border-radius: 999px; background: var(--c-accent-50); color: var(--c-accent-700); }
.news-card__date { display: inline-flex; align-items: center; gap: .35rem; font-size: .95rem; color: var(--c-muted); }
.news-card__date .icon { color: var(--c-primary-600); }
.news-card h3 { font-size: 1.15rem; line-height: 1.45; margin-bottom: .5rem; }
.news-card p { color: var(--c-text); font-size: 1.02rem; line-height: 1.6; }
.news-card__status { font-size: .95rem; font-weight: 700; padding: .35rem .7rem; border-radius: var(--radius-sm); margin-bottom: .75rem; }
.news-card__status--expired { background: #eef0f2; color: #3d4652; }
.news-card__status--open { background: #eaf6ec; color: #1d6b33; }
.news-card__source { font-size: .92rem; color: var(--c-muted); margin: 0 0 .85rem; }
.news-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }

.faq { display: grid; gap: .6rem; }
.faq details { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: .9rem 1.1rem; min-height: 52px;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 700; color: var(--c-primary-800); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex-shrink: 0; transition: transform .2s; color: var(--c-primary-600); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover { background: var(--c-primary-50); }
.faq .faq__a { padding: 0 1.1rem 1rem; }
.faq .faq__a p:last-child { margin-bottom: 0; }

.steps-list { list-style: none; counter-reset: s; padding: 0 !important; display: grid !important; gap: .75rem !important; }
.steps-list li {
  counter-increment: s; position: relative; padding: .9rem 1rem .9rem 3.75rem;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
}
.steps-list li::before {
  content: counter(s); position: absolute; left: .9rem; top: .85rem;
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--c-primary); color: #fff; font-weight: 700;
}

.card-types { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .85rem !important; }
.card-type { display: flex; gap: .85rem; align-items: center; padding: .9rem 1rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.card-type__swatch { width: 2.6rem; height: 1.8rem; border-radius: 5px; border: 2px solid #3d4652; flex-shrink: 0; }
.card-type strong { display: block; }
.card-type span { font-size: 1rem; color: var(--c-muted); }

.doc-table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.doc-table caption { text-align: left; padding: .85rem 1rem; font-weight: 700; color: var(--c-primary-800); border-bottom: 1px solid var(--c-border); }
.doc-table th, .doc-table td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); }
.doc-table th { background: var(--c-tint); color: var(--c-primary-800); font-size: .95rem; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td:last-child { white-space: nowrap; }
@media (max-width: 640px) {
  .doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc-table tr { display: grid; gap: .2rem; padding: .85rem 1rem; border-bottom: 1px solid var(--c-border); }
  .doc-table td { border: 0; padding: 0; }
  .doc-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--c-muted); }
  .doc-table td:last-child { margin-top: .4rem; }
}

.source-box {
  margin-top: clamp(2rem, 5vw, 3rem); padding: 1.25rem 1.4rem;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
}
.source-box h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.source-box ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.source-box p { margin: .75rem 0 0; font-size: .98rem; color: var(--c-muted); }

/* 9. High contrast -------------------------------------------------------- */
html[data-contrast="high"] .page-hero { background: #000; border-bottom: 1px solid #fff; }
html[data-contrast="high"] .note,
html[data-contrast="high"] .fact,
html[data-contrast="high"] .toc details,
html[data-contrast="high"] .filters,
html[data-contrast="high"] .doc-card,
html[data-contrast="high"] .scheme,
html[data-contrast="high"] .news-card,
html[data-contrast="high"] .faq details,
html[data-contrast="high"] .steps-list li,
html[data-contrast="high"] .card-type,
html[data-contrast="high"] .cta-panel,
html[data-contrast="high"] .source-box,
html[data-contrast="high"] .empty-state,
html[data-contrast="high"] .scheme__benefit,
html[data-contrast="high"] .scheme__apply,
html[data-contrast="high"] .doc-table-wrap,
html[data-contrast="high"] .cat-nav a,
html[data-contrast="high"] .chip-cloud li { background: #000; border: 2px solid #fff; color: #fff; }
html[data-contrast="high"] .field input,
html[data-contrast="high"] .field select { background: #000; color: #fff; border-color: #fff; }
html[data-contrast="high"] .doc-card__no,
html[data-contrast="high"] .law-ref,
html[data-contrast="high"] .tag-list li,
html[data-contrast="high"] .scheme__labels li,
html[data-contrast="high"] .news-card__cat,
html[data-contrast="high"] .news-card__status,
html[data-contrast="high"] .badge-obsolete,
html[data-contrast="high"] .doc-table th { background: #000; color: #ffd34e; border: 1px solid #ffd34e; }
html[data-contrast="high"] .note > .icon,
html[data-contrast="high"] .doc-meta .icon,
html[data-contrast="high"] .cat-head .cat-icon,
html[data-contrast="high"] .scheme__grid h4 .icon,
html[data-contrast="high"] .news-card__date .icon,
html[data-contrast="high"] .faq summary .icon,
html[data-contrast="high"] .empty-state .icon { color: #ffd34e; background: transparent; }
html[data-contrast="high"] .steps-list li::before,
html[data-contrast="high"] .card-type__swatch { border-color: #fff; }
html[data-contrast="high"] .steps-list li::before { background: #ffd34e; color: #000; }
html[data-contrast="high"] .page-body :is(strong, label, caption, summary, h2, h3, h4, .result-count, .toc summary, .card-type span),
html[data-contrast="high"] .page-body :is(summary, .toc summary) .icon { color: #fff; }
html[data-contrast="high"] .toc a,
html[data-contrast="high"] .scheme summary,
html[data-contrast="high"] .doc-card__title,
html[data-contrast="high"] .faq summary { color: #ffd34e; }
