/* Shared public-note styles for Current Affairs and Notes.
   Content stays in the HTML. Sections use <details>. Quizzes work with
   radio inputs and CSS, including without JavaScript. */
html,body,.pn-note,.ca-read,.ca-browser,.ca-intro,.ca-daily{color-scheme:light}
.pn-note,.pn-note *,.ca-read,.ca-read *,.ca-browser,.ca-browser *,.ca-intro,.ca-intro *,.ca-daily,.ca-daily *,.ca-measure,.ca-card,.ca-hero-copy,.ca-grid,.ca-days{
  max-width:100%;
  min-width:0;
  overflow-wrap:anywhere;
}
.pn-note img,.ca-card img,.ca-thumb-img,.ca-read img:not(.ca-hero-img){
  max-width:100%;
  height:auto;
}
.pn-progress{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  max-width:100%;
  height:4px;
  z-index:90;
  background:#e2e8e9;
  pointer-events:none;
  overflow:hidden;
  contain:strict;
  box-sizing:border-box;
}
.pn-progress-bar{
  display:block;
  width:0;
  height:100%;
  background:linear-gradient(90deg,#075cdc,#cf933f);
  transform-origin:left;
}
@supports (animation-timeline:scroll()){
  @media (prefers-reduced-motion:no-preference){
    .pn-progress-bar{
      width:100%;
      scale:0 1;
      animation:pn-progress-scale linear;
      animation-timeline:scroll();
    }
  }
}
@keyframes pn-progress-scale{
  from{scale:0 1}
  to{scale:1 1}
}

.pn-mark{
  background:rgba(255,214,10,.35);
  color:inherit;
  padding:0 .15em;
  border-radius:3px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}

.pn-tone-0{--pn-bg:#e8f1ff;--pn-edge:#075cdc;--pn-line:#b9d2f7}
.pn-tone-1{--pn-bg:#e8f6ee;--pn-edge:#1b7a3a;--pn-line:#b7dcc4}
.pn-tone-2{--pn-bg:#f3eefe;--pn-edge:#6d28d9;--pn-line:#d3c4f5}
.pn-tone-3{--pn-bg:#fff3e6;--pn-edge:#c05612;--pn-line:#efd2a3}

.pn-takeaways{
  margin:8px 0 22px;
  padding:18px 16px 16px;
  border-radius:20px;
  background:linear-gradient(180deg,#eef5ff 0%,#f7fbff 100%);
  border:1px solid #b9d2f7;
  box-shadow:0 10px 24px #12305212;
}
.pn-takeaways h2{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 16px;
  font:700 22px/1.25 Georgia,"Times New Roman",serif;
  letter-spacing:-.03em;
  color:#075cdc;
}
.pn-takeaways-accent{
  flex:0 0 auto;
  width:6px;
  height:1.15em;
  border-radius:6px;
  background:linear-gradient(180deg,#075cdc 0%,#cf933f 100%);
}
.pn-chips{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pn-chips li,
.pn-takeaways .ca-checks li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  min-width:0;
  max-width:100%;
  margin:0;
  padding:12px 14px 12px 12px;
  border-radius:14px;
  background:var(--pn-bg,#fff);
  border:1px solid var(--pn-line,#d7e6f8);
  border-left:4px solid var(--pn-edge,#075cdc);
  overflow-wrap:anywhere;
}
.pn-chip-num{
  flex:0 0 auto;
  width:24px;
  height:24px;
  margin-top:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--pn-edge,#075cdc);
  color:#fff;
  font:700 12px/1 Arial,Helvetica,sans-serif;
}
.pn-chips p,
.pn-chips li > span:last-child{
  min-width:0;
  flex:1 1 auto;
  margin:0;
  color:#172d36;
  font-size:15.5px;
  line-height:1.55;
  overflow-wrap:anywhere;
}

.pn-section{
  margin:14px 0;
  border:1px solid #d5e2f2;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  max-width:100%;
}
.pn-section[open]{
  border-color:#b9d2f7;
  box-shadow:0 8px 22px #12305210;
}
.pn-section summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:52px;
  padding:12px 16px;
  font:400 22px/1.25 Georgia,"Times New Roman",serif;
  color:#102833;
  letter-spacing:-.03em;
  background:#f4f8fd;
}
.pn-section summary::-webkit-details-marker{display:none}
.pn-section[open] summary{background:#e7f1ff;border-bottom:1px solid #d7e6f8}
.pn-section-kicker{
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:8px;
  background:#075cdc;
  color:#fff;
  font:700 13px/28px Arial,Helvetica,sans-serif;
  text-align:center;
}
.pn-section-label{min-width:0;flex:1 1 auto}
.pn-section summary::after{
  content:"";
  flex:0 0 auto;
  width:8px;
  height:8px;
  margin-left:auto;
  border-right:2px solid #075cdc;
  border-bottom:2px solid #075cdc;
  transform:rotate(45deg);
  transition:transform .15s ease;
}
.pn-section[open] summary::after{transform:rotate(225deg);margin-top:4px}
.pn-section-body{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#f4f7fb;
}
.pn-section-body > p,
.pn-section-body > .pn-beat,
.pn-callout-list > .pn-beat{
  margin:0;
  padding:12px 14px;
  border-radius:14px;
  color:#172d36;
  font-size:16.5px;
  line-height:1.7;
  background:var(--pn-bg,#fff);
  border:1px solid var(--pn-line,#d7e6f8);
  border-left:4px solid var(--pn-edge,#075cdc);
  max-width:100%;
  min-width:0;
  overflow-wrap:anywhere;
}
.pn-callout-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px}
.pn-callout-list .pn-beat{font-size:16px;line-height:1.6}

.pn-callout{
  margin:22px 0;
  padding:16px 16px 18px;
  border-radius:18px;
  border:1px solid transparent;
  max-width:100%;
}
.pn-callout h2{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.3;
  letter-spacing:-.03em;
}
.pn-callout p,.pn-callout li{color:#172d36;font-size:16px;line-height:1.6}
.pn-callout--prelims,
.ca-callout-prelims{
  background:#e8f2ff;
  border-color:#9ec0f0;
  box-shadow:inset 4px 0 0 #075cdc;
}
.pn-callout--prelims h2,
.ca-callout-prelims h2{color:#075cdc}
.pn-callout--mains,
.ca-callout-mains{
  background:#fff6e8;
  border-color:#efd2a3;
  box-shadow:inset 4px 0 0 #cf933f;
}
.pn-callout--mains h2,
.ca-callout-mains h2{color:#8a5a12}
.pn-callout .btn{margin-top:8px}

.pn-quiz,
.ca-mcq.pn-quiz{
  margin:28px 0;
  padding:18px 16px 16px;
  border-radius:20px;
  background:#f7f3ff;
  border:1px solid #d3c4f5;
  max-width:100%;
}
.pn-quiz h2{margin:0 0 6px;color:#5b21b6;font-size:22px}
.pn-quiz-note{margin:0 0 12px;color:#5b4a78;font-size:14px}
.pn-quiz-q{margin:0 0 14px;color:#172d36;font-size:17px;line-height:1.55;font-weight:650}
.pn-quiz-options{display:flex;flex-direction:column;gap:8px;position:relative}
.pn-choice{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  pointer-events:none;
}
.pn-opt{
  display:flex;
  gap:10px;
  align-items:flex-start;
  min-width:0;
  padding:12px 12px;
  border-radius:14px;
  border:1.5px solid #d3c4f5;
  background:#fff;
  cursor:pointer;
  color:#172d36;
  font-size:15.5px;
  line-height:1.45;
}
.pn-opt-key{
  flex:0 0 auto;
  width:26px;
  height:26px;
  border-radius:999px;
  background:#efe8ff;
  color:#5b21b6;
  font:700 12px/26px Arial,Helvetica,sans-serif;
  text-align:center;
}
.pn-opt-text{min-width:0;flex:1 1 auto}
.pn-choice:focus-visible + .pn-opt{outline:3px solid #cf933f;outline-offset:3px}
.pn-choice:not([data-correct]):checked + .pn-opt,
.pn-opt.is-wrong{
  border-color:#e3a0a0;
  background:#fdecec;
}
.pn-choice[data-correct]:checked + .pn-opt,
.pn-opt.is-right,
.pn-quiz:has(.pn-choice:checked) .pn-choice[data-correct] + .pn-opt{
  border-color:#8fbf8a;
  background:#edf5e8;
}
.pn-choice:not([data-correct]):checked + .pn-opt .pn-opt-key,
.pn-opt.is-wrong .pn-opt-key{background:#c42b2b;color:#fff}
.pn-choice[data-correct]:checked + .pn-opt .pn-opt-key,
.pn-opt.is-right .pn-opt-key,
.pn-quiz:has(.pn-choice:checked) .pn-choice[data-correct] + .pn-opt .pn-opt-key{
  background:#1b7a3a;
  color:#fff;
}
.pn-explain{
  display:none;
  margin:14px 0 0;
  padding:14px;
  border-radius:14px;
  background:#fff;
  border:1px solid #d3c4f5;
  color:#172d36;
  font-size:15.5px;
  line-height:1.55;
}
.pn-choice:checked ~ .pn-explain,
.pn-quiz:has(.pn-choice:checked) .pn-explain,
.pn-quiz.is-answered .pn-explain{display:block}

@media (min-width:720px){
  .pn-takeaways,.pn-quiz,.pn-callout,.pn-section-body{padding-left:20px;padding-right:20px}
  .pn-takeaways h2,.pn-quiz h2,.pn-callout h2{font-size:22px}
}
@media (prefers-reduced-motion:reduce){
  .pn-section summary::after{transition:none}
  .pn-progress-bar{animation:none}
}

.pn-callout-list{margin:0;padding:0;max-width:100%}
.pn-callout-list li{margin:0;max-width:100%;min-width:0;overflow-wrap:anywhere}
.pn-callout-list li > span{display:block;min-width:0;overflow-wrap:anywhere}
.pn-note a,.ca-body a,.ca-read a{overflow-wrap:anywhere;word-break:break-word}
.pn-progress{width:100%;max-width:100%;overflow:hidden}
.pn-progress-bar{max-width:100%}

.pn-callout--remember{
  background:#e8f6ee;
  border-color:#b7dcc4;
  box-shadow:inset 4px 0 0 #1b7a3a;
}
.pn-callout--remember h2{color:#1b7a3a}

/* Nested details used for flashcards and student questions. */
.pn-fold{
  margin:10px 0;
  border:1px solid #d5e2f2;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  max-width:100%;
}
.pn-fold summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:12px 16px;
  font:650 16px/1.4 Arial,Helvetica,sans-serif;
  color:#102833;
  background:#f4f8fd;
}
.pn-fold summary::-webkit-details-marker{display:none}
.pn-fold[open] summary{background:#e7f1ff;border-bottom:1px solid #d7e6f8}
.pn-fold summary::after{
  content:"";
  flex:0 0 auto;
  width:8px;
  height:8px;
  margin-left:auto;
  border-right:2px solid #075cdc;
  border-bottom:2px solid #075cdc;
  transform:rotate(45deg);
  transition:transform .15s ease;
}
.pn-fold[open] summary::after{transform:rotate(225deg);margin-top:4px}
.pn-fold > p, .pn-fold-body{
  margin:0;
  padding:14px 16px;
  color:#172d36;
  font-size:16px;
  line-height:1.6;
  background:#f7fbff;
  overflow-wrap:anywhere;
}
