/* =========================================================================
   series.css — "Constitution of India, Article by Article"
   (ADALATIQ_CONSTITUTION_SERIES_SPEC.md). Post page and series home, after
   the reference design adalatiq-constitution-article-21.html, on the shared
   theme tokens (theme.css): ink = --text-dark, ink-2 = --text-mid,
   surface = --bg-white, bg = --bg-page, tint = --chip. The few colours the
   reference adds (Article text box, quiz right / wrong) are --sr-* below,
   with dark values under the same rules as theme.css.
   ========================================================================= */

body.ins-body {
  --sr-green-soft: #e3f2ea; --sr-red: #b3392b; --sr-red-soft: #fbe7e3;
  --sr-law: #f3f0fa; --sr-law-line: #cfc6e6; --sr-law-ink: #3e3566;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.ins-body {
    --sr-green-soft: #173427; --sr-red: #f2877f; --sr-red-soft: #3b1f1c;
    --sr-law: #221f33; --sr-law-line: #463f6b; --sr-law-ink: #cfc6f2;
  }
}
:root[data-theme="dark"] body.ins-body {
  --sr-green-soft: #173427; --sr-red: #f2877f; --sr-red-soft: #3b1f1c;
  --sr-law: #221f33; --sr-law-line: #463f6b; --sr-law-ink: #cfc6f2;
}

/* Series pages are always long; no minimum height above the footer. */
body.ins-body .sr-main { min-height: 0; }
.sr-col { max-width: 700px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr-col--wide { max-width: 860px; padding-bottom: 56px; }

/* series bar */
.sr-bar { border-bottom: 1px solid var(--line); background: var(--bg-white); }
.sr-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; font-size: 13px; color: var(--text-mid); }
body.ins-body .sr-bar a { font-weight: 600; color: var(--text-dark); min-width: 0; }
body.ins-body .sr-bar a:hover { color: var(--orange); }
.sr-progress { display: flex; align-items: center; gap: 10px; flex: none; }
.sr-meter { width: 110px; height: 6px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.sr-meter i { display: block; height: 100%; min-width: 3px; background: var(--orange); border-radius: 99px; }

.sr-preview { margin-top: 18px; background: var(--orange-wash); border: 1px dashed var(--orange); font-size: 13px; padding: 10px 14px; border-radius: 12px; }

/* post header */
.sr-head { padding-block: 28px 6px; }
.sr-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; text-transform: uppercase; }
.sr-crumbs .num { color: var(--orange); }
.sr-crumbs .grp { text-transform: none; letter-spacing: 0; }
.sr-head h1 { font-family: var(--font-read); font-weight: 700; font-size: clamp(30px, 5vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 10px; text-wrap: balance; }
.sr-subtitle { font-family: var(--font-read); font-size: 20px; line-height: 1.45; color: var(--text-mid); margin: 0 0 20px; text-wrap: pretty; }
.sr-byline-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sr-byline { display: flex; align-items: center; gap: 8px 10px; font-size: 13.5px; color: var(--text-mid); flex-wrap: wrap; }
.sr-byline .av { width: 34px; height: 34px; }

/* language switch */
.sr-lang { position: relative; }
.sr-lang > button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-white); font-size: 13px; font-weight: 500; cursor: pointer; }
body.ins-body .sr-lang > button { color: var(--text-dark); }
.sr-lang svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sr-lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--bg-white); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 190px; max-height: min(360px, 70vh); overflow: auto; z-index: 40; box-shadow: 0 10px 30px rgba(20, 25, 34, .12); }
.sr-lang-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
body.ins-body .sr-lang-menu button { color: var(--text-dark); }
.sr-lang-menu button:hover, .sr-lang-menu button:focus-visible { background: var(--chip); }
.sr-lang-menu button[aria-checked="true"] { font-weight: 600; }
body.ins-body .sr-lang-menu button[aria-checked="true"] { color: var(--orange); }
.sr-lang-menu small { display: block; padding: 6px 10px 2px; color: var(--ink-3); font-size: 11.5px; }
.sr-gt-note, .sr-gt-fail { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; background: var(--chip); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--text-mid); }
.sr-gt-note p { margin: 0; }
.sr-gt-note__tr { display: none; }
html.translated-ltr .sr-gt-note__tr, html.translated-rtl .sr-gt-note__tr { display: block; }
.sr-gt-note p + p { margin-top: 4px; }
.sr-gt-note button { border: 0; background: transparent; font-weight: 600; cursor: pointer; white-space: nowrap; padding: 0; }
body.ins-body .sr-gt-note button, body.ins-body .sr-gt-fail a { color: var(--orange); font-weight: 600; }
/* Google's own top banner and tooltips: the notice above replaces them. */
body.ins-body > .skiptranslate, iframe.goog-te-banner-frame, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body.ins-body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
/* Google's widget must be rendered (not display:none) to fill its language list; it sits off-screen. */
#srGtHost { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* cover */
.sr-cover { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; margin: 24px 0 8px; border-radius: 16px; background: var(--navy); }
.sr-cover--css { position: relative; overflow: hidden; background: linear-gradient(135deg, #24324a, #3b5378); }
.sr-cover--css .big { position: absolute; left: 7%; bottom: 6%; font-family: var(--font-read); font-weight: 700; color: #fff; line-height: .85; }
.sr-cover--css .big span { display: block; font-family: var(--font-ui); font-size: clamp(12px, 1.8vw, 15px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: 10px; }
.sr-cover--css .big em { display: block; font-style: normal; font-size: clamp(26px, 5vw, 44px); font-weight: 600; margin-bottom: 4px; opacity: .95; }
.sr-cover--css .big b { font-size: clamp(92px, 20vw, 170px); font-weight: 700; }
.sr-cover--css .ring { position: absolute; right: -6%; top: -14%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: #E8682A; opacity: .92; }
.sr-cover--css .ring2 { position: absolute; right: 16%; bottom: -30%; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); }
.sr-cover--css svg { position: absolute; right: 10%; top: 12%; width: 24%; height: auto; }

/* reading */
.sr-post { padding-block: 8px 24px; }
.sr-post h2 { font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 38px 0 12px; }
.sr-post > p { font-family: var(--font-read); font-size: 19px; line-height: 1.72; margin: 0 0 18px; }
.sr-post > p strong { font-weight: 600; }

.sr-law { background: var(--sr-law); border: 1px solid var(--sr-law-line); border-radius: 14px; padding: 18px 20px; margin: 26px 0 6px; }
.sr-law .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sr-law-ink); }
.sr-law__text { margin: 10px 0; font-family: var(--font-read); font-size: 21px; line-height: 1.55; color: var(--text-dark); font-weight: 600; }
.sr-law__text p { margin: 0 0 10px; }
.sr-law__text p:last-child { margin-bottom: 0; }
.sr-law.is-long .sr-law__text { font-size: 18px; font-weight: 500; }
.sr-law.is-collapsed .sr-law__text { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.sr-law__more { border: 0; background: transparent; padding: 0; margin: 0 0 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
body.ins-body .sr-law__more { color: var(--sr-law-ink); text-decoration: underline; text-underline-offset: 3px; }
.sr-law .src { font-size: 12.5px; color: var(--ink-3); }

/* cases */
.sr-cases { display: flex; flex-direction: column; gap: 14px; }
.sr-case { background: var(--bg-white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.sr-case__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; }
.sr-case h3 { font-family: var(--font-read); font-style: italic; font-size: 19px; font-weight: 600; margin: 0; line-height: 1.3; min-width: 0; }
.sr-case h3 .yr { font-style: normal; color: var(--ink-3); font-weight: 400; }
.sr-bench { font-size: 12px; font-weight: 600; color: var(--text-mid); background: var(--chip); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sr-cite { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.sr-held { font-family: var(--font-read); font-size: 16.5px; line-height: 1.6; margin: 0 0 12px; color: var(--text-dark); }
.sr-quote { border-left: 3px solid var(--orange); padding: 4px 0 4px 14px; font-family: var(--font-read); font-style: italic; font-size: 16px; line-height: 1.6; color: var(--text-mid); margin: 0 0 12px; }
.sr-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; }
body.ins-body .sr-links a { color: var(--orange); font-weight: 600; }
body.ins-body .sr-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sr-overruled { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--sr-red); background: var(--sr-red-soft); padding: 3px 10px; border-radius: 999px; }

/* revision */
.sr-revise { background: var(--bg-white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.sr-revise ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.sr-revise li { font-size: 15px; line-height: 1.5; }

/* quiz */
.sr-quiz { display: flex; flex-direction: column; gap: 16px; }
.sr-q { background: var(--bg-white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.sr-qn { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.sr-qt { font-family: var(--font-read); font-size: 18px; font-weight: 600; line-height: 1.4; margin: 6px 0 14px; }
.sr-opts { display: grid; gap: 8px; }
.sr-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--bg-page); border-radius: 10px; padding: 11px 14px; cursor: pointer; font-size: 15px; line-height: 1.4; transition: border-color .15s, background .15s; }
body.ins-body .sr-opt { color: var(--text-dark); }
.sr-opt:hover:not(:disabled) { border-color: var(--orange); }
.sr-opt .k { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; flex: none; background: var(--bg-white); }
.sr-opt:disabled { cursor: default; }
.sr-opt.right { border-color: var(--green); background: var(--sr-green-soft); }
.sr-opt.right .k { background: var(--green); border-color: var(--green); color: #fff; }
.sr-opt.wrong { border-color: var(--sr-red); background: var(--sr-red-soft); }
.sr-opt.wrong .k { background: var(--sr-red); border-color: var(--sr-red); color: #fff; }
.sr-explain { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--text-mid); padding: 10px 12px; border-radius: 10px; background: var(--chip); }
.sr-explain b { color: var(--text-dark); }
.sr-score { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 14px; padding: 16px 20px; }
.sr-score strong { font-family: var(--font-read); font-size: 22px; }
body.ins-body .sr-score .btn { background: #fff; color: var(--navy); }
:root[data-theme="dark"] body.ins-body .sr-score { background: #26314a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.ins-body .sr-score { background: #26314a; } }
.sr-noscript { margin: 0; font-size: 14px; color: var(--ink-3); }

.sr-related { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-related a, .sr-related span { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-white); }
body.ins-body .sr-related a:hover { border-color: var(--orange); color: var(--orange); }
.sr-related span { color: var(--ink-3); }
.sr-sources { margin: 0; padding-left: 20px; font-size: 14px; color: var(--text-mid); display: flex; flex-direction: column; gap: 6px; }
body.ins-body .sr-sources a { color: var(--orange); word-break: break-word; }
body.ins-body .sr-sources a:hover { text-decoration: underline; text-underline-offset: 3px; }

.sr-react { margin-top: 28px; }
/* One short line in place of the large "About" box (the byline already says AI-assisted). */
.sr-note { margin: 22px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.sr-post .about-box { margin-top: 28px; }

/* previous / next */
.sr-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 28px 48px; }
.sr-pn > a, .sr-pn > div { display: block; background: var(--bg-white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.sr-pn > a:hover { border-color: var(--orange); }
.sr-pn > .none { visibility: hidden; }
.sr-pn > .soon { opacity: .75; }
.sr-pn small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.sr-pn span { display: block; font-family: var(--font-read); font-weight: 600; font-size: 16px; line-height: 1.3; margin-top: 4px; }
.sr-pn em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.sr-pn .next { text-align: right; }

/* series home */
.sr-home-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.sr-home-title h1 { flex: 1 1 320px; }
.sr-home-title .sr-lang { margin-top: 18px; }
.sr-home-meta { margin: -8px 0 0; font-size: 13.5px; color: var(--ink-3); }
.sr-find { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; margin: 24px 0 18px; padding: 0 16px; background: var(--bg-white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-soft); }
.sr-find:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-wash), var(--shadow-soft); }
.sr-find svg { width: 18px; height: 18px; flex: none; stroke: var(--ink-3); fill: none; stroke-width: 2; }
.sr-find input { flex: 1; min-width: 0; border: 0; background: transparent; font: 16px var(--font-ui); color: var(--text-dark); outline: none; }
body.ins-body .sr-find input:focus-visible { outline: none; }
.sr-find input::placeholder { color: var(--ink-3); }
.sr-find__n { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.sr-find__none { color: var(--text-mid); font-size: 14.5px; }
.sr-parts { display: flex; flex-direction: column; gap: 10px; }
.sr-part { background: var(--bg-white); border: 1px solid var(--line); border-radius: 14px; }
.sr-part summary { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; }
.sr-part summary::-webkit-details-marker { display: none; }
.sr-part summary::after { content: ""; width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); flex: none; transition: transform .15s; }
.sr-part[open] summary::after { transform: rotate(225deg); }
.sr-part__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); white-space: nowrap; }
.sr-part__title { font-family: var(--font-read); font-weight: 700; font-size: 18px; line-height: 1.3; flex: 1; min-width: 0; }
.sr-part__title .sr-omitted { font: 400 14px var(--font-ui); color: var(--ink-3); }
.sr-part__n {font-size: 12.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sr-part ul { list-style: none; margin: 0; padding: 0 10px 12px; }
.sr-part li > a, .sr-part li > .soon { display: flex; align-items: baseline; gap: 12px; padding: 7px 8px; border-radius: 8px; font-size: 15px; line-height: 1.4; }
.sr-part li > a:hover { background: var(--chip); }
body.ins-body .sr-part li > a .h { color: var(--text-dark); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
body.ins-body .sr-part li > a:hover .h { text-decoration-color: var(--orange); }
.sr-part .n { width: 3.6em; flex: none; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--orange); }
.sr-part .soon .n { color: var(--ink-3); font-weight: 600; }
.sr-part .soon .h { color: var(--text-mid); flex: 1; min-width: 0; }
.sr-part .h { flex: 1; min-width: 0; }
.sr-part .h em { color: var(--ink-3); }
.sr-part .soon small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.sr-group { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 8px 4px calc(3.6em + 20px); }
.sr-part li.hit > a, .sr-part li.hit > .soon { background: var(--orange-wash); }
.sr-schedules { margin-top: 32px; }
.sr-schedules h2 { font-family: var(--font-read); font-size: 22px; margin: 0 0 10px; }
.sr-schedules ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--text-mid); }
.sr-schedules b { color: var(--text-dark); }

@media (max-width: 640px) {
  .sr-bar .sr-progress span { display: none; }
  .sr-subtitle { font-size: 18px; }
  .sr-post > p { font-size: 17.5px; }
  .sr-law__text { font-size: 19px; }
  .sr-pn { grid-template-columns: 1fr; }
  .sr-pn .next { text-align: left; }
  .sr-pn > .none { display: none; }
  .sr-react .ins-react__report { margin-inline-start: 0; }
  .sr-part summary { flex-wrap: wrap; gap: 2px 10px; }
  .sr-part__title { flex-basis: 100%; order: 3; font-size: 17px; }
  .sr-part .n { width: 3em; }
  .sr-group { padding-left: calc(3em + 20px); }
  .sr-find__n { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sr-opt, .sr-part summary::after { transition: none; } }
