/* Shared light sky theme for inner pages only; homepage does not load this file. */
:root{color-scheme:light;--ink:#173d55;--muted:#506d82;--gold:#176d99;--line:#417ea52b}
body,body.night-section{background:#e9f5fc;color:#173d55;isolation:isolate;position:relative;min-height:100vh}
body::before,body.night-section::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(145deg,#dceefa,#f4faff)}
body::after{display:none}
body h1,body h2,body h3,body.night-section h1,body.night-section h2,body.night-section h3{color:#163d57}
body p,body.night-section header p,body.night-section .card p,body.night-section .empty p,body.night-section .lead,body.night-section .intro,body.night-section .article-note{color:#47667d}
body a{color:#14698f}body .muted,body .back,body footer,body.night-section .back,body.night-section footer{color:#506d82}
body .card,body .empty,body .article-card,body .item,body .notice,body .lesson,body .panel,body .block,body .lesson-section,body.night-section .card,body.night-section .empty,body.night-section .article-card,body.night-section .item,body.night-section .notice,body.night-section .lesson{background:#ffffffed;border-color:#5892b532;box-shadow:0 12px 36px #27618a0a}
body .card:hover,body .item:hover{border-color:#4599c5}
body .direction-hero{min-height:300px;background:none}body .direction-hero::before,body .direction-hero::after{display:none}
body .direction-hero .home-header p{color:#47667d}
body .cabinet,body.night-section .cabinet{color:#195170;background:#ffffffe0;border-color:#7aa8c3}
body .brand .site-logo[src="captain-position-logo-white-red-e2df471f8b.svg"]{background:#102d45;padding:6px 9px;border-radius:7px}
body .eyebrow,body .number,body .tag,body .go,body.night-section .eyebrow,body.night-section .number,body.night-section .tag,body.night-section .go{color:#176d99}
body .routes-link,body.night-section .routes-link{background:#edf8ffe8;border-color:#79afcc66;color:#164762}
body .article-card summary,body .readable-story summary,body.night-section .article-card summary,body.night-section .readable-story summary{background:#eef8fe;color:#173d55}
body .article-read-cta,body.night-section .article-read-cta{background:#167da8;color:#fff}
body .prose blockquote,body .passage,body.night-section .prose blockquote,body.night-section .passage{background:#eaf6fc;color:#234b65;border-left-color:#3a98be}
body .translation,body .intro-translation,body .level4-criteria-bridge,body.night-section .translation,body.night-section .intro-translation,body.night-section .level4-criteria-bridge{color:#47667d;border-color:#8bb4cd66}
body .cp-comparison,body .cp-word-note,body .cp-criteria,body .cp-expert-link,body.night-section .cp-comparison,body.night-section .cp-word-note,body.night-section .cp-criteria,body.night-section .cp-expert-link{background:#fffffff0;color:#173d55;border-color:#7ca7c344}
body .cp-tab,body.night-section .cp-tab{background:#f3faff;color:#20536f;border-color:#8cb7ce}
body .cp-tab[aria-selected="true"],body.night-section .cp-tab[aria-selected="true"]{background:#ccecff;color:#143e59}
body .cp-answer,body.night-section .cp-answer{background:#edf8fe;color:#204b66;border-color:#469ec4}
body .cp-term,body.night-section .cp-term{background:#dbf0fc;color:#164a68;border-color:#88b9d2}
body .cp-intro,body .cp-lead,body .cp-phrase-hint,body .cp-disclaimer,body .cp-expert-link span,body.night-section .cp-intro,body.night-section .cp-lead,body.night-section .cp-phrase-hint,body.night-section .cp-disclaimer,body.night-section .cp-expert-link span{color:#4d6c81}
body .cp-breakdown>*,body .cp-criteria-list>*,body .cp-copy-helper,body.night-section .cp-breakdown>*,body.night-section .cp-criteria-list>*,body.night-section .cp-copy-helper{background:#f1f9fe;color:#214d68;border-color:#90b7cf55}
body .cp-source,body .cp-copy,body .cp-note,body.night-section .cp-source,body.night-section .cp-copy,body.night-section .cp-note{color:#176c96}
body button,body.night-section button,body .action,body .button,body.night-section .action,body.night-section .button{background:#187ca7;color:#fff;border-color:#187ca7}
body .secondary,body .toolbar button{background:#edf8fe;color:#195775;border-color:#9dbfd3}
body label,body.night-section label{background:transparent;color:#234b63;border-color:#99bace}
body input,body select,body textarea{background:#fff;color:#173d55;border-color:#99bace}
body .community-motto,body.night-section .community-motto,body .cp-legal-notice,body.night-section .cp-legal-notice{color:#466a80}
body .cp-legal-notice a,body.night-section .cp-legal-notice a{color:#176c96}
/* Keep white flight labels readable on their blue animation panel. */
body .journey-scene,body.night-section .journey-scene{background:linear-gradient(135deg,#153a56,#236183);border-color:#699bbd;box-shadow:0 10px 30px #34577416;border-radius:16px}
body .journey-scene text,body .journey-scene .journey-label,body .journey-scene .journey-label-small{fill:#fff;stroke:none;stroke-width:0}
body .journey-title,body.night-section .journey-title{color:#fff}
body .flight-replay,body.night-section .flight-replay{background:#164964;color:#fff}
body .cp-challenge,body.night-section .cp-challenge{background:linear-gradient(120deg,#236c94,#1c86ae)}
body .cp-challenge p,body .cp-challenge .go,body.night-section .cp-challenge p,body.night-section .cp-challenge .go{color:#fff}
body .feedback.correct,body.night-section .feedback.correct{color:#176847}body .feedback.incorrect,body.night-section .feedback.incorrect{color:#a23b2e}
@media(max-width:650px){body .direction-hero{min-height:250px}body::before,body.night-section::before{background-position:65% center}}

body .brand .site-logo[src="captain-position-logo-red-08177ef411.png"],body .site-logo[src="captain-position-logo-red-08177ef411.png"],body .legal-logo[src="captain-position-logo-red-08177ef411.png"]{background:transparent;padding:0;border-radius:0}

/* Owner supplied illustration, subdued behind reading surfaces. */
body::before,body.night-section::before{background:linear-gradient(145deg,#dceefa,#f4faff)}
.lesson-cover-icon{display:inline-block;width:54px;height:54px;object-fit:contain;border-radius:50%;vertical-align:middle;margin-right:12px;background:#fff;flex-shrink:0}

/* Course artwork only; source labels are deliberately excluded. */
.course-choice-art{display:block;width:100%;height:clamp(170px,17vw,230px);object-fit:cover;border-radius:12px;margin:0 0 22px}.card:has(>.course-choice-art){overflow:hidden}

/* Course introductions keep the owner's copy on a quiet reading surface. */
.course-description{grid-column:1/-1;padding:clamp(24px,4vw,42px);margin:10px 0 26px;background:#f5fbfff5;border:1px solid #84aecb55;border-radius:18px;color:#173d55;font-size:19px;line-height:1.85}
.course-description h2{font-size:clamp(26px,3vw,34px);line-height:1.3;margin:0 0 24px}
.course-description p{max-width:75ch;margin:20px 0}.course-description p:last-child{margin-bottom:0}
@media(max-width:650px){.course-description{font-size:18px;line-height:1.8;padding:22px}}

.card>.everyday-choice-art{height:auto;aspect-ratio:1;object-fit:contain;object-position:center;background:#edf7fb}

/* Two course choices share the complete reading width, even with a spanning description. */
#content.course-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none;justify-items:stretch}
#content.course-choice-grid>.card{min-width:0;width:100%}
.course-art-grid .course-choice-art,.card>.course-choice-art{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;max-height:none}
@media(max-width:650px){#content.course-choice-grid{grid-template-columns:minmax(0,1fr)}}

/* Routes: original wide artwork on desktop/tablet, portrait artwork on phones. */
.routes-link .routes-art{display:block;width:100%;margin:24px 0 0;overflow:hidden;border-radius:12px}
.routes-link .routes-art img{display:block;width:100%;height:auto;aspect-ratio:1601/801;object-fit:contain}
@media(max-width:650px){.routes-link .routes-art img{aspect-ratio:348/801}}

/* Comfortable lesson/editor text; navigation and legal fine print retain their sizing. */
body main{font-size:18px;line-height:1.75}body .prose,body [data-translation-text],body .lesson-description,body .exercise-content,body .course-description{font-size:20px;line-height:1.85}body .rich-editor{font-size:20px;line-height:1.8}.lesson-save-bar{position:sticky;bottom:8px;z-index:5}.save-whole-lesson{position:sticky;top:8px;z-index:6;box-shadow:0 3px 12px #173d5520}.workflow-view input,.workflow-view textarea{font-size:18px}@media(max-width:700px){body main{font-size:18px}body .prose,body [data-translation-text],body .lesson-description,body .exercise-content,body .course-description,body .rich-editor{font-size:18px;line-height:1.8}}

/* Clear subtitles beneath page titles on illustrated inner pages. */
body main header>p:not(:empty),body main #intro:not(:empty){display:block;width:fit-content;max-width:100%;box-sizing:border-box;background:#f6fbfff2;color:#173d55;border:1px solid #8bb4cd55;border-radius:14px;padding:12px 18px;font-size:clamp(18px,1.7vw,22px);line-height:1.65;font-weight:650;letter-spacing:normal}

/* Dark catalog pages already paint their blue background on the body. */
body.night-section:is([data-view="home"],[data-view^="level"],[data-view="demos"])::before,
html[data-course-key="technical"] body::before,
body:has(#workflow-view[data-technical-folder])::before {
  content: none;
}

/* Course access screens shown to signed-out visitors. */
body:has(.access-message a[href^="/teacher/login/"]) {
  color: #f4f9ff;
  background: radial-gradient(ellipse at 78% 30%, #083455, transparent 55%), linear-gradient(135deg, #020b14, #041b2d 58%, #010a12) !important;
}
body:has(.access-message a[href^="/teacher/login/"])::before {
  content: none !important;
}
body:has(.access-message a[href^="/teacher/login/"]) :is(h1, #intro, .access-message p, .cp-legal-notice p) {
  color: #f4f9ff !important;
}
body:has(.access-message a[href^="/teacher/login/"]) :is(#intro, .access-message) {
  background: #0b2940 !important;
  border-color: #3e7694;
}
body:has(.access-message a[href^="/teacher/login/"]) :is(.eyebrow, footer, .cp-legal-notice a) {
  color: #a9dfff !important;
}
body:has(.access-message a[href^="/teacher/login/"]) img.site-logo {
  content: url("/captain-position-logo-white-red-e2df471f8b.svg");
  filter: none !important;
}
body:has(.access-message a[href^="/teacher/login/"]) .access-message a {
  color: #031321 !important;
  background: #8edfff !important;
}
body:has(.access-message a[href^="/teacher/login/"]) .access-message a:hover {
  background: #f4f9ff !important;
}
body:has(.access-message a[href^="/teacher/login/"]) a:focus-visible {
  outline: 3px solid #8edfff;
  outline-offset: 4px;
}

