.psp-study-body { --study-accent: #18a6d9; background: #f2f6fa; }
.psp-study-shell { max-width: 1240px; }
.psp-study-hero { padding: clamp(1.6rem, 5vw, 4rem); overflow: hidden; border-radius: 1.7rem; color: #fff; background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--study-accent, #18a6d9) 42%, transparent), transparent 23rem), linear-gradient(135deg, #06192b, #123d5d); box-shadow: var(--fp-shadow); }
.psp-study-hero h1 { max-width: 900px; margin: .7rem 0; font-size: clamp(2.1rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.05em; }
.psp-study-hero p { max-width: 760px; margin: 0; color: #e5f0f7; font-size: 1.08rem; line-height: 1.6; }
.psp-study-badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.psp-study-badges span { padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; background: rgba(255,255,255,.09); font-size: .78rem; font-weight: 850; }
.psp-study-alert { margin: 1rem 0; padding: 1rem 1.1rem; display: grid; gap: .35rem; border: 1px solid #e2c66e; border-left: 6px solid #d3a329; border-radius: .9rem; color: #5d480c; background: #fff9e7; }
.psp-study-alert p { margin: 0; line-height: 1.55; }
.psp-study-toolbar { position: sticky; z-index: 15; top: 76px; margin: 1rem 0; padding: .9rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; align-items: end; border: 1px solid var(--fp-border); border-radius: 1rem; background: rgba(255,255,255,.96); box-shadow: 0 12px 35px rgba(8,35,58,.09); backdrop-filter: blur(14px); }
.psp-study-toolbar label { display: grid; gap: .35rem; color: var(--fp-muted); font-size: .78rem; font-weight: 900; }
.psp-study-toolbar input { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid #91aec2; border-radius: .75rem; color: #102a43; background: #fff; }
.psp-study-toolbar button { min-height: 48px; padding: .7rem 1rem; border: 1px solid #7294aa; border-radius: .75rem; color: #123d5d; background: #edf5fa; font-weight: 900; cursor: pointer; }
.psp-study-toolbar p { grid-column: 1 / -1; min-height: 1.2rem; margin: 0; color: var(--fp-muted); font-size: .82rem; }
.psp-study-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; align-items: start; }
.psp-study-nav { position: sticky; top: 190px; padding: 1rem; border: 1px solid var(--fp-border); border-radius: 1rem; background: #fff; }
.psp-study-nav h2 { margin: 0 0 .7rem; font-size: 1rem; }
.psp-study-nav nav { display: grid; gap: .35rem; }
.psp-study-nav a { min-height: 44px; padding: .62rem .7rem; display: flex; align-items: center; border-radius: .65rem; color: #2b526d; font-size: .83rem; font-weight: 800; text-decoration: none; }
.psp-study-nav a:hover, .psp-study-nav a[aria-current="page"] { color: #fff; background: #123d5d; }
.psp-study-nav p { margin: .8rem 0 0; color: var(--fp-muted); font-size: .75rem; line-height: 1.45; }
.psp-study-document { min-width: 0; display: grid; gap: .75rem; }
.psp-study-chapter { overflow: clip; border: 1px solid var(--fp-border); border-top: 4px solid var(--study-accent); border-radius: 1rem; background: #fff; box-shadow: 0 10px 28px rgba(8,35,58,.06); }
.psp-study-chapter[hidden] { display: none; }
.psp-study-chapter summary { min-height: 58px; padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #102a43; background: #f8fbfd; font-weight: 950; cursor: pointer; }
.psp-study-chapter summary small { color: #587386; font-weight: 700; }
.psp-study-copy { padding: 1rem clamp(.9rem, 3vw, 1.5rem) 1.4rem; }
.psp-study-copy h3 { margin: 1.25rem 0 .5rem; color: #123d5d; font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: .01em; }
.psp-study-copy p { margin: .48rem 0; color: #2c485c; line-height: 1.65; overflow-wrap: anywhere; }
.psp-study-copy .psp-study-bullet { position: relative; padding-left: 1.1rem; }
.psp-study-copy .psp-study-bullet::before { content: ""; position: absolute; top: .72em; left: .15rem; width: .42rem; height: .42rem; border-radius: 50%; background: var(--study-accent); }
.psp-study-copy .psp-study-numbered { padding: .65rem .75rem; border-left: 3px solid var(--study-accent); background: #f5f9fc; font-weight: 700; }
.psp-study-copy mark { padding: .08em .16em; color: inherit; background: #fff0a8; }
.psp-study-sources, .psp-study-next { margin-top: 1.2rem; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--fp-border); border-radius: 1.2rem; background: #fff; }
.psp-study-sources { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem; }
.psp-study-sources h2, .psp-study-next h2 { margin: .45rem 0; }
.psp-study-sources p { color: var(--fp-muted); line-height: 1.55; }
.psp-source-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.psp-source-grid a, .psp-study-next a { min-height: 48px; padding: .75rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; border: 1px solid var(--fp-border); border-radius: .75rem; color: #123d5d; background: #f8fbfd; font-weight: 850; text-decoration: none; }
.psp-study-next > div { display: flex; flex-wrap: wrap; gap: .55rem; }
.psp-hub-grid { margin: 1rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.psp-hub-card { min-height: 220px; padding: 1.1rem; display: flex; flex-direction: column; gap: .55rem; border: 1px solid var(--fp-border); border-top: 5px solid var(--card-accent, #18a6d9); border-radius: 1rem; color: var(--fp-ink); background: #fff; text-decoration: none; box-shadow: 0 12px 34px rgba(8,35,58,.07); }
.psp-hub-card > span { color: #49677b; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.psp-hub-card h2, .psp-hub-card h3 { margin: auto 0 0; font-size: 1.2rem; }
.psp-hub-card p { margin: 0; color: var(--fp-muted); line-height: 1.5; }
.psp-hub-card strong { color: #123d5d; }
.psp-hub-note { margin: 1rem 0; padding: 1rem; border: 1px solid var(--fp-border); border-radius: 1rem; background: #fff; }
.psp-hub-note h2 { margin-top: 0; }
.psp-hub-note p, .psp-hub-note li { color: var(--fp-muted); line-height: 1.6; }

[data-nb-theme="dark"] .psp-study-body { background: #071724; }
[data-nb-theme="dark"] .psp-study-toolbar, [data-nb-theme="dark"] .psp-study-nav, [data-nb-theme="dark"] .psp-study-chapter, [data-nb-theme="dark"] .psp-study-sources, [data-nb-theme="dark"] .psp-study-next { color: #e9f4fb; background: #0d2638; }
[data-nb-theme="dark"] .psp-study-chapter summary, [data-nb-theme="dark"] .psp-source-grid a, [data-nb-theme="dark"] .psp-study-next a { color: #e9f4fb; background: #14364d; }
[data-nb-theme="dark"] .psp-study-copy p, [data-nb-theme="dark"] .psp-study-copy h3 { color: #d6e6f1; }
[data-nb-theme="dark"] .psp-study-copy .psp-study-numbered { background: #14364d; }

@media (max-width: 860px) {
  .psp-study-toolbar { top: 126px; }
  .psp-study-layout, .psp-study-sources { grid-template-columns: 1fr; }
  .psp-study-nav { position: static; }
  .psp-study-nav nav { grid-template-columns: repeat(2, 1fr); }
  .psp-hub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .psp-study-toolbar { position: static; grid-template-columns: 1fr; }
  .psp-study-nav nav, .psp-source-grid { grid-template-columns: 1fr; }
  .psp-hub-grid { grid-template-columns: 1fr; }
  .psp-study-chapter summary { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .psp-study-next > div, .psp-study-next a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { .psp-study-chapter { scroll-behavior: auto; } }
