/* Practice-by-topic pages (generated by tools/build-practice-pages.js; edit here, not in /practice/). */
.pp-hero { padding: 48px 0 36px; }
.pp-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 6px 0 14px; }
.pp-hero .h-sub { max-width: 760px; }
.pp-crumbs { font-size: 0.85rem; color: var(--h-dim); margin: 0; }
.pp-crumbs a { color: inherit; }

.pp-body { padding: 8px 0 72px; }
.pp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.pp-list { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.pp-ex { border: 1px solid var(--h-line); border-radius: 14px; padding: 20px 22px; background: #fff; min-width: 0; }
.pp-ex-head { display: flex; align-items: center; gap: 10px; }
.pp-ex h3 { font-size: 1.05rem; margin: 0; }
.pp-ex p { color: var(--h-dim); line-height: 1.6; margin: 10px 0; }
.pp-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--h-blue-soft); color: var(--h-blue); font-weight: 800; font-size: 0.85rem; }
.pp-free { margin-left: auto; font-size: 0.72rem; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 999px; padding: 2px 8px; }

.pp-sheet-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--h-line); border-radius: 8px; max-width: 100%; }
.pp-sheet { border-collapse: collapse; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.82rem; }
.pp-sheet th, .pp-sheet td { border: 1px solid var(--h-line); padding: 6px 10px; min-width: 56px; white-space: nowrap; }
.pp-sheet thead th, .pp-sheet tbody th { background: #f4f6fa; color: var(--h-dim); font-weight: 600; text-align: center; }
.pp-sheet td.num { text-align: right; }
.pp-sheet td.pp-target { outline: 2px solid var(--h-blue); outline-offset: -2px; color: var(--h-blue); font-weight: 800; text-align: center; background: var(--h-blue-soft); }

.pp-sol { margin: 10px 0; border: 1px dashed var(--h-line); border-radius: 10px; padding: 10px 14px; }
.pp-sol summary { cursor: pointer; font-weight: 700; }
.pp-sol p, .pp-sol li { color: var(--h-ink); }
.pp-why { font-size: 0.9rem; }
.pp-locked { font-size: 0.9rem; }
.pp-try { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--h-blue); text-decoration: none; }
.pp-try:hover { text-decoration: underline; }

.pp-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.pp-card { border: 1px solid var(--h-line); border-radius: 14px; padding: 18px; background: #fff; }
.pp-card h2 { font-size: 1rem; margin: 0 0 8px; }
.pp-card p, .pp-card li { color: var(--h-dim); font-size: 0.92rem; line-height: 1.5; }
.pp-card ul { margin: 0; padding-left: 18px; }
.pp-card .h-btn { width: 100%; justify-content: center; box-sizing: border-box; }

.pp-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--h-line); }
.pp-pager a { font-weight: 700; color: var(--h-blue); text-decoration: none; }

.pp-hub { padding: 8px 0 72px; }
.pp-hub-track { margin-top: 28px; }
.pp-hub-track h2 { font-size: 1.6rem; margin: 0 0 4px; }
.pp-hub-track h2 span { font-size: 0.9rem; color: var(--h-dim); font-weight: 600; margin-left: 8px; }
.pp-hub-track h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--h-dim); margin: 22px 0 10px; }
.pp-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pp-hub-grid a { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--h-line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--h-ink); background: #fff; }
.pp-hub-grid a:hover { border-color: var(--h-blue); }
.pp-hub-grid span { font-size: 0.82rem; color: var(--h-dim); }

@media (max-width: 900px) {
  .pp-cols { grid-template-columns: minmax(0, 1fr); }
  .pp-side { position: static; }
}
