/* V181 course folders and directories */
body[data-page-family] main .revision-course.rcb-page .rcb-top>.revision-intro,
body[data-page-family] main .revision-course.rcb-page .rcb-top>.revision-intro>p {max-width:none;width:auto;white-space:normal;text-wrap:wrap;}
.rcb-page .rcb-panel .skill-group>summary .skill-group-count,.rcb-page .rcb-panel .skill-group>summary:hover .skill-group-count{color:#fff;background-color:#2563eb;border-color:#2563eb}
body[data-page-family] .pathway-branch-link{color:inherit;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:.18em}
body[data-page-family] .pathway-branch-link:is(:hover,:focus-visible){color:#1d4ed8;text-decoration-color:currentColor}
.ttm-branch{box-sizing:border-box;width:var(--site-page-width,95%);margin:15px auto 30px;color:#16263f}
.ttm-branch-content{border:1px solid #bfdbfe;border-radius:20px;padding:15px 25px 25px;background:linear-gradient(110deg,#fff 20%,#eff6ff)}
.ttm-branch .course-back{display:inline-block;color:#1d4ed8;margin:0 0 15px}.ttm-branch h1{margin:0 0 12px;font-size:clamp(1.75rem,3vw,2.65rem);line-height:1.15}.ttm-branch p{margin:0 0 15px;line-height:1.55}
.ttm-branch .branch-link{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;padding:8px 16px;border:1px solid #2563eb;background:#2563eb;border-radius:10px;color:#fff;font-weight:700;text-decoration:none}.ttm-branch .branch-link:hover{background:#1d4ed8}.ttm-branch a:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}


/* The small face has the same proportions and typography as the real open card.
   Keep its authored, printable extract underneath while the real face is loading. */
@media screen {
 .rcb-page .skill-tile[data-status="ready"] > .rc-preview {
  position:relative;isolation:isolate;box-sizing:border-box;
  inline-size:100%;block-size:auto;aspect-ratio:4/3;
  min-block-size:0;padding:.6rem;overflow:hidden;border:1px solid #c7d8ee;
  border-radius:9px;color:#18304d;background:#f4f8ff;
 }
 .rcb-page .rc-preview > .rcp-face {
  display:block;position:absolute;z-index:1;inset:0 auto auto 0;
  box-sizing:border-box;inline-size:768px;block-size:576px;
  min-width:0;max-width:none;max-height:none;margin:0;padding:0;border:0;
  transform-origin:top left;visibility:hidden;pointer-events:none;background:#f4f8ff;
 }
 .rcb-page .rc-preview[data-rcp-ready] > .rcp-face {visibility:visible}
 .rcb-page .rc-preview[data-rcp-ready] > :not(.rcp-face) {visibility:hidden}
 .rcb-page .rc-preview-pending {block-size:auto;aspect-ratio:4/3}
 /* The count pill previously inherited dark text from the new rail CSS. */
 body[data-page-family] main .rcb-page .rcb-panel .skill-group > summary .skill-group-count,
 body[data-page-family] .revision-card-wrap .worked-example .example-label,
 .rcp-document .revision-card-wrap .worked-example .example-label {
  color:#fff;background-color:#2563eb;border-color:#2563eb;
 }
}
@media (forced-colors:active) {
 .rcb-page .skill-group > summary .skill-group-count,.revision-card-wrap .example-label {
  forced-color-adjust:auto;border:1px solid ButtonText;
 }
}
@media print {.rc-preview .rcp-face{display:none!important}}

/* Shared blue strand/unit menu for narrow topic and revision-card directories.
   The desktop tab rail remains the original UI. The overlay lives outside
   the card's clipped/scrolling containers, so its last option stays usable. */
body select[data-sp-native="1"] {display:none!important;}
.ttm-sp-trigger,.ttm-sp-pop[hidden],.ttm-sp-pop [hidden] {display:none!important;}
@media screen and (max-width:46em) {
 body .rcb-mobile > .ttm-sp-trigger,
 body .pw-mobile > .ttm-sp-trigger {
   box-sizing:border-box;display:flex!important;align-items:center;justify-content:space-between;
   gap:12px;width:100%;min-width:0;min-height:46px;margin:0;padding:10px 15px;
   appearance:none;text-align:start;text-transform:none;letter-spacing:normal;
   border:1px solid #99baf0;border-radius:10px;background:#fff;color:#183b76;
   box-shadow:0 1px 2px rgb(33 65 124/.06);font:650 1rem/1.4 Arial,Helvetica,sans-serif;
   cursor:pointer;touch-action:manipulation;transition:background-color 140ms,border-color 140ms,box-shadow 140ms;
 }
 body :is(.rcb-mobile,.pw-mobile) > .ttm-sp-trigger:is(:hover,:focus-visible,:active,[aria-expanded="true"]) {
   border-color:#2563eb;background:#f5f9ff;color:#163c81;transform:none;
 }
 body :is(.rcb-mobile,.pw-mobile) > .ttm-sp-trigger:focus-visible {
   outline:2px solid #2563eb;outline-offset:2px;
 }
 body :is(.rcb-mobile,.pw-mobile) > .ttm-sp-trigger:disabled {
   border-color:#d1d9e3;background:#f3f6fa;color:#596777;box-shadow:none;cursor:default;
 }
 .ttm-sp-value {text-align:start;overflow-wrap:break-word;min-width:0;}
 .ttm-sp-chevron {box-sizing:border-box;display:block;flex:0 0 9px;height:9px;margin-inline:3px;
   border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);
   transition:transform 140ms;}
 .ttm-sp-trigger[aria-expanded="true"] .ttm-sp-chevron {transform:translateY(2px) rotate(225deg);}
}
body > .ttm-sp-pop {
  box-sizing:border-box;position:fixed;inset:auto;z-index:1500;display:flex;flex-direction:column;
  gap:0;min-width:0;max-width:calc(100vw - 16px);min-height:0;margin:0;padding:5px;
  border:1px solid #aac5ed;border-radius:12px;background:white;color:#192f50;
  box-shadow:0 8px 26px rgb(19 49 94/.16),0 2px 6px rgb(19 49 94/.06);
  /* Keep the same soft 140ms transition in a Popover top layer and in the fixed fallback. */
  opacity:0;transform:translateY(-3px);transform-origin:top center;
  transition:opacity 140ms ease,transform 140ms ease;pointer-events:none;
  text-align:start;font:400 1rem/1.4 Arial,Helvetica,sans-serif;
}
body > .ttm-sp-pop[data-side="up"] {transform:translateY(3px);transform-origin:bottom center;}
body > .ttm-sp-pop[data-open] {opacity:1;transform:translateY(0);pointer-events:auto;}
body > .ttm-sp-pop::backdrop {background:transparent;pointer-events:none;}
body > .ttm-sp-pop .ttm-sp-list {
  position:relative;box-sizing:border-box;display:block;flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#acc3e9 transparent;
  padding:0;margin:0;border:0;background:transparent;outline:none;
}
body > .ttm-sp-pop .ttm-sp-option {
  box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;min-width:0;min-height:44px;padding:9px 11px;border:1px solid transparent;
  border-radius:8px;color:#1c304e;background:transparent;cursor:pointer;touch-action:manipulation;
  font:500 1rem/1.35 Arial,Helvetica,sans-serif;
}
body > .ttm-sp-pop .ttm-sp-option[aria-selected="true"] {
  background:#eaf2ff;color:#164391;font-weight:700;
}
body > .ttm-sp-pop .ttm-sp-option[data-active] {border-color:#91b5ed;background:#edf4ff;color:#173e82;}
@media (hover:hover) {
 body > .ttm-sp-pop .ttm-sp-option:hover {background:#f0f6ff;color:#173e82;}
}
body > .ttm-sp-pop .ttm-sp-list:focus-visible .ttm-sp-option[data-active] {border-color:#2563eb;outline:1px solid #2563eb;outline-offset:-2px;}
.ttm-sp-word {min-width:0;overflow-wrap:break-word;}
.ttm-sp-check {box-sizing:border-box;flex:0 0 8px;height:13px;margin-inline:4px;visibility:hidden;border:solid currentColor;
  border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg);}
.ttm-sp-option[aria-selected="true"] .ttm-sp-check {visibility:visible;}
body > .ttm-sp-pop .ttm-sp-search {box-sizing:border-box;flex:0 0 auto;width:100%;min-height:44px;margin:0 0 5px;padding:8px 10px;
  border:1px solid #aac5ed;border-radius:8px;background:white;color:#173052;font:400 1rem/1.4 Arial,Helvetica,sans-serif;}
body > .ttm-sp-pop .ttm-sp-search:focus-visible {outline:2px solid #2563eb;outline-offset:-2px;}
body > .ttm-sp-pop .ttm-sp-none {padding:10px;margin:0;color:#465b76;font:.94rem/1.4 Arial,Helvetica,sans-serif;}
body > .ttm-sp-pop .ttm-sp-list[data-windowed]::before{content:"";display:block;height:var(--ttm-sp-total);}
body > .ttm-sp-pop .ttm-sp-list[data-windowed] .ttm-sp-option {position:absolute;left:0;height:44px;}
.ttm-sp-list[data-windowed] .ttm-sp-word {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media (prefers-reduced-motion:reduce) {
 body .ttm-sp-trigger,body .ttm-sp-chevron,body > .ttm-sp-pop {transition-duration:0s!important;transform:none;}
 body .ttm-sp-chevron {transform:translateY(-2px) rotate(45deg);}
}
@media (forced-colors:active) {
 body :is(.pw-mobile,.rcb-mobile) > .ttm-sp-trigger,body > .ttm-sp-pop {background:Canvas;color:CanvasText;border-color:ButtonText;}
 body > .ttm-sp-pop .ttm-sp-option[data-active] {border-color:Highlight;}
 body > .ttm-sp-pop .ttm-sp-option[aria-selected="true"] {color:Highlight;}
}
@media print {body > .ttm-sp-pop,.ttm-sp-trigger {display:none!important;}}
