/* NCERT solutions pages (Notes Bazar). Question in a ruled card, solution below, final answer highlighted.
   Figures are textbook-style: black lines, light grid, italic serif labels, so they print well in black and white. */
.solpage { --sol-q: #f4f7ff; --sol-qb: #c9d6f2; --sol-ans: #fff6c9; --sol-ansb: #e9c74a; --sol-fig: #111; }
.soltoc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.soltoc a { font: 600 14px/1 var(--body, Mukta, sans-serif); padding: 9px 14px; border: 1.5px solid var(--sol-qb); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; }
.soltoc a:hover { background: var(--sol-q); }
.solpage .ex { margin-top: 34px; }
.solpage .ex > h2 { font-size: 26px; margin: 0 0 14px; padding-bottom: 6px; border-bottom: 3px solid var(--mark, #ffe066); display: inline-block; }
.solpage .q { margin: 0 0 22px; border: 1px solid var(--line, #e6e9f2); border-radius: 14px; background: #fff; overflow: hidden; scroll-margin-top: 90px; }
.solpage .qt { display: flex; gap: 12px; padding: 14px 16px; background: var(--sol-q); border-bottom: 1px solid var(--sol-qb); font-weight: 600; color: #1d2a4a; }
.solpage .qt > div { min-width: 0; }
.solpage .qn { flex: none; font: 700 14px/1 var(--body, Mukta, sans-serif); color: #fff !important; background: var(--ink); border-radius: 8px; padding: 6px 8px; height: fit-content; text-decoration: none; white-space: nowrap; }
.solpage .sol { padding: 12px 16px 14px; min-width: 0; }
.solpage .sol > * { max-width: 100%; }
.solpage .sl { display: block; font: 700 12px/1 var(--body, Mukta, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: #1e8e4e; margin: 2px 0 8px; }
.solpage .sol p { margin: 0 0 10px; }
.solpage .sol ul, .solpage .sol ol { margin: 0 0 10px; padding-left: 22px; }
.solpage .sol ol { background: #f7f8fb; border: 1px solid var(--line, #e6e9f2); border-radius: 8px; padding: 8px 12px 8px 34px; }
.solpage .sol ol ul { background: none; }
.solpage .ans { background: var(--sol-ans); border-left: 4px solid var(--sol-ansb); padding: 9px 12px; border-radius: 6px; font-weight: 600; }
.solpage .katex-display { overflow-x: auto; overflow-y: hidden; padding: 2px 0; margin: 6px 0 10px; }
.solpage .katex { font-size: 1.08em; }
.solpage table { border-collapse: collapse; margin: 6px 0 12px; font-size: 15px; display: block; overflow-x: auto; max-width: 100%; }
.solpage th, .solpage td { border: 1px solid #b9c3d8; padding: 6px 10px; text-align: center; }
.solpage th { background: var(--sol-q); }
.solpage .note { font-size: 15px; color: var(--muted); }
/* textbook figures */
figure.tb { margin: 8px 0 14px; overflow-x: auto; }
figure.tb svg { max-width: 100%; height: auto; display: block; background: #fff; }
figure.tb figcaption { font-size: 14px; color: var(--muted); font-style: italic; margin-top: 2px; }
figure.tb line, figure.tb polygon, figure.tb circle, figure.tb path, figure.tb polyline { stroke: var(--sol-fig); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
figure.tb .gr { stroke: #d4dae5; stroke-width: .7; }
figure.tb .ax { stroke-width: 1.2; }
figure.tb .tk { stroke-width: 1; }
figure.tb .th { stroke-width: .9; }
figure.tb .d { stroke-dasharray: 5 4; stroke-width: 1.1; }
figure.tb .h { fill: url(#hp); }
figure.tb .am { stroke-width: 1; }
figure.tb .dot { fill: var(--sol-fig); stroke: none; }
figure.tb text { fill: var(--sol-fig); stroke: #fff; stroke-width: 3.5px; paint-order: stroke; stroke-linejoin: round; font-family: "Times New Roman", Times, serif; }
figure.tb .lb { font-size: 15px; font-style: italic; }
figure.tb .al { font-size: 15px; font-style: italic; }
figure.tb .n { font-size: 11px; font-family: Mukta, Arial, sans-serif; fill: #333; }
figure.tb .m { font-size: 13px; }
/* chapter index */
.solidx { display: grid; gap: 12px; }
.solch { border: 1px solid var(--line, #e6e9f2); border-radius: 14px; background: #fff; padding: 14px 16px; }
.solch-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 700 19px/1.3 var(--display, sans-serif); }
.solch-h a { color: var(--ink); text-decoration: none; }
.solch-h a:hover { text-decoration: underline; }
.solch-h small { font: 600 14px/1 var(--body, sans-serif); color: var(--muted); }
.solch-n { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: 15px; }
.solch.soon { background: transparent; }
.solch.soon .solch-n { background: #aab3c5; }
.solch-ex { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.solch-ex a { font: 600 14px/1 var(--body, sans-serif); padding: 8px 11px; border-radius: 999px; background: #f4f7ff; border: 1px solid #c9d6f2; color: var(--ink); text-decoration: none; }
.solch-ex a i { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 2px; }
.solch-ex a:hover { background: #e7eefc; }
.soon-tag { font-size: 13px; color: var(--muted); }
figure.tb .f1 { fill: #e3e7ef; }
figure.tb .f2 { fill: #b4bccb; }
figure.tb .f3 { fill: #7d889d; }
.solpage .sol b { color: #1d2a4a; }
.solpage td.tally { letter-spacing: 1.5px; white-space: nowrap; } .solpage td.tally s { text-decoration-thickness: 1.6px; }
.solpage .katex .mfrac { font-size: 1.12em; } .solpage table .katex { font-size: 1.15em; }
.solpage .grids { display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0; } .solpage table.grid td { width: 44px; height: 34px; text-align: center; } .solpage table.grid { margin: 4px 0 0; }
.solpage p.poem { font-style: italic; line-height: 1.7; }
.solpage .letter { background: #fff; border: 1px solid #d8dde6; border-radius: 6px; padding: 14px 16px; line-height: 1.6; margin: 6px 0 10px; }
