/* =========================================================
   HOMEPAGE
   ========================================================= */

.sm-home {
  max-width: 1520px;
  margin: 0 auto;
}

.sm-home-section {
  margin-bottom: 28px;
}

/* =========================================================
   SHARED CARD SYSTEM
   ========================================================= */

.sm-home-card {
  background: #ffffff;
  border: 1px solid #d7e0eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.sm-home-card__header {
  padding: 18px 20px 0 20px;
}

.sm-home-card__header--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sm-home-card__body {
  padding: 16px 0px;
}

.sm-home-card__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

.sm-home-card__more {
  color: #163f78;
  font-weight: 700;
  text-decoration: none;
}

.sm-home-card__more:hover {
  text-decoration: underline;
}

/* =========================================================
   HERO
   ========================================================= */

.sm-home-hero__inner {
  display: grid;
  background: #ffffff;
  border: 1px solid #d7e0eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 28px;
}

.sm-home-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef5fd;
  color: #2d5b92;
  border: 1px solid #cfe0f4;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.sm-home-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 4rem;
  line-height: 0.95;
  color: #13233a;
  
}

.sm-home-hero__summary {
  margin: 14px 0 0 0;
  color: #46566d;
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 760px;
}




/* =========================================================
   SPORT GRID
   ========================================================= */

.sm-sport-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 20px 16px 20px;
}


.sm-sport-card__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.8rem;
  line-height: 1;
  color: #13233a;
}

.sm-sport-card__meta {
  margin-top: 6px;
  color: #5a6b82;
  font-size: 0.9rem;
}

.sm-sport-card {
  border: 1px solid #d7e0eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sm-sport-card__summary {
  margin: 14px 0 16px 0;
  color: #46566d;
  line-height: 1.5;
  flex: 1 1 auto;
}

.sm-sport-card__links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sm-sport-card__links a {
  color: #163f78;
  text-decoration: none;
  font-weight: 700;
}

.sm-sport-card__links a:hover {
  text-decoration: underline;
}

/* =========================================================
   SEASON OUTLOOK SNAPSHOTS
   ========================================================= */

.sm-outlook-grid {
  display: grid;
  grid-template-columns: repeat(var(--sm-outlook-cols, 4), minmax(0, 1fr));
  gap: 16px;
  padding: 0 20px 16px 20px;
}

.sm-outlook-grid--halves {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm-outlook-card {
  border: 1px solid #d7e0eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.sm-outlook-card__title {
  margin: 0 0 12px 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.6rem;
  line-height: 1;
  color: #13233a;
}

.sm-outlook-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #edf2f7;
  color: #364258;
}

.sm-outlook-card__row:first-child {
  border-top: none;
  padding-top: 0;
}

.sm-outlook-card__row a {
  color: #163f78;
  font-weight: 600;
  text-decoration: none;
}

.sm-outlook-card__team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sm-outlook-card__rank {
  flex: 0 0 auto;
  min-width: 20px;
  color: #5a6b82;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: right;
}

.sm-outlook-card__row a:hover {
  text-decoration: underline;
}

.sm-outlook-card__row strong {
  display: inline-block;
  box-sizing: border-box;
  width: 64px;
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  text-align: center;
  color: #13233a;
  font-weight: 800;
}

.sm-outlook-card__link {
  display: inline-block;
  margin-top: 14px;
  color: #163f78;
  font-weight: 700;
  text-decoration: none;
}

.sm-outlook-card__link:hover {
  text-decoration: underline;
}

/* =========================================================
   SNAPSHOTS
   ========================================================= */

.sm-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sm-snapshot-card {
  border: 1px solid #d7e0eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.sm-snapshot-card__title {
  margin: 0 0 12px 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.6rem;
  line-height: 1;
  color: #13233a;
}

.sm-snapshot-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #edf2f7;
  color: #5d6f88;
}

.sm-snapshot-card__row strong {
  color: #13233a;
  font-weight: 800;
}

.sm-snapshot-card__link {
  display: inline-block;
  margin-top: 14px;
  color: #163f78;
  font-weight: 700;
  text-decoration: none;
}

.sm-snapshot-card__link:hover {
  text-decoration: underline;
}

/* =========================================================
   FEATURES
   ========================================================= */

.sm-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 20px 16px 20px;
}

.sm-feature-grid .sm-feature-card {
  border: 1px solid #d7e0eb;
  border-top: 4px solid #6b7a90;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Category-tinted top edge -- gives the article grid visual structure
   at a glance instead of every card reading identically. Falls back to
   the neutral slate above for any category not listed here, so a new
   category (added via articles.json) never renders unstyled. */
.sm-feature-grid .sm-feature-card[data-category="NFL"] { border-top-color: #0b5fd1; }
.sm-feature-grid .sm-feature-card[data-category="MLB"] { border-top-color: #1a7a4c; }
.sm-feature-grid .sm-feature-card[data-category="NBA"] { border-top-color: #e2792e; }
.sm-feature-grid .sm-feature-card[data-category="NHL"] { border-top-color: #1fb6c9; }
.sm-feature-grid .sm-feature-card[data-category="Coding"] { border-top-color: #6b7a90; }
.sm-feature-grid .sm-feature-card[data-category="Methodology"] { border-top-color: #21c7e8; }

.sm-feature-grid .sm-feature-card:hover,
.sm-feature-grid .sm-feature-card:focus-visible {
  transform: translateY(-3px);
  border-left-color: #3a5da8;
  border-right-color: #3a5da8;
  border-bottom-color: #3a5da8;
  box-shadow: 0 10px 24px rgba(19, 35, 58, 0.12);
}

.sm-feature-grid .sm-feature-card:hover .sm-feature-card__link,
.sm-feature-grid .sm-feature-card:focus-visible .sm-feature-card__link {
  text-decoration: underline;
}

.sm-articles-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 20px 20px;
}

.sm-articles-toolbar__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #46566d;
}

.sm-articles-toolbar__select {
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  background: #ffffff;
  color: #13233a;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.sm-articles-toolbar__select:focus {
  outline: 2px solid #3a5da8;
  outline-offset: 1px;
}

.sm-feature-card__tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 8px 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef3fb;
  color: #3a5da8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sm-feature-card * {
  text-decoration: none;
}

.sm-feature-card .sm-feature-card__title {
  margin: 0 0 10px 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.5rem;
  line-height: 1;
  color: #13233a;
}

.sm-feature-card .sm-feature-card__text {
  margin: 0;
  color: #46566d;
  line-height: 1.5;
  flex: 1 1 auto;
}

.sm-feature-card__link {
  display: inline-block;
  margin-top: 14px;
  padding-top: 10px;
  color: #163f78;
  font-weight: 700;
  text-decoration: none;
}

.sm-feature-card__link:hover {
  text-decoration: underline;
}

/* =========================================================
   LINK PANELS
   ========================================================= */

.sm-link-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sm-link-panel {
  border: 1px solid #d7e0eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.sm-link-panel__title {
  margin: 0 0 14px 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.6rem;
  line-height: 1;
  color: #13233a;
}

.sm-link-panel a {
  display: block;
  margin: 0 0 12px 0;
  color: #163f78;
  text-decoration: none;
  font-weight: 700;
}

.sm-link-panel a:hover {
  text-decoration: underline;
}

/* =========================================================
   METHOD STRIP
   ========================================================= */

.sm-home-method {
  margin-top: 4px;
}

.sm-home-method__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #d7e0eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 22px 24px;
}

.sm-home-method__title {
  margin: 0 0 8px 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

.sm-home-method__text {
  margin: 0;
  color: #46566d;
  line-height: 1.5;
  max-width: 860px;
}

.sm-home-method__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #163f78;
  border-radius: 999px;
  background: #ffffff;
  color: #163f78;
  text-decoration: none;
  font-weight: 800;
}

.sm-home-method__link:hover {
  text-decoration: underline;
}

/* =========================================================
   MATCHUP TILE HELPERS
   ========================================================= */

.sm-home-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #163f78;
  border-radius: 999px;
  background: #ffffff;
  color: #163f78;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
}

.sm-home-link-btn:hover {
  text-decoration: underline;
}

.sm-matchup-tile__helmet--dot {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 50%;
  border: 1px solid #d7e0eb;
  position: relative;
  overflow: hidden;
  margin: 0 auto 4px auto;
}

.sm-matchup-tile__helmet--dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--helmet-main, #1f4c8f);
}

.sm-matchup-tile__helmet--dot::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: var(--helmet-accent, #ffffff);
  border: 1px solid rgba(255,255,255,0.5);
}

.ravens { --helmet-main: #241773; --helmet-accent: #9E7C0C; }
.chiefs { --helmet-main: #E31837; --helmet-accent: #FFB81C; }
.bills { --helmet-main: #00338D; --helmet-accent: #C60C30; }
.bengals { --helmet-main: #FB4F14; --helmet-accent: #000000; }
.eagles { --helmet-main: #004C54; --helmet-accent: #A5ACAF; }
.cowboys { --helmet-main: #003594; --helmet-accent: #869397; }
.niners { --helmet-main: #AA0000; --helmet-accent: #B3995D; }
.seahawks { --helmet-main: #002244; --helmet-accent: #69BE28; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .sm-sport-grid,
  .sm-snapshot-grid,
  .sm-feature-grid,
  .sm-outlook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-home-hero__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {


  .sm-home-hero__inner,

  .sm-home-method__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sm-home-card__header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sm-home-hero__inner {
    padding: 16px;
  }

  .sm-home-hero__title {
    font-size: 2.6rem;
  }

  .sm-home-card__title,
  .sm-home-method__title {
    font-size: 1.75rem;
  }

  .sm-sport-grid,
  .sm-snapshot-grid,
  .sm-feature-grid,
  .sm-link-panels,
  .sm-outlook-grid {
    grid-template-columns: 1fr;
  }

  .sm-matchup-tile__helmet--dot {
    width: 40px;
    height: 40px;
  }
}