/* Solved question paper page.
 *
 * Set to the metrics Indian courts require of a filing, so that a law student
 * reads it in the format they already read all day.
 *
 * Supreme Court of India circular F.No.01/Judl./2020 dated 5 March 2020:
 *   Paper      A4, 29.7cm x 21cm
 *   Font       Times New Roman, size 14
 *   Spacing    one and a half lines
 *   Quotations size 12, single line spacing
 *   Margins    4cm left and right, 2cm top and bottom
 *
 * Those are reproduced here in proportion. The sheet is 63rem, the side margins
 * are 12rem each (4/21 of the sheet), leaving a 39rem text column, which holds
 * about 74 characters at 14pt. Body is 1.167rem (14pt at a 16px root) on 1.5
 * line spacing; quoted matter is 1rem (12pt) set solid.
 *
 * ⛔ No accent bars. No left borders. No tinted panels. No coloured cards. A
 * filing is ink on white paper, ruled where a rule is needed and nowhere else.
 */

.qps-page {
  --ink:       #1a1a1a;
  --ink-2:     #2e2e2e;
  --ink-3:     #555555;
  --ink-4:     #767676;
  --rule:      #cccccc;
  --rule-dark: #1a1a1a;
  --accent:    #6b1d1d;

  --f-body: 'Lora', 'Times New Roman', Times, Georgia, serif;

  font-family: var(--f-body);
  color: var(--ink);
  background: #ffffff;

  max-width: 63rem;          /* the 21cm sheet */
  margin: 0 auto;
  padding: 2.6rem 12rem;     /* 2cm top and bottom, 4cm left and right */
  font-size: 1.167rem;       /* 14pt */
  line-height: 1.5;          /* one and a half spacing */
}

/* ---------- Masthead, set as a cause title ---------- */

.qps-masthead { text-align: center; padding: 0 0 1.6rem; }
/* Proof of value on screen one: quiet, factual, a printer's line above the
   cause title, not a banner. */
.qps-promise {
  margin: 0 0 1.4rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem; font-style: italic; color: var(--ink-2);
}
.qps-institution {
  margin: 0 0 .35rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink);
}
.qps-course {
  margin: 0 0 1.5rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
}
/* The subject is the cause title: centred, capitalised, ruled beneath, exactly
   as the heading of a petition is set. */
.qps-title {
  margin: 0 auto .8rem;
  display: table;
  padding-bottom: .35rem;
  border-bottom: 1.5px solid var(--rule-dark);
  font-size: 1.55rem; font-weight: 700; line-height: 1.3;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.qps-sitting {
  margin: 0 0 1.5rem;
  font-size: .82rem; font-weight: 500; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-2);
}

.qps-rule-double { display: none; }

.qps-particulars {
  margin: 0 0 1.5rem;
  font-size: 1rem; color: var(--ink-2);
}

/* Printed instructions, numbered as the paper numbers them. */
.qps-instructions {
  list-style: none; margin: 0 auto 1.5rem; max-width: 30rem;
  padding: 0; text-align: left; counter-reset: qps-instruction;
}
.qps-instructions li {
  font-size: 1rem; line-height: 1.4; color: var(--ink-2);
  padding: .12rem 0 .12rem 1.6rem; text-indent: -1.6rem;
  counter-increment: qps-instruction;
}
.qps-instructions li::before {
  content: counter(qps-instruction) ".\00a0\00a0"; color: var(--ink-3);
}

/* The note is quoted matter: 12pt, set solid, indented on both sides. No bar. */
.qps-note {
  margin: 0 auto 1.4rem; max-width: 34rem;
  padding: 0 1.6rem;
  font-size: 1rem; line-height: 1.3; color: var(--ink-3); text-align: left;
}
.qps-masthead-link { margin: 0; font-size: 1rem; }
.qps-page .qps-masthead-link a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}

/* A button that reads as a link: the filing has no buttons. */
.qps-page .qps-plain-btn {
  font: inherit; font-style: normal; color: var(--accent);
  background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.qps-page .qps-plain-btn:hover { color: var(--ink); }
.qps-practice-line { margin: 1rem 0 0; font-size: 1rem; }

/* Practice mode. Off = the page exactly as printed. On = every answer hidden
   behind its own "Show the answer" line until asked for. */
.qps-reveal { display: none; margin: 0; }
.qps-page.qps-practice .qps-answer:not(.is-open) .qps-answer-block,
.qps-page.qps-practice .qps-answer:not(.is-open) .qps-figure { display: none; }
.qps-page.qps-practice .qps-answer:not(.is-open) .qps-reveal { display: block; }

/* ---------- Contents ---------- */

.qps-contents {
  scroll-margin-top: 4.5rem;
  margin: 0 0 2.6rem; padding: 1.4rem 0;
  border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
}
.qps-contents-title {
  margin: 0 0 1rem; text-align: center;
  font-size: .82rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink);
}
.qps-contents-section {
  margin: 1.2rem 0 .5rem;
  font-size: .95rem; font-weight: 600; color: var(--ink-2); line-height: 1.4;
}
.qps-contents-section:first-of-type { margin-top: 0; }
.qps-contents-list { list-style: none; margin: 0; padding: 0; }
.qps-page .qps-contents-list a {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .18rem 0; text-decoration: none; color: var(--ink-2);
  font-size: 1rem; line-height: 1.35;
}
.qps-page .qps-contents-list a:hover { color: var(--accent); }
.qps-contents-num { flex: 0 0 1.8rem; text-align: right; color: var(--ink-3); }
.qps-contents-text {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.qps-contents-text::after {
  content: " ..............................................................................................";
  color: var(--rule);
}
.qps-contents-marks { flex: 0 0 auto; color: var(--ink-3); }

/* ---------- Sections ---------- */

.qps-section { text-align: center; margin: 2.8rem 0 1.6rem; }
.qps-section-num {
  margin: 0 0 .25rem;
  font-size: 1rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink);
}
.qps-section-name {
  margin: 0 0 .25rem;
  font-size: 1.05rem; font-weight: 600; color: var(--ink-2);
}
.qps-section-rubric {
  margin: 0; font-size: .95rem; color: var(--ink-3);
}

/* ---------- Question ---------- */

.qps-q { padding: 1.8rem 0 0; scroll-margin-top: 4.5rem; }
.qps-q + .qps-q, .qps-section + .qps-q { border-top: none; }

.qps-q-ask { margin-bottom: 1rem; }
.qps-q-text {
  margin: 0;
  font-size: 1.167rem; font-weight: 700; line-height: 1.5; color: var(--ink);
  padding-left: 2.4rem; text-indent: -2.4rem;   /* hanging numeral */
}
.qps-q-num {
  display: inline-block; width: 2.4rem;
  text-indent: 0; font-weight: 700; color: var(--ink);
}
.qps-q-body { text-indent: 0; }
.qps-q-marks {
  margin-left: .5rem; font-size: .95rem; font-weight: 400; color: var(--ink-3);
  white-space: nowrap;
}
.qps-q-items { list-style: none; margin: .6rem 0 0 2.4rem; padding: 0; }
.qps-q-items li {
  margin-bottom: .3rem; font-size: 1.1rem; color: var(--ink-2); line-height: 1.5;
}

/* The paper's own Marathi for the question, under the English ask, exactly as
   the printed paper carries both. Quoted-matter size, per the circular. */
.qps-q-marathi {
  margin: .55rem 0 0 2.4rem;
  font-size: 1.05rem; line-height: 1.6; color: var(--ink-3);
}

/* A figure the answer tells the student to draw. Ruled like the tables: a thin
   frame, no fill, caption in quoted-matter size. */
.qps-figure {
  margin: 1.2rem 0 0; padding: 1rem 1rem .6rem;
  border: 1px solid var(--rule);
}
.qps-figure svg { display: block; width: 100%; height: auto; max-width: 36rem; margin: 0 auto; }
.qps-figure figcaption {
  margin-top: .6rem; text-align: center;
  font-size: 1rem; line-height: 1.4; color: var(--ink-3);
}

/* ---------- Answer ---------- */

.qps-answer { margin-left: 2.4rem; }
.qps-answer-block { margin-bottom: 0; }
/* Sized to sit level with the body rather than shrink away from it. At .82rem
   it read as a caption on something, not as the heading of the answer. */
.qps-answer-label {
  margin: 0 0 .6rem;
  font-size: 1.05rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink);
}

/* Body of the answer. Plain text on plain paper. */
.qps-prose { font-size: 1.167rem; line-height: 1.5; color: var(--ink-2); }
.qps-prose > :first-child { margin-top: 0; }
.qps-prose > :last-child { margin-bottom: 0; }
.qps-prose p { margin: 0 0 .8rem; }
.qps-prose strong { color: var(--ink); font-weight: 700; }
.qps-prose em { font-style: italic; }
.qps-prose h4 {
  margin: 1.1rem 0 .45rem;
  font-size: 1.1rem; font-weight: 700; color: var(--ink);
}

/* Numbering is the structure of an answer, and profile-foundation.css strips
   list markers sitewide, so it is put back. Markers hang outside the text so a
   wrapped line aligns under the first word. */
.qps-page .qps-prose ul, .qps-page .qps-prose ol {
  margin: 0 0 .85rem; padding-left: 1.9rem; list-style-position: outside;
}
.qps-page .qps-prose ol { list-style-type: decimal; }
.qps-page .qps-prose ul { list-style-type: disc; }
.qps-prose li { margin-bottom: .4rem; }
.qps-prose li::marker { color: var(--ink-2); }

/* Quoted matter, per the circular: 12pt, single spaced, indented. No bar. */
.qps-prose blockquote {
  margin: 0 0 .85rem; padding: 0 2rem;
  font-size: 1rem; line-height: 1.3; color: var(--ink-2);
}

.qps-page .qps-prose a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}

/* Tables are ruled. No striping, no tinted header, no rounded corners. */
.qps-prose table {
  width: 100%; border-collapse: collapse; margin: .2rem 0 .95rem;
  font-size: 1rem; display: block; overflow-x: auto;
}
.qps-prose th, .qps-prose td {
  border: 1px solid var(--ink-4); padding: .4rem .6rem;
  text-align: left; vertical-align: top; line-height: 1.35;
}
.qps-prose th { font-weight: 700; color: var(--ink); }

/* End of an answer: the way forward first, the way back second. The page runs
   to ~85 phone screens, so "next" is the link that gets used. */
.qps-back {
  margin: 1.1rem 0 0 2.4rem; font-size: 1rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: baseline;
}
.qps-page .qps-back a.qps-next {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; padding: .35rem 0;
}
.qps-page .qps-back a.qps-toc {
  color: var(--ink-4); text-decoration: none; padding: .35rem 0;
}
.qps-page .qps-back a:hover { color: var(--accent); text-decoration: underline; }
.qps-unsolved {
  margin: .7rem 0 0 2.4rem; font-size: 1rem; color: var(--ink-4);
}

/* ---------- Closing matter ---------- */

.qps-faq { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--rule-dark); }
.qps-faq h2, .qps-more h2 {
  margin: 0 0 1rem; text-align: center;
  font-size: .82rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink);
}
.qps-faq-item { border-bottom: 1px solid var(--rule); padding: .7rem 0; }
.qps-faq-item summary {
  cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--ink);
  list-style: none; line-height: 1.45;
}
.qps-faq-item summary::-webkit-details-marker { display: none; }
.qps-faq-item summary::after { content: " +"; color: var(--ink-4); font-weight: 400; }
.qps-faq-item[open] summary::after { content: " \2212"; }
.qps-faq-item p { margin: .5rem 0 0; font-size: 1.1rem; line-height: 1.5; color: var(--ink-2); }

.qps-more { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.qps-more-links { display: flex; flex-direction: column; gap: 0; }
.qps-page .qps-more-links a {
  padding: .5rem 0; font-size: 1.1rem;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
  border-bottom: 1px solid var(--rule);
}
.qps-page .qps-more-links a:last-child { border-bottom: none; }

/* ---------- Narrower than a sheet ---------- */

/* The 4cm margin is a print instruction. Below a full sheet it is scaled down,
   because a 12rem margin on a laptop would leave a column too narrow to read. */
@media (max-width: 1100px) {
  .qps-page { padding-left: 8%; padding-right: 8%; }
}
@media (max-width: 700px) {
  .qps-page {
    padding-left: 1.25rem; padding-right: 1.25rem;
    font-size: 1.09rem;
  }
  .qps-title { font-size: 1.25rem; letter-spacing: .07em; }
  .qps-q-text { font-size: 1.09rem; padding-left: 1.8rem; text-indent: -1.8rem; }
  .qps-q-num { width: 1.8rem; }
  .qps-q-items { margin-left: 1.8rem; }
  .qps-q-marathi { margin-left: 1.8rem; font-size: 1rem; }
  .qps-answer, .qps-back, .qps-unsolved { margin-left: 0; }
  .qps-figure { padding: .6rem .6rem .5rem; }
  .qps-prose { font-size: 1.09rem; }
  .qps-note { padding: 0 .8rem; }

  /* Contents on a phone. Measured 2026-08-06: rows were 27px tall against the
     44px a thumb needs, and the ellipsis left ~33 characters, which cannot
     tell "Explain the different sources of..." from "Explain the difference
     between...". So on a phone the question wraps in full and the dotted
     leader goes: a leader has nothing to lead to once the text wraps. */
  .qps-page .qps-contents-list a { padding: .55rem 0; min-height: 44px; align-items: flex-start; }
  .qps-contents-text {
    white-space: normal; text-overflow: clip;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .qps-contents-text::after { content: none; }
  .qps-contents-marks { padding-left: .4rem; }
}
