/* Six learning sections use raised controls; the selected section uses a clear blue face. */
.main-content:has(.topic-workspace) { padding: 16px clamp(12px, 2vw, 32px) 28px; }
.main-content:has(.topic-workspace) #lesson-content { width: 100%; max-width: none; }
.topic-workspace { --topic-active: #00B0F0; --topic-border: #dce6ee; width: 100%; }
.topic-tabs { position: sticky; z-index: 20; top: var(--site-header-height); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 12px 0 19px; border-bottom: 1px solid var(--topic-border); background: var(--canvas); }
.topic-tabs button { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 62px; padding: 10px 12px; border: 1px solid #bed4e5; border-bottom-color: #93b6cf; border-radius: 9px; color: var(--navy); background: linear-gradient(180deg, #fff 0%, #f6faff 62%, #eaf3fa 100%); box-shadow: 0 4px 0 #a8c6d9, 0 9px 16px rgba(12, 53, 83, .12), inset 0 1px 0 rgba(255, 255, 255, .95); font: 600 14px/1.3 "Segoe UI", sans-serif; text-align: center; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.topic-tabs button[aria-selected="true"] { transform: translateY(3px); border-color: #008ac1; border-bottom-color: #00699c; color: #052944; background: #00B0F0; box-shadow: 0 1px 0 #006b9f, inset 0 2px 5px rgba(0, 54, 91, .16); }
@media (hover: hover) { .topic-tabs button:not([aria-selected="true"]):hover { transform: translateY(-2px); border-color: #91b9d4; background: linear-gradient(180deg, #fff 0%, #eaf5fc 100%); box-shadow: 0 6px 0 #8eb8d2, 0 13px 20px rgba(12, 53, 83, .15), inset 0 1px 0 #fff; } }
.topic-workspace :is(button, a, summary, [tabindex]):focus-visible { outline: 3px solid #0071bc; outline-offset: 3px; }
.topic-workspace-heading { margin:18px 0 22px; padding:25px clamp(16px, 3vw, 48px); border:1px solid #bed9eb; border-bottom:3px solid #0071bc; border-radius:5px; background:#eaf5fc; text-align:center; }
.topic-workspace-heading > p { display: flex; justify-content: center; gap: 12px; margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .055em; }
.topic-workspace-heading > p span { color: #9aacbb; }
.topic-workspace-heading h1 { margin: 0; color: var(--navy); font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: clamp(23px, 2.45vw, 36px); font-weight: 700; line-height: 1.25; letter-spacing: -.018em; text-transform: uppercase; text-wrap: balance; }
.topic-review-preview { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:15px; padding:10px 13px; border:1px solid #d8d19e; border-radius:6px; color:#66541a; background:#fffbed; text-align:left; }
.topic-review-preview span { font-size:11px; font-weight:850; letter-spacing:.045em; }
.topic-review-preview button { flex:none; }
.topic-workspace-panel { min-width: 0; min-height: 350px; padding: clamp(20px, 3vw, 42px); border: 1px solid var(--topic-border); border-radius: 9px; background: #fff; }
.topic-workspace-panel > [class] > h2 { margin: 0 0 14px; color: var(--navy); font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: 24px; line-height: 1.3; }
.topic-workspace-panel p { color: #3b5368; font-size: 16px; line-height: 1.8; }
.topic-reading > .content-edit-button { float: right; margin: 0 0 16px 20px; }
.topic-reading .topic-reading-lead { margin: 0 0 30px; color: #294963; font-size: 18px; line-height: 1.7; }
.topic-reading-section + .topic-reading-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid #e7edf2; }
.topic-reading-section h2 { margin: 0 0 15px; color: var(--navy); font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: 23px; line-height: 1.35; }
.topic-reading-section p { margin: 0 0 14px; }
.topic-reading :is(.topic-reading-lead, .topic-reading-section p) { text-align: justify; text-indent: 1.25em; overflow-wrap: break-word; }
.topic-reading-section p:last-child { margin-bottom: 0; }
.topic-reading .topic-reading-lead { padding:20px 24px; border-radius:6px; background:#f0f7fc; color:#17567d; text-indent:0; font-size:17px; }
.topic-reading .topic-reading-section h2 { color:#005b91; letter-spacing:-.01em; }
.topic-reading .topic-reading-section p { color:#2d4354; font-size:17px; line-height:1.9; margin-bottom:19px; }
.topic-reading .lecture-term { color:#006c78; font-weight:650; }
.topic-reading .topic-reading-section:nth-child(even) h2 { color:#155b68; }
.topic-table-scroll { width: 100%; margin: 24px 0 4px; overflow-x: auto; border: 1px solid var(--topic-border); border-radius: 6px; }
.topic-table-scroll table { width: 100%; min-width: 640px; border-collapse: collapse; color: #3b5368; font-size: 14px; line-height: 1.65; }
.topic-table-scroll :is(th, td) { padding: 16px; border-right: 1px solid var(--topic-border); border-bottom: 1px solid var(--topic-border); text-align: left; vertical-align: top; }
.topic-table-scroll th { color: var(--navy); font-weight: 600; }
.topic-table-scroll thead { background: #edf4f9; }
.topic-table-scroll tbody tr:nth-child(even) { background: #f9fbfd; }
.topic-table-scroll tr > :last-child { border-right: 0; }
.topic-table-scroll tbody tr:last-child > * { border-bottom: 0; }
.topic-material-list { display: grid; gap: 0; margin: 26px 0; border-top: 1px solid var(--topic-border); }
.topic-slide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0 32px; }
.topic-slide { min-width: 0; padding: 24px; border: 1px solid #cddfeb; border-top: 4px solid #0071bc; border-radius: 9px; background: #f8fbfd; }
.topic-slide-number { color: #0071bc; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.topic-slide h3 { margin: 10px 0; color: var(--navy); font-size: 18px; line-height: 1.45; }
.topic-slide p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; }
.topic-slide p:last-child { margin-bottom: 0; }
.topic-slide a { color: #0064a7; text-underline-offset: 2px; }
.topic-material-list article { padding: 22px 0; border-bottom: 1px solid var(--topic-border); }
.topic-material-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #0064a7; font-size: 19px; font-weight: 600; text-decoration: none; }
.topic-material-link:hover span:first-child { text-decoration: underline; }
.topic-material-link > span:last-child { flex: none; font-size: 25px; }
.topic-material-list article p { margin: 9px 0 0; font-size: 14px; }
.topic-workspace-panel .topic-original-note { margin: 22px 0 0; padding: 15px 18px; border-left: 3px solid #8aaac2; background: #f5f8fb; font-size: 14px; }
.topic-questions > p { margin: 0 0 24px; }
.topic-questions details { border-top: 1px solid var(--topic-border); }
.topic-questions details:last-child { border-bottom: 1px solid var(--topic-border); }
.topic-questions summary { display: flex; align-items: center; gap: 16px; padding: 21px 0; cursor: pointer; list-style: none; }
.topic-questions summary::-webkit-details-marker { display: none; }
.topic-questions summary > span:first-child { flex: none; color: #688298; font-size: 13px; font-variant-numeric: tabular-nums; }
.topic-questions summary h3 { flex: 1; margin: 0; color: var(--navy); font-size: 17px; font-weight: 600; line-height: 1.5; }
.topic-answer-toggle { flex: none; width: 25px; color: #0071bc; font-size: 24px; text-align: center; }
.topic-questions details[open] .topic-answer-toggle { transform: rotate(45deg); }
.topic-answer { padding: 0 40px 22px 34px; }
.topic-answer p { margin: 0 0 12px; }
.topic-answer a { color: #0064a7; }
.topic-interactive .inline-activity { margin: 22px 0 0; border-color: var(--topic-border); background: #f5f8fb; box-shadow: none; }
.topic-interactive .activity-eyebrow { display: none; }
.topic-case > h3 { margin: 24px 0; color: #0064a7; font-size: 21px; }
.topic-case h4 { margin: 0 0 12px; color: var(--navy); font-size: 18px; line-height: 1.5; }
.topic-case + .topic-case { margin-top: 34px; padding-top: 28px; border-top: 2px solid var(--topic-border); }
.topic-workspace .test-screen { max-width: none; }
.topic-workspace .test-screen-bar, .topic-workspace .test-screen-heading { display: none; }
.topic-workspace .test-progress { margin-top: 0; }
.topic-workspace .test-question-card { box-shadow: none; }
.topic-workspace-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; padding: 30px 10px 8px; }
.topic-workspace-footer h2 { margin: 9px 0; color: var(--navy); font-size: 21px; }
.topic-workspace-footer p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.topic-workspace-footer ul { display: grid; align-content: start; gap: 10px; margin: 0; padding: 0; list-style: none; }
.topic-workspace-footer li a { display: flex; justify-content: space-between; gap: 12px; color: #0064a7; font-size: 14px; line-height: 1.5; text-underline-offset: 3px; }
.topic-next-tab { grid-column: 1 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 22px; min-height: 45px; padding: 10px 18px; border: 1px solid #bacbd8; border-radius: 6px; color: var(--navy); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.topic-next-tab:hover { border-color: #0071bc; background: #edf4f9; }
@media (max-width: 1150px) { .topic-tabs { gap: 5px; } .topic-tabs button { padding-inline: 7px; font-size: 12px; } }
@media (max-width: 700px) {
  .topic-tabs { grid-template-columns: repeat(6, minmax(130px, 1fr)); overflow-x: auto; gap: 9px; padding: 9px 2px 18px; scrollbar-width: thin; scrollbar-color: #afc3d2 transparent; }
  .topic-tabs button { min-height: 56px; font-size: 13px; }
  .topic-workspace-heading { padding: 25px 5px; }
  .topic-review-preview { align-items:stretch; flex-direction:column; }
  .topic-workspace-panel { padding: 20px 17px; }
  .topic-workspace-panel p { font-size: 15px; }
  .topic-reading .topic-reading-section p { font-size:15px; line-height:1.8; text-indent:1em; }
  .topic-reading .topic-reading-lead { padding:16px; font-size:15px; line-height:1.8; text-align:start; }
  .topic-reading-section h2 { font-size: 21px; }
  .topic-workspace-footer { grid-template-columns: 1fr; gap: 24px; padding-inline: 4px; }
  .topic-answer { padding-left: 0; padding-right: 0; }
  .topic-slide-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .topic-tabs button { transition: none; } }

/* The author preview is visible only for the duration of a press. */
.topbar-actions-inner .author-hold-trigger { display: inline-flex; align-items: center; flex: none; margin-left: 6px; padding: 0 8px; border-left: 1px solid rgba(255, 255, 255, .32); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; cursor: pointer; user-select: none; }
.topbar-actions-inner .author-hold-trigger:is(:hover, .is-held) { text-decoration: underline; text-underline-offset: 5px; }
.topbar-actions-inner .author-hold-trigger:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
@media (max-width: 360px) { .topbar-actions-inner .author-hold-trigger { flex:0 0 64px; min-width:0; white-space:normal; overflow-wrap:break-word; } .topbar-links { flex:1 1 0; } }
.author-hold-card[hidden] { display: none; }
.author-hold-card { position: absolute; z-index: 3; top: calc(100% + 8px); right: max(12px, var(--header-gutter)); display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 17px; align-items: center; width: min(430px, calc(100vw - 24px)); min-height: 126px; padding: 15px; border: 1px solid #bfd8e8; border-radius: 10px; color: #183b56; background: #fff; box-shadow: 0 14px 36px rgba(9, 52, 88, .22); }
.author-hold-card img { display: block; width: 88px; height: 108px; border-radius: 6px; object-fit: cover; background: #eaf3fa; }
.author-hold-card > div { display: grid; min-width: 0; gap: 7px; }
.author-hold-kicker { color: #0071bc; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.author-hold-card strong { color: #0b3454; font-size: 17px; line-height: 1.35; }
.author-hold-card small { color: #506b7f; font-size: 13px; line-height: 1.5; }
.author-hold-card > p { grid-column: 1 / -1; margin: 0; color: #3b5368; font-size: 14px; line-height: 1.6; }
@media (max-width: 700px) { .topbar-actions-inner .author-hold-trigger { margin-left: 2px; padding-inline: 5px; font-size: 11px; } .author-hold-card { top: calc(100% + 5px); grid-template-columns: 72px minmax(0, 1fr); gap: 12px; width: min(350px, calc(100vw - 20px)); padding: 12px; } .author-hold-card img { width: 72px; height: 88px; } }

/* Program author page shares the course's quiet, document-first visual language. */
.author-page { padding-top: clamp(18px, 3vw, 36px); }
.author-heading { padding-bottom: 22px; border-bottom: 1px solid #cbdce6; }
.author-heading h1 { margin: 8px 0 0; color: var(--navy); font: 700 clamp(28px, 3.2vw, 40px)/1.2 "Trebuchet MS", "Segoe UI", sans-serif; }
.author-profile { display: grid; grid-template-columns: minmax(210px, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: 26px; padding: clamp(18px, 3vw, 32px); border: 1px solid #dce6ee; border-radius: 12px; background: #fff; }
.author-profile figure { margin: 0; overflow: hidden; border-radius: 9px; background: #eaf3fa; }
.author-profile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.author-profile h2 { margin: 0 0 26px; color: var(--navy); font: 700 clamp(24px, 2.7vw, 34px)/1.25 "Trebuchet MS", "Segoe UI", sans-serif; }
.author-profile dl { margin: 0; padding-top: 20px; border-top: 1px solid #dce6ee; }
.author-profile dt { color: #60778a; font-size: 13px; font-weight: 700; }
.author-profile dd { margin: 7px 0 0; color: #294963; font-size: 17px; line-height: 1.5; }
.author-pending { max-width: 60ch; margin: 26px 0 0; padding: 20px 24px; border: 1px solid #dce6ee; border-left: 3px solid #0071bc; border-radius: 8px; color: #3b5368; background: #fff; font-size: 16px; line-height: 1.65; }
@media (max-width: 700px) { .author-profile { grid-template-columns: 1fr; } .author-profile figure { max-width: 300px; } }
