/* Mr Strength: homepage styles
   Loads AFTER style.css and reuses its tokens (--navy, --orange, --line ...).
   All classes are prefixed hm- so inner pages are not affected. */

.hm-main {
  padding-bottom: 56px;
}

.hm-main a:focus-visible {
  outline: 3px solid rgba(255, 121, 0, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Hero ---------- */
.hm-hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: center;
  padding: 44px 48px;
  background: var(--navy);
  border-radius: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hm-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 56px solid rgba(255, 121, 0, 0.12);
  pointer-events: none;
}

.hm-hero-copy {
  position: relative;
  z-index: 1;
}

.hm-hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 17em;
}

.hm-hero-copy > p {
  margin-top: 14px;
  max-width: 34em;
  color: #c3d4e8;
  font-size: 15px;
}

.hm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.hm-btn-primary {
  background: var(--orange);
  color: #fff;
}

.hm-btn-primary:hover {
  background: #e66d00;
}

.hm-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hm-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hm-hero-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 22px;
  font-size: 13px;
  color: #9fb6d0;
}

.hm-hero-follow a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.hm-hero-follow a i {
  color: var(--orange);
  margin-right: 5px;
}

.hm-hero-follow a:hover {
  text-decoration: underline;
}

/* Board: the one memorable element on the page */
.hm-board {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hm-board-head {
  padding: 20px 22px 16px;
  border-bottom: 3px solid var(--orange);
}

.hm-board-head strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.hm-board-head span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.hm-board-list {
  list-style: none;
}

.hm-board-list li + li {
  border-top: 1px solid var(--line);
}

.hm-board-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}

.hm-board-list a:hover {
  background: #fff6ee;
}

.hm-board-list a i {
  width: 18px;
  text-align: center;
  color: var(--orange);
}

.hm-board-name {
  flex: 1;
  min-width: 0;
}

.hm-board-num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--navy);
}

/* ---------- Category nav ---------- */
.hm-cats {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.hm-cats a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.hm-cats a i {
  color: var(--orange);
}

.hm-cats a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- Updates ---------- */
.hm-updates {
  padding-top: 36px;
}

.hm-section-head {
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--orange);
}

.hm-section-head h2 {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
}

.hm-section-head p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.hm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.hm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  scroll-margin-top: 16px;
}

.hm-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.hm-card-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
}

.hm-card-head h2 {
  flex: 1;
  min-width: 0;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: var(--navy);
}

.hm-count {
  min-width: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff3e8;
  color: #b65300;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hm-list {
  list-style: none;
  padding: 4px 16px;
}

.hm-list li + li {
  border-top: 1px solid #edf1f6;
}

.hm-list a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 0;
  color: #253348;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.hm-list a i {
  flex: none;
  margin-top: 5px;
  font-size: 9px;
  color: var(--orange);
}

.hm-list a span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hm-list a:hover span {
  color: var(--orange);
}

.hm-card-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.hm-card-foot a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hm-card-foot a:hover {
  color: var(--orange);
}

.hm-card .empty-state {
  padding: 28px 16px;
}

/* ---------- Ad ---------- */
.hm-ad {
  margin-top: 36px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f8;
  border: 1px dashed #c3cedd;
  border-radius: 10px;
  color: #8997a9;
  font-size: 12px;
}

/* ---------- Contact + foundation ---------- */
.hm-contact {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hm-contact-box {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hm-contact-box h2 {
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  color: var(--navy);
}

.hm-contact-box p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.hm-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hm-contact-links a,
.hm-foundation-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.15s, color 0.15s;
}

.hm-contact-links a i,
.hm-foundation-mail i {
  color: var(--orange);
}

.hm-contact-links a:hover,
.hm-foundation-mail:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.hm-foundation {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hm-foundation-logo {
  width: 96px;
  height: 76px;
  flex: none;
  object-fit: contain;
  border-radius: 8px;
}

.hm-foundation-mail {
  margin-top: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-hero {
    grid-template-columns: 1fr;
    padding: 36px 32px;
  }
}

@media (max-width: 720px) {
  .hm-hero {
    margin-top: 16px;
    padding: 28px 20px;
    gap: 26px;
    border-radius: 16px;
  }

  .hm-hero-actions .hm-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hm-grid,
  .hm-contact {
    grid-template-columns: 1fr;
  }

  .hm-section-head h2 {
    font-size: 22px;
  }

  .hm-foundation {
    align-items: flex-start;
  }

  .hm-foundation-logo {
    width: 76px;
    height: 60px;
  }
}