/* GyanSetu quiz components. Theme-agnostic: scoped under .gs-*, uses CSS vars a theme may override. */
:root {
  --gs-accent: #c2177a;
  --gs-btn: #c2177a;
  --gs-ink: #172033;
  --gs-soft-ink: #5d6879;
  --gs-link: #a8125f;
  --gs-line: #dce5ee;
  --gs-line-soft: #edf1f6;
  --gs-ok: #15803d;
  --gs-ok-bg: #f0fdf4;
  --gs-bad: #b91c1c;
  --gs-bad-bg: #fef2f2;
}

/* Lists */
.gs-heading { margin: 14px 0 8px; font-size: 19px; font-weight: 700; line-height: 1.4; }
.gs-empty, .gs-soon { color: var(--gs-soft-ink); }
.gs-soon { font-size: .85em; }
.gs-count { color: var(--gs-soft-ink); font-size: .85em; }
.gs-back { display: inline-block; margin-bottom: 4px; font-size: 14px; }
.gs-subject { margin-bottom: 18px; }
.gs-subject > h2 { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--gs-accent); font-size: 19px; font-weight: 700; line-height: 1.4; }
.gs-list { margin: 0; padding: 0; list-style: none; columns: 2 16rem; column-gap: 20px; }
.gs-list li { padding: 6px 2px; border-bottom: 1px solid var(--gs-line-soft); break-inside: avoid; font-size: 16px; line-height: 1.45; }
.gs-list a { color: var(--gs-link); }
.gs-list .is-soon { color: var(--gs-soft-ink); }

/* Related */
.gs-related { clear: both; margin-top: 16px; }
.gs-related .gs-heading { margin-top: 0; }
.gs-related ul { margin: 0; padding: 0; list-style: none; }
.gs-related li { padding: 7px 2px; border-bottom: 1px solid var(--gs-line-soft); font-size: 16px; line-height: 1.45; }

/* Today's quiz card (shortcode) */
.gs-today { margin-bottom: 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--gs-line); border-left: 4px solid var(--gs-accent); border-radius: 8px; }
.gs-today__kicker { margin: 0; font-size: 13px; font-weight: 700; }
.gs-today__date { margin: 0; font-size: 18px; font-weight: 700; }
.gs-today__meta { margin: 0 0 4px; color: var(--gs-soft-ink); font-size: 13px; }
.gs-today__cta { font-weight: 600; }

/* Read or test */
.gs-modes { display: inline-flex; margin: 0 0 12px; border: 1px solid var(--gs-line); border-radius: 5px; overflow: hidden; }
.gs-modes__item { padding: 5px 14px; color: var(--gs-link); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.gs-modes__item + .gs-modes__item { border-left: 1px solid var(--gs-line); }
.gs-modes__item.is-active { background: var(--gs-accent); color: #fff; }

/* Questions */
.gs-quiz { margin: 0 0 12px; }
.gs-qlist { margin: 0; padding: 0; list-style-position: inside; }
.gs-q { padding: 12px 0 14px; border-bottom: 1px solid var(--gs-line-soft); font-size: 16px; line-height: 1.55; }
.gs-q:first-child { padding-top: 0; }
.gs-q:last-child { border-bottom: 0; }
.gs-q::marker { font-size: 17px; font-weight: 700; }
.gs-q__stem { display: inline; margin: 0; font-size: 17px; font-weight: 600; }
.gs-q__line { margin: 4px 0 0; font-size: 16px; font-weight: 500; }
.gs-q__tablewrap { margin: 8px 0 2px; overflow-x: auto; }
.gs-q__table { border-collapse: collapse; width: 100%; max-width: 640px; font-size: 16px; font-weight: 500; }
.gs-q__table th, .gs-q__table td { padding: 4px 8px; border: 1px solid var(--gs-line); text-align: left; vertical-align: top; }
.gs-q__table th { background: var(--gs-line-soft); font-weight: 700; }
.gs-q__opts { margin: 6px 0 8px; padding: 0; list-style: none; }
.gs-opt { display: block; padding: 1px 0; }
.gs-opt__l { margin-right: 2px; }

/* Show / hide answer */
.gs-q__ans summary { display: inline-block; padding: 5px 14px; background: var(--gs-btn); color: #fff; font-size: 15px; line-height: 1.5; cursor: pointer; list-style: none; }
.gs-q__ans summary::-webkit-details-marker { display: none; }
.gs-q__ans summary:hover { filter: brightness(.95); }
.gs-q__ans .gs-hide, .gs-q__ans[open] .gs-show { display: none; }
.gs-q__ans[open] .gs-hide { display: inline; }
.gs-q__ans.is-closing[open] .gs-hide { display: none; }
.gs-q__ans.is-closing[open] .gs-show { display: inline; }
.gs-q__ansbody, .gs-q__result { margin: 8px 1px 1px; padding: 8px 10px; background: #fff; box-shadow: 1px 1px 5px #888; font-size: 16px; }
.gs-q__correct { margin: 0; }
.gs-q__exp p { margin: 0 0 .4em; }
.gs-q__exp p:last-child { margin-bottom: 0; }

/* Test */
.gs-test { margin: 0 0 12px; scroll-margin-top: 110px; }
[data-gs-test] [hidden] { display: none !important; }
.gs-test .gs-opt { display: flex; align-items: baseline; gap: 7px; padding: 3px 4px; border-radius: 4px; cursor: pointer; }
.gs-test .gs-opt:hover { background: #f5f8fc; }
.gs-test .gs-opt input { flex: none; margin: 0; accent-color: var(--gs-link); }
.gs-test .is-graded .gs-opt { cursor: default; }
.gs-test .is-graded .gs-opt:hover { background: none; }
.gs-test .is-graded .gs-opt.is-correct, .gs-test .gs-opt.is-correct { background: var(--gs-ok-bg); color: var(--gs-ok); font-weight: 600; }
.gs-test .is-graded .gs-opt.is-wrong, .gs-test .gs-opt.is-wrong { background: var(--gs-bad-bg); color: var(--gs-bad); text-decoration: line-through; }
.gs-q__verdict { margin: 0; font-weight: 700; }
.gs-q.is-correct .gs-q__verdict { color: var(--gs-ok); }
.gs-q.is-wrong .gs-q__verdict { color: var(--gs-bad); }
.gs-q.is-skipped .gs-q__verdict { color: var(--gs-soft-ink); }
.gs-test__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.gs-test__page { color: var(--gs-soft-ink); font-size: 15px; font-weight: 600; }
.gs-test__progress { color: var(--gs-soft-ink); font-size: 14px; }
.gs-btn { display: inline-block; padding: 6px 16px; border: 1px solid var(--gs-btn); background: var(--gs-btn); color: #fff; font: inherit; font-size: 16px; line-height: 1.5; cursor: pointer; }
.gs-btn--ghost { background: transparent; color: var(--gs-ink); }
.gs-btn:disabled { opacity: .6; cursor: wait; }
.gs-test__summary { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--gs-line); border-left: 4px solid var(--gs-accent); border-radius: 8px; scroll-margin-top: 110px; }
.gs-test__summary:focus { outline: none; }
.gs-test__score { margin: 0 0 4px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.gs-test__stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.gs-test__stats .is-ok { color: var(--gs-ok); }
.gs-test__stats .is-bad { color: var(--gs-bad); }

/* Paging */
.gs-pages { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 12px 0; }
.gs-pages a, .gs-pages span { padding: 4px 11px; border: 1px solid var(--gs-line); border-radius: 5px; font-size: 15px; text-decoration: none; }
.gs-pages__cur { background: var(--gs-accent); color: #fff; border-color: var(--gs-accent) !important; }
.gs-pages__gap { border: 0 !important; }
.gs-daynav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 10px 0 0; font-size: 14px; }

/* Exam facts */
.gs-facts { clear: both; margin: 14px 0; padding: 10px 14px; background: #f5f8fc; border: 1px solid var(--gs-line); border-left: 4px solid var(--gs-accent); border-radius: 8px; }
.gs-facts__title { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.gs-facts ul { margin: 0; padding-left: 1.2rem; }
.gs-facts li { margin: 2px 0; }

/* Home tiles and section links, for themes other than GyanSetu */
.gs-tiles .tile-section { margin: 0 0 16px; background: #fff; border: 1px solid #dce5ee; border-radius: 8px; overflow: hidden; }
.gs-tiles .tile-section--navy { --tone: #7d0c4b; }
.gs-tiles .tile-section--teal { --tone: #0a6478; }
.gs-tiles .tile-section--plum { --tone: #6b2a7e; }
.gs-tiles .tile-section--green { --tone: #1a6a4c; }
.gs-tiles .tile-section--rust { --tone: #8f3f12; }
.gs-tiles .section_strip { margin: 0; padding: 10px 14px; background: var(--tone); color: #fff; font-size: 19px; font-weight: 700; line-height: 1.35; }
.gs-tiles .tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 12px; }
.gs-tiles .tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 110px; padding: 12px 8px; border-radius: 6px; background: var(--tone); color: #fff; text-align: center; text-decoration: none; }
.gs-tiles .tile:hover, .gs-tiles .tile:focus { color: #fff; filter: brightness(1.18); text-decoration: none; }
.gs-tiles .tile__name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.gs-tiles .tile__sub { font-size: 13px; line-height: 1.35; }
.gs-tiles .tile-section__all { margin: 0; padding: 0 12px 12px; font-size: 15px; font-weight: 600; text-align: right; }
.gs-section-links { margin: 0; padding: 0; list-style: none; }
.gs-section-links li { padding: 8px 0; border-bottom: 1px solid #edf1f6; }
.gs-section-links li:last-child { border-bottom: 0; }
@media (max-width: 767px) {
  .gs-tiles .section_strip { font-size: 17px; }
  .gs-tiles .tile-grid { gap: 8px; padding: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-tiles .tile { min-height: 96px; }
  .gs-tiles .tile__name { font-size: 16px; }
}

/* About, Contact and policy pages */
.gs-contact { margin: 0 0 12px; padding: 0; list-style: none; }
.gs-contact li { padding: 4px 0; }
.gs-social { margin-top: 18px; padding: 12px 14px; border: 1px solid #edd5e2; border-radius: 8px; background: #fff; }
.gs-social h2 { margin: 0 0 8px; font-size: 18px; }
.gs-social p { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-weight: 600; }

/* ---------- Tiles in the client's three light colour combinations ---------- */
.gs-tiles .tile-section--orange { --c1: #f4ae78; --c2: #f5cf72; --c3: #f8dfa0; --c4: #f7c8a4; }
.gs-tiles .tile-section--sky { --c1: #b7d7e8; --c2: #efdcd3; --c3: #e8bd7f; --c4: #e8b198; }
.gs-tiles .tile-section--lavender { --c1: #cbc8ee; --c2: #f4edd4; --c3: #d3d9d6; --c4: #adbfe3; }
.gs-tiles .tile-section .section_strip { border: 0; border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--c1); color: #2b2420; }
.gs-tiles .tile { border: 0; outline: 1px solid rgba(255, 255, 255, .75); outline-offset: -6px; background: var(--c1); color: #2b2420; transition: filter .15s ease; }
.gs-tiles .tile:nth-child(4n+2) { background: var(--c2); }
.gs-tiles .tile:nth-child(4n+3) { background: var(--c3); }
.gs-tiles .tile:nth-child(4n) { background: var(--c4); }
.gs-tiles .tile:hover, .gs-tiles .tile:focus { background-color: var(--c1); color: #2b2420; filter: brightness(.94); text-decoration: none; }
.gs-tiles .tile:nth-child(4n+2):hover { background: var(--c2); }
.gs-tiles .tile:nth-child(4n+3):hover { background: var(--c3); }
.gs-tiles .tile:nth-child(4n):hover { background: var(--c4); }
.gs-tiles .tile:hover .tile__sub, .gs-tiles .tile__sub { color: #4a3f38; opacity: 1; }
.gs-tiles .tile:focus-visible { outline: 3px solid #2b2420; outline-offset: 1px; }

/* ---------- Lighter pink and white ---------- */
:root { --gs-accent: #e98fbf; --gs-btn: #fbd3e7; --gs-line: #efc9dc; --gs-line-soft: #f6e0ea; }
.gs-q__ans summary { border: 1px solid #e99cc5; border-radius: 6px; color: #a8125f; font-weight: 600; }
.gs-q__ansbody, .gs-q__result { background: #fff2f8; border: 1px solid #f0c6dc; border-radius: 6px; box-shadow: 0 1px 6px rgba(190, 50, 120, .14); }
.gs-btn { border-color: #e99cc5; border-radius: 6px; color: #a8125f; font-weight: 600; }
.gs-btn--ghost { background: #fff; color: var(--gs-ink); }
.gs-modes__item.is-active, .gs-pages__cur { color: #a8125f; }
.gs-modes__item.is-active { background: #fbd3e7; }
.gs-pages__cur { background: #fbd3e7; border-color: #e99cc5 !important; }
.gs-facts { background: #fde9f2; }
.gs-test .gs-opt:hover { background: #fde9f2; }

/* ---------- Cross on the answer box and social icons ---------- */
.gs-q__ansbody { position: relative; padding-right: 44px; }
.gs-q__close { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #fbd3e7; color: #a51563; font: inherit; font-size: 22px; font-weight: 700; line-height: 32px; text-align: center; cursor: pointer; }
.gs-q__close:hover { background: #f8c4de; }
.gs-q__close:focus-visible { outline: 2px solid #a51563; outline-offset: 1px; }
.gs-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.gs-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fbd3e7; color: #a51563; }
.gs-icon svg { display: block; width: 20px; height: 20px; fill: currentColor; }
a.gs-icon:hover { background: #f8c4de; }
.gs-icon.is-soon { cursor: default; }
.gs-social .gs-icons + p { margin-top: 10px; }

/* ---------- Quiz posts ---------- */
.gs-post-quiz { clear: both; margin-top: 12px; }
.gs-post-quiz__more { margin: 10px 0 0; font-weight: 600; }

/* ---------- General Studies papers on the mains page ---------- */
.gs-subject .gs-paper { margin: 12px 0 4px; color: #a51563; font-size: 17px; font-weight: 700; line-height: 1.4; }
