* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  min-height: 100vh;
  margin: 0;
  padding: 16px;
  font-family: Arial, sans-serif;
  color: #17324d;
  background: linear-gradient(rgba(235,248,255,0.18), rgba(210,238,245,0.22)), url("assets/CalmFishingLake.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
a { color: #0f5f86; font-weight: 800; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 9px 12px;
  border: 2px solid #0e7490;
  border-radius: 8px;
  background: #fff;
  color: #123a5a;
  font-weight: 900;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.learn-shell {
  width: min(100%, 1040px);
  margin: 10px auto;
}
.learn-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}
.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand-link img { width: clamp(190px, 24vw, 250px); height: auto; border-radius: 18px; }
.learn-kicker {
  margin: 0 0 4px;
  color: #0f766e;
  font-weight: 900;
}
.learn-title {
  margin: 0;
  color: #123a5a;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.learn-subtitle {
  max-width: 780px;
  margin: 8px 0 0;
  color: #426277;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
}
.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.45);
  width: fit-content;
  max-width: 100%;
}
.guide-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(130,190,220,0.34);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: #28516d;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}
.guide-nav a:hover, .guide-nav a:focus-visible { background: #eaf8ff; outline: 2px solid rgba(14,116,144,0.25); }
.content-card,
.tool-card,
.related-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.45);
  border-top: 3px solid rgba(14,116,144,0.36);
  border-radius: 17px;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 8px 22px rgba(31,85,120,0.09);
  backdrop-filter: blur(8px);
}
.content-card h2,
.tool-card h2,
.related-card h2 {
  margin: 0 0 8px;
  color: #14324a;
  font-size: 1.25rem;
}
.content-card h3 {
  margin: 14px 0 6px;
  color: #0f5f86;
  font-size: 1rem;
}
.content-card p,
.content-card li,
.tool-card p,
.related-card p {
  color: #28516d;
  line-height: 1.55;
  font-weight: 700;
}
.content-card p,
.tool-card p,
.related-card p { margin: 8px 0 0; }
.content-card ul,
.content-card ol { margin: 8px 0 0; padding-left: 22px; }
.note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  background: #fff8db;
  color: #7c4a03;
  font-weight: 800;
  line-height: 1.45;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.tool-field { display: grid; gap: 5px; min-width: 0; }
.tool-field label,
.tool-field legend {
  color: #5e7890;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.tool-field select,
.tool-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(80,140,170,0.32);
  border-radius: 11px;
  background: rgba(255,255,255,0.96);
  color: #153b56;
  font: inherit;
  font-weight: 800;
}
.check-grid,
.preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.check-grid label,
.preference-grid label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid rgba(130,190,220,0.26);
  border-radius: 12px;
  background: rgba(238,248,255,0.82);
  color: #28516d;
  font-weight: 850;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.primary-button,
.secondary-button {
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 13px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.primary-button {
  border: 1px solid rgba(255,255,255,0.55);
  background: linear-gradient(135deg, #0891b2, #22c55e);
  color: #fff;
}
.secondary-button {
  border: 1px solid rgba(130,190,220,0.38);
  background: rgba(255,255,255,0.88);
  color: #0f5f86;
}
.tool-output {
  margin-top: 14px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(234,248,255,0.88);
  border: 1px solid rgba(103,183,220,0.30);
  color: #28516d;
  font-weight: 800;
  line-height: 1.45;
}
.tool-output strong { color: #14324a; }
.rating-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}
.rating-poor { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.rating-fair { background: #fff1c7; color: #92400e; border: 1px solid #fbbf24; }
.rating-good { background: #d9f5fb; color: #075985; border: 1px solid #67e8f9; }
.rating-great { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.score-meter {
  height: 12px;
  margin: 8px 0 10px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}
.score-meter span {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #22c55e);
}
.busy-list,
.window-list,
.factor-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}
.busy-list li,
.window-list li,
.factor-list li {
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(130,190,220,0.24);
  color: #28516d;
  font-weight: 800;
}
.busy-list button {
  float: right;
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fee2e2;
  color: #991b1b;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.related-links a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(130,190,220,0.30);
  color: #0f5f86;
  text-decoration: none;
}
.learn-footer {
  margin: 14px 0 0;
  padding: 12px 2px;
  color: #28516d;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.footer-nav a {
  color: #0f5f86;
  text-decoration: none;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
}
.feedback-preview {
  display: grid;
  gap: 8px;
}
.feedback-preview label {
  color: #28516d;
  font-weight: 900;
}
.feedback-preview select,
.feedback-preview input,
.feedback-preview textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(130,190,220,0.42);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.74);
  color: #28516d;
  font: inherit;
}
.helper-text {
  color: #28516d;
  font-size: 0.9rem;
  font-weight: 800;
}
.helper-text.is-error {
  color: #991b1b;
}
.feedback-submit-button {
  justify-self: start;
}
@media (max-width: 760px) {
  body { padding: 10px; background-attachment: scroll; }
  .learn-header { align-items: flex-start; flex-direction: column; }
  .guide-nav { border-radius: 16px; }
  .guide-nav a { flex: 1 1 calc(50% - 6px); justify-content: center; border-radius: 12px; text-align: center; }
  .tool-grid,
  .check-grid,
  .preference-grid { grid-template-columns: 1fr; }
  .content-card,
  .tool-card,
  .related-card { padding: 14px; }
}
@media (max-width: 430px) {
  .guide-nav a { flex-basis: 100%; }
}
