/* Sailing Campus: consistent reading, navigation and practice surfaces. */
p,li {
  line-height: var(--sc-leading-reading);
}
.quiet,figcaption {
  color: #465e58;
}
summary {
  min-height: 44px;
  align-content: center;
}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.navigation-toggle {
  display: none;
}
.topbar .site-nav {
  gap: 20px;
}
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.account-disclosure {
  margin: 40px 0;
  border: 1px solid #c5d6cc;
  padding: 20px;
  border-radius: 14px;
}
.account-disclosure>summary {
  font-weight: var(--sc-weight-medium);
  font-size: var(--sc-text-lead);
}
.dashboard-resume {
  padding: 24px;
  border: 1px solid #c5d6cc;
  border-radius: 14px;
  margin: 24px 0;
}
.dashboard-resume h2 {
  margin-top: 0;
}
.milestone-label {
  font-size: var(--sc-text-sm);
  color: #465e58;
}
.learning-feedback {
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid #9dafaa;
  line-height: var(--sc-leading-reading);
}
.learning-feedback[data-tone=success] {
  border-left: 5px solid #216c51;
  background: #e9f4ec;
}
.learning-feedback[data-tone=success]:before {
  content: '✓ ';
  font-weight: var(--sc-weight-strong);
}
.learning-feedback[data-tone=retry] {
  border-left: 5px solid #966016;
  background: #fff4df;
}
.learning-feedback[data-tone=retry]:before {
  content: '↻ ';
  font-weight: var(--sc-weight-strong);
}
.diagram-expand {
  margin: 0 0 18px;
  background: #fffefa;
  border: 1px solid #78988a;
  min-height: 44px;
}
.diagram-dialog {
  width: min(1100px,94vw);
  max-height: 92vh;
  box-sizing: border-box;
  border: 1px solid #78988a;
  border-radius: 16px;
  padding: 24px;
  background: #fffefa;
  color: #173c42;
}
.diagram-dialog::backdrop {
  background: #102c32b8;
}
.diagram-dialog h2 {
  font-family: var(--sc-font-family);
  font-size: var(--sc-text-h2);
  margin: 0 0 16px;
}
.diagram-dialog label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.diagram-dialog input {
  min-height: 44px;
}
.diagram-viewport {
  overflow: auto;
  max-height: 60vh;
  background: #edf5f1;
  border-radius: 10px;
}
.diagram-dialog p {
  font-size: var(--sc-text-body);
}
.tools-directory {
  max-width: 1120px!important;
  margin: auto;
}
.tools-directory h1 {
  font-family: var(--sc-font-family);
  font-weight: var(--sc-weight-regular);
  font-size: var(--sc-text-display);
  line-height: var(--sc-leading-heading);
}
.tools-directory h2 {
  font-family: var(--sc-font-family);
  font-weight: var(--sc-weight-regular);
  font-size: var(--sc-text-h2);
}
.tools-directory section {
  background: #fffefa!important;
}
.tools-directory input {
  border-radius: 8px;
  border: 1px solid #78988a;
  font: inherit;
}
.tools-directory small {
  font-size: var(--sc-text-sm);
}
.tools-directory header>img {
  mix-blend-mode: multiply;
}
@media(max-width:760px) {
  .topbar {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    min-height: 72px;
  }
  .navigation-toggle {
    display: inline-flex;
    min-height: 44px;
    padding: 8px 16px;
  }
  .site-nav a {
    padding: 12px!important;
    font-size: var(--sc-text-sm);
    border-bottom: 1px solid #d9dfd7!important;
  }
  .diagram-dialog {
    padding: 16px;
  }
  .diagram-dialog h2 {
    font-size: var(--sc-text-h3);
  }
  .account-panel {
    grid-template-columns: 1fr;
  }
  .tools-directory {
    padding: 24px 18px!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
    transition: none!important;
    animation: none!important;
  }
}
.diagram-dialog h2 {
  font-weight: var(--sc-weight-regular);
}
.navigation-toggle:focus-visible {
  outline: 3px solid #875010;
}
.tools-directory>header>img {
  display: none;
}
.tools-directory li a {
  display: inline-block;
  min-height: 44px;
  align-content: center;
}
.tools-directory small {
  color: #465e58;
}
.dashboard-resume>a {
  margin-right: 16px;
  margin-bottom: 8px;
}
.dashboard-resume>h2 {
  font-family: var(--sc-font-family);
  font-weight: var(--sc-weight-regular);
  font-size: var(--sc-text-h2);
}
/* Welcome Aboard: deliberate visual coaching, readable on phones. */
.welcome-workshop {
  margin: 2rem 0;
  padding: clamp(1rem,3vw,2.4rem);
  border: 1px solid #c8dedf;
  border-radius: 22px;
  background: #f5faf9;
  color: #12324c;
  line-height: var(--sc-leading-reading);
  font-size: var(--sc-text-lead);
}
.welcome-workshop>p,.welcome-workshop dd {
  max-width: 70ch;
}
.welcome-workshop figure {
  margin: 1.5rem auto;
  max-width: 680px;
}
.welcome-workshop figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.welcome-workshop figcaption {
  font-size: var(--sc-text-sm);
  color: #4b626f;
  margin-top: .5rem;
}
.welcome-workshop h2 {
  max-width: 30ch;
  line-height: var(--sc-leading-heading);
}
.welcome-workshop h3 {
  margin-top: 1.6rem;
}
.welcome-workshop dt {
  font-weight: var(--sc-weight-strong);
}
.welcome-workshop dd {
  margin: 0 0 1rem;
}
.welcome-workshop details {
  padding: 1rem 0;
  border-bottom: 1px solid #ccdddd;
}
.welcome-workshop summary {
  cursor: pointer;
  font-weight: var(--sc-weight-medium);
  min-height: 28px;
}
.welcome-workshop summary:focus-visible {
  outline: 3px solid #087e8b;
  outline-offset: 5px;
}
.welcome-predict {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.3rem;
  margin-top: 1.5rem;
}
.welcome-remember {
  border-left: 4px solid #00828d;
  padding: .8rem 1rem;
  background: #e0f2f0;
}
.option-reasons li {
  margin: .75rem 0;
}
.welcome-workshop .study-table {
  min-width: 0;
  width: 100%;
}
.welcome-workshop td,.welcome-workshop th {
  overflow-wrap: anywhere;
}
.sails-workshop {
  background: linear-gradient(145deg,#f8fcfb,#edf7f7);
  box-shadow: 0 18px 48px rgba(13,56,80,.08);
}
.sails-trap {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid #efc790;
  border-radius: 14px;
  background: #fff8ed;
  color: #563813;
}
.sails-checks {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .8rem;
}
.sails-checks details {
  padding: 1rem;
  border: 1px solid #c8dedf;
  border-radius: 14px;
  background: #fff;
}
.sails-checks details[open] {
  border-color: #078691;
  box-shadow: 0 8px 22px rgba(0,111,121,.08);
}
@media(max-width:680px) {
  .sails-checks {
    grid-template-columns: 1fr;
  }
}
.trim-workshop {
  background: linear-gradient(145deg,#f9fcfb,#edf7f4);
  box-shadow: 0 20px 52px rgba(13,56,80,.09);
}
.trim-branches {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .85rem;
  margin: 1rem 0 1.5rem;
}
.trim-branches details {
  padding: 1rem;
  border: 1px solid #bed8d4;
  border-radius: 14px;
  background: #fff;
}
.trim-branches details[open] {
  border-color: #087e8b;
  box-shadow: 0 8px 22px rgba(0,111,121,.08);
}
.trim-branches summary {
  font-size: var(--sc-text-body);
  line-height: var(--sc-leading-compact);
}
.trim-workshop .study-table th:first-child {
  width: 22%;
}
@media(max-width:760px) {
  .trim-branches {
    grid-template-columns: 1fr;
  }
  .trim-workshop .study-table th:first-child {
    width: auto;
  }
}
/* Course 28 charging tools: readable controls on narrow screens. */
.decision-lab[data-charge-balance] label,.decision-lab[data-charge-triage] label {
  display: grid;
  gap: .35rem;
  margin: .8rem 0;
  font-weight: var(--sc-weight-medium);
}
.decision-lab[data-charge-balance] input,.decision-lab[data-charge-triage] select {
  width: 100%;
  min-height: 2.75rem;
}
.decision-lab[data-charge-balance] .button {
  margin-top: .35rem;
}
/* Course 29 power tools: readable controls on narrow screens. */
.decision-lab[data-energy-plan] label,.decision-lab[data-power-triage] label {
  display: grid;
  gap: .35rem;
  margin: .8rem 0;
  font-weight: var(--sc-weight-medium);
}
.decision-lab[data-energy-plan] input,.decision-lab[data-power-triage] select {
  width: 100%;
  min-height: 2.75rem;
}
.decision-lab[data-energy-plan] .button {
  margin-top: .35rem;
}
