/* Shared course banner. Keep all three course destinations on this stylesheet. */
header.course-header{box-sizing:border-box;position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:24px;width:100%;max-width:1200px;min-height:0;margin:0 auto;padding:23px 40px;border:0;border-bottom:1px solid #333e38;background:#090c0bf5;backdrop-filter:blur(12px);color:#edf0ec;font:16px/1.65 Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
header.course-header *{box-sizing:border-box}
header.course-header .brand{margin:0;padding:0;color:#edf0ec;text-decoration:none;font:700 18px/1.65 Arial,Helvetica,sans-serif!important;letter-spacing:-.05em;white-space:nowrap}
header.course-header nav{display:flex;align-items:center;flex-wrap:nowrap;gap:20px;margin:0 0 0 auto;padding:0;width:auto}
header.course-header nav a{margin:0;padding:7px 0;color:#b6bfba;text-decoration:none;font:400 12px/1.65 Arial,Helvetica,sans-serif;letter-spacing:normal;white-space:nowrap;border:0;box-shadow:none}
header.course-header nav a[aria-current=page]{font-weight:600;color:#edf0ec}
header.course-header .page-menu{position:relative;margin:0;padding:0;color:#b6bfba;font:13px/1.65 Arial,Helvetica,sans-serif}
header.course-header .page-menu summary{display:list-item;cursor:pointer;white-space:nowrap;margin:0;padding:0;list-style:disclosure-closed inside;font:inherit;color:inherit;border:0;background:none}
header.course-header .page-menu[open] summary{list-style-type:disclosure-open}
header.course-header .page-menu>div{position:absolute;right:0;left:auto;top:32px;z-index:40;width:260px;min-width:0;max-width:none;padding:18px;background:#153328;color:#edf3ee;border:1px solid #365345;border-radius:14px;box-shadow:0 14px 36px #0004}
header.course-header .page-menu a{display:block;padding:9px 0;margin:0;color:inherit;text-decoration:none;font:13px/1.65 Arial,Helvetica,sans-serif}
header.course-header [hidden]{display:none!important}
header.course-header .save-indicator{display:block;flex:0 0 72px;width:72px;min-width:72px;margin:0;padding:0;color:#adbbb2;font:11px/1.5 Arial,Helvetica,sans-serif;text-align:right}
header.course-header a:focus-visible,header.course-header summary:focus-visible{outline:2px solid #d0dbd4;outline-offset:5px}
html{scroll-padding-top:125px}
@media(max-width:650px){header.course-header{padding:16px 20px;gap:16px;flex-wrap:wrap}header.course-header nav{gap:16px}header.course-header nav a{font-size:11px}header.course-header .page-menu{position:static;font-size:12px}header.course-header .page-menu>div{left:20px;right:20px;top:60px;width:auto}header.course-header .save-indicator{margin-left:auto}}
@media(max-width:500px){header.course-header nav{order:4;width:100%;margin:0;justify-content:space-between}header.course-header .page-menu{margin-left:auto}header.course-header .save-indicator{margin-left:0}header.course-header .page-menu>div{top:54px}}

/* The course welcome page is the visual reference for both resource pages. */
:root:has(.workspace-nav),:root:has(#format-panel){--bg:#090c0b;--panel:#101713;--surface:#101713;--text:#edf0ec;--ink:#edf0ec;--muted:#b6bfba;--quiet:#94a69b;--line:#333e38;--accent:#b8d0bd;--sage:#b5cbbd;--silver:#c4d2c9;--soft:#19251d;--serif:Georgia,'Times New Roman',serif;color-scheme:dark;font-family:Arial,Helvetica,sans-serif}
body:has(.workspace-nav),body:has(#format-panel){background:radial-gradient(ellipse at 100% 0%,#214c3238,transparent 48%),#090c0b;color:#edf0ec;font:15px/1.65 Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
body:has(.workspace-nav) :is(main,footer),body:has(#format-panel) :is(main,footer){max-width:1200px;margin-left:auto;margin-right:auto;padding-left:40px;padding-right:40px}
body:has(.workspace-nav) :is(button,input,textarea,select),body:has(#format-panel) :is(button,input,textarea,select){font-family:Arial,Helvetica,sans-serif}
body:has(.workspace-nav) .hero,body:has(#format-panel) .hero{padding-top:54px;padding-bottom:54px}
body:has(.workspace-nav) h1,body:has(#format-panel) h1{font-family:Arial,Helvetica,sans-serif;font-size:clamp(38px,5vw,59px);font-weight:500;line-height:1.07;letter-spacing:-.055em}
body:has(.workspace-nav) :is(h1,h2,h3) em,body:has(#format-panel) :is(h1,h2,h3) em{font-family:Georgia,'Times New Roman',serif;font-weight:400;color:#b3cdbb}
body:has(.workspace-nav) h2,body:has(#format-panel) h2{font-family:Arial,Helvetica,sans-serif;font-size:27px;font-weight:500;line-height:1.2;letter-spacing:-.045em}
body:has(.workspace-nav) .eyebrow,body:has(#format-panel) .eyebrow{font:10px/1.5 Arial,Helvetica,sans-serif;letter-spacing:.17em;color:#a6b9ad}
body:has(.workspace-nav) .hero-description,body:has(#format-panel) .hero-copy{font-size:16px;line-height:1.8;color:var(--muted)}
body:has(.workspace-nav) .primary{background:linear-gradient(110deg,#acc5b1,#d5e2d8 70%,#b4cdbb);color:#101b14;border:1px solid #d9e2dc;border-radius:6px;min-height:52px;font-weight:600}
body:has(.workspace-nav) .primary:hover{background:#dfebe1}
body:has(.workspace-nav) :is(.idea-card,.business-card,.market-signal-grid article),body:has(#format-panel) :is(.budget,.practical-card){background:linear-gradient(140deg,#17241b,#0d1410);border:1px solid #3a473e;border-radius:16px;box-shadow:inset 0 1px #ffffff05}
body:has(.workspace-nav) :is(dialog,.filter-panel,.research-note,.review-observation,.outcome-card,.source-card,.search-source-grid>article,.discussion-card,.kit-grid details){background:#101713;border-color:var(--line);border-radius:8px}
body:has(.workspace-nav) :is(.match-note,.hypothesis-note,.research-depth,.search-context,.scenario-output,.business-metric,.decision-grid>div,.assessment>div,.market-metrics>div,.marketing-tests article,.distribution-context,.evidence-coverage .covered,.comparison th,.rank-table th,.rank-table .rank-detail td){background:#19251d;border-color:#405648;color:#c3cec6}
body:has(.workspace-nav) :is(.research-depth p,.search-context p,.validation-step p,.task-check,.competitor-prices p){color:#b6bfba}
body:has(.workspace-nav) .distribution-context{color:#c3cec6!important}
body:has(.workspace-nav) :is(select,input,textarea,.compact-filters .search-label,.compact-filters select){background-color:#090f0b;border-color:#53685a;border-radius:8px;color:#edf0ec}
body:has(.workspace-nav) .compact-filters .search-label input{background:transparent;border:0}
body:has(.workspace-nav) :is(.topic-shortcuts button,.category-card){background:#101713;border-color:#405648;border-radius:8px;color:#edf0ec}
body:has(.workspace-nav) :is(.topic-shortcuts button:hover,.category-card.active,.category-card:hover,.save-button[aria-pressed=true]){background:#23382b;border-color:#b5c4ba;color:#edf0ec}
body:has(.workspace-nav) :is(.compare-bar,.toast){background:#19251d;border-color:#53685a;color:#edf0ec;border-radius:8px}
body:has(.workspace-nav) .detail-tabs{background:#101713}
body:has(.workspace-nav) .index-number{color:#cad6ce}
body:has(.workspace-nav) .index-number>span{font-family:Arial,Helvetica,sans-serif;color:#b6bfba}
body:has(.workspace-nav) .market-signal-grid .signal-stat{color:#b8d0bd}
body:has(.workspace-nav) .profit-metric{border-color:#b5c4ba}
body:has(.workspace-nav) .evidence-chip::before{background:#b5c4ba}
body:has(#format-panel) .format-tabs button{border-radius:8px;background:#0b120e;border-color:#405648}
body:has(#format-panel) .format-tabs button[aria-selected=true]{background:#23382b;border-color:#b5c4ba;box-shadow:0 0 0 1px #b5c4ba}
@media(max-width:650px){body:has(.workspace-nav) :is(main,footer),body:has(#format-panel) :is(main,footer){padding-left:22px;padding-right:22px}body:has(.workspace-nav) .hero,body:has(#format-panel) .hero{padding-top:38px;padding-bottom:38px}body:has(.workspace-nav) h1,body:has(#format-panel) h1{font-size:38px}body:has(.workspace-nav) h2,body:has(#format-panel) h2{font-size:25px}}
/* One title scale, taken from the course home page, across lessons and resources.
   Keep this after the resource styles so their old oversized hero type cannot return. */
:root{--course-title-size:26px;--course-title-font:Arial,Helvetica,sans-serif}
body #content h1,
body #content .course-page-heading h1,
body:has(.workspace-nav) h1,
body:has(#format-panel) h1{font-family:var(--course-title-font)!important;font-size:var(--course-title-size)!important;font-weight:600!important;font-style:normal!important;line-height:1.15!important;letter-spacing:-.04em!important;color:#edf0ec;white-space:normal}
body #content h1 em,
body:has(.workspace-nav) h1 em,
body:has(#format-panel) h1 em{font:inherit!important;letter-spacing:inherit;color:inherit}
body:has(.workspace-nav) h2,
body:has(#format-panel) h2{font-family:var(--course-title-font);font-size:24px;font-weight:600;line-height:1.25;letter-spacing:-.035em}
body:has(.workspace-nav) :is(h2,h3) em,
body:has(#format-panel) :is(h2,h3) em{font:inherit;color:inherit}
@media(max-width:650px){:root{--course-title-size:24px}}

/* The language choice is shared by course lessons, handbooks and connected resources. */
header.course-header .course-language{display:flex;align-items:center;gap:7px;margin:0;color:#c2cec6;flex:none;white-space:nowrap}
header.course-header .course-language svg{width:17px;height:17px;flex:none}
header.course-header .course-language select{width:105px;min-height:34px;padding:5px 7px;background:#111b15;color:#edf0ec;border:1px solid #46574d;border-radius:5px;font:12px Arial,sans-serif;cursor:pointer;outline-offset:4px}
header.course-header .course-language option{background:#111b15;color:#edf0ec}
header.course-header .course-language select:focus{outline:none;box-shadow:none;border-color:#46574d}
header.course-header .course-language select:focus-visible{outline:none;box-shadow:none;background:#23382b}
.language-status{position:fixed;right:20px;bottom:20px;z-index:90;max-width:340px;padding:12px 17px;border:1px solid #64816e;border-radius:6px;background:#14251b;color:#e1ebe4;font:13px/1.6 Arial,sans-serif;box-shadow:0 8px 28px #0004}
.language-status[hidden]{display:none}
.language-status[data-error=true]{background:#2c241a;border-color:#8d7855;cursor:pointer}

html:lang(ja) body{font-family:Arial,'Hiragino Sans','Yu Gothic',sans-serif;line-break:strict}
@media(max-width:900px){header.course-header{gap:13px;padding-inline:24px}header.course-header nav{gap:12px}header.course-header .save-indicator{display:none}}
@media(max-width:740px){header.course-header{flex-wrap:wrap;padding:15px 20px;gap:9px 14px}header.course-header nav{order:3;width:100%;margin:0;justify-content:flex-start;flex-wrap:wrap}header.course-header .course-language{margin-left:auto}header.course-header .page-menu{order:2}header.course-header .brand{font-size:16px!important}}

/* Keep all course destinations reachable on compact phones. */
@media(max-width:380px){header.course-header nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px;min-width:0}header.course-header nav a{display:flex;align-items:center;min-height:44px;white-space:normal}}
/* Keep the current content readable while translations load or retry. */

.course-legal-footer {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  max-width: 1200px;
  margin: 44px auto 0;
  padding: 20px 40px 32px;
  border-top: 1px solid var(--line, #34483d);
  color: var(--muted, #b6bfba);
  font: 13px/1.6 Arial, Helvetica, sans-serif;
}
.course-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font: 13px/1.6 Arial, Helvetica, sans-serif;
}
.course-policy-links a {
  color: var(--muted, #b6bfba);
  padding-block: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.course-policy-links a:hover,
.course-policy-links a:focus-visible { color: var(--ink, #edf0ec); }
.course-policy-page { max-width: 740px; }
.course-policy-page .course-policy-draft {
  color: var(--muted, #b6bfba);
  font-size: 13px;
  margin: 16px 0 24px;
}
.course-policy-page section {
  border-top: 1px solid var(--line, #34483d);
  margin-top: 30px;
  padding-top: 22px;
}
.course-policy-page li + li { margin-top: 10px; }
@media (max-width: 650px) {
  .course-legal-footer { margin-top: 30px; padding-inline: 22px; }
}
