/* College2U Enterprise Design System v10.0
   Global responsive, accessibility, overflow and assistant/footer contract. */

:root {
  --c2u-page-max: 96rem;
  --c2u-content-max: 76rem;
  --c2u-gutter: clamp(1rem, 2.4vw, 2.5rem);
  --c2u-section-space: clamp(3rem, 7vw, 7rem);
  --c2u-radius-sm: .625rem;
  --c2u-radius-md: 1rem;
  --c2u-radius-lg: clamp(1.125rem, 2vw, 1.75rem);
  --c2u-shadow-1: 0 1px 2px rgba(2, 20, 16, .08), 0 10px 30px rgba(2, 20, 16, .07);
  --c2u-shadow-2: 0 24px 70px rgba(2, 20, 16, .18);
  --c2u-focus: 0 0 0 3px rgba(45, 212, 191, .36), 0 0 0 6px rgba(13, 148, 136, .18);
  --c2u-bottom-nav-height: 4.35rem;
  --c2u-safe-bottom: env(safe-area-inset-bottom, 0px);
  --c2u-vh: 1vh;
}

html {
  min-width: 20rem;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  max-width: 100%;
  overflow-x: clip;
  font-size: clamp(.96875rem, .94rem + .12vw, 1.0625rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

:where(main, section, article, aside, header, footer, nav, form, fieldset, div) {
  min-width: 0;
}

:where(img, picture, video, canvas, iframe, svg) {
  display: block;
  max-width: 100%;
}

:where(img, video) { height: auto; }

:where(h1, h2, h3, h4, p, li, dd, dt, a, button, label, legend) {
  overflow-wrap: anywhere;
}

:where(h1, h2, h3) {
  text-wrap: balance;
  line-height: 1.12;
}

:where(p, li) { text-wrap: pretty; }

.shell,
.container,
.c2u-section-inner {
  width: min(100% - (2 * var(--c2u-gutter)), var(--c2u-page-max));
  max-width: var(--c2u-page-max);
  margin-inline: auto;
}

.c2u-reading-width { max-width: 72ch; }

:where(.row, [class*="grid"], [class*="__grid"], [class*="-grid"]) > * {
  min-width: 0;
}

:where(input, select, textarea, button) {
  max-width: 100%;
  min-height: 2.75rem;
  font: inherit;
}

:where(input, select, textarea) {
  width: 100%;
  border-radius: var(--c2u-radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

:where(textarea) {
  min-height: 7.5rem;
  resize: vertical;
}

:where(button, [role="button"], .btn, .c2u-btn) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--c2u-focus);
}

:where(button, .btn, .c2u-btn):disabled,
:where(button, .btn, .c2u-btn)[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
}

fieldset { max-width: 100%; }

pre,
code,
.c2u-code {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

pre {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.c2u-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--color-border, #d9e4e1);
  border-radius: var(--c2u-radius-md);
  -webkit-overflow-scrolling: touch;
}

.c2u-table-scroll:focus-visible { box-shadow: var(--c2u-focus); }

.c2u-table-scroll > table {
  width: 100%;
  min-width: 42rem;
  margin: 0;
  border: 0;
}

.c2u-answer-first {
  position: relative;
  isolation: isolate;
  margin-block: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-primary, #0d9488) 28%, transparent);
  border-radius: var(--c2u-radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, .14), transparent 38%),
    var(--color-surface, #fff);
  box-shadow: var(--c2u-shadow-1);
}

.c2u-answer-first::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: .3rem;
  background: linear-gradient(180deg, #2dd4bf, #0d9488);
}

.c2u-answer-first__eyebrow {
  margin: 0 0 .55rem;
  color: var(--color-primary, #0d9488);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.c2u-answer-first h2 {
  margin: 0;
  font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2.35rem);
}

.c2u-answer-first p:last-child {
  max-width: 78ch;
  margin: .9rem 0 0;
}

.glass-card,
.glass-panel,
.c2u-card,
[class*="__card"] {
  border-radius: var(--c2u-radius-md);
}

.c2u-footer__newsletter-bar,
.c2u-footer__newsletter-form,
.c2u-footer__grid,
.c2u-footer__bottom {
  min-width: 0;
}

.c2u-footer__newsletter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: .75rem;
  align-items: end;
}

.c2u-aria-panel {
  width: min(29rem, calc(100vw - 2 * var(--c2u-gutter)));
  max-width: 100%;
  height: min(44rem, calc(var(--c2u-vh) * 100 - 7rem));
  max-height: calc(var(--c2u-vh) * 100 - 7rem);
  border-radius: var(--c2u-radius-lg) 0 0 var(--c2u-radius-lg);
  box-shadow: var(--c2u-shadow-2);
  overscroll-behavior: contain;
}

.c2u-aria-panel__chat {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.c2u-aria-panel__input-area {
  padding-bottom: max(1rem, var(--c2u-safe-bottom));
}

.c2u-bottom-nav {
  padding-bottom: var(--c2u-safe-bottom);
  transition: transform .22s ease, visibility .22s ease;
}

.c2u-bottom-nav.is-footer-visible {
  transform: translateY(calc(100% + var(--c2u-safe-bottom)));
  visibility: hidden;
}

@media (min-width: 100rem) {
  :root { --c2u-page-max: 104rem; }
  .c2u-nav,
  .c2u-footer > .shell { max-width: 104rem; }
}

@media (max-width: 64rem) {
  .c2u-footer__newsletter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c2u-footer__newsletter-form .btn { width: 100%; }
}

@media (max-width: 48rem) {
  body { padding-bottom: calc(var(--c2u-bottom-nav-height) + var(--c2u-safe-bottom)); }

  .c2u-footer {
    padding-bottom: calc(var(--c2u-bottom-nav-height) + var(--c2u-safe-bottom) + 1rem);
  }

  .c2u-footer__newsletter-form,
  .c2u-footer__grid,
  .c2u-footer__bottom {
    grid-template-columns: 1fr;
  }

  .c2u-footer__bottom { align-items: flex-start; }

  .c2u-aria-panel {
    inset: auto 0 calc(var(--c2u-bottom-nav-height) + var(--c2u-safe-bottom)) 0;
    width: 100%;
    height: min(42rem, calc(var(--c2u-vh) * 100 - var(--c2u-bottom-nav-height) - 1rem));
    max-height: calc(var(--c2u-vh) * 100 - var(--c2u-bottom-nav-height) - 1rem);
    border-radius: var(--c2u-radius-lg) var(--c2u-radius-lg) 0 0;
  }

  .c2u-table-scroll > table { min-width: 36rem; }
}

@media (max-width: 23.75rem) {
  :root { --c2u-gutter: .875rem; }

  .c2u-nav__controls { gap: .35rem; }
  .c2u-nav__logo-img { max-width: 8.5rem; }
  .c2u-answer-first { padding: 1.125rem; }
  .btn, .c2u-btn { padding-inline: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .c2u-nav,
  .hp-ticker,
  .c2u-bottom-nav,
  .c2u-aria-panel,
  .c2u-cookie-banner { display: none !important; }

  body { padding: 0; color: #000; background: #fff; }
  a { color: inherit; text-decoration: underline; }
}
