/* =========================================================
   CATEGORY PAGE KIT (v6, v8) — exams, govt jobs, mock tests, study material.
   Uses the v5 tokens and section system from global.css.
========================================================= */

/* ---------- Page head additions ---------- */
.page-head--x { padding-bottom: 24px; }
.ph-title { display: flex; align-items: flex-start; gap: 16px; }
.ph-tile, .tile-badge {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px;
  background: var(--tb); color: var(--t); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em;
  border: 1px solid rgba(15,23,42,.06);
}
.tile-badge { width: 48px; height: 48px; border-radius: 12px; font-size: .9rem; }
.ph-chips { list-style: none; margin: 2px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chips li { padding: 3px 10px; border-radius: 999px; background: #f1f4f8; color: #3b4553; font-size: .8rem; font-weight: 500; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ph-actions .btn { height: 42px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; }
.ph-actions .btn .ico { width: 16px; height: 16px; }
.ph-search { width: min(420px, 100%); }
@media (max-width: 860px) { .page-head__grid { grid-template-columns: minmax(0, 1fr); } .page-head__facts { overflow-x: auto; } }
@media (max-width: 560px) { .ph-tile { width: 52px; height: 52px; border-radius: 14px; font-size: .9rem; } .page-head__facts div { padding: 10px 14px; min-width: 84px; } }

/* ---------- Sticky section bar ---------- */
.stabs { position: sticky; top: 64px; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.stabs__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.stabs__in::-webkit-scrollbar { display: none; }
.stabs a { flex: none; padding: 13px 12px 11px; border-bottom: 2px solid transparent; color: #3b4553; font-family: var(--font-head); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.stabs a:hover { color: #141a24; text-decoration: none; }
.stabs a.is-active { color: var(--brand-ink); border-bottom-color: var(--brand); }

/* ---------- Main + sidebar layout ---------- */
.lay { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding: 24px 0 56px; }
.lay__side { position: sticky; top: 128px; display: grid; gap: 16px; }
.lay--nosticky .lay__side { position: static; }
@media (max-width: 1024px) { .lay { grid-template-columns: minmax(0, 1fr); } .lay__side { position: static; } }

.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; scroll-margin-top: 124px; }
.box__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.box__head h2 { margin: 0; font-size: 1.22rem; font-weight: 500; color: #141a24; }
.box__more { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-head); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.box__more .ico { width: 15px; height: 15px; }
.box p { color: #2a3342; line-height: 1.7; }
.box h3 { font-size: 1rem; font-weight: 600; margin: 18px 0 8px; color: #141a24; }
.box ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.box ul.ticks li { position: relative; padding-left: 26px; color: #2a3342; line-height: 1.6; }
.box ul.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #e5f4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a45' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.box .note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #f7f8fb; color: #3b4553; font-size: .88rem; }
@media (max-width: 560px) { .box { padding: 18px 16px; } }

.side-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.side-box h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 500; color: #141a24; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-top: 1px solid #eef2f6; }
.side-list li:first-child { border-top: 0; }
.side-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; color: #1f2630; font-size: .92rem; }
.side-list a:hover { color: var(--brand-ink); text-decoration: none; }
.side-list small { color: #6b7380; font-size: .8rem; }
.side-dates { margin: 0; display: grid; gap: 0; }
.side-dates div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 9px 0; border-top: 1px solid #eef2f6; font-size: .88rem; }
.side-dates div:first-child { border-top: 0; }
.side-dates dt { color: #3b4553; }
.side-dates dd { margin: 0; font-weight: 600; color: #141a24; text-align: right; }

/* Quick answer box */
.qa-box { margin: 0 0 16px; padding: 16px 18px; border-radius: 14px; background: #fff7f3; border: 1px solid #f6d5c8; }
.qa-box__lab { font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--brand-ink); letter-spacing: .02em; }
.qa-box p { margin: 4px 0 0; color: #1f2630; line-height: 1.7; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tbl-wrap + .tbl-wrap, .tbl-wrap + p, p + .tbl-wrap { margin-top: 12px; }
table.kv, table.dt { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.kv th, table.kv td, table.dt th, table.dt td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid #eef2f6; }
table.kv tr:first-child th, table.kv tr:first-child td { border-top: 0; }
table.kv th { width: 38%; background: #fbfcfd; color: #3b4553; font-weight: 500; }
table.kv td { color: #141a24; }
table.dt thead th { background: #f4f6f9; color: #3b4553; font-family: var(--font-head); font-weight: 500; font-size: .84rem; border-top: 0; white-space: nowrap; }
table.dt tbody th { font-weight: 500; color: #141a24; }
table.dt td { color: #2a3342; }
table.dt a { font-weight: 500; }
table.dt tbody tr:hover { background: #fbfcfd; }
.dt--nowrap td, .dt--nowrap th { white-space: nowrap; }

/* Status badges */
.sbadge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.sbadge--ok { background: #e5f4ea; color: #1f7a45; }
.sbadge--warn { background: #fff1d6; color: #8a5a00; }
.sbadge--info { background: #e6eefb; color: #23406e; }
.sbadge--new { background: #fde9e3; color: var(--brand-ink); }
.sbadge--mute { background: #f1f3f7; color: #556171; }

/* ---------- Filter chips + search ---------- */
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-bottom: 18px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #d5dce6; background: #fff; color: #1f2630; font-family: var(--font-head); font-weight: 500; font-size: .88rem; cursor: pointer; }
.fchip:hover { border-color: #9aa5b4; }
.fchip[aria-pressed="true"] { background: #1f2630; border-color: #1f2630; color: #fff; }
.fchip span { opacity: .65; margin-left: 4px; font-weight: 400; }
.ph-find { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 1px solid #d5dce6; border-radius: 12px; background: #fff; width: min(380px, 100%); }
.ph-find:focus-within { border-color: #60a5fa; outline: 2px solid #bfdbfe; }
.ph-find .ico { width: 18px; height: 18px; color: #6b7380; }
.ph-find input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; background: transparent; }
.empty-note { padding: 18px; border: 1px dashed #d5dce6; border-radius: 12px; color: #556171; text-align: center; }

/* ---------- Exam cards (list page) ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ex-grid { grid-template-columns: minmax(0, 1fr); } }
.ex-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.ex-card:hover { border-color: #cdd5df; }
.ex-card__top { display: flex; gap: 12px; align-items: center; }
.ex-card h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.ex-card h3 a { color: #141a24; }
.ex-card h3 a:hover { color: var(--brand-ink); text-decoration: none; }
.ex-card__full { margin: 2px 0 0; font-size: .82rem; color: #6b7380; line-height: 1.4; }
.ex-card dl { margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 12px 0; border-top: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6; }
.ex-card dt { font-size: .74rem; color: #6b7380; }
.ex-card dd { margin: 2px 0 0; font-size: .88rem; font-weight: 500; color: #141a24; }
.ex-card__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; font-size: .86rem; }
.ex-card__links a { font-weight: 500; }
.ex-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }

/* ---------- Department / qualification cards ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1024px) { .dept-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dept-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: #141a24; }
.dept-card:hover { border-color: #cdd5df; text-decoration: none; }
.dept-card .ico-wrap { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tb); color: var(--t); flex: none; }
.dept-card .ico-wrap .ico { width: 20px; height: 20px; }
.dept-card b { display: block; font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.dept-card small { color: #6b7380; font-size: .8rem; }
.pill-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pill-links a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #1f2630; font-size: .9rem; font-weight: 500; }
.pill-links a:hover { border-color: #cdd5df; color: var(--brand-ink); text-decoration: none; }
.pill-links small { color: #6b7380; font-weight: 400; }
.grp + .grp { margin-top: 28px; }
.grp h3 { margin: 0 0 12px; font-size: 1.02rem; font-weight: 500; }

/* ---------- Notification rows ---------- */
.job-title a { color: #141a24; font-weight: 500; }
.job-title a:hover { color: var(--brand-ink); }
.job-title small { display: block; color: #6b7380; font-size: .8rem; font-weight: 400; margin-top: 2px; }

/* ---------- Mock tests ---------- */
.ser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .ser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ser-grid { grid-template-columns: minmax(0, 1fr); } }
.ser-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.ser-card:hover { border-color: #cdd5df; }
.ser-card__top { display: flex; align-items: center; gap: 12px; }
.ser-card h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.ser-card h3 a { color: #141a24; }
.ser-card h3 a:hover { color: var(--brand-ink); text-decoration: none; }
.ser-card__sub { margin: 2px 0 0; font-size: .82rem; color: #6b7380; }
.ser-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #eef2f6; border-radius: 12px; }
.ser-stats div { padding: 9px 10px; text-align: center; }
.ser-stats div + div { border-left: 1px solid #eef2f6; }
.ser-stats b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: #141a24; }
.ser-stats span { font-size: .74rem; color: #6b7380; }
.ser-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; font-size: .82rem; color: #6b7380; }
.btn-sm { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; font-size: .88rem; }
.btn-sm .ico { width: 15px; height: 15px; }

.test-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.test-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.test-row h3 { margin: 0 0 4px; font-size: .98rem; font-weight: 500; }
.test-row h3 a { color: #141a24; }
.test-row h3 a:hover { color: var(--brand-ink); text-decoration: none; }
.test-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; color: #556171; font-size: .84rem; }
.test-meta li { display: inline-flex; align-items: center; gap: 5px; }
.test-meta .ico { width: 14px; height: 14px; color: #8a93a2; }
.test-row__act { display: flex; align-items: center; gap: 10px; }
@media (max-width: 560px) { .test-row { grid-template-columns: minmax(0, 1fr); } .test-row__act { justify-content: space-between; } }

.lb { list-style: none; margin: 0; padding: 0; counter-reset: lb; }
.lb li { counter-increment: lb; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #eef2f6; font-size: .9rem; }
.lb li:first-child { border-top: 0; }
.lb li::before { content: counter(lb); width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: #f1f4f8; font-size: .76rem; font-weight: 700; color: #3b4553; }
.lb b { font-weight: 600; }
.lb small { color: #6b7380; }

.start-box { display: grid; gap: 12px; }
.start-box .btn { height: 48px; justify-content: center; display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; }
.lang-pick { display: flex; gap: 8px; }
.lang-pick label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 1px solid #d5dce6; border-radius: 10px; font-size: .9rem; cursor: pointer; }
.lang-pick input { accent-color: var(--brand); }
.lang-pick label:has(input:checked) { border-color: #1f2630; background: #f7f8fb; font-weight: 600; }

/* ---------- Study material ---------- */
.mat-tabs { margin-bottom: 18px; }
.mat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .mat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mat-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scrollbar-width: none; } .mat-grid::-webkit-scrollbar { display: none; } }
.mat-tile { position: relative; display: flex; flex-direction: column; min-height: 200px; padding: 18px 16px 0; border-radius: 16px; background: var(--tb); color: #141a24; overflow: hidden; }
.mat-tile:hover { text-decoration: none; filter: saturate(1.08); }
.mat-tile b { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.mat-tile span { font-size: .92rem; color: #3b4553; }
.mat-tile .mat-art { margin-top: auto; align-self: center; width: 96px; height: 96px; border-radius: 50% 50% 0 0; background: rgba(255,255,255,.65); display: grid; place-items: center; color: var(--t); transform: translateY(14px); }
.mat-tile .mat-art .ico { width: 38px; height: 38px; }
.mat-tile small { position: absolute; top: 14px; right: 14px; font-size: .72rem; font-weight: 600; color: var(--t); background: rgba(255,255,255,.75); padding: 2px 8px; border-radius: 999px; }

.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .board-grid { grid-template-columns: minmax(0, 1fr); } }
.board-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.board-card__top { display: flex; align-items: center; gap: 12px; }
.board-card h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.board-card h3 a { color: #141a24; }
.board-card h3 a:hover { color: var(--brand-ink); text-decoration: none; }
.board-card p { margin: 0; color: #556171; font-size: .88rem; }
.cls-links { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cls-links a { display: inline-grid; place-items: center; min-width: 44px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fbfcfd; color: #1f2630; font-size: .85rem; font-weight: 500; }
.cls-links a:hover { border-color: #cdd5df; color: var(--brand-ink); text-decoration: none; }

.cls-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1024px) { .cls-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cls-card { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cls-card h3 { margin: 0 0 2px; font-size: 1.05rem; font-weight: 600; }
.cls-card h3 a { color: #141a24; }
.cls-card h3 a:hover { color: var(--brand-ink); text-decoration: none; }
.cls-card > small { color: #6b7380; font-size: .8rem; }
.cls-card ul { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid #eef2f6; display: grid; gap: 6px; }
.cls-card ul a { font-size: .86rem; color: #2a3342; }
.cls-card ul a:hover { color: var(--brand-ink); }

.subj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1024px) { .subj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .subj-grid { grid-template-columns: minmax(0, 1fr); } }
.subj-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.subj-card .tile-badge { grid-row: span 2; }
.subj-card h3 { margin: 0; font-size: 1rem; font-weight: 600; align-self: end; }
.subj-card h3 a { color: #141a24; }
.subj-card h3 a:hover { color: var(--brand-ink); text-decoration: none; }
.subj-card > small { color: #6b7380; font-size: .8rem; }
.subj-card ul { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 10px 0 0; border-top: 1px solid #eef2f6; display: flex; flex-wrap: wrap; gap: 6px; }
.subj-card ul a { display: inline-block; padding: 4px 10px; border-radius: 8px; background: #f5f8fd; border: 1px solid #d9e3f2; color: #23406e; font-size: .8rem; font-weight: 500; }
.subj-card ul a:hover { border-color: #9db6dc; text-decoration: none; }

.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.res-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.res-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fde9e3; color: var(--brand-ink); }
.res-ico .ico { width: 20px; height: 20px; }
.res-row h3 { margin: 0; font-size: .96rem; font-weight: 500; color: #141a24; }
.res-row p { margin: 3px 0 0; font-size: .82rem; color: #6b7380; }
.res-act { display: flex; gap: 8px; }
@media (max-width: 560px) { .res-row { grid-template-columns: 40px minmax(0, 1fr); } .res-act { grid-column: 1 / -1; } .res-act .btn-sm { flex: 1; justify-content: center; } }

/* ---------- Alert form ---------- */
.alert-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.alert-form__h { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1rem; font-weight: 500; }
.alert-form__h .ico { width: 18px; height: 18px; color: var(--brand-ink); }
.alert-form p { margin: 0 0 12px; color: #556171; font-size: .88rem; }
.alert-form__row { display: flex; gap: 8px; }
.alert-form__row .input { flex: 1; min-width: 0; height: 42px; }
.alert-form__row .btn { height: 42px; padding: 0 14px; white-space: nowrap; }
.alert-form .alert-form__msg { margin: 8px 0 0; font-size: .78rem; color: #6b7380; }
.alert-form .alert-form__msg.is-ok { color: #1f7a45; font-weight: 500; }
.alert-form .alert-form__msg.is-err { color: #b42318; }
.side-box .alert-form, .lay__side .alert-form { padding: 18px; }
.lay__side .alert-form__row { flex-direction: column; }

/* Promo row inside main column (mock test link on exam pages) */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 16px; background: #1f2a44; color: #fff; margin-bottom: 16px; }
.promo b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.promo span { color: #c9d1de; font-size: .9rem; }
.promo .btn { flex: none; }
@media (max-width: 560px) { .promo { flex-direction: column; align-items: flex-start; } }

/* Similar exams link groups */
.sim-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; }
@media (max-width: 860px) { .sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sim-grid h3 { margin: 0 0 8px; padding-top: 12px; border-top: 2px solid #1f2630; font-size: .98rem; font-weight: 500; }
.sim-grid h3 a { color: #141a24; }
.sim-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sim-grid ul a { font-size: .88rem; color: #3b4553; }
.sim-grid ul a:hover { color: var(--brand-ink); }

/* Inside section cards */
.box .num-list--one { grid-template-columns: minmax(0, 1fr); }
.box .num-list--one li { padding: 14px 0 14px 46px; }
.box .num-list--one li::before { top: 14px; }
.box .num-list--one li:first-child { border-top: 0; }
.box .num-list h3 { margin: 0 0 2px; font-size: .98rem; }
.box .num-list p { margin: 0; font-size: .92rem; }
.side-list--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.side-list--cols li:nth-child(2) { border-top: 0; }
.side-list--cols li a { padding: 10px 0; }
@media (max-width: 640px) { .side-list--cols { grid-template-columns: minmax(0, 1fr); } .side-list--cols li:nth-child(2) { border-top: 1px solid #eef2f6; } }
.box .test-row { border-radius: 12px; }
.alert-form .input { width: 100%; padding: 0 12px; border: 1px solid #cfd7e2; border-radius: 10px; background: #fff; font: inherit; font-size: .94rem; color: #141a24; }
.alert-form .input:focus { outline: 2px solid #bfdbfe; border-color: #60a5fa; }

.btn-block { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-block .ico { width: 16px; height: 16px; }
.muted-s { margin: 0 0 12px; color: #556171; font-size: .88rem; line-height: 1.55; }
.box__head .tabs-switch { flex-wrap: wrap; }
.box__head .ts-btn { height: 34px; padding: 0 12px; font-size: .86rem; }
@media (max-width: 640px) { .box__head { flex-direction: column; align-items: flex-start; } .box__head .tabs-switch { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; } .box__head .ts-btn { flex: none; } }
.side-box .box__more { margin-top: 10px; }
.consent-line { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #2a3342; } .consent-line input { width: 18px; height: 18px; accent-color: var(--brand); }
.tile-badge--long { font-size: .66rem; letter-spacing: 0; }
.ph-tile.tile-badge--long { font-size: .9rem; }
.lang-pick { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------- Pager ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 16px; }
.pager__info { margin: 0; color: #556171; font-size: .9rem; }
.pager__info b { color: #141a24; font-weight: 600; }
.pager__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager__num, .pager__nav { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid #d5dce6; background: #fff; color: #1f2630; font-family: var(--font-head); font-weight: 500; font-size: .88rem; }
.pager__num:hover, .pager__nav:hover { border-color: #9aa5b4; text-decoration: none; }
.pager__num[aria-current="page"] { background: #1f2630; border-color: #1f2630; color: #fff; }
.pager__nav[aria-disabled="true"] { opacity: .45; cursor: default; }
.pager__nav .ico { width: 14px; height: 14px; }
.pager__gap { padding: 0 2px; color: #8a93a2; }
@media (max-width: 560px) { .pager { flex-direction: column; align-items: flex-start; } .pager__nav { font-size: 0; padding: 0; width: 38px; } .pager__nav .ico { width: 16px; height: 16px; } }
a.fchip { display: inline-flex; align-items: center; color: #1f2630; }
a.fchip:hover { text-decoration: none; }
a.fchip[aria-current="true"] { background: #1f2630; border-color: #1f2630; color: #fff; }
.box__note { font-size: .84rem; color: #6b7380; }

/* ---------- Content guide (SEO text before FAQs) ---------- */
.guide__toc { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.guide__toc p { margin: 0 0 8px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: #6b7380; letter-spacing: .03em; }
.guide__toc ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; }
.guide__toc a { color: #2a3342; font-size: .9rem; }
.guide__toc a:hover { color: var(--brand-ink); }
.guide__body { position: relative; }
.prose { max-width: 72ch; color: #2a3342; font-size: 1rem; line-height: 1.75; }
.prose h3 { margin: 26px 0 8px; font-size: 1.12rem; font-weight: 500; color: #141a24; scroll-margin-top: 130px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.guide__body:not(.is-open) .prose { max-height: 440px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.guide__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #d5dce6; background: #fff; color: #1f2630; font-family: var(--font-head); font-weight: 500; font-size: .9rem; cursor: pointer; }
.guide__more:hover { border-color: #9aa5b4; }
.guide__more .ico { width: 15px; height: 15px; transition: transform .2s; }
.guide__body.is-open .guide__more .ico { transform: rotate(180deg); }
@media (max-width: 960px) { .guide__toc { display: none; } }
.guide:not(.sx--tint) { border-top: 1px solid var(--line); }

.lay__side .alert-form__row .input, .lay__side .alert-form__row .btn { flex: none; width: 100%; height: 42px; }

/* ---------- Inline GK quiz ---------- */
.gkq-bar { position: sticky; top: 64px; z-index: 20; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.97); font-size: .9rem; color: #3b4553; }
.gkq-bar b { color: #141a24; font-family: var(--font-head); font-weight: 600; }
.gkq-bar__track { flex: 1; min-width: 80px; height: 6px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.gkq-bar__track span { display: block; width: 0; height: 100%; background: #2f9e62; border-radius: 99px; transition: width .25s; }
.gkq-bar__all { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #d5dce6; background: #fff; font: inherit; font-size: .84rem; cursor: pointer; }
.gkq-bar__all:disabled { opacity: .55; cursor: default; }
.gkq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gkq-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; scroll-margin-top: 130px; }
.gkq-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .8rem; }
.gkq-meta b { font-family: var(--font-head); font-weight: 600; color: #141a24; }
.gkq-meta span { padding: 2px 8px; border-radius: 999px; background: #f1f4f8; color: #3b4553; font-weight: 500; }
.gkq-text { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.6; color: #141a24; }
.gkq-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .gkq-opts { grid-template-columns: minmax(0, 1fr); } .gkq-item { padding: 16px; } }
.gkq-opt { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; color: #1f2630; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.gkq-opt:hover:not(:disabled) { border-color: #9aa5b4; background: #fbfcfd; }
.gkq-opt .k { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #f1f4f8; font-weight: 600; font-size: .8rem; color: #3b4553; }
.gkq-opt:disabled { cursor: default; }
.gkq-opt.is-right { border-color: #9fd8b5; background: #e9f7ef; color: #1f6b40; font-weight: 500; }
.gkq-opt.is-right .k { background: #2f9e62; color: #fff; }
.gkq-opt.is-wrong { border-color: #f4b4a3; background: #fdeee9; color: #a4321a; }
.gkq-opt.is-wrong .k { background: #e0573a; color: #fff; }
.gkq-ans { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #f7f8fb; font-size: .9rem; color: #2a3342; }
.gkq-ans p { margin: 0; }
.gkq-ans p + p { margin-top: 4px; }
.gkq-ans .ok { color: #1f7a45; font-weight: 600; }
.gkq-ans .bad { color: #b42318; font-weight: 600; }
.gkq-result { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; border-radius: 16px; background: #1f2a44; color: #fff; }
.gkq-result b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.8rem; }
.gkq-result span { color: #c9d1de; font-size: .92rem; }
.gkq-result .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.gkq-result .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

/* ---------- GK pages ---------- */
.today { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 22px 24px; border-radius: 18px; background: #fff7f3; border: 1px solid #f6d5c8; }
.today__lab { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--brand-ink); }
.today__lab .ico { width: 15px; height: 15px; }
.today h3 { margin: 4px 0 6px; font-size: 1.35rem; font-weight: 500; }
.today h3 a { color: #141a24; }
.today p { margin: 0; color: #3b4553; font-size: .92rem; }
.today .test-meta { margin-top: 10px; }
.today__act { display: grid; gap: 8px; justify-items: stretch; }
.today__act .btn { height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.today__act small { color: #6b7380; font-size: .8rem; text-align: center; }
@media (max-width: 640px) { .today { grid-template-columns: minmax(0, 1fr); padding: 18px; } }
.week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (max-width: 1024px) { .week { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scrollbar-width: none; } .week::-webkit-scrollbar { display: none; } }
@media (max-width: 560px) { .week { grid-auto-columns: 70%; } }
.week a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #141a24; }
.week a:hover { border-color: #cdd5df; text-decoration: none; }
.week b { font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.week span { font-size: .78rem; color: #6b7380; line-height: 1.4; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1024px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topic-grid { grid-template-columns: minmax(0, 1fr); } }
.topic-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #141a24; }
.topic-card:hover { border-color: #cdd5df; text-decoration: none; }
.topic-card b { display: block; font-family: var(--font-head); font-weight: 500; }
.topic-card small { display: block; color: #6b7380; font-size: .8rem; }
.topic-card .ico { width: 16px; height: 16px; margin-left: auto; color: #8a93a2; flex: none; }
.month-sel { display: flex; gap: 8px; align-items: center; }
.month-sel select { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #d5dce6; background: #fff; font: inherit; }
.qnav { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-top: 16px; }
.qnav a, .qnav__next { display: inline-flex; align-items: center; gap: 10px; color: #141a24; font-weight: 500; }
.qnav a:hover { color: var(--brand-ink); text-decoration: none; }
.qnav small { display: block; font-size: .76rem; color: #6b7380; font-weight: 400; }
.qnav__next { color: #8a93a2; text-align: right; }
.qnav .ico { width: 18px; height: 18px; }
.page-gk-quiz .gkq-result { margin-bottom: 0; }

/* live: department tile holds letters instead of an icon */
.dept-card .ico-wrap { font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .02em; }

/* live: notification tables keep a readable title column and scroll sideways on small screens */
table.dt .job-title { min-width: 220px; }
@media (max-width: 640px) { table.dt { min-width: 520px; } }

/* notification page: the article text written in the admin */
.nbody { color: #2a3342; font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.nbody > :first-child { margin-top: 0; }
.nbody h2 { margin: 28px 0 10px; font-size: 1.3rem; font-weight: 500; color: #141a24; scroll-margin-top: 124px; }
.nbody h3 { margin: 22px 0 8px; font-size: 1.1rem; font-weight: 500; color: #141a24; }
.nbody p { margin: 0 0 12px; max-width: 78ch; }
.nbody ul, .nbody ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 4px; max-width: 78ch; }
.nbody a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.nbody img { max-width: 100%; height: auto; border-radius: 10px; }
.nbody .tbl-wrap { margin: 0 0 16px; }
.nbody table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 480px; }
.nbody th, .nbody td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid #eef2f6; }
.nbody thead th, .nbody tr:first-child th { background: #f4f6f9; font-family: var(--font-head); font-weight: 500; font-size: .84rem; border-top: 0; }
.nbody-hero { margin: 0 0 18px; } .nbody-hero img { width: 100%; height: auto; border-radius: 12px; }
.box .box__head .sbadge { margin-left: auto; }
@media (max-width: 640px) { table.dt.dt--sm { min-width: 0; } }

/* live: stream heading on the exams list */
.grp__h { margin: 22px 0 12px; font-family: var(--font-head); font-size: 1.1rem; font-weight: 500; color: #141a24; }
.grp__h small { margin-left: 8px; font-size: .82rem; font-weight: 400; color: #6b7380; }

/* ---------- Daily GK (F3) ---------- */
.qnav a[rel="next"] { margin-left: auto; text-align: right; }
.gkq-ans__line { margin: 0 0 4px; }
.page-gk-quiz .gkq-result { margin-top: 16px; }
#notes { margin-top: 16px; }
.box .more { margin: 10px 0 0; font-weight: 600; font-size: .95rem; }
.box .more a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---- F2e: exam pages on the full v8 layout ---- */
.ex-card[hidden] { display: none; }
.box__sub { margin: 18px 0 8px; font-size: 1rem; font-weight: 500; color: #141a24; }
.box__sub:first-of-type { margin-top: 4px; }
.box .nbody + .tbl-wrap { margin-top: 6px; }
/* admin-written lists in exam sections look like the layout: green ticks for bullet lists, numbered steps for ordered lists */
.page-exam .box .nbody ul { list-style: none; padding-left: 0; gap: 8px; }
.page-exam .box .nbody ul > li { position: relative; padding-left: 26px; }
.page-exam .box .nbody ul > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #e5f4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a45' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.page-exam .box .nbody ol { list-style: none; padding-left: 0; counter-reset: sw-ol; gap: 0; }
.page-exam .box .nbody ol > li { counter-increment: sw-ol; position: relative; padding: 12px 0 12px 46px; border-top: 1px solid #eef2f6; }
.page-exam .box .nbody ol > li:first-child { border-top: 0; }
.page-exam .box .nbody ol > li::before { content: counter(sw-ol, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--brand-ink); }
.page-exam .box .nbody ol > li > strong:first-child, .page-exam .box .nbody ol > li > b:first-child { display: block; color: #141a24; font-weight: 500; }
