/* TopScoreNotes — always-white theme.
   Loaded after style.css; it switches the whole site to white and turns off dark mode.
   To undo: delete this file (or the line that loads it in partials/header.php). */
:root,
:root:not([data-theme="light"]),
:root[data-theme="dark"]{
  --paper:#FFFFFF;
  --paper-card:#FFFFFF;
  --soft:#FFFFFF;
  --ink:#0F2A47;
  --ink-soft:#264A69;
  --ink-faint:#5D7C94;
  --red:#B8391F;
  --gold:#8A6B23;
  --gold-fill:#B8903A;
  --rule:#D2DEE7;
  --rule-strong:#B7C6D4;
}
html{color-scheme:light;background:#FFFFFF;}
body{background:#FFFFFF;color:var(--ink);}
.hm,:root .hm,:root[data-theme="dark"] .hm,:root:not([data-theme="light"]) .hm{background:#FFFFFF;}
/* light grey-blue only where a soft panel helps readability */
.hm-trust,.hm-cat,.hm-products .card,.hm-inst{background:#FFFFFF;}
.hm-products .card-thumb{background:#F3F7FB;}
/* Current Affairs pages: no separate card needed on a white page */
.ca{box-shadow:none;}

/* =====================================================================
   Inner pages polish — same look as the home page on every page.
   Bolder modern font, darker readable text, navy headings, rounded
   cards with soft shadows, filled buttons. CSS only; no page edited.
   ===================================================================== */
:root,:root:not([data-theme="light"]),:root[data-theme="dark"]{
  --ink:#0F2A47;          /* headings */
  --ink-soft:#2E4560;     /* body text: darker than before */
  --ink-faint:#566A80;    /* small/meta text: still readable */
  --brand:#1554C0;        /* link blue (as in the menu) */
  --accent:#F5B800;       /* home-page yellow */
  --tsn-font:"Plus Jakarta Sans","Noto Sans Devanagari",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
body{font-family:var(--tsn-font);color:var(--ink-soft);font-size:15.5px;line-height:1.65;-webkit-font-smoothing:antialiased;}
h1,h2,h3,h4,.serif{font-family:var(--tsn-font) !important;color:var(--ink);letter-spacing:-.015em;}
h1.serif,h1{font-weight:800 !important;}
h2.serif,h3.serif,h2,h3{font-weight:700 !important;}
input,select,textarea,button{font-family:var(--tsn-font);}

/* page title: bigger, with the yellow bar used on the home page */
main.wrap > h1.serif,main.wrap > h1{font-size:34px !important;line-height:1.2;margin-bottom:12px !important;}
main.wrap:not(.ca) > h1.serif::after,main.wrap:not(.ca) > h1::after{content:"";display:block;width:56px;height:4px;border-radius:4px;background:var(--accent);margin-top:12px;}
main.wrap > h1.serif + p,main.wrap > h1 + p{font-size:16.5px !important;color:var(--ink-soft) !important;}
.crumb{font-size:13px;color:var(--ink-faint);font-weight:500;}
.crumb a{color:var(--brand);}

/* grids that used a 1px grey gap (left grey blocks in empty spaces) → spaced cards */
main.wrap:not(.ca) [style*="gap:1px"]{background:transparent !important;border:0 !important;gap:20px !important;}
main.wrap:not(.ca) [style*="gap:1px"] > *{background:#fff !important;border:1px solid var(--rule) !important;border-radius:14px !important;
  box-shadow:0 2px 10px rgba(15,42,71,.06);transition:transform .15s,box-shadow .15s,border-color .15s;overflow:hidden;}
main.wrap:not(.ca) [style*="gap:1px"] > *:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,42,71,.12);border-color:#9FB9D6 !important;}

/* bordered boxes (test cards, filters, lists) → rounded cards */
main.wrap:not(.ca) [style*="border:1px solid var(--rule)"]{border-radius:14px !important;background:#fff;}
main.wrap:not(.ca) [style*="grid-template-columns"] > [style*="border:1px solid var(--rule)"]{box-shadow:0 2px 10px rgba(15,42,71,.06);transition:transform .15s,box-shadow .15s;}
main.wrap:not(.ca) [style*="grid-template-columns"] > [style*="border:1px solid var(--rule)"]:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,42,71,.12);}
main.wrap:not(.ca) aside,main.wrap:not(.ca) form [style*="border:1px solid var(--rule)"]{border-radius:14px;}

/* buttons: filled navy, yellow on hover (like the home page) */
.card-add{background:var(--ink) !important;color:#fff !important;border:1px solid var(--ink) !important;border-radius:10px !important;font-weight:700 !important;
  font-family:var(--tsn-font) !important;letter-spacing:0 !important;text-transform:none !important;transition:background .15s,color .15s,border-color .15s;}
.card-add:hover{background:var(--accent) !important;border-color:var(--accent) !important;color:var(--ink) !important;text-decoration:none !important;}

/* inputs: rounded and clear */
main.wrap input[type=text],main.wrap input[type=search],main.wrap input[type=email],main.wrap input[type=tel],main.wrap input[type=password],main.wrap input[type=number],main.wrap select,main.wrap textarea{
  border:1px solid var(--rule-strong) !important;border-radius:10px !important;background:#fff;color:var(--ink);}
main.wrap input:focus,main.wrap select:focus,main.wrap textarea:focus{outline:none;border-color:var(--brand) !important;box-shadow:0 0 0 3px rgba(21,84,192,.15);}

/* filter chips (All exams / BANK / SSC …) */
main.wrap:not(.ca) a[style*="border-radius:20px"],main.wrap:not(.ca) a[style*="border-radius:999px"]{font-weight:600 !important;}

/* small mono text (prices, counts) a bit stronger */
.mono{color:var(--ink-soft);}

/* footer text darker */
footer,footer a{color:var(--ink-soft);}
footer a:hover{color:var(--brand);}

@media (max-width:640px){
  main.wrap > h1.serif,main.wrap > h1{font-size:27px !important;}
  main.wrap:not(.ca){padding-left:16px !important;padding-right:16px !important;}
}


/* =====================================================================
   Browse notes (products.php) and note page (product.php)
   ===================================================================== */
/* page title with the yellow bar */
.shop-head h1{font-size:34px !important;font-weight:800 !important;color:#0F2A47 !important;margin-bottom:6px;}
.shop-head h1::after{content:"";display:block;width:56px;height:4px;border-radius:4px;background:#F5B800;margin-top:12px;}

/* the filter / category box */
.filter-panel{background:#EEF4FB !important;border:1px solid #CFDDEE !important;border-radius:16px !important;overflow:hidden;align-self:start;}
.filter-panel form{background:transparent !important;}
.filter-panel .filter-group{background:transparent !important;border-color:#D6E2F0 !important;}
.filter-panel h4{color:#0F2A47 !important;font-weight:800 !important;font-size:12.5px !important;letter-spacing:.08em;text-transform:uppercase;}
/* every item: BANK, SSC, UPSC Pre, Printed Notes, PDF, LMP Academy … */
.filter-panel .filter-opt{display:flex !important;align-items:center;gap:10px;color:#1D3557 !important;font-weight:600 !important;font-size:14.5px;
  padding:7px 10px !important;margin:2px -10px !important;border-radius:9px;cursor:pointer;transition:background .15s,color .15s,transform .15s;}
.filter-panel .filter-opt .n{margin-left:auto;background:#fff;color:#1554C0 !important;border-radius:20px;padding:1px 9px;font-size:12px;font-weight:700;}
/* mouse over an item → blue, white text */
.filter-panel .filter-opt:hover{background:#1554C0 !important;color:#fff !important;transform:translateX(3px);}
.filter-panel .filter-opt:hover .n{background:#fff;color:#1554C0 !important;}
/* ticked item stays navy */
.filter-panel .filter-opt:has(input:checked){background:#0F2A47 !important;color:#fff !important;}
.filter-panel .filter-opt input{accent-color:#F5B800;width:16px;height:16px;margin:0;cursor:pointer;}
.filter-panel input[type=text],.filter-panel input[type=number]{background:#fff !important;border:1px solid #C3D3E6 !important;border-radius:10px !important;padding:9px 11px !important;color:#0F2A47;}
.filter-panel input:focus{outline:none;border-color:#1554C0 !important;box-shadow:0 0 0 3px rgba(21,84,192,.15);}

/* results bar + sort */
.results-count{color:#2E4560;font-weight:600;}
.sort-select{border:1px solid #C3D3E6 !important;border-radius:10px !important;padding:8px 12px !important;color:#0F2A47 !important;font-weight:600;background:#fff !important;}

/* notes grid: no grey block, separate rounded cards */
.shop-grid,.grid{background:transparent !important;border:0 !important;gap:22px !important;}
.shop-grid > *,.grid > .card{background:#fff !important;border:1px solid #D6E2F0 !important;border-radius:16px !important;overflow:hidden;
  box-shadow:0 2px 10px rgba(15,42,71,.06);transition:transform .15s,box-shadow .15s,border-color .15s;}
.shop-grid > *:hover,.grid > .card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(15,42,71,.13);border-color:#9FB9D6 !important;}
.shop-grid > p{box-shadow:none;border-style:dashed !important;}
.shop-grid > p:hover{transform:none;}

/* pagination */
.pagination .page-num{border-radius:9px;font-weight:700;}
.pagination .page-num.is-active{background:#0F2A47;color:#fff;border-color:#0F2A47;}

/* note page: format choices */
#pdp-form > div{border:1px solid #D6E2F0 !important;border-radius:14px !important;overflow:hidden;}
#pdp-form label{color:#1D3557;transition:background .15s;}
#pdp-form label:hover{background:#EEF4FB;}
#pdp-form label:has(input:checked){background:#E3EDFA;box-shadow:inset 4px 0 0 #1554C0;}
#pdp-form input[type=radio]{accent-color:#1554C0 !important;}
main.wrap .card-thumb{border-radius:14px;overflow:hidden;}
main.wrap a[href^="/sample.php"]{border-radius:10px !important;font-weight:700 !important;}
main.wrap a[href^="/sample.php"]:hover{background:#EEF4FB;}
