/* FundIQ's shared finishing layer. Layout and live forms remain owned by their page styles. */
:root {
  --fundiq-violet: #a83df0;
  --fundiq-mist: #f5effb;
  --fundiq-edge: rgba(188, 155, 217, .23);
}

body { font-optical-sizing: auto; }
button, input, select, textarea { font-family: var(--font-body); }
a, button, input, select, textarea { touch-action: manipulation; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #c58af4;
  outline-offset: 3px;
}
.site-header { box-shadow: 0 1px 0 rgba(255,255,255,.025); }
.nav-wrap { gap: clamp(16px, 2.7vw, 38px); }
.brand-word { white-space: nowrap; }
.main-nav { gap: clamp(13px, 2.2vw, 29px); }
.main-nav a, .site-links a { transition: color .18s ease; }
.main-nav a:hover, .site-links a:hover { color: #fff; }
.main-nav a[aria-current="page"], .site-links a[aria-current="page"] { color: #dcb6fa; }
.site-links { display: flex; align-items: center; justify-content: center; flex: 1; gap: clamp(17px, 2.6vw, 31px); }
.site-links a { color: #c8c1d2; font-size: 13px; font-weight: 700; white-space: nowrap; }
.nav-cta { min-height: 41px; justify-content: center; }
.btn, .nav-cta, .resource-main-action, .resource-find { font-weight: 800; }
.footer-bottom a { transition: color .2s ease; }
.footer-bottom a:hover { color: #fff; }

/* The first decision is simple: study, find help or teach. */
.pathway-section { background: #f6f1fa; border-bottom: 1px solid #e7deed; padding: 17px 0; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pathway-link {
  position: relative; display: grid; align-content: center; min-height: 136px;
  padding: 23px 25px; border: 1px solid #e7deee; border-radius: 18px;
  background: #fff; color: #201528; box-shadow: 0 8px 30px #351b4610;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pathway-link:hover { transform: translateY(-3px); border-color: #c9a6e8; box-shadow: 0 16px 32px #351b461a; }
.pathway-primary { background: #251334; color: #fff; border-color: #53316a; }
.pathway-primary:hover { border-color: #a95be5; }
.pathway-index { font-size: 10px; letter-spacing: .13em; font-weight: 900; color: #a045d8; margin-bottom: 13px; }
.pathway-primary .pathway-index { color: #d49afb; }
.pathway-link strong { font: 650 clamp(20px, 2vw, 25px)/1.15 var(--font-display); letter-spacing: -.65px; }
.pathway-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; color: #766a80; }
.pathway-primary .pathway-note { color: #cfc0db; }
.pathway-note span { color: #a338e4; font-size: 18px; line-height: 1; }
.pathway-primary .pathway-note span { color: #d5a1fa; }

/* Less friction on real data and account screens. */
.resources-page .resource-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) {
  .resources-page .resource-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px #24102d18; border-color: #d6b6ed; }
}
.resource-filter { box-shadow: 0 18px 50px #2e183009; }
.resource-field input, .resource-field select { min-height: 48px; }
.resource-quick-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 17px 0 31px; }
.resource-quick-filters > span { margin-right: 8px; color: #95879c; letter-spacing: .14em; font-size: 10px; font-weight: 900; }
.quick-subject { border: 1px solid #e3d6e9; background: #fff; padding: 10px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #5a426b; cursor: pointer; transition: .18s ease; }
.quick-subject:hover { border-color: #b787d4; background: #f9f1ff; }
.quick-subject[aria-pressed="true"] { color: #fff; background: #7528a5; border-color: #7528a5; }
.resource-results-bar { scroll-margin-top: 104px; }
.resource-card-links a { min-height: 43px; }

.portal-page .portal-panel { box-shadow: 0 15px 55px rgba(0, 0, 0, .08); }
.portal-page .portal-panel input:not([type="checkbox"]),
.portal-page .portal-panel select,
.portal-page .portal-panel textarea { min-height: 46px; transition: border-color .18s ease, box-shadow .18s ease; }
.portal-page .portal-panel input:not([type="checkbox"]):focus,
.portal-page .portal-panel select:focus,
.portal-page .portal-panel textarea:focus { border-color: #c48afa; box-shadow: 0 0 0 3px rgba(180, 110, 235, .11); }
.portal-page .portal-signin-panel { border-color: rgba(199, 152, 249, .36); background: #1b1728; }
.portal-page .portal-upgrade-panel { background: #13131e; }
.portal-auth-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.portal-workspace-hero { padding: 66px 0 50px; }
.portal-workspace-hero h1 { font-size: clamp(43px, 5.2vw, 69px); }
.portal-workspace-page .portal-content { padding-top: 38px; }
#tutor-auth-panel { scroll-margin-top: 110px; }
.portal-page :where(.portal-link, .portal-login-inline, .portal-auth-help a):hover { text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Functional mobile navigation for the paper library, application and dashboard. */
.inner-menu-toggle .mobile-menu-lines { position: relative; display: block; width: 19px; height: 2px; border-radius: 3px; background: currentColor; }
.inner-menu-toggle .mobile-menu-lines::before,
.inner-menu-toggle .mobile-menu-lines::after { content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: currentColor; border-radius: 3px; }
.inner-menu-toggle .mobile-menu-lines::before { top: -6px; }
.inner-menu-toggle .mobile-menu-lines::after { top: 6px; }
.inner-menu-toggle .mobile-menu-close { display: none; font: 24px/1 var(--font-body); }
.inner-menu-toggle[aria-expanded="true"] .mobile-menu-lines { display: none; }
.inner-menu-toggle[aria-expanded="true"] .mobile-menu-close { display: block; }

@media (max-width: 1100px) {
  .site-links { gap: 16px; }
  .site-links a { font-size: 12px; }
}
@media (max-width: 950px) {
  .portal-auth-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .site-links, .portal-nav.site-links, .resource-nav.site-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: 12px max(22px, calc((100% - 650px) / 2)) 22px;
    background: #10101a; border-top: 1px solid #ffffff1a;
    box-shadow: 0 24px 40px #0007; flex-direction: column; align-items: stretch;
    gap: 0; z-index: 55;
  }
  .site-links.open, .portal-nav.site-links.open, .resource-nav.site-links.open { display: flex; }
  .site-links a { padding: 13px 8px; font-size: 15px; border-bottom: 1px solid #ffffff13; }
  .site-links a:last-child { border-bottom: none; }
  .inner-menu-toggle { display: flex; flex: 0 0 auto; }
  .site-header .nav-wrap { position: relative; }
  .site-header .site-links { left: -24px; right: -24px; }
}
@media (max-width: 820px) {
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway-link { min-height: 104px; padding: 18px 23px; }
  .pathway-index { margin-bottom: 8px; }
  .main-nav a { font-size: 15px; }
}
@media (max-width: 560px) {
  .pathway-section { padding-block: 12px; }
  .pathway-grid { gap: 8px; }
  .pathway-link { min-height: 94px; border-radius: 14px; }
  .pathway-link strong { font-size: 20px; }
  .pathway-note { font-size: 11px; margin-top: 6px; }
  .resource-quick-filters { gap: 7px; margin: 15px 0 24px; }
  .resource-quick-filters > span { width: 100%; }
  .quick-subject { padding: 9px 12px; font-size: 11px; }
  .portal-workspace-hero { padding: 46px 0 32px; }
  .portal-workspace-hero h1 { font-size: clamp(39px, 11vw, 56px); }
  .site-header .site-links { left: -17px; right: -17px; }
}
@media (max-width: 380px) {
  .inner-menu-toggle { margin-left: auto; }
  .resources-page .nav-cta, .portal-page .nav-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pathway-link, .resources-page .resource-card, .quick-subject { transition: none; }
  .pathway-link:hover, .resources-page .resource-card:hover { transform: none; }
}
