/* Additions to the retained Sanskrit home page. Every rule is scoped to .pb-* so the original page is untouched. */
@font-face { font-family: "VijayaDV"; src: url("../fonts/VijayaDV.ttf") format("truetype"); font-display: swap; }
.pb-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101; height: 38px;
  display: flex; align-items: center; gap: 14px; padding: 0 16px; overflow-x: auto; white-space: nowrap;
  background: #1a1510; color: #bfae8e; font: 500 13px/1 "Inter", system-ui, sans-serif;
}
.pb-strip a { color: #f5e6c8; text-decoration: none; }
.pb-strip a:hover, .pb-strip a:focus-visible { color: #d4a017; text-decoration: underline; }
.pb-home { font-weight: 700; letter-spacing: .03em; }
.pb-here { color: #d4a017; }
.pb-links { display: inline-flex; gap: 14px; margin-left: auto; }
body { padding-top: 38px; }
#navbar { top: 38px !important; }

.pb-section { background: #1a1510; color: #f5e6c8; padding: 72px 20px; }
.pb-wrap { max-width: 1180px; margin: 0 auto; display: grid; gap: 18px; }
.pb-eyebrow { font: 600 12px/1.4 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #d4a017; margin: 0; }
.pb-h { font: 700 clamp(28px, 3.4vw, 40px)/1.15 "Playfair Display", Georgia, serif; margin: 0; color: #f5e6c8; }
.pb-lede { color: #cdbd9e; max-width: 42rem; margin: 0; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-chips button {
  min-width: 42px; padding: 6px 12px; border-radius: 7px; cursor: pointer; font: 500 14px "Inter", sans-serif;
  background: #2d1f0e; color: #f5e6c8; border: 1px solid rgba(212, 160, 23, .3);
}
.pb-chips button[aria-pressed="true"] { background: #d4a017; color: #1a1510; border-color: #d4a017; }
.pb-chips button:focus-visible, .pb-card:focus-visible { outline: 2px solid #d4a017; outline-offset: 2px; }
.pb-courses { display: grid; gap: 14px; }
.pb-course { background: #241a0f; border: 1px solid rgba(212, 160, 23, .25); border-radius: 10px; padding: 16px 18px; }
.pb-course h3 { margin: 0 0 4px; font: 600 16px "Inter", sans-serif; color: #f5e6c8; }
.pb-course .pb-book { font-family: "VijayaDV", "Noto Sans Devanagari", sans-serif; color: #d4a017; font-size: 20px; }
.pb-course ol { margin: 10px 0 0; padding-left: 1.6em; columns: 2 18rem; column-gap: 28px; color: #e8dcc4; }
.pb-course li { break-inside: avoid; margin-bottom: 6px; font-family: "VijayaDV", "Noto Sans Devanagari", sans-serif; font-size: 17px; }
.pb-course li small { display: block; font: 12px "Inter", sans-serif; color: #bfae8e; }
.pb-note { color: #cdbd9e; border: 1px dashed rgba(212, 160, 23, .4); border-radius: 8px; padding: 12px 14px; margin: 0; }
.pb-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }
.pb-card { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 10px; text-decoration: none; background: #2d1f0e; border: 1px solid rgba(212, 160, 23, .3); color: #cdbd9e; font: 14px/1.5 "Inter", sans-serif; }
.pb-card b { color: #d4a017; font: 700 18px "Playfair Display", Georgia, serif; }
.pb-card:hover { border-color: #d4a017; }
@media (max-width: 900px) { .pb-cards { grid-template-columns: 1fr 1fr; } .pb-links { margin-left: 0; } }
@media (max-width: 560px) { .pb-cards { grid-template-columns: 1fr; } }

/* Sanskrit Department at a glance (tools/portal/portal_nav.py, VKG 2026-10-21). */
/* A second fixed bar under the strip, so the counts are always in view; the
   lists drop down below it. The retained page is pushed down by its height. */
.pb-dept { position: fixed; top: 38px; left: 0; right: 0; z-index: 101; background: #2a1f14; color: #f5e6c8; border-top: 1px solid rgba(245, 230, 200, .14); font: 14px/1.45 Inter, system-ui, sans-serif; }
.pb-dept > summary { cursor: pointer; height: 34px; padding: 0 16px; list-style: none; display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.pb-dept > summary span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html body { padding-top: 72px; }
html body #navbar { top: 72px !important; }
/* Under the news ticker when it shows (ticker.css, 30 px). */
html body.has-ticker .pb-dept { top: 68px; }
html body.has-ticker { padding-top: 102px; }
html body.has-ticker #navbar { top: 102px !important; }
.pb-dept > summary::-webkit-details-marker { display: none; }
.pb-dept > summary::after { content: "Show all ▾"; margin-left: auto; color: #d4a017; font-size: 13px; }
.pb-dept[open] > summary::after { content: "Hide ▴"; }
.pb-dept > summary b { color: #d4a017; }
.pb-dept-grid { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 110px); overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px 22px; padding: 4px 20px 18px; background: #2a1f14; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.pb-dept .navcol { display: grid; align-content: start; gap: 1px; min-width: 0; }
.pb-dept a, .pb-dept .navoff, .pb-dept .navsection > summary { display: flex; align-items: baseline; gap: 6px; padding: 5px 8px; color: #f5e6c8; text-decoration: none; border-radius: 6px; }
.pb-dept a:hover { background: rgba(245, 230, 200, .08); color: #fff; }
.pb-dept a:has(.navnote) { flex-direction: column; align-items: flex-start; gap: 0; }
.pb-dept .navhead { margin: 10px 0 2px; padding: 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #d4a017; }
.pb-dept .navdept { margin: 8px 0 0; padding: 0 8px; font-weight: 600; }
.pb-dept .navall, .pb-dept .navsec { font-weight: 600; }
.pb-dept .navsub { padding-left: 20px; font-size: 13px; color: #cdbb98; }
.pb-dept .navcount { margin-left: auto; font-size: 12px; color: #cdbb98; font-variant-numeric: tabular-nums; }
.pb-dept .navnote, .pb-dept .navmenu-note { display: block; margin: 0; padding: 4px 8px; font-size: 12.5px; color: #cdbb98; }
.pb-dept .navtag { margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 11px; color: #2a1f14; background: #d4a017; }
.pb-dept .navoff { color: #b3a283; }
.pb-dept .navsection > summary { cursor: pointer; list-style: none; }
.pb-dept .navsection > summary::-webkit-details-marker { display: none; }
.pb-dept .navsection > summary::before { content: "▸"; font-size: 11px; color: #cdbb98; }
.pb-dept .navsection[open] > summary::before { content: "▾"; }
.pb-dept .navsection > a, .pb-dept .navsection > .navoff { padding-left: 24px; }
.pb-dept .dev { font-family: "Noto Sans Devanagari", VijayaDV, serif; }
@media (max-width: 900px) { .pb-dept-grid { grid-template-columns: 1fr; } .pb-dept > summary b { display: none; } }
