/* ============================================================
   JOTO WARRIORS Web strengthening shared components
   2026-07-26
   ============================================================ */

.jw-entry-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.jw-entry-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .09);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.jw-entry-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .16);
}

.jw-entry-link:focus-visible {
  outline: 3px solid #ffd978;
  outline-offset: 3px;
}

.jw-entry-link__icon {
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.jw-entry-link b,
.jw-entry-link small {
  display: block;
}

.jw-entry-link b {
  font-size: .9rem;
  line-height: 1.35;
}

.jw-entry-link small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .78);
  font-size: .73rem;
  line-height: 1.35;
}

.jw-fit-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
}

.jw-fit-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(26, 107, 60, .16);
  border-radius: 999px;
  color: #124d2b;
  background: #eaf5ee;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
}

.page-link-card--ai .jw-fit-tag {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  background: rgba(255, 255, 255, .13);
}

.jw-strength-section {
  padding: clamp(48px, 7vw, 84px) 0;
  background: #fff;
}

.jw-strength-section--soft {
  background: #f3f8f4;
}

.jw-strength-head {
  max-width: 790px;
  margin: 0 auto 28px;
  text-align: center;
}

.jw-strength-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #1a6b3c;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.jw-strength-head h2 {
  margin: 0 0 10px;
  color: #17231c;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.45;
}

.jw-strength-head p {
  margin: 0;
  color: #59675f;
  line-height: 1.8;
}

.jw-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
  margin: 22px auto 0;
}

.jw-roadmap-step {
  position: relative;
  min-height: 150px;
  padding: 20px 17px 18px;
  border: 1px solid #dbe7df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 77, 43, .08);
}

.jw-roadmap-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1a6b3c;
  font-weight: 800;
  transform: translateY(-50%);
}

.jw-roadmap-step__no {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #1a6b3c;
  font-weight: 800;
}

.jw-roadmap-step h3 {
  margin: 0 0 6px;
  color: #124d2b;
  font-size: 1rem;
}

.jw-roadmap-step p {
  margin: 0;
  color: #5f6d64;
  font-size: .86rem;
  line-height: 1.65;
}

.jw-cycle {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 1040px;
  margin: 24px auto 0;
}

.jw-cycle-item {
  position: relative;
  padding: 18px 12px;
  border: 1px solid #dbe7df;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.jw-cycle-item:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 2;
  color: #1a6b3c;
  font-weight: 900;
  transform: translateY(-50%);
}

.jw-cycle-item > span:first-child {
  display: block;
  margin-bottom: 5px;
  font-size: 1.35rem;
}

.jw-cycle-item b {
  display: block;
  color: #124d2b;
  font-size: .9rem;
}

.jw-cycle-item small {
  display: block;
  margin-top: 4px;
  color: #657168;
  font-size: .74rem;
  line-height: 1.45;
}

.jw-output-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.jw-output-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 20px;
  border: 1px solid #dbe5de;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 77, 43, .07);
}

.jw-output-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jw-output-card__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #eaf5ee;
  font-size: 1.2rem;
}

.jw-output-card h3 {
  margin: 0;
  color: #124d2b;
  font-size: 1.02rem;
}

.jw-output-card p {
  margin: 12px 0;
  color: #5c6961;
  font-size: .88rem;
  line-height: 1.7;
}

.jw-output-card__meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e3e9e5;
  color: #405047;
  font-size: .76rem;
  font-weight: 700;
}

.jw-proof-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #124d2b;
  background: #eaf5ee;
  font-size: .72rem;
  font-weight: 800;
}

.jw-proof-label--model {
  color: #684b00;
  background: #fff3d2;
}

.jw-proof-label--demo {
  color: #4d3f72;
  background: #f1edfa;
}

.jw-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.jw-choice-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #dbe5de;
  border-radius: 16px;
  background: #fff;
}

.jw-choice-card h3 {
  margin: 0 0 7px;
  color: #124d2b;
  font-size: 1.02rem;
}

.jw-choice-card p {
  margin: 0 0 14px;
  color: #5f6d64;
  font-size: .86rem;
}

.jw-choice-card a {
  margin-top: auto;
  color: #1a6b3c;
  font-size: .84rem;
  font-weight: 800;
}

.jw-safe-panel {
  max-width: 980px;
  margin: 26px auto 0;
  padding: 22px;
  border: 1px solid #d7e3da;
  border-left: 6px solid #1a6b3c;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 77, 43, .07);
}

.jw-safe-panel h3 {
  margin: 0 0 8px;
  color: #124d2b;
  font-size: 1.08rem;
}

.jw-safe-panel p {
  margin: 0;
  color: #59675f;
  line-height: 1.75;
}

.jw-safe-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.jw-safe-list li {
  padding: 10px 12px;
  border-radius: 10px;
  color: #304239;
  background: #eef5f0;
  font-size: .82rem;
  font-weight: 700;
}

.jw-impact-note {
  max-width: 920px;
  margin: 22px auto 0;
  padding: 18px 20px;
  border-left: 5px solid #e8a817;
  border-radius: 12px;
  background: #fff6dc;
  color: #4f482f;
  line-height: 1.75;
}

.jw-impact-note strong {
  color: #124d2b;
}

.jw-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.jw-access-card {
  padding: 18px;
  border: 1px solid #dbe5de;
  border-radius: 14px;
  background: #fff;
}

.jw-access-card h3 {
  margin: 0 0 6px;
  color: #124d2b;
  font-size: .98rem;
}

.jw-access-card p {
  margin: 0;
  color: #5f6d64;
  font-size: .84rem;
}

.jw-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.jw-role-card {
  padding: 16px;
  border: 1px solid #dbe5de;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.jw-role-card > span:first-child {
  display: block;
  margin-bottom: 5px;
  font-size: 1.35rem;
}

.jw-role-card h3,
.jw-role-card b {
  display: block;
  margin: 0;
  color: #124d2b;
  font-size: .88rem;
}

.jw-role-card p,
.jw-role-card small {
  display: block;
  margin-top: 4px;
  margin-bottom: 0;
  color: #657168;
  font-size: .73rem;
  line-height: 1.55;
}

.jw-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.jw-section-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 2px solid #1a6b3c;
  border-radius: 10px;
  color: #1a6b3c;
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}

.jw-section-actions a:first-child {
  color: #fff;
  background: #1a6b3c;
}

@media (max-width: 900px) {
  .jw-entry-strip,
  .jw-output-catalog,
  .jw-choice-grid,
  .jw-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jw-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jw-roadmap-step::after,
  .jw-cycle-item::after {
    display: none;
  }

  .jw-cycle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jw-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .jw-entry-strip,
  .jw-output-catalog,
  .jw-choice-grid,
  .jw-roadmap,
  .jw-cycle,
  .jw-access-grid,
  .jw-safe-list {
    grid-template-columns: 1fr;
  }

  .jw-entry-link {
    min-height: 50px;
  }

  .jw-roadmap-step,
  .jw-output-card {
    min-height: 0;
  }

  .jw-strength-head {
    text-align: left;
  }

  .jw-fit-list {
    justify-content: flex-start;
  }

  .jw-section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jw-section-actions a {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .jw-role-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jw-entry-link {
    transition: none;
  }
}
