html.qbank-theme {
 --heading:#193a59;
 --primary:#285e91;
 --secondary:#526a80;
 --soft:#eaf3fd;
 --line:#d9e5ef;
 --bg:#f3f7fc;
 --hero-a:#e3f0fc;
 --hero-b:#eef7ff;
 --card-a:#e0efff;
 --card-b:#b9d9f5;
 --card-c:#e6f5fa;
 --card-d:#bfe3ee;
 --card-e:#e9edfb;
 --card-f:#ced7f3;
 --card-g:#e5f2fc;
 --card-h:#c3dfed;
}

/* Scoped theme for qbank.html and its package detail view. */
html.qbank-theme {
 --navy-900:var(--heading);--navy-700:var(--heading);
 --blue:var(--primary);--blue-bg:var(--soft);
 --gold:var(--primary);--gold-bg:var(--soft);--gold-dark:var(--primary);
 --ink:var(--heading);--gray:var(--secondary);--gray-light:var(--secondary);
 --green:#285771;--green-bg:#eaf2f6;
 background:var(--bg);
}
.qbank-theme body { background:#fff;box-shadow:0 0 0 1px var(--line); }
.qbank-theme .header { border-bottom:1px solid var(--line); }
.qbank-theme .header .logo-mark { box-shadow:0 2px 8px #122f3910; }
.qbank-theme :is(.btn-login,.logo-sub) { color:var(--secondary); }
.qbank-theme .btn-reg { background:var(--primary);color:#fff;text-decoration:none; }
.qbank-theme .btn-reg:hover { background:var(--heading); }
.qbank-theme .btn-login:hover { color:var(--primary); }
.qbank-theme .hd-tool:hover { border-color:var(--primary); }

/* Each copy column has dedicated space, with the full scene in its own center column. */
.qbank-theme .hub-hero {
 display:grid;grid-template-columns:minmax(245px,1.1fr) minmax(310px,1.4fr) minmax(200px,.9fr);
 min-height:244px;aspect-ratio:auto;gap:12px;padding-block:20px;
 background:radial-gradient(ellipse at 53% 64%,#ffffffbc,transparent 60%),
 linear-gradient(110deg,var(--hero-a),var(--hero-b));
 border-bottom:1px solid var(--line);align-items:center;
}
.qbank-theme .hub-hero::before {
 content:'';position:relative;inset:auto;grid-row:1;grid-column:2;
 align-self:stretch;min-height:190px;z-index:0;
 background:url('../assets/hero.png') center/cover no-repeat;
 mask-image:radial-gradient(ellipse 68% 68% at 50% 50%,#000 40%,#0000 73.5%);
}
.qbank-theme .hub-hero-l { grid-row:1;grid-column:1;gap:12px; }
.qbank-theme .hub-title { color:var(--heading);font-size:30px;line-height:1.3;letter-spacing:-.8px; }
.qbank-theme .hub-badge {
 color:var(--primary);background:none;padding:0;border:0;font-size:11px;
}
.qbank-theme .hub-badge i { background:var(--primary);box-shadow:0 0 0 3px var(--soft); }
.qbank-theme .hub-sub { color:var(--secondary);font-size:12px;max-width:310px;line-height:1.85; }
.qbank-theme .hub-stats {
 grid-row:1;grid-column:3;gap:11px;flex-direction:column;align-items:flex-end;
}
.qbank-theme .hub-stats > div {
 padding:0;border:0;flex-direction:row;align-items:baseline;justify-content:flex-end;gap:9px;
}
.qbank-theme .hub-stats b { color:var(--primary);font-size:23px;letter-spacing:-.5px; }
.qbank-theme .hub-stats span { color:var(--secondary);font-size:11px; }
.qbank-theme .hub-body { gap:24px; }
.qbank-theme .hub-filter { background:#fff;border:1px solid var(--line);box-shadow:0 4px 18px #16384305; }
.qbank-theme .hub-result { background:transparent;padding:0;box-shadow:none; }
.qbank-theme .hub-result-h { padding:0 2px; }
.qbank-theme .hub-search,.qbank-theme .hub-reset { background:var(--soft);color:var(--primary); }
.qbank-theme .hub-search:focus-within {
 border-color:var(--primary);box-shadow:0 0 0 3px var(--soft);background:#fff;
}
.qbank-theme .hub-reset:hover { background:var(--line);color:var(--heading); }
.qbank-theme .hub-chip i { background:var(--primary)!important; }
.qbank-theme .hub-chip.on i { background:#fff!important; }
.qbank-theme .hub-fgroup .hub-chip { background:#fff; }
.qbank-theme .hub-fgroup .hub-chip:hover { border-color:var(--primary);background:var(--soft); }
.qbank-theme .hub-fgroup .hub-chip.on { background:var(--primary);color:#fff;border-color:var(--primary); }

/* Editorial title, a single plain-text industry label, then price and entry action. */
.qbank-theme .hub-paper {
 border:1px solid var(--line);background:#fff;border-radius:15px;
 box-shadow:0 4px 16px #17394606;
}
.qbank-theme .hub-paper:hover { border-color:var(--primary);box-shadow:0 10px 22px #17394612; }
.qbank-theme .hub-paper .pcover {
 --tone-a:var(--card-a);--tone-b:var(--card-b);
 height:auto;min-height:184px;padding:43px 17px 19px;align-items:stretch;
 background-image:var(--cover-art),linear-gradient(125deg,var(--tone-a),var(--tone-b));
 background-size:cover;border-bottom:0;
 container-type:inline-size;
}
.qbank-theme .hub-paper .pcover.cv1 { --tone-a:var(--card-c);--tone-b:var(--card-d); }
.qbank-theme .hub-paper .pcover.cv2 { --tone-a:var(--card-e);--tone-b:var(--card-f); }
.qbank-theme .hub-paper .pcover.cv3 { --tone-a:var(--card-g);--tone-b:var(--card-h); }
.qbank-theme .hub-paper .pcover::before,.qbank-theme .hub-paper .pcover::after { display:none; }
.qbank-theme .hub-paper .pc-wrap { padding:0;width:100%;text-align:left;align-items:flex-start;gap:11px;justify-content:center; }
.qbank-theme .hub-paper .pcover .pc-name {
 display:block;filter:none;background:none;color:var(--heading);-webkit-text-fill-color:currentColor;
 text-shadow:none;font-size:30px;font-size:clamp(26px,12.3cqw,34px);font-weight:900;line-height:1.22;
 letter-spacing:-.7px;overflow-wrap:anywhere;-webkit-line-clamp:unset;text-wrap:balance;
}
.qbank-theme .hub-paper .pc-sub {
 color:var(--primary);font-size:20px;font-size:clamp(18px,8.6cqw,23px);
 line-height:1.3;letter-spacing:-.3px;font-weight:750;text-shadow:none;
}
.qbank-theme .hub-paper .plabel:not(.paid) {
 background:none;border:0;border-radius:0;color:var(--secondary);backdrop-filter:none;
 padding:0;left:17px;top:16px;font-size:11px;max-width:calc(100% - 34px);font-weight:500;
}
.qbank-theme .hub-paper .pbody { padding:16px;gap:13px; }
.qbank-theme .hub-paper .pprice-row { padding:0;border:0;align-items:baseline; }
.qbank-theme .hub-paper .plearn { font-size:11px;color:var(--secondary); }
.qbank-theme .hub-paper .plearn::before { content:none; }
.qbank-theme .hub-paper .pprice {
 background:none;border:0;border-radius:0;color:var(--primary);box-shadow:none;padding:0;
 font-size:24px;line-height:1.2;letter-spacing:-.7px;
}
.qbank-theme .hub-paper:hover .pprice { box-shadow:none;transform:none; }
.qbank-theme .hub-paper .pprice i { font-size:13px; }
.qbank-theme .hub-paper .pfoot { padding:12px 0 0;border-top:1px solid var(--line);background:none;gap:7px; }
.qbank-theme .hub-paper .pstat { color:var(--secondary);font-size:11.5px;font-weight:500;line-height:1.5; }
.qbank-theme .hub-paper .pgo { background:var(--primary);color:#fff;padding:6px 12px;font-size:12px; }
.qbank-theme .hub-paper:hover .pgo { background:var(--heading);color:#fff; }

.qbank-theme .pack-hero {
 background:linear-gradient(110deg,var(--hero-a),var(--hero-b));color:var(--heading);
 border-bottom:1px solid var(--line);
}
.qbank-theme :is(.pack-hero .pk-back,.pack-hero .pk-sub,.pack-hero .pk-meta) { color:var(--secondary); }
.qbank-theme .pk-meta b { color:var(--heading); }
.qbank-theme .pk-actions .pk-buy { background:var(--primary);color:#fff; }
.qbank-theme .pk-actions .pk-buy:hover { background:var(--heading); }
.qbank-theme .pk-actions .pk-fav { color:var(--secondary);border-color:var(--line);background:#fff7; }
.qbank-theme .pk-actions .pk-fav:disabled { opacity:.6;cursor:default; }
.qbank-theme .pk-cat:not(.on) small { color:var(--secondary); }
.qbank-theme .pk-cat.on { box-shadow:0 5px 12px #17394612; }
.qbank-theme .pk-set:hover { border-color:var(--primary);background:var(--soft); }
.qbank-theme .hub-guide .gi { background:var(--soft); }
.qbank-theme .footer-bar { color:var(--secondary);background:#fff!important; }
.qbank-theme .modal { color:var(--heading);background:#fff; }
.qbank-theme .modal-mask { background:#172e4770; }
.qbank-theme :is(button,a,[tabindex]):focus-visible {
 outline:2px solid var(--primary);outline-offset:3px;
}

@media(max-width:1100px) {
 .qbank-theme .hub-hero { grid-template-columns:1fr 1fr;gap:10px;min-height:270px; }
 .qbank-theme .hub-hero-l { grid-row:1;grid-column:1; }
 .qbank-theme .hub-hero::before { grid-row:1 / 3;grid-column:2;min-height:230px; }
 .qbank-theme .hub-stats { grid-column:1;grid-row:2;align-items:flex-start;gap:7px; }
 .qbank-theme .hub-stats>div { padding:0; }
 .qbank-theme .hub-title { font-size:28px; }
}
@media(max-width:620px) {
 .qbank-theme .hub-hero { grid-template-columns:1fr;padding-block:22px; }
 .qbank-theme .hub-hero-l { grid-column:1;grid-row:1; }
 .qbank-theme .hub-hero::before {
   grid-column:1;grid-row:2;min-height:0;height:155px;width:100%;background-size:cover;
 }
 .qbank-theme .hub-stats {
   grid-row:3;grid-column:1;flex-direction:row;justify-content:space-between;gap:6px;
 }
 .qbank-theme .hub-stats>div { flex-direction:column;gap:3px;align-items:flex-start; }
 .qbank-theme .hub-stats b { font-size:22px; }
 .qbank-theme .hub-stats span { font-size:10px; }
 .qbank-theme .hub-filter { padding:16px; }
 .qbank-theme .hub-filter-head,.qbank-theme .hub-filter-tools { flex-wrap:wrap; }
 .qbank-theme .hub-filter-head .t { flex-wrap:wrap;gap:5px; }
 .qbank-theme .hub-search input { width:min(148px,43vw); }
 .qbank-theme .hub-filter-row { gap:6px; }
 .qbank-theme .hub-filter-label { width:31px; }
 .qbank-theme .hub-reset { padding-inline:10px; }
 .qbank-theme .hub-paper-list { grid-template-columns:1fr; }
}



/* Desktop masthead matches original asset geometry, including its padding. */
.qbank-theme .hub-hero {
 position:relative;display:flex;justify-content:space-between;align-items:center;
 aspect-ratio:3794 / 540;min-height:0;padding-top:0;padding-bottom:0;gap:24px;
 background-color:var(--hero-a);background-image:url('../assets/hero.png');background-position:center;background-size:100% 100%;background-repeat:no-repeat;
 isolation:isolate;
}
.qbank-theme .hub-hero::before {
 position:absolute;inset:0;display:block;grid-area:auto;min-height:0;height:auto;width:auto;
 background:linear-gradient(90deg,var(--hero-a) 0%,transparent 35% 69%,var(--hero-b) 100%);
 opacity:.30;mask-image:none;z-index:0;
}
.qbank-theme .hub-hero-l { position:relative;z-index:1;width:34%;max-width:390px;gap:8px; }
.qbank-theme .hub-title { font-size:clamp(23px,2.05vw,30px);letter-spacing:-.6px;white-space:nowrap; }
.qbank-theme .hub-sub { font-size:11px;line-height:1.75; }
.qbank-theme .hub-badge { font-size:10px; }
.qbank-theme .hub-stats { position:relative;z-index:1;gap:8px;align-items:flex-end;width:24%; }
.qbank-theme .hub-stats>div { flex-direction:row;gap:8px;align-items:baseline; }
.qbank-theme .hub-stats b { font-size:21px; }
.qbank-theme .hub-stats span { font-size:10px; }
.qbank-theme .hub-paper .pcover {
 min-height:182px;
 background-image:var(--cover-art),radial-gradient(ellipse at 8% 4%,#ffffff66,transparent 68%),
 linear-gradient(125deg,var(--tone-a),var(--tone-b));
}
.qbank-theme .hub-paper .pc-wrap { justify-content:center;gap:12px; }
.qbank-theme .hub-paper .pcover .pc-name { font-size:clamp(26px,12.3cqw,34px); }
.qbank-theme .hub-paper .pc-sub { font-size:clamp(18px,8.4cqw,23px); }
@media(max-width:760px) {
 .qbank-theme .hub-hero {
  aspect-ratio:auto;min-height:350px;display:flex;flex-direction:column;align-items:stretch;
  justify-content:space-between;padding-top:18px;padding-bottom:18px;gap:12px;
  background-size:auto 205px;background-position:center 115px;background-color:var(--hero-a);
 }
 .qbank-theme .hub-hero::before {
  background:linear-gradient(180deg,var(--hero-a),transparent 30% 80%,var(--hero-a));
 }
 .qbank-theme .hub-hero-l { width:100%;max-width:none;gap:7px; }
 .qbank-theme .hub-title { font-size:26px; }
 .qbank-theme .hub-sub { max-width:none; }
 .qbank-theme .hub-stats { width:100%;flex-direction:row;justify-content:space-between;gap:6px;align-items:flex-start; }
 .qbank-theme .hub-stats>div { flex-direction:column;align-items:flex-start;gap:2px; }
 .qbank-theme .hub-stats b { font-size:20px; }
}

.qbank-theme .hub-paper .pcover.cv0 {--cover-art:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22500%22%20height%3D%22320%22%3E%3Cg%20fill%3D%22%23285e91%22%3E%3Cpath%20d%3D%22M310-20L500%2020%20240%20350H120z%22%20opacity%3D%22.055%22/%3E%3Cpath%20d%3D%22M430-20L500%200%20270%20350h-30z%22%20opacity%3D%22.07%22/%3E%3C/g%3E%3Cpath%20d%3D%22M475-20L234%20350%22%20stroke%3D%22%23285e91%22%20opacity%3D%22.16%22%20fill%3D%22none%22/%3E%3Cpath%20d%3D%22M493-20L252%20350%22%20stroke%3D%22%23285e91%22%20opacity%3D%22.08%22%20fill%3D%22none%22/%3E%3C/svg%3E");}

.qbank-theme .hub-paper .pcover.cv1 {--cover-art:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22500%22%20height%3D%22320%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23285e91%22%3E%3Cellipse%20cx%3D%22445%22%20cy%3D%22160%22%20rx%3D%22145%22%20ry%3D%22255%22%20stroke-width%3D%2244%22%20opacity%3D%22.045%22/%3E%3Cellipse%20cx%3D%22445%22%20cy%3D%22160%22%20rx%3D%22126%22%20ry%3D%22255%22%20opacity%3D%22.18%22/%3E%3Cellipse%20cx%3D%22445%22%20cy%3D%22160%22%20rx%3D%22174%22%20ry%3D%22255%22%20opacity%3D%22.09%22/%3E%3Cellipse%20cx%3D%22445%22%20cy%3D%22160%22%20rx%3D%22194%22%20ry%3D%22255%22%20opacity%3D%22.06%22/%3E%3C/g%3E%3Ccircle%20cx%3D%22326%22%20cy%3D%22244%22%20r%3D%224%22%20fill%3D%22%23285e91%22%20opacity%3D%22.28%22/%3E%3C/svg%3E");}

.qbank-theme .hub-paper .pcover.cv2 {--cover-art:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22500%22%20height%3D%22320%22%3E%3Cdefs%3E%3Cpattern%20id%3D%22p%22%20width%3D%2219%22%20height%3D%2219%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Ccircle%20cx%3D%223%22%20cy%3D%223%22%20r%3D%221.5%22%20fill%3D%22%23285e91%22%20opacity%3D%22.18%22/%3E%3C/pattern%3E%3ClinearGradient%20id%3D%22f%22%3E%3Cstop%20stop-color%3D%22white%22%20stop-opacity%3D%220%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22white%22/%3E%3C/linearGradient%3E%3Cmask%20id%3D%22m%22%3E%3Cpath%20d%3D%22M0%200h500v320H0z%22%20fill%3D%22url%28%23f%29%22/%3E%3C/mask%3E%3C/defs%3E%3Cpath%20d%3D%22M295-18L517%2046%20421%20336%20223%20273z%22%20fill%3D%22%23285e91%22%20opacity%3D%22.035%22/%3E%3Cpath%20d%3D%22M180%200h320v320H180z%22%20fill%3D%22url%28%23p%29%22%20mask%3D%22url%28%23m%29%22/%3E%3Cpath%20d%3D%22M361%20248h67v-67%22%20stroke%3D%22%23285e91%22%20stroke-width%3D%222%22%20opacity%3D%22.13%22%20fill%3D%22none%22/%3E%3C/svg%3E");}

.qbank-theme .hub-paper .pcover.cv3 {--cover-art:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22500%22%20height%3D%22320%22%3E%3Cpath%20d%3D%22M258-40L524%2062%20386%20375%20170%20275z%22%20fill%3D%22%23285e91%22%20opacity%3D%22.045%22/%3E%3Cpath%20d%3D%22M311-45L546%2054%20412%20355%20219%20286z%22%20fill%3D%22%23fff%22%20opacity%3D%22.24%22/%3E%3Cpath%20d%3D%22M346-34L533%2042%20413%20322%20252%20260z%22%20fill%3D%22none%22%20stroke%3D%22%23285e91%22%20opacity%3D%22.13%22/%3E%3Cpath%20d%3D%22M359-11L516%2048%20408%20300%22%20fill%3D%22none%22%20stroke%3D%22%23285e91%22%20opacity%3D%22.09%22/%3E%3C/svg%3E");}
