/* Prep-site shell: the TJTestPrep / AcademiesPrep page system for generated school sites.
   Header, footer, newsletter, page hero, FAQ, events panel, and search come from
   eduavenues-ui and site-search.css; this file carries the home sections and the few
   shell-specific details. Ported from TJTestPrep-Website/css/site.css (.tj-home), with the
   school-specific red removed so no school colors are implied. */

.ps-site {
  --ps-header-h: 73px;
  --ps-ink: #002e54;
  --ps-muted: #536475;
  --ps-border: #d9e0e7;
  --ps-surface: #f7f8fa;
  --ps-accent: var(--color-cta);
  --ps-h2-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  background: var(--color-white);
  color: var(--ps-ink);
}

.ps-site .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* The fixed-header offset lives on the disclosure line, not on main. */
.ps-main.hs-page {
  padding-top: 0;
}

/* Not-affiliated line, directly under the fixed header on every page. */
.ps-disclosure {
  margin-top: var(--ps-header-h);
  border-bottom: 1px solid var(--ps-border);
  background: var(--ps-surface);
}
.ps-disclosure p {
  margin: 0;
  padding: 0.55rem 0;
  color: var(--ps-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
}

.ps-eyebrow {
  display: inline-flex;
  margin: 0;
  color: var(--ps-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ps-section-heading {
  max-width: 760px;
}
.ps-section-heading h2 {
  margin: 0;
  font-size: var(--ps-h2-size);
  font-weight: 650;
  line-height: 1.2;
}
.ps-section-heading p {
  margin: 1rem 0 0;
  color: var(--ps-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Home hero: the TJ hero type, centered on the TJ navy. People never appear in the hero. */
.ps-hero {
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
  background: #0b2545;
  color: var(--color-white);
}
.ps-hero-inner {
  position: relative;
  z-index: 1;
}
/* A licensed campus photo under a flat navy overlay (the style guide's "real photo with a navy
   overlay"; no gradient). */
.ps-hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ps-hero--campus::after {
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.84);
  content: '';
}
.ps-hero--campus > .container {
  position: relative;
  z-index: 1;
}
.ps-site .ps-hero-credit {
  margin: 2.5rem 0 -1.5rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  text-align: center;
}
.ps-hero-credit a {
  color: inherit;
  text-decoration: underline;
}
.ps-hero-credit a:hover {
  color: var(--color-white);
}
.ps-hero-copy {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.ps-hero-credential {
  margin-bottom: var(--space-lg);
}
.ps-hero .credential-badge {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}
.ps-hero .credential-badge svg {
  color: var(--color-accent-light);
}
.ps-hero-title {
  max-width: 1040px;
  margin: 0 auto var(--space-lg);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ps-hero-subtitle {
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.7;
}
.ps-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}
.ps-hero .btn-primary {
  border-color: var(--color-cta);
  background: var(--color-cta);
  color: var(--color-white);
}
.ps-hero .btn-primary:hover {
  border-color: var(--color-cta-hover);
  background: var(--color-cta-hover);
}
.ps-hero .btn-white {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--color-white);
  box-shadow: none;
}
.ps-hero .btn-white:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
}
.ps-site .ps-hero-tuition {
  margin: var(--space-lg) 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
}
.ps-hero-tuition strong {
  color: var(--color-white);
}
.ps-hero-tuition > span + span::before {
  margin: 0 0.45em;
  content: '\00b7';
}

/* EduAvenues-wide credibility strip (the TJ results notes). */
.ps-credibility {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--ps-border);
  background: var(--color-white);
}
.ps-credibility-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0 0;
}
.ps-credibility-stats div {
  padding: 0 1.5rem;
}
.ps-credibility-stats div:first-child {
  padding-left: 0;
}
.ps-credibility-stats div + div {
  border-left: 1px solid var(--ps-border);
}
.ps-credibility-stats dt {
  color: var(--ps-ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.ps-credibility-stats dd {
  margin: 0.65rem 0 0;
}
.ps-credibility-stats dd strong {
  display: block;
  color: var(--ps-ink);
  font-size: 1rem;
  font-weight: 600;
}
.ps-credibility-stats dd span {
  display: block;
  max-width: 230px;
  margin-top: 0.25rem;
  color: var(--ps-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
.ps-site .ps-fine-print {
  max-width: 880px;
  margin: 2rem 0 0;
  color: var(--ps-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Resource library cards. */
.ps-resources {
  padding: 5.5rem 0;
  background: var(--ps-surface);
}
.ps-resources .ps-section-heading {
  margin: 0 auto 2rem;
  text-align: center;
}
.ps-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.ps-resource-card {
  display: block;
  padding: 1.55rem;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--ps-ink);
  text-decoration: none;
  transition: border-color 180ms ease;
}
.ps-resource-card:hover {
  border-color: #b8bec5;
}
.ps-resource-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}
.ps-resource-card p {
  margin: 0.55rem 0 0;
  color: var(--ps-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.ps-resource-card strong {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Interior pages. */
.ps-site .ps-checked {
  margin: 1.25rem 0 0;
  color: #6b7280;
  font-size: 0.8125rem;
}
/* Footer newsletter, the TJ treatment. */
.ps-newsletter-footer {
  padding: 3rem 0 0;
  background: var(--color-primary-dark);
}
.ps-newsletter-footer .newsletter-grid {
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}
.ps-newsletter-footer .newsletter-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}
.ps-newsletter-footer .newsletter-text h3 {
  margin-bottom: 0.35rem;
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1.15;
}
.ps-newsletter-footer .newsletter-text p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}
.ps-newsletter-footer .newsletter-form-inline {
  flex-wrap: wrap;
  width: min(100%, 470px);
  gap: 0.75rem;
}
.ps-newsletter-footer .newsletter-input-inline {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}
.ps-newsletter-footer .newsletter-input-inline::placeholder {
  color: rgba(255, 255, 255, 0.58);
}
.ps-newsletter-footer .btn-white {
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: #002e54;
  font-weight: 600;
}
.ps-newsletter-footer .btn-white[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.ps-newsletter-footer .hs-download-status {
  flex-basis: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Key-dates panel: past dates fade. */
.events-sidebar .event-card.is-past {
  opacity: 0.55;
}

@media (max-width: 980px) {
  .ps-site .ps-hero-credit {
    margin: 2rem 0 -0.5rem;
    text-align: center;
  }
  .ps-credibility-stats,
  .ps-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ps-credibility-stats {
    row-gap: 2rem;
  }
  .ps-credibility-stats div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .ps-site .container {
    padding: 0 16px;
  }
  .ps-hero {
    padding: var(--space-2xl) 0;
  }
  .ps-hero-subtitle {
    font-size: 1rem;
  }
  .ps-hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
  .ps-hero-actions .btn {
    width: 100%;
  }
  .ps-resources {
    padding: 4rem 0;
  }
  .ps-hero-tuition > span {
    display: block;
  }
  .ps-hero-tuition > span + span {
    margin-top: 0.2rem;
  }
  .ps-hero-tuition > span + span::before {
    content: none;
  }
  .ps-resources-grid {
    grid-template-columns: 1fr;
  }
  /* Results keep two columns on phones, like the TJ stat row, instead of one narrow strip. */
  .ps-credibility {
    padding: 3rem 0;
    text-align: center;
  }
  .ps-credibility-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
  }
  .ps-credibility-stats div,
  .ps-credibility-stats div:nth-child(odd) {
    padding: 0;
    border-left: 0 !important;
  }
  .ps-credibility-stats dd span {
    max-width: none;
  }
  .ps-site .ps-credibility .ps-fine-print {
    margin: 2rem auto 0;
  }
}

/* The home hero sits inside .hs-page; keep its type white over the navy field. */
.ps-main .ps-hero .ps-hero-title,
.ps-main .ps-hero .ps-hero-subtitle {
  color: var(--color-white);
}
.ps-main .ps-hero .ps-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto var(--space-2xl);
}
.ps-main .ps-hero .ps-hero-title {
  margin: 0 auto var(--space-lg);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem);
}
