.trip-card {
  margin: 26px 0;
  padding: 24px;
  background: #102f3b;
  color: #fff;
  border-radius: 14px;
}
.trip-label {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: #94e5d7;
  margin: 0;
}
.trip-card h3 {
  font-size: 1.6rem;
  margin: 8px 0 22px;
}
.trip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.trip-grid > div {
  background: #234652;
  padding: 16px;
  border-radius: 9px;
}
.trip-grid dt {
  font-size: 15px;
  color: #d0e0e5;
}
.trip-grid dd {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 4px 0 0;
}
.trip-result {
  background: #eaf7f3;
  color: #153f3d;
  padding: 18px;
  margin-top: 20px;
  border-radius: 9px;
}
.trip-result p {
  margin: 8px 0;
  font-weight: 650;
}
.trip-result span {
  font-size: 16px;
}
.trip-foot {
  font-size: 16px;
  margin: 16px 0 0;
  color: #e1eff2;
}
@media (max-width: 480px) {
  .trip-card {
    padding: 16px;
  }
  .trip-grid {
    grid-template-columns: 1fr;
  }
  .trip-grid dd {
    font-size: 1.25rem;
  }
}
@media print {
  .trip-card {
    break-inside: avoid;
    print-color-adjust: exact;
  }
}
.wear-callout {
  border: 3px solid #126e68;
  background: #eaf7f3;
  padding: 24px;
  margin: 24px 0;
}
.wear-callout > strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.25;
  color: #104b46;
}
.wear-callout p:last-child {
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .wear-callout {
    padding: 18px;
  }
  .wear-callout > strong {
    font-size: 1.4rem;
  }
}
.jacket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.jacket-grid figure {
  margin: 0;
  background: #f2f6f7;
  border-radius: 12px;
  padding: 18px;
}
.jacket-grid img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}
.jacket-grid figcaption strong {
  font-size: 1.3rem;
}
.jacket-grid p {
  font-size: 16px;
}
@media (max-width: 540px) {
  .jacket-grid {
    grid-template-columns: 1fr;
  }
}
.safety-lesson img {
  max-width: 100%;
  height: auto;
}
.safety-lesson .ref {
  font-size: 14px;
}
.safety-lesson iframe {
  max-width: 100%;
}
.safety-lesson blockquote {
  margin: 20px 0;
  padding: 20px;
  background: #edf7f4;
  border-left: 4px solid #168477;
}
.safety-lesson .trip-card h3 {
  color: white;
}
.safety-lesson .wear-callout {
  border-radius: 12px;
}
.safety-lesson section {
  max-width: 100%;
}
.quiz-actions {
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 540px) {
  .safety-lesson {
    padding: 20px !important;
  }
  .trip-card {
    padding: 16px;
  }
  .lesson-tabs button {
    white-space: normal;
  }
  .quiz-top {
    gap: 12px;
    flex-wrap: wrap;
  }
}
/* Safety section final-review layout */
.safety-review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  margin: 24px 0;
}
.safety-review-cards > section {
  background: #edf4f5;
  border: 1px solid #c1d3d8;
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
}
.safety-review-cards h3 {
  margin-top: 0;
}
.safety-review-cards ul {
  padding-left: 22px;
}
.course-lesson li {
  margin-bottom: 10px;
}
.safety-review-figure {
  margin: 28px 0;
}
.safety-review-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.safety-review-figure figcaption {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 10px;
}
.course-lesson details {
  margin: 20px 0;
}
.course-lesson summary {
  cursor: pointer;
  font-weight: 700;
}
.course-lesson dl {
  overflow-wrap: anywhere;
}

/* Safety matrix — September 2026 review */
.equipment-matrix {
  margin: 2rem 0;
}
.equipment-matrix-scroll {
  overflow-x: auto;
  border: 1px solid #b8c9ce;
  border-radius: 12px;
  isolation: isolate;
}
.equipment-matrix table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.55;
}
.equipment-matrix caption {
  text-align: left;
  padding: 14px;
  font-weight: 700;
  background: #e8f1f3;
}
.equipment-matrix th,
.equipment-matrix td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #ccd8db;
  width: 25%;
}
.equipment-matrix thead th {
  background: #123b4a;
  color: white;
}
.equipment-matrix thead small {
  font-weight: 400;
  color: white;
}
.equipment-matrix tbody th {
  background: #eef4f5;
}
.equipment-matrix tbody tr:nth-child(even) td {
  background: #f7f9f8;
}
.matrix-required {
  color: #113f50;
}
.matrix-recommended {
  color: #63562d;
  font-weight: 600;
}
.matrix-notes li {
  margin: 0.8rem 0;
}
.matrix-scroll-hint {
  font-size: 0.9rem;
}
.equipment-matrix-scroll:focus-visible {
  outline: 3px solid #138983;
  outline-offset: 3px;
}
@media (min-width: 1000px) {
  .matrix-scroll-hint {
    display: none;
  }
}

/* Compact equipment matrix: retain readable horizontal scroll on phones. */
.equipment-matrix table {
  font-size: 0.86rem;
  line-height: 1.4;
  min-width: 620px;
  table-layout: fixed;
}
.equipment-matrix th,
.equipment-matrix td {
  padding: 9px 10px;
  overflow-wrap: break-word;
}
.equipment-matrix th:first-child {
  width: 23%;
}
.equipment-matrix caption {
  padding: 10px;
  font-size: 0.9rem;
}
.equipment-matrix thead small {
  font-size: 0.82em;
  line-height: 1.35;
  display: inline-block;
  margin-top: 4px;
}
.equipment-matrix > p,
.equipment-matrix .matrix-notes {
  font-size: 0.92rem;
  line-height: 1.55;
}
.equipment-matrix .matrix-notes {
  padding-left: 22px;
}
.equipment-matrix .matrix-notes li {
  margin: 0.5rem 0;
}
.equipment-matrix {
  margin: 1.5rem 0;
}
@media (max-width: 600px) {
  .equipment-matrix table {
    font-size: 0.85rem;
  }
  .equipment-matrix th,
  .equipment-matrix td {
    padding: 8px;
  }
  .matrix-scroll-hint {
    display: block;
  }
}

.lifejacket-table-scroll {
  overflow-x: auto;
  border: 1px solid #c4d1d5;
  border-radius: 10px;
}
.lifejacket-comparison table {
  width: 100%;
  min-width: 590px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
  line-height: 1.5;
}
.lifejacket-comparison caption {
  padding: 10px;
  text-align: left;
  font-weight: bold;
  background: #e8f1f3;
}
.lifejacket-comparison th {
  background: #123b4a;
  color: white;
}
.lifejacket-comparison td,
.lifejacket-comparison th {
  padding: 12px;
  border: 1px solid #c4d1d5;
  text-align: left;
  vertical-align: top;
}
.lifejacket-comparison td:first-child {
  background: #f8faf9;
}
.lifejacket-comparison td p {
  font-size: inherit;
  line-height: inherit;
  margin: 0.6rem 0 0;
}
.lifejacket-comparison img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 8px;
}
.lifejacket-comparison small {
  font-size: 0.8rem;
}
.lifejacket-comparison {
  margin-bottom: 2rem;
}
.lifejacket-table-scroll:focus-visible {
  outline: 3px solid teal;
  outline-offset: 3px;
}

.safety-review-cards .fit-check-card {
  grid-column: 1/-1;
}
.fit-check-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fit-check-visuals figure {
  margin: 1rem 0;
}
.fit-check-visuals img {
  height: 220px;
  object-fit: contain;
  background: #f4f6f6;
}
.fit-check-card > .safety-review-figure {
  max-width: 760px;
  margin: 1.5rem auto;
}
@media (max-width: 620px) {
  .fit-check-visuals {
    grid-template-columns: 1fr;
  }
  .fit-check-visuals img {
    height: auto;
    max-height: 280px;
  }
}

.craft-choice {
  border: 1px solid #b9cdd2;
  border-radius: 14px;
  margin: 14px 0;
  overflow: hidden;
}
.craft-choice > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  background: #123b4a;
  color: white;
  padding: 18px 20px;
  list-style: none;
}
.craft-choice > summary::-webkit-details-marker {
  display: none;
}
.craft-choice summary small {
  display: block;
  font-weight: 400;
  margin-top: 4px;
  color: inherit;
}
.craft-choice > summary:focus-visible {
  outline: 3px solid #d9ad58;
  outline-offset: -4px;
}
.craft-expand:after {
  content: '+';
  font-size: 1.8rem;
}
.craft-choice[open] > summary .craft-expand:after {
  content: '−';
}
.craft-choice-body {
  padding: 20px;
}
.craft-choice-body .craft-illustration {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto 20px;
}
.craft-choice-body h4 {
  margin: 1.5rem 0 0.6rem;
  color: #123b4a;
}
.craft-choice-body li {
  margin: 0.6rem 0;
}
.craft-choice-body .learning-note {
  margin: 1.5rem 0;
}
.craft-choice-body details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
.craft-dates {
  border-top: 1px solid #c4d3d6;
  margin-top: 1rem;
}
.craft-choice-body p {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .craft-choice > summary {
    padding: 14px;
  }
  .craft-choice-body {
    padding: 14px;
  }
}

.craft-choice-body img[src*='powerboat-line-illustration'] {
  max-width: 540px;
}

.craft-choice-body img[src*='pwc-line-illustration'] {
  max-width: 540px;
}

/* Matching non-registrable craft illustrations. */
.craft-example-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}
.craft-example-gallery figure {
  margin: 0;
  min-width: 0;
  background: white;
  border: 1px solid #dce5e8;
  border-radius: 10px;
  padding: 10px;
}
.craft-example-gallery img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
}
.craft-example-gallery figcaption {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
}
.craft-example-gallery a:focus-visible {
  outline: 3px solid teal;
  display: block;
}
@media (max-width: 600px) {
  .craft-example-gallery {
    grid-template-columns: 1fr;
  }
  .craft-example-gallery img {
    height: 210px;
  }
}

/* Keep the portrait radio image compact in the quiz. */
.question-card figure:has(img[src$='woman-vhf-closeup.png']) {
  margin: 12px 0;
}
.question-card img[src$='woman-vhf-closeup.png'] {
  display: block;
  width: auto;
  height: 180px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
}
