/* ==========================================================================
   ST. FRANCIS DE SALES PRE-UNIVERSITY COLLEGE
   stream.css — Science / Commerce / Humanities stream pages.
   Loads after sfs.css and about.css (shared inner-page hero). Uses existing
   design tokens only. Every class is prefixed `sfs-str-`; the stream body
   class (--science / --commerce / --humanities) only swaps a few accents.
   ========================================================================== */

.sfs-str { --str-accent: var(--sfs-blue); --str-ink: var(--sfs-blue); --str-tint: rgba(13, 48, 108, .06); --str-band: var(--sfs-paper); }
.sfs-str--commerce   { --str-accent: var(--sfs-amber); --str-ink: var(--sfs-amber-ink); --str-tint: rgba(244, 165, 28, .12); --str-band: var(--sfs-paper-warm); }
.sfs-str--humanities { --str-accent: #4A5FA8; --str-ink: #34467F; --str-tint: rgba(74, 95, 168, .09); --str-band: var(--sfs-paper-warm); }

.sfs-str b.sfs-str-key { font-weight: 700; color: var(--sfs-blue); background: linear-gradient(0deg, var(--str-tint) 38%, transparent 38%); padding: 0 2px; }

/* ---- hero tweaks (hero itself is the shared sfs-ab-hero) ---- */
.sfs-str .sfs-ab-hero__tile { border-left-color: var(--str-accent); }
.sfs-str .sfs-ab-hero__actions { margin-top: 32px; }

/* ---- introduction ---- */
.sfs-str-intro { background: var(--sfs-white); }
.sfs-str-intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.sfs-str-intro__lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.7; color: var(--sfs-ink); }
.sfs-str-intro h2 { font-family: var(--sfs-display); font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.03em; line-height: 1.06; }
.sfs-str-intro__image { margin-top: 26px; border-radius: 16px; aspect-ratio: 5 / 3; }
.sfs-str--science .sfs-str-intro { background-image: var(--pat-grid-light, none); }

.sfs-str-courses { margin-top: 36px; display: grid; gap: 14px; }
.sfs-str-courses__label { font-size: 0.845rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--str-ink); }
.sfs-str-course {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 18px 22px; background: var(--sfs-white);
  border: 1px solid var(--sfs-line); border-radius: 12px;
  transition: transform .4s var(--sfs-ease-out), box-shadow .4s var(--sfs-ease), border-color .3s;
}
.sfs-str-course:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -30px rgba(7, 29, 67, .45); }
.sfs-str-course__code { font-family: var(--sfs-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--str-ink); }
.sfs-str-course__subjects { font-size: .95rem; font-weight: 600; color: var(--sfs-ink-70); }
.sfs-str-course svg { color: var(--str-ink); transition: transform .4s var(--sfs-ease-out); }
.sfs-str-course:hover svg { transform: translateX(4px); }

/* ---- combination blocks ---- */
.sfs-str-combo { background: var(--sfs-white); }
.sfs-str-combo:nth-of-type(even) { background: var(--str-band); }
/* Each stream's first combo (Science: PCMB, Commerce: CEBA, Humanities:
   HEBA) is otherwise plain white by the alternating rule above — give it
   a light tint to match. Not using var(--str-band) here: that variable
   is only ever defined by the .sfs-str/.sfs-str--commerce/
   .sfs-str--humanities scope classes, none of which are actually present
   on these pages, so it silently resolves to nothing wherever it's used
   (a pre-existing gap, not something this rule introduces) —
   var(--sfs-paper) is always defined. */
#pcmb.sfs-str-combo, #ceba.sfs-str-combo, #heba.sfs-str-combo { background: var(--sfs-paper); }
.sfs-str-combo__head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.sfs-str-combo__no { font-size: 0.845rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--str-ink); align-items: center; gap: 10px; }
.sfs-str-combo__no::before { content: ""; width: 30px; height: 2px; background: var(--str-accent); }
.sfs-str-combo__code { margin-top: 14px; font-family: var(--sfs-display); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; color: var(--sfs-blue); }
.sfs-str-combo__chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.sfs-str-combo__chips li { padding: 7px 14px; border-radius: 999px; background: var(--sfs-paper); border: 1px solid var(--sfs-line); font-size: 0.945rem; font-weight: 700; color: var(--sfs-ink); }
.sfs-str-combo__title { font-family: var(--sfs-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.sfs-str-combo__text p { margin-top: 16px; color: var(--sfs-ink-70); line-height: 1.75; }
.sfs-str-combo__text .sfs-str-combo__title + p { margin-top: 18px; }

.sfs-str-sub__label { font-size: 0.845rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sfs-ink-50); margin-bottom: 16px; }
.sfs-str-sub__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.sfs-str-sub {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: clamp(20px, 2.4vw, 28px); background: var(--sfs-white);
  border: 1px solid var(--sfs-line); border-radius: 16px;
  transition: transform .4s var(--sfs-ease-out), box-shadow .4s var(--sfs-ease), border-color .3s;
}
.sfs-str-combo:nth-of-type(even) .sfs-str-sub { background: var(--sfs-white); }
.sfs-str-sub:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 18px 40px -30px rgba(7, 29, 67, .45); }
.sfs-str-sub__no { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--str-tint); color: var(--str-ink); font-family: var(--sfs-display); font-weight: 800; }
.sfs-str-sub h4 { font-family: var(--sfs-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.sfs-str-sub p { margin-top: 8px; font-size: .95rem; line-height: 1.65; color: var(--sfs-ink-70); }

.sfs-str-learn { margin-top: 20px; padding: clamp(22px, 3vw, 34px); border-radius: 16px; background: var(--sfs-blue); background-image: var(--pat-dots-dark); color: var(--sfs-white); }
.sfs-str--commerce .sfs-str-learn { border-bottom: 4px solid var(--sfs-amber); }

/* Wide banner photo, Humanities page only — sits between the HEPP and
   HEPS combination sections. */
.sfs-str-banner { aspect-ratio: 1920 / 500; }
.sfs-str-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sfs-str--science .sfs-str-learn { border-left: 4px solid var(--sfs-gold); }
.sfs-str-learn h4 { font-size: 0.845rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sfs-gold); font-family: var(--sfs-body); }
.sfs-str-learn p { margin-top: 14px; max-width: 78ch; line-height: 1.75; color: rgba(255, 255, 255, .86); }
.sfs-str-learn h4 + p { margin-top: 12px; }

/* ---- language subjects ---- */
.sfs-str-lang { background: var(--sfs-navy); background-image: var(--pat-dots-dark); color: var(--sfs-white); }
.sfs-str-lang .sfs-lead { margin-top: 20px; }
.sfs-str-lang__grid { margin-top: clamp(30px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; }
.sfs-str-lang__card { padding: clamp(24px, 3vw, 36px); background: rgba(4, 20, 47, .55); border: 1px solid rgba(255, 255, 255, .16); border-top: 4px solid var(--sfs-gold); border-radius: 14px; }
.sfs-str-lang__card--second { border-top-color: var(--sfs-amber); }
.sfs-str-lang__label { font-size: 0.845rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sfs-gold); }
.sfs-str-lang__value { margin-top: 12px; font-family: var(--sfs-display); font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; }
.sfs-str-lang__note { margin-top: 10px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.sfs-str-lang__opts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.sfs-str-lang__opts li { padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .34); font-weight: 700; }
.sfs-str-lang__foot { margin-top: 22px; max-width: 76ch; color: rgba(255, 255, 255, .72); font-size: .95rem; line-height: 1.7; }

/* ---- other streams ---- */
.sfs-str-others { background: var(--sfs-paper); padding-block: clamp(40px, 5vw, 64px); }
.sfs-str-others__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.sfs-str-others__label { font-size: 0.845rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sfs-ink-50); }
.sfs-str-others__links { display: flex; flex-wrap: wrap; gap: 12px; }
.sfs-str-others__links a { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--sfs-line); background: var(--sfs-white); font-weight: 700; color: var(--sfs-ink); transition: border-color .3s var(--sfs-ease), transform .35s var(--sfs-ease-out); }
.sfs-str-others__links a:hover { border-color: var(--sfs-blue-300); transform: translateY(-2px); }

@media (max-width: 1000px) {
  .sfs-str-intro__grid, .sfs-str-combo__head, .sfs-str-lang__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sfs-str-sub__grid { grid-template-columns: 1fr; }
  .sfs-str-course { grid-template-columns: minmax(0, 1fr) auto; }
  .sfs-str-course__code { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .sfs-str-sub { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .sfs-str-sub__no { width: 40px; height: 40px; }
}

/* ---- "Explore the Other Streams": two cards at the same width as the three-up Courses grid ---- */
@media (min-width: 1081px) {
  .sfs-str-other-grid { grid-template-columns: repeat(2, minmax(0, calc((100% - 56px) / 3))); justify-content: center; }
}
