.physics-source-credit{
  max-width:var(--physics-topic-width,1040px);
  margin:-12px auto 28px;
  padding:10px 14px;
  border:1px solid var(--rule,rgba(148,163,184,.2));
  border-radius:12px;
  color:var(--ink-soft,#94a3b8);
  background:color-mix(in srgb,var(--card,rgba(255,255,255,.04)) 82%,transparent);
  font-size:.78rem;
  line-height:1.55;
  text-align:center;
}
.physics-source-credit a{color:var(--accent-light,#a855f7)}

.physics-concept-panel{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(260px,.88fr);
  gap:24px;
  margin:6px 0 28px;
  padding:24px;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--accent,#6366f1) 30%,var(--rule,transparent));
  border-radius:18px;
  background:
    radial-gradient(circle at 92% 6%,color-mix(in srgb,var(--accent-light,#a855f7) 16%,transparent),transparent 34%),
    linear-gradient(135deg,color-mix(in srgb,var(--card,rgba(255,255,255,.04)) 96%,var(--accent,#6366f1) 4%),var(--card,rgba(255,255,255,.04)));
  box-shadow:0 18px 50px -38px rgba(15,23,42,.75);
  isolation:isolate;
}
.physics-concept-panel::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,var(--accent-light,#a855f7),#38bdf8);
}
.physics-concept-copy{min-width:0}
.physics-concept-eyebrow{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 9px;
  color:var(--accent-light,#a855f7);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.physics-concept-eyebrow::before{
  content:"";
  width:18px;
  height:2px;
  border-radius:2px;
  background:currentColor;
}
section.topic .physics-concept-panel h3{
  margin:0 0 10px;
  padding:0;
  border:0;
  color:var(--ink-strong,#fff);
  font-size:clamp(1.12rem,2vw,1.4rem);
  line-height:1.25;
  overflow-wrap:anywhere;
}
.physics-topic-title{min-width:0;overflow-wrap:anywhere}
.physics-concept-idea{
  margin:0 0 16px;
  color:var(--ink,#e2e8f0);
  font-size:.94rem;
  line-height:1.72;
}
.physics-exam-route{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:physics-route;
}
.physics-exam-route li{
  position:relative;
  min-height:28px;
  margin:0;
  padding:4px 0 4px 34px;
  color:var(--ink-soft,#94a3b8);
  font-size:.83rem;
  line-height:1.5;
  counter-increment:physics-route;
}
.physics-exam-route li::before{
  content:counter(physics-route);
  position:absolute;
  left:0;
  top:2px;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border:1px solid color-mix(in srgb,var(--accent,#6366f1) 45%,transparent);
  border-radius:8px;
  color:var(--ink-strong,#fff);
  background:color-mix(in srgb,var(--accent,#6366f1) 18%,transparent);
  font-size:.68rem;
  font-weight:800;
}
.physics-concept-figure{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  margin:0;
  padding:14px;
  border:1px solid color-mix(in srgb,var(--rule,rgba(148,163,184,.2)) 88%,transparent);
  border-radius:15px;
  background:color-mix(in srgb,var(--bg,#0a0a0f) 58%,transparent);
}
.physics-concept-figure svg{
  display:block;
  width:100%;
  min-height:150px;
  max-height:190px;
  overflow:visible;
}
.physics-concept-figure figcaption{
  margin-top:8px;
  color:var(--ink-faint,#64748b);
  font-size:.68rem;
  line-height:1.42;
  text-align:center;
}
.physics-concept-figure .p-line{
  fill:none;
  stroke:var(--ink-soft,#94a3b8);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.physics-concept-figure .p-faint{
  fill:none;
  stroke:color-mix(in srgb,var(--ink-soft,#94a3b8) 34%,transparent);
  stroke-width:1.25;
  stroke-dasharray:5 5;
}
.physics-concept-figure .p-accent{
  fill:none;
  stroke:var(--accent-light,#a855f7);
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.physics-concept-figure .p-cyan{
  fill:none;
  stroke:#38bdf8;
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.physics-concept-figure .p-hot{
  fill:none;
  stroke:#fb7185;
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.physics-concept-figure .p-fill{
  fill:color-mix(in srgb,var(--accent,#6366f1) 18%,transparent);
  stroke:var(--accent-light,#a855f7);
  stroke-width:1.5;
}
.physics-concept-figure .p-dot{fill:var(--accent-light,#a855f7)}
.physics-concept-figure .p-cyan-dot{fill:#38bdf8}
.physics-concept-figure .p-hot-dot{fill:#fb7185}
.physics-concept-figure text{
  fill:var(--ink,#e2e8f0);
  font:600 11px/1.2 Inter,Arial,sans-serif;
}
.physics-concept-figure .p-small{
  fill:var(--ink-soft,#94a3b8);
  font-size:9px;
  font-weight:600;
}

section.topic > .formula{
  position:relative;
  border-radius:11px;
  background:
    linear-gradient(105deg,rgba(59,130,246,0.09) 0%,rgba(59,130,246,0.03) 30%,transparent 70%),
    var(--card,#0c1428);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
section.topic > .formula::after{
  content:"relationship";
  position:absolute;
  top:8px;
  right:10px;
  color:var(--ink-faint,#64748b);
  font:700 8px/1 Inter,Arial,sans-serif;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.22;
  pointer-events:none;
  z-index:0;
}
section.topic > .formula .label{padding-right:78px}

html[data-wgo-theme="light"] .physics-concept-panel{
  border-color:rgba(79,70,229,.2);
  background:
    radial-gradient(circle at 92% 6%,rgba(124,58,237,.1),transparent 34%),
    linear-gradient(135deg,#fff,#f8fafc);
  box-shadow:0 20px 45px -36px rgba(30,41,59,.42);
}
html[data-wgo-theme="light"] .physics-concept-figure{
  background:rgba(248,250,252,.88);
  border-color:rgba(100,116,139,.2);
}
html[data-wgo-theme="light"] .physics-concept-figure text{fill:#334155}
html[data-wgo-theme="light"] .physics-concept-figure .p-small{fill:#64748b}
html[data-wgo-theme="light"] .physics-concept-figure .p-line{stroke:#64748b}
html[data-wgo-theme="light"] .physics-concept-idea{color:#334155}
html[data-wgo-theme="light"] .physics-exam-route li{color:#5b6b82}
html[data-wgo-theme="light"] section.topic > .formula{
  background:linear-gradient(105deg,rgba(59,130,246,0.07),rgba(59,130,246,0.02) 35%,transparent 70%),#f8fafc;
}

@media(max-width:850px){
  .toc-toggle{display:none!important}
  .physics-concept-panel{grid-template-columns:1fr}
  .physics-concept-figure svg{min-height:140px}
}
@media(max-width:640px){
  #topnav{
    gap:5px;
    padding:0 10px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
  }
  #topnav::-webkit-scrollbar{display:none}
  #topnav .nav-btn,
  #topnav .brand{flex:0 0 auto;scroll-snap-align:start}
  #topnav .brand{margin-right:4px;font-size:14px}
  #topnav .nav-btn{padding:6px 9px;font-size:11px}
  #topnav .spacer,
  #topnav .pill,
  #topnav #wgo-user-button{display:none}
  #topnav #search-wrap{display:none}
  main.notes-main{padding:16px 12px 34px!important}
  main.notes-main > .header{padding:18px 0 22px}
  main.notes-main > .header h1{
    max-width:100%;
    font-size:clamp(2rem,11vw,2.65rem)!important;
    line-height:1.02;
    overflow-wrap:anywhere;
  }
  main.notes-main > .header .subtitle,
  main.notes-main > .header .authors{
    width:100%;
    max-width:100%;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  main.notes-main > .header .badges{
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:none;
  }
  main.notes-main > .header .badges::-webkit-scrollbar{display:none}
  main.notes-main > .header .badge{flex:0 0 auto}
  section.topic{
    max-width:100%!important;
    padding:24px 16px!important;
    overflow:hidden;
  }
  section.topic > h2{
    display:flex!important;
    align-items:flex-start!important;
    gap:10px!important;
    font-size:1.55rem!important;
    line-height:1.18!important;
    overflow-wrap:anywhere;
  }
  section.topic > h2 .num{
    flex:0 0 36px!important;
    margin:1px 0 0!important;
  }
  section.topic > h2 .physics-topic-title{
    flex:1 1 auto;
    min-width:0;
    max-width:100%;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  section.topic .topic-sub{font-size:.84rem;line-height:1.6}
  .physics-concept-panel{
    gap:18px;
    margin:2px 0 24px;
    padding:19px 14px;
    border-radius:15px;
  }
  .physics-concept-figure{padding:10px}
  .physics-concept-figure svg{min-height:132px;max-height:165px}
  .physics-source-credit{
    max-width:100%;
    margin-top:-8px;
    padding:9px 10px;
    font-size:.68rem;
    overflow-wrap:anywhere;
  }
}
@media(prefers-reduced-motion:reduce){
  .physics-concept-panel *{scroll-behavior:auto!important}
}
