/* Student catalog: scoped styles, white surfaces, no management controls. */
.hpc-page { --hpc-ink: #263747; --hpc-muted: #697b8b; --hpc-blue: #1267a0; --hpc-line: #dfe7ee; color: var(--hpc-ink); color-scheme: light; }
.row.hpc-page { display: grid; grid-template-columns: 286px minmax(0, 1fr); align-items: start; gap: 22px; max-width: 1240px; padding: 0 14px; }
.row.hpc-page::before, .row.hpc-page::after { display: none; }
.hpc-page *, .hpc-page *::before, .hpc-page *::after { box-sizing: border-box; }
.hpc-page [hidden] { display: none !important; }
.hpc-sidebar, .hpc-results { min-width: 0; border: 1px solid var(--hpc-line); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px #233f5b05; }
.hpc-sidebar { position: sticky; top: 64px; overflow: hidden; }
.hpc-sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 19px 17px 15px; }
.hpc-sidebar-heading h2 { margin: 0 0 5px; color: var(--hpc-ink); font-size: 17px; font-weight: 600; }
.hpc-sidebar-heading p { margin: 0; color: var(--hpc-muted); font-size: 12px; }
.hpc-page button { font: inherit; cursor: pointer; }
.hpc-page .hpc-directory-toggle { flex: 0 0 auto; border: 0; padding: 4px 0 4px 8px; background: #fff; color: var(--hpc-muted); font-size: 12px; }
.hpc-directory-home { display: flex; gap: 7px; padding: 0 17px 14px; }
.hpc-directory-home a { display: block; flex: 1; border: 1px solid var(--hpc-line); border-radius: 5px; padding: 7px 3px; color: #516777; text-align: center; font-size: 13px; line-height: 1.2; }
.hpc-directory-home a:hover { border-color: #a0c6df; color: var(--hpc-blue); text-decoration: none; }
.hpc-directory-home a.is-active { border-color: #abcfe5; background: #f0f7fc; color: var(--hpc-blue); font-weight: 600; }
.hpc-directory-search { padding: 0 17px 14px; border-bottom: 1px solid var(--hpc-line); }
.hpc-directory-search label { display: block; margin-bottom: 6px; color: #536877; font-size: 12px; }
.hpc-page input[type="search"], .hpc-page select { box-sizing: border-box !important; display: block; width: 100%; height: 38px; margin: 0; border: 1px solid #c9d5df; border-radius: 5px; padding: 7px 10px; background: #fff; color: var(--hpc-ink); font: inherit; font-size: 13px; line-height: 1.5; }
.hpc-page input::placeholder { color: #8896a3; opacity: 1; }
.hpc-tree { max-height: calc(100vh - 297px); min-height: 180px; overflow: auto; overscroll-behavior: contain; padding: 8px 0 10px; scrollbar-width: thin; }
.hpc-tree-row { display: flex; align-items: flex-start; gap: 3px; position: relative; padding: 2px 9px 2px calc(9px + var(--hpc-depth, 0) * 12px); min-height: 34px; }
.hpc-tree-row a { min-width: 0; flex: 1; padding: 6px 3px; border-radius: 3px; color: #435b6d; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.hpc-tree-root { margin-top: 3px; }
.hpc-tree-root > a { color: #233d51; font-size: 14px; font-weight: 600; }
.hpc-tree-row:hover { background: #f8fafc; }
.hpc-tree-row a:hover { color: var(--hpc-blue); text-decoration: none; }
.hpc-tree-row.is-selected { background: #edf6fc; }
.hpc-tree-row.is-selected::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #1978b4; content: ''; }
.hpc-tree-row.is-selected > a { color: #105e92; font-weight: 600; }
.hpc-page .hpc-tree-toggle { flex: 0 0 20px; width: 20px; height: 29px; border: 0; border-radius: 3px; padding: 0; background: transparent; color: #7890a3; font-size: 20px; line-height: 29px; text-align: center; }
.hpc-tree-toggle span { display: inline-block; transform-origin: center; transition: transform .12s ease; }
.hpc-tree-toggle[aria-expanded="true"] span { transform: rotate(90deg); }
.hpc-tree-toggle:hover { background: #e6eef5; color: var(--hpc-blue); }
.hpc-tree-leaf { flex: 0 0 20px; width: 20px; }
.hpc-tree-row.has-children > .hpc-tree-leaf { display: none; }
.hpc-tree-row.is-match > a { color: #075d92; font-weight: 600; }
.hpc-directory-empty { margin: 0; padding: 25px 17px; color: var(--hpc-muted); font-size: 13px; line-height: 1.6; }
.hpc-results { overflow: hidden; padding-top: 23px; }
.hpc-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 25px; }
.hpc-eyebrow { margin-bottom: 7px; color: var(--hpc-muted); font-size: 12px; }
.hpc-results-heading h1 { margin: 0; color: #233d51; font-size: 23px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.hpc-result-count { flex: 0 0 auto; color: #718290; font-size: 13px; white-space: nowrap; }
.hpc-result-count strong { color: #365167; font-weight: 600; }
.hpc-breadcrumb { margin: 10px 25px 0; color: #738492; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.hpc-search-form { display: flex; flex-wrap: wrap; align-items: end; gap: 11px; margin: 22px 25px; }
.hpc-query-field { flex: 1 1 190px; min-width: 120px; }
.hpc-sort-field { flex: 0 0 112px; }
.hpc-page-size-field { flex: 0 0 92px; }
.hpc-search-form label { display: block; margin-bottom: 7px; color: #4d6476; font-size: 12px; }
.hpc-page .hpc-search-submit { height: 38px; margin: 0; border: 1px solid #146da8; border-radius: 5px; padding: 7px 20px; background: #146da8; color: #fff; font-size: 14px; }
.hpc-page .hpc-search-submit:hover { background: #105f94; }
.hpc-clear-search { padding: 11px 0; color: #677d8e; font-size: 12px; }
.hpc-table-scroll { overflow-x: auto; }
.hpc-table { width: 100%; table-layout: fixed; border: 0; border-collapse: collapse; color: var(--hpc-ink); }
.hpc-table col.hpc-col-status { width: 88px; }
.hpc-table col.hpc-col-ac { width: 102px; }
.hpc-table col.hpc-col-difficulty { width: 70px; }
.hpc-page .hpc-table th { padding: 12px 9px; border-top: 1px solid var(--hpc-line); border-bottom: 1px solid var(--hpc-line); background: #f8fafc; color: #566d7e; font-size: 12px; font-weight: 500; white-space: nowrap; }
.hpc-page .hpc-table td { height: 57px; padding: 12px 9px; border-bottom: 1px solid #ebeff3; background: #fff; font-size: 13px; line-height: 1.6; vertical-align: middle; }
.hpc-page .hpc-table tbody tr:hover > td { background: #f9fcfe; }
.hpc-page .hpc-table :is(th, td):first-child { padding-left: 15px; text-align: center; }
.hpc-page .hpc-table .hpc-col-title { text-align: left; }
.hpc-page .hpc-table .hpc-col-ac, .hpc-page .hpc-table .hpc-col-difficulty { text-align: center; font-variant-numeric: tabular-nums; }
.hpc-page .hpc-table .col--status { width: auto; white-space: nowrap; }
.hpc-page .hpc-table .record-status--text { font-size: 11px; }
.hpc-problem-link { display: inline; color: #225d86; overflow-wrap: anywhere; }
.hpc-problem-link:hover { color: #0a74b3; }
.hpc-problem-id { color: #7a8c9a; font-size: 11px; margin-right: 10px; font-variant-numeric: tabular-nums; }
.hpc-accepted { color: #399077; }
.hpc-ratio-divider, .hpc-unattempted { color: #a1adb7; }
.hpc-hidden-label { display: inline-block; margin-left: 7px; border: 1px solid #e2c998; border-radius: 3px; padding: 0 4px; color: #927034; font-size: 11px; line-height: 1.5; }
.hpc-problem-list .pager { margin: 14px 20px; }
.hpc-empty-state { padding: 58px 28px 65px; border-top: 1px solid var(--hpc-line); text-align: center; }
.hpc-empty-state > .icon { display: block; margin-bottom: 15px; color: #91aabc; font-size: 26px; }
.hpc-empty-state h2 { margin: 0 0 12px; color: #3e5c72; font-size: 17px; font-weight: 500; }
.hpc-empty-state p { margin: 0 auto 21px; max-width: 350px; color: #718593; font-size: 13px; line-height: 1.8; }
.hpc-empty-link { display: inline-block; border: 1px solid #bed3e2; border-radius: 5px; padding: 9px 16px; color: #176c9f; font-size: 13px; }
.hpc-page :is(button, a, input, select):focus-visible { outline: 2px solid #237db8; outline-offset: 2px; }
@media (max-width: 1000px) { .row.hpc-page { grid-template-columns: 250px minmax(0, 1fr); gap: 16px; } .hpc-results-heading { padding: 0 19px; } .hpc-search-form { margin: 20px 19px; } .hpc-breadcrumb { margin-left: 19px; margin-right: 19px; } }
@media (max-width: 760px) { .row.hpc-page { display: block; padding: 0 10px; } .hpc-sidebar { position: static; margin-bottom: 16px; } .hpc-sidebar-heading { padding: 15px 17px; } .hpc-tree { max-height: 330px; min-height: 0; } .hpc-tree-row { padding-left: calc(10px + var(--hpc-depth, 0) * 16px); } .hpc-results-heading h1 { font-size: 21px; } .hpc-results { padding-top: 19px; } }
@media (max-width: 460px) { .hpc-results-heading { gap: 10px; padding: 0 15px; } .hpc-result-count { font-size: 12px; } .hpc-search-form { margin: 18px 15px; gap: 9px; } .hpc-query-field { flex-basis: 100%; } .hpc-sort-field, .hpc-page-size-field { flex: 1 1 95px; } .hpc-table col.hpc-col-status { width: 47px; } .hpc-table col.hpc-col-ac { width: 76px; } .hpc-table col.hpc-col-difficulty { width: 48px; } .hpc-page .hpc-table td, .hpc-page .hpc-table th { padding-left: 6px; padding-right: 6px; font-size: 12px; } .hpc-page .hpc-table :is(th, td):first-child { padding-left: 6px; } .hpc-problem-id { display: block; margin-right: 0; margin-bottom: 3px; font-size: 10px; } .hpc-empty-state { padding: 38px 18px; } }
@media (prefers-reduced-motion: reduce) { .hpc-tree-toggle span { transition: none; } }
