/*
Theme Name: NJ Sports Insider
Theme URI: https://njsportsinsider.com
Author: NJ Sports Insider
Description: A fast, editorial WordPress theme for New Jersey sports coverage, player profiles, video highlights, and game schedules.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: njsportsinsider
*/

:root {
  --njsi-navy: #08294f;
  --njsi-navy-deep: #041a33;
  --njsi-blue: #0f447b;
  --njsi-red: #e21c2b;
  --njsi-red-dark: #b70e1c;
  --njsi-white: #ffffff;
  --njsi-ice: #f4f7fa;
  --njsi-ink: #101b28;
  --njsi-muted: #607084;
  --njsi-line: #dbe3eb;
  --njsi-shadow: 0 18px 50px rgba(5, 29, 55, 0.12);
  --njsi-radius: 18px;
  --njsi-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--njsi-ink);
  background: var(--njsi-ice);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--njsi-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--njsi-red-dark);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.njsi-container {
  width: min(calc(100% - 32px), var(--njsi-container));
  margin-inline: auto;
}

.njsi-topline {
  color: #fff;
  background: var(--njsi-red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.njsi-topline .njsi-container {
  padding-block: 8px;
}

.njsi-header {
  position: relative;
  z-index: 20;
  color: #fff;
  background: var(--njsi-navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.njsi-header__inner {
  display: flex;
  align-items: center;
  min-height: 92px;
  gap: 28px;
}

.njsi-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.njsi-brand img {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);
}

.njsi-brand__text {
  display: grid;
  line-height: 1;
}

.njsi-brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.njsi-brand__tag {
  margin-top: 7px;
  color: #a9bdd1;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.njsi-nav {
  margin-left: auto;
}

.njsi-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.njsi-nav a {
  display: block;
  padding: 10px 9px;
  border-radius: 8px;
  color: #e8f0f7;
  font-size: 0.79rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.njsi-nav a:hover,
.njsi-nav a:focus-visible,
.njsi-nav .current-menu-item > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.njsi-nav .njsi-nav-cta a {
  color: #fff;
  background: var(--njsi-red);
}

.njsi-nav .njsi-nav-cta a:hover,
.njsi-nav .njsi-nav-cta a:focus-visible {
  background: #ff3041;
}

.njsi-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(118deg, rgba(4, 26, 51, 0.98) 0%, rgba(8, 41, 79, 0.96) 57%, rgba(15, 68, 123, 0.92) 100%);
}

.njsi-hero::after {
  position: absolute;
  right: -140px;
  bottom: -260px;
  width: 620px;
  height: 620px;
  border: 88px solid rgba(226, 28, 43, 0.18);
  border-radius: 50%;
  content: "";
}

.njsi-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  align-items: center;
  min-height: 610px;
  gap: 70px;
  padding-block: 76px;
}

.njsi-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #ffd7da;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.njsi-kicker::before {
  width: 34px;
  height: 4px;
  background: var(--njsi-red);
  content: "";
}

.njsi-hero h1 {
  max-width: 750px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.njsi-hero h1 span {
  display: block;
  color: #fff;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}

.njsi-hero__copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: #cddbea;
  font-size: clamp(1.05rem, 2vw, 1.27rem);
}

.njsi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.njsi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 11px;
  background: var(--njsi-red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.njsi-button:hover,
.njsi-button:focus-visible {
  color: #fff;
  background: var(--njsi-red-dark);
  transform: translateY(-1px);
}

.njsi-button--ghost {
  border-color: rgba(255, 255, 255, 0.48);
  background: transparent;
}

.njsi-button--ghost:hover,
.njsi-button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.njsi-hero-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(2, 17, 34, 0.54);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.njsi-hero-card::before {
  position: absolute;
  top: -3px;
  right: 30px;
  left: 30px;
  height: 6px;
  border-radius: 99px;
  background: var(--njsi-red);
  content: "";
}

.njsi-hero-card__logo {
  display: block;
  width: 164px;
  margin: -8px auto 25px;
  border: 6px solid #fff;
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.njsi-hero-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.njsi-hero-card p {
  margin: 8px 0 22px;
  color: #b9cadb;
  font-size: 0.94rem;
}

.njsi-search {
  display: flex;
  gap: 8px;
}

.njsi-search input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: var(--njsi-ink);
  background: #fff;
}

.njsi-search button {
  min-width: 52px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--njsi-red);
  font-weight: 900;
}

.njsi-feature-band {
  position: relative;
  z-index: 3;
  margin-top: -26px;
}

.njsi-feature-band__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--njsi-shadow);
}

.njsi-feature {
  padding: 24px 28px;
}

.njsi-feature + .njsi-feature {
  border-left: 1px solid var(--njsi-line);
}

.njsi-feature strong {
  display: block;
  color: var(--njsi-navy);
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.njsi-feature span {
  color: var(--njsi-muted);
  font-size: 0.9rem;
}

.njsi-preview-section {
  padding-block: 78px 90px;
}

.njsi-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.njsi-section-heading h2 {
  margin: 0;
  color: var(--njsi-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.njsi-preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.njsi-panel {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--njsi-line);
  border-radius: var(--njsi-radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(5, 29, 55, 0.06);
}

.njsi-panel__label {
  margin: 0 0 10px;
  color: var(--njsi-red);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.njsi-panel h3 {
  margin: 0;
  color: var(--njsi-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.15;
}

.njsi-empty {
  display: flex;
  align-items: center;
  min-height: 128px;
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed #afbcc9;
  border-radius: 12px;
  color: var(--njsi-muted);
  background: #f8fafc;
}

@media (max-width: 1020px) {
  .njsi-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-block: 16px;
  }

  .njsi-nav {
    width: 100%;
    margin: 0;
    overflow-x: auto;
  }

  .njsi-nav ul {
    justify-content: flex-start;
    min-width: max-content;
  }

  .njsi-hero__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .njsi-hero-card {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .njsi-container {
    width: min(calc(100% - 22px), var(--njsi-container));
  }

  .njsi-brand img {
    width: 54px;
    height: 54px;
  }

  .njsi-hero__grid {
    min-height: auto;
    padding-block: 58px 76px;
  }

  .njsi-hero h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .njsi-hero-card {
    padding: 28px 22px;
  }

  .njsi-feature-band__inner,
  .njsi-preview-grid {
    grid-template-columns: 1fr;
  }

  .njsi-feature + .njsi-feature {
    border-top: 1px solid var(--njsi-line);
    border-left: 0;
  }

  .njsi-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.screen-reader-text,
.njsi-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.njsi-skip-link:focus {
  z-index: 9999;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--njsi-red);
}

.njsi-menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  background: transparent;
}

.njsi-menu-toggle > span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #fff;
}

.njsi-section {
  padding-block: 84px;
}

.njsi-section--navy {
  color: #fff;
  background: var(--njsi-navy-deep);
}

.njsi-section--navy .njsi-section-heading h2,
.njsi-section--navy .njsi-game-card h3 {
  color: #fff;
}

.njsi-section--navy .njsi-game-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.njsi-section--navy .njsi-game-card__date,
.njsi-section--navy .njsi-game-card__main p {
  color: #d4e0eb;
}

.njsi-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.njsi-story-card {
  overflow: hidden;
  border: 1px solid var(--njsi-line);
  border-radius: var(--njsi-radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(5, 29, 55, 0.06);
}

.njsi-story-card__media {
  display: grid;
  aspect-ratio: 3 / 2;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--njsi-navy), var(--njsi-blue));
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.njsi-story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.njsi-story-card__body {
  padding: 22px;
}

.njsi-story-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.15;
}

.njsi-story-card h2 a {
  color: var(--njsi-navy-deep);
  text-decoration: none;
}

.njsi-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--njsi-muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.njsi-home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 50px;
}

.njsi-source-promise {
  align-self: start;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.njsi-source-promise img {
  width: 100px;
  border: 5px solid #fff;
  border-radius: 50%;
}

.njsi-source-promise h3 {
  margin: 20px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.njsi-source-promise p {
  color: #bfd0e0;
}

.njsi-submit-band {
  color: #fff;
  background: var(--njsi-red);
}

.njsi-submit-band .njsi-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  padding-block: 55px;
}

.njsi-submit-band h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.njsi-submit-band p {
  max-width: 700px;
}

.njsi-submit-band .njsi-button {
  border-color: #fff;
  color: var(--njsi-red);
  background: #fff;
  white-space: nowrap;
}

.njsi-page-hero {
  color: #fff;
  background: linear-gradient(120deg, var(--njsi-navy-deep), var(--njsi-blue));
}

.njsi-page-hero .njsi-container {
  padding-block: 72px;
}

.njsi-page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.njsi-page-hero p,
.njsi-page-hero > .njsi-container > div {
  max-width: 760px;
  color: #c9d7e5;
}

.njsi-content {
  padding-block: 62px 90px;
}

.njsi-content > :first-child {
  margin-top: 0;
}

.njsi-prose {
  max-width: 760px;
  font-size: 1.06rem;
}

.njsi-prose h1,
.njsi-prose h2,
.njsi-prose h3 {
  color: var(--njsi-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.njsi-profile-hero {
  color: #fff;
  background: linear-gradient(125deg, var(--njsi-navy-deep), var(--njsi-navy));
}

.njsi-profile-hero__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: 64px;
}

.njsi-profile-photo {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 22px;
  color: #fff;
  background: var(--njsi-blue);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  font-size: 4rem;
  font-weight: 900;
}

.njsi-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.njsi-profile-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.njsi-profile-school {
  color: #c8d8e7;
  font-size: 1.15rem;
}

.njsi-profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.njsi-profile-facts > div {
  min-width: 90px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.njsi-profile-facts span,
.njsi-profile-facts strong {
  display: block;
}

.njsi-profile-facts span {
  color: #aebfd0;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.njsi-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 50px;
  padding-block: 62px;
}

.njsi-profile-aside {
  align-self: start;
  padding: 24px;
  border-left: 5px solid var(--njsi-red);
  background: #fff;
}

.njsi-footer {
  color: #c4d0dc;
  background: #021225;
}

.njsi-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-block: 52px;
}

.njsi-footer__brand {
  display: flex;
  gap: 16px;
}

.njsi-footer__brand img {
  width: 74px;
  height: 74px;
  border: 4px solid #fff;
  border-radius: 50%;
}

.njsi-footer__brand strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.njsi-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.njsi-footer nav a {
  color: #d9e4ee;
  font-size: 0.84rem;
  text-decoration: none;
}

.njsi-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.75rem;
}

@media (max-width: 1020px) {
  .njsi-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .njsi-header__inner {
    align-items: center;
    flex-direction: row;
    min-height: 78px;
    padding-block: 10px;
  }

  .njsi-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    width: auto;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--njsi-navy-deep);
  }

  .njsi-nav.is-open {
    display: block;
  }

  .njsi-nav ul {
    display: grid;
    min-width: 0;
    padding: 12px;
  }

  .njsi-nav a {
    padding: 13px 14px;
    font-size: 0.96rem;
  }

  .njsi-story-grid,
  .njsi-home-split {
    grid-template-columns: 1fr 1fr;
  }

  .njsi-home-split > :first-child,
  .njsi-source-promise {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .njsi-brand__tag {
    display: none;
  }

  .njsi-story-grid,
  .njsi-home-split,
  .njsi-profile-hero__grid,
  .njsi-profile-layout,
  .njsi-footer__grid {
    grid-template-columns: 1fr;
  }

  .njsi-profile-photo {
    width: min(78vw, 300px);
  }

  .njsi-profile-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .njsi-submit-band .njsi-container,
  .njsi-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .njsi-footer nav ul {
    justify-content: flex-start;
  }
}
