/* Open Sans from a CDN, declared under the district theme's own family names.
   The theme's @font-face points at smccd.edu/theme/.../fonts/, but that server sends no
   Access-Control-Allow-Origin header, so browsers block those fonts on every origin except
   smccd.edu itself (my.smccd.edu included) and the whole page fell back to Helvetica.
   Remove once the district adds CORS to /theme/. by BB, 9/23/2026 */
@font-face { font-family: "OpenSans-Light";    font-weight: 300; font-display: swap; src: url(https://cdn.jsdelivr.net/npm/@fontsource/open-sans@5.2.5/files/open-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "OpenSans-Regular";  font-weight: 400; font-display: swap; src: url(https://cdn.jsdelivr.net/npm/@fontsource/open-sans@5.2.5/files/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "OpenSans-Semibold"; font-weight: 600; font-display: swap; src: url(https://cdn.jsdelivr.net/npm/@fontsource/open-sans@5.2.5/files/open-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "OpenSans-Bold";     font-weight: 700; font-display: swap; src: url(https://cdn.jsdelivr.net/npm/@fontsource/open-sans@5.2.5/files/open-sans-latin-700-normal.woff2) format("woff2"); }
/* Same files under one multi-weight family for the portal's own components, so font-weight works normally there. */
@font-face { font-family: "Open Sans"; font-weight: 300; font-display: swap; src: url(https://cdn.jsdelivr.net/npm/@fontsource/open-sans@5.2.5/files/open-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(https://cdn.jsdelivr.net/npm/@fontsource/open-sans@5.2.5/files/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(https://cdn.jsdelivr.net/npm/@fontsource/open-sans@5.2.5/files/open-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(https://cdn.jsdelivr.net/npm/@fontsource/open-sans@5.2.5/files/open-sans-latin-700-normal.woff2) format("woff2"); }
/* Lora (hero subtitle only) from the same CDN, so the page touches one font origin instead of three. */
@font-face { font-family: "Lora"; font-weight: 400; font-display: swap; src: url(https://cdn.jsdelivr.net/npm/@fontsource/lora@5.2.5/files/lora-latin-400-normal.woff2) format("woff2"); }
.portal-band, .portal-band h2, .portal-band h3, .portal-band .btn, .district-line, .portal-title {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.featured {
  position: relative; /* containing block for the button's stretched-link */
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: #012147 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.not-featured{
  display: flex;
  align-items: center;
  padding: 20px;
  height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
  color: #012147 !important;
  gap: 1rem;
}

.featured:hover,
.featured:focus-within,
.not-featured:hover,
.not-featured:focus-within{
  border-color: #c7d2fe;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

/* !important on the text colours: the theme's widget-block rules set their own. */
.widget-block-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px;
  color: #212529 !important;
}

.widget-block-title {
  margin-top: 0;
  margin-bottom: 8px;
  color: #212529 !important;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.widget-block-excerpt {
  flex: 1 1 auto;
  margin-bottom: 0; /* the button block carries the 24px gap */
  color: #212529 !important;
  line-height: 1.6;
}

.widget-block-links {
  margin-top: auto;
  padding-top: 24px;
}

.widget-block-links .btn {
  padding: 10px 16px; /* 44px tall: comfortable tap target */
  border-radius: 5px;
  font-weight: 600;
}

.widget-block-links .btn-primary {
  background-color: #012147;
  border-color: #012147;
}

.widget-block-links .btn-primary:hover,
.widget-block-links .btn-primary:focus {
  background-color: #001833;
  border-color: #001833;
}

@media (max-width: 767px) {
  .widget-block-content {
    padding: 20px;
  }
}

/* Shared help resources below the portal's service cards. */
.portal-help {
  padding: 32px;
  color: #012147;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.portal-help .portal-help-intro {
  margin: 0 0 24px;
  color: #475569;
}

.portal-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-help-group {
  min-width: 0;
  padding: 0 24px;
}

.portal-help-group:first-child {
  padding-left: 0;
}

.portal-help-group:last-child {
  padding-right: 0;
}

.portal-help-group + .portal-help-group {
  border-left: 1px solid #dce3ec;
}

.portal-help-group h3 {
  margin: 0 0 8px;
  color: #012147;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.portal-help-group p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.portal-help .portal-help-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-help-links li {
  margin: 0;
  padding: 0;
}

.portal-help-links li::before {
  content: none;
}

.portal-help-links a {
  display: inline-block;
  padding: 8px 0;
  color: #012147;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-help-links a span {
  display: inline-block;
  margin-left: 4px;
}

.portal-help-links a:hover {
  color: #005a8c;
}

.portal-help-links a:focus-visible {
  outline: 2px solid #005a8c;
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 767px) {
  .portal-help {
    padding: 24px 20px;
  }

  .portal-help-grid {
    grid-template-columns: 1fr;
  }

  .portal-help-group {
    padding: 0;
  }

  .portal-help-group + .portal-help-group {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #dce3ec;
    border-left: 0;
  }
}

/* Card icon sizes (were inline in the JS templates). Classes, not width/height attributes:
   the district theme sets img { width:100%; height:auto }, which beats attributes. by BB, 9/17/2026 */
.widget-block-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.service-icon { width: 48px; height: 48px; }
.service-arrow { width: 24px; height: 24px; }

/* Hero (Concept A: PROD look, retuned) + off-white band under the service sections. by BB, 9/23/2026 */
.portal-title {
  margin: 0 0 .5rem;
  color: #012147;
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
}
.portal-subtitle {
  margin: 0;
  max-width: 30ch;
  color: #2b303b;
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
}
.district-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  color: #555;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.district-line::after { content: ""; flex: 1; height: 1px; background: #cfd6df; }
/* Theme sets img { width:100%; height:auto }; the class wins and sizes all three logos to one height. */
.college-logo { display: block; width: auto; height: 52px; max-width: 200px; object-fit: contain; object-position: left bottom; }
.portal-band { background: #f4f4f4; }
@media (max-width: 575.98px) {
  .college-logo { height: 40px; max-width: 150px; }
  .district-line { margin: 1.5rem 0 1rem; }
  .district-line::after { content: none; } /* label wraps to two lines here; a hairline beside it is noise */
}

/* More Services: the link is the title (short accessible name); stretched-link makes the tile clickable,
   and the tile shows the focus ring via :focus-within. by BB, 9/23/2026 */
.portal-band .not-featured h3 a { color: #012147; text-decoration: none; }
.portal-band .not-featured h3 a:focus-visible { outline: none; }
/* "Trouble signing in?" link: theme link blue is 4.17:1 on the band, so use the darker portal blue (6.7:1). */
.portal-band .login-help a { color: #005a8c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.not-featured:focus-within {
  outline: 2px solid #005a8c;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .featured, .not-featured { transition: none; }
  .featured:hover, .featured:focus-within, .not-featured:hover, .not-featured:focus-within { transform: none; }
}

/* Focus indicators at 3:1 or better (WCAG 1.4.11 / 2.4.7). The theme's #003365 ring is invisible on the navy
   top bar and dark footer, and Bootstrap's translucent blue ring is about 1.8:1 on white. by BB, 9/23/2026 */
.top-bar a:focus-visible,
.top-bar .btn:focus-visible,
.top-bar .form-control:focus-visible {
  box-shadow: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
footer.theme a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.sitenav .nav-link:focus-visible {
  box-shadow: none;
  outline: 2px solid #005a8c;
  outline-offset: 2px;
}
.widget-block-links .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #005a8c;
}

/* Footer text colours (moved from an inline <style> block in index.html). !important: the theme's
   .theme-inverse rules set their own colours. by BB, 9/23/2026 */
.footer-column,
.footer-column p,
.footer-column span,
footer.theme address { color: #b0b0b0 !important; }
footer.theme a { color: #b0b0b0 !important; text-decoration: underline; }
footer.theme a:hover,
footer.theme a:focus-visible { color: #fff !important; }
.footer-theme-bottom,
.footer-theme-bottom span,
.footer-theme-bottom a { color: #ababab !important; font-size: 13px; }
footer .list-unstyled li a { display: inline-block; padding: 4px 0; }

/* Hairline under the (white) navbar so it reads as chrome, not as part of the white hero. by BB, 9/23/2026 */
.sitenav { border-bottom: 1px solid #e2e8f0; }

/* Vertical rhythm on a 4pt scale: 64 between sections (48 on phones), 24 heading-to-content, 8-12 inside groups.
   Section h2 is 1.5rem at every width; the theme's h2 shrank below the card titles on desktop. by BB, 9/23/2026 */
.portal-section + .portal-section { margin-top: 64px; }
.portal-band h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}
.portal-help h2 { margin-bottom: 8px; }
@media (max-width: 767px) {
  .portal-section + .portal-section { margin-top: 48px; }
}
