/* ARES Student Portal. Colors match the site's 2026-09-27 contrast pass. The theme greys
   every p and a (#a3a3a3), so text colors here are set with !important. */
.ap {
  --ap-navy-900: #002f4f; --ap-navy: #1d506d; --ap-blue: #0369a1; --ap-gold: #f7c500;
  --ap-ink: #1f2933; --ap-muted: #3d4b58; --ap-line: #d3dce6; --ap-tint: #edf2f7; --ap-hover: #f4f7fa;
  --ap-radius: 12px;
  background: var(--ap-tint); color: var(--ap-ink); font-family: Montserrat, Arial, sans-serif; font-size: 16px; line-height: 1.55; padding-bottom: 72px;
}
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
.ap p { color: inherit !important; }
.ap a { color: var(--ap-blue) !important; }
.ap .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .ap-wrap { padding: 0 24px; } }
.ap-icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* Type */
.ap .ap-h1 { margin: 0; padding: 0; background: none; color: #fff !important; font-family: inherit !important; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-align: left; text-transform: none; }
.ap .ap-h1::after, .ap .ap-h2::after { content: none !important; }
.ap .ap-h2 { margin: 0 0 12px; padding: 0; background: none; color: var(--ap-navy-900) !important; font-family: inherit !important; font-size: 18px; font-weight: 800; line-height: 1.3; text-align: left; text-transform: none; }
.ap .ap-muted { color: var(--ap-muted) !important; }
@media (min-width: 768px) { .ap .ap-h1 { font-size: 36px; } }

/* Header band */
.ap-hero { background: var(--ap-navy-900); color: #fff; padding: 32px 0; }
@media (min-width: 768px) { .ap-hero { padding: 44px 0; } }
.ap-hero__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 960px) { .ap-hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; } }
.ap .ap-hero__sub { margin: 8px 0 0; color: #d6e3ec !important; font-size: 17px; }
.ap .ap-crumbs { display: flex; gap: 8px; margin-bottom: 8px; color: #d6e3ec; font-size: 14px; }
.ap .ap-crumbs a { color: #d6e3ec !important; text-decoration: underline; text-underline-offset: 3px; }
.ap .ap-crumbs a:hover { color: #fff !important; }
.ap .ap-hero__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.ap .ap-hero__links li { margin: 0; padding: 0; list-style: none; }
.ap .ap-hero__links li::before { content: none !important; }
.ap .ap-hero__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.ap .ap-hero__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ap-hero__links .ap-icon { width: 18px; height: 18px; color: var(--ap-gold); }

/* Your class (in the header) */
.ap-next { padding: 20px 22px; border-radius: var(--ap-radius); background: #fff; color: var(--ap-ink); }
.ap .ap-next__label { margin: 0; color: var(--ap-muted) !important; font-size: 13px; font-weight: 700; }
.ap .ap-next__name { margin: 2px 0 12px; color: var(--ap-navy-900) !important; font-size: 18px; font-weight: 800; line-height: 1.3; }
.ap-next__facts { display: grid; gap: 6px; margin: 0 0 14px; }
.ap-next__facts div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.ap-next__facts dt { color: var(--ap-muted); font-size: 14px; font-weight: 600; }
.ap-next__facts dd { margin: 0; color: var(--ap-ink); font-size: 15px; font-weight: 600; }
.ap .ap-next__link { font-size: 15px; font-weight: 700; }

/* Layout: side nav + main */
.ap-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.ap-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.ap .ap-nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 8px; color: var(--ap-ink) !important; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.ap-nav a .ap-icon { width: 18px; height: 18px; color: var(--ap-muted); }
.ap .ap-nav a:hover { background: var(--ap-hover); }
.ap .ap-nav a.is-active { background: var(--ap-navy-900); color: #fff !important; }
.ap-nav a.is-active .ap-icon { color: var(--ap-gold); }
.ap-nav__sep { height: 1px; margin: 6px 4px; background: var(--ap-line); }
.ap-main { min-width: 0; }
.ap-block { margin-bottom: 32px; }
.ap-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ap .ap-block__head a { font-size: 15px; font-weight: 700; }

/* Cards and buttons */
.ap-card { background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.ap-empty { padding: 28px; text-align: center; }
.ap .ap-empty p { margin: 0 0 14px; }
.ap-empty .ap-icon { width: 32px; height: 32px; margin-bottom: 8px; color: var(--ap-muted); }
.ap .ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--ap-navy-900); border-radius: 10px; background: var(--ap-navy-900); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none; }
.ap .ap-btn:hover { background: var(--ap-navy); }
.ap .ap-btn--ghost { background: #fff; border-color: var(--ap-line); color: var(--ap-navy-900) !important; }
.ap .ap-btn--ghost:hover { background: var(--ap-hover); border-color: var(--ap-navy); }

/* Study materials: rows, two columns on wide screens */
.ap .ap-rows { display: grid; margin: 0; padding: 6px; list-style: none; }
@media (min-width: 700px) { .ap .ap-rows--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; } }
.ap .ap-rows li { margin: 0; padding: 0; list-style: none; }
.ap .ap-rows li::before { content: none !important; }
.ap .ap-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px; border-radius: 8px; color: var(--ap-ink) !important; text-decoration: none; }
.ap .ap-row:hover { background: var(--ap-hover); }
.ap-row__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ap-tint); color: var(--ap-navy); }
.ap-row__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ap-row__title { color: var(--ap-navy-900); font-size: 16px; font-weight: 700; line-height: 1.3; }
.ap-row__meta { color: var(--ap-muted); font-size: 14px; }
.ap-row__go { color: var(--ap-muted); }
.ap-row__go .ap-icon { width: 18px; height: 18px; }

/* My classes */
.ap .ap-classes { margin: 0; padding: 0; list-style: none; }
.ap .ap-class { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 18px; border-top: 1px solid var(--ap-line); list-style: none; }
.ap .ap-class:first-child { border-top: 0; }
.ap .ap-class::before { content: none !important; }
.ap .ap-class p { margin: 0; }
.ap .ap-class__name { color: var(--ap-navy-900) !important; font-weight: 700; }
.ap .ap-class__name a { color: var(--ap-navy-900) !important; text-decoration: none; }
.ap .ap-class__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ap .ap-class__when { margin-top: 2px !important; color: var(--ap-muted) !important; font-size: 15px; }
.ap-chip { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--ap-tint); color: var(--ap-navy-900); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ap-chip--live { background: #e3f3e8; color: #14532d; }
.ap-chip--past { background: #f1f3f5; color: var(--ap-muted); }
.ap .ap-past { margin-top: 12px; }
.ap .ap-past > summary { display: inline-flex; min-height: 36px; align-items: center; margin-bottom: 8px; color: var(--ap-navy-900); font-size: 15px; font-weight: 700; cursor: pointer; }
@media (max-width: 599px) { .ap .ap-class { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* Section pages: item grid */
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ap .ap-item { display: flex; flex-direction: column; overflow: hidden; color: var(--ap-ink) !important; text-decoration: none; }
.ap .ap-item:hover { border-color: var(--ap-navy); }
.ap-item__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ap-tint); }
.ap-item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-item__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--ap-navy); }
.ap-item__placeholder .ap-icon { width: 36px; height: 36px; }
.ap-item__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.ap-item__title { color: var(--ap-navy-900); font-weight: 700; line-height: 1.35; }
.ap-item__excerpt { color: var(--ap-muted); font-size: 14px; }

/* Item page */
.ap-article { padding: 28px; }
.ap-content { overflow-wrap: anywhere; }
.ap-content > :first-child { margin-top: 0; }
.ap-content img { max-width: 100%; height: auto; border-radius: 10px; }
.ap-content iframe, .ap-content video, .ap-content embed, .ap-content object { display: block; width: 100% !important; max-width: 100%; border: 0; border-radius: 10px; }
.ap-content iframe[src*="vimeo"], .ap-content iframe[src*="youtube"], .ap-content video { aspect-ratio: 16 / 9; height: auto !important; }
/* Vimeo showcase (a lecture collection with its own list) needs more height than 16:9. */
.ap-content iframe[src*="vimeo.com/showcase"]:not([style*="absolute"]) { aspect-ratio: auto; min-height: 480px; }
.ap-content iframe[style*="absolute"] { height: 100% !important; aspect-ratio: auto; }
.ap .ap-content a[href$=".pdf"], .ap .ap-content a[href*=".pdf?"] { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0; padding: 10px 16px; border: 1px solid var(--ap-line); border-radius: 10px; background: var(--ap-tint); color: var(--ap-navy-900) !important; font-weight: 700; text-decoration: none; }
.ap-content .vc_row, .ap-content .wpb_column { margin-left: 0 !important; margin-right: 0 !important; }
.ap-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.ap .ap-pager a { display: flex; align-items: center; gap: 12px; max-width: 48%; padding: 14px 18px; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); background: #fff; color: var(--ap-navy-900) !important; font-weight: 700; line-height: 1.35; text-decoration: none; }
.ap .ap-pager a:hover { border-color: var(--ap-navy); }
.ap-pager small { display: block; color: var(--ap-muted); font-size: 13px; font-weight: 600; }
.ap-pager__next { margin-left: auto; text-align: right; }

/* FAQ: one card, divided rows */
.ap-faq-intro { padding: 24px; margin-bottom: 16px; }
.ap-faq { overflow: hidden; }
.ap-faq__item + .ap-faq__item { border-top: 1px solid var(--ap-line); }
.ap-faq__item summary { position: relative; padding: 18px 52px 18px 20px; color: var(--ap-navy-900); font-weight: 700; list-style: none; cursor: pointer; }
.ap-faq__item summary::-webkit-details-marker { display: none; }
.ap-faq__item summary::after { content: ""; position: absolute; top: 50%; right: 22px; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ap-navy); border-bottom: 2px solid var(--ap-navy); transform: rotate(45deg); transition: transform .15s ease; }
.ap-faq__item[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.ap-faq__item summary:hover { background: var(--ap-hover); }
.ap-faq__answer { padding: 0 20px 18px; }
.ap .ap-faq__answer p { margin: 0 0 10px; }
.ap .ap-help { margin: 16px 0 0; color: var(--ap-muted) !important; }

/* Account + orders */
.ap-profile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.ap-profile dl { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.ap-profile dt { color: var(--ap-muted); font-size: 14px; font-weight: 600; }
.ap-profile dd { margin: 2px 0 0; font-weight: 700; }
.ap-profile__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-profile__actions .ap-icon { width: 16px; height: 16px; }
.ap-orders { overflow: hidden; }
.ap-orders table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
.ap-orders th { padding: 12px 16px; border: 0; background: var(--ap-hover); color: var(--ap-muted); font-size: 13px; font-weight: 700; text-align: left; }
.ap-orders td { padding: 14px 16px; border: 0; border-top: 1px solid var(--ap-line); color: var(--ap-ink); }
.ap .ap-orders td a { font-weight: 700; }
.ap-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ap-tint); font-size: 13px; font-weight: 700; }
.ap-status--completed, .ap-status--processing { background: #e3f3e8; color: #14532d; }
.ap-status--cancelled, .ap-status--failed, .ap-status--refunded { background: #fdecec; color: #8a1c1c; }
.ap-status--pending, .ap-status--on-hold { background: #fff4d6; color: #6b4a00; }

/* Login */
.ap-login { display: flex; justify-content: center; padding: 56px 16px 24px; }
.ap-login__card { width: 100%; max-width: 440px; padding: 32px 30px; }
.ap .ap-login .ap-h1 { margin-bottom: 6px; color: var(--ap-navy-900) !important; font-size: 28px; }
.ap .ap-login form p { margin: 0 0 14px; }
.ap .ap-login label { display: block; margin-bottom: 6px; color: var(--ap-ink); font-size: 14px; font-weight: 600; }
.ap-login input[type="text"], .ap-login input[type="password"] { width: 100%; min-height: 48px; padding: 12px 14px !important; border: 1px solid #b9c5d1 !important; border-radius: 10px !important; background: #fff !important; font-size: 16px; }
.ap-login input[type="text"]:focus, .ap-login input[type="password"]:focus { border-color: var(--ap-blue) !important; outline: 3px solid rgba(3, 105, 161, .2); outline-offset: 0; }
.ap .ap-login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ap-login input[type="submit"] { width: 100%; min-height: 48px; padding: 12px 20px; border: 0 !important; border-radius: 10px !important; background: var(--ap-navy-900) !important; color: #fff !important; font-size: 16px; font-weight: 700; cursor: pointer; }
.ap-login input[type="submit"]:hover { background: var(--ap-navy) !important; }
.ap .ap-login__links { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 0; font-size: 15px; }
.ap .ap-login__online { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--ap-line); color: var(--ap-muted) !important; font-size: 15px; text-align: center; }

/* Section switcher (phones/tablets): replaces the sidebar nav below 1024px */
.ap-switch { display: none; }
@media (max-width: 1023px) {
  .ap-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
  .ap-nav { display: none; }
  .ap-switch { display: block; position: relative; z-index: 5; }
  .ap-switch__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 10px 16px; background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); box-shadow: 0 1px 2px rgba(16,24,40,.05); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
  .ap-switch__btn::-webkit-details-marker { display: none; }
  .ap-switch__btn::marker { content: ''; }
  .ap-switch__btn:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 2px; }
  .ap-switch__now { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .ap-switch__now > .ap-icon { flex: none; width: 22px; height: 22px; color: var(--ap-navy); }
  .ap-switch__now > span { display: flex; flex-direction: column; min-width: 0; }
  .ap-switch__label { color: var(--ap-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
  .ap-switch__name { overflow: hidden; color: var(--ap-navy-900); font-size: 16px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  .ap-switch__chev { flex: none; width: 22px; height: 22px; color: var(--ap-navy); transition: transform .15s ease; }
  .ap-switch[open] .ap-switch__chev { transform: rotate(180deg); }
  .ap-switch[open] .ap-switch__btn { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .ap-switch__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 6px; background: #fff; border: 1px solid var(--ap-line); border-top: 0; border-radius: 0 0 var(--ap-radius) var(--ap-radius); box-shadow: 0 10px 24px rgba(16,24,40,.12); }
  .ap .ap-switch__list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 8px; color: var(--ap-ink) !important; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
  .ap-switch__list a .ap-icon { flex: none; width: 20px; height: 20px; color: var(--ap-muted); }
  .ap .ap-switch__list a:hover { background: var(--ap-hover); }
  .ap .ap-switch__list a.is-active { background: var(--ap-navy-900); color: #fff !important; }
  .ap-switch__list a.is-active .ap-icon { color: var(--ap-gold); }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .ap-switch__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones: a shorter header so the content starts higher */
@media (max-width: 599px) {
  .ap-hero { padding: 22px 0 20px; }
  .ap .ap-h1 { font-size: 26px; }
  .ap .ap-hero__sub { margin-top: 4px; font-size: 15px; }
  .ap .ap-hero__links { gap: 8px; margin-top: 14px; }
  .ap .ap-hero__links a { min-height: 34px; padding: 4px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 13px; }
  .ap-hero__links .ap-icon { width: 15px; height: 15px; }
}
@media (max-width: 767px) {
  .ap-article { padding: 16px; }
  .ap-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-content iframe[src*="vimeo.com/showcase"]:not([style*="absolute"]) { min-height: 420px; }
  .ap-content div[style*="padding"]:has(> iframe[src*="vimeo.com/showcase"]) { padding-top: 0 !important; height: 440px; }
  .ap-pager { flex-direction: column; }
  .ap .ap-pager a { max-width: none; }
  .ap-orders thead { display: none; }
  .ap-orders tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-top: 1px solid var(--ap-line); }
  .ap-orders tr:first-child { border-top: 0; }
  .ap-orders td { padding: 0; border: 0; }
  .ap-orders td[data-label="Date"], .ap-orders td[data-label="Total"] { color: var(--ap-muted); font-size: 14px; }
  .ap-login__card { padding: 26px 20px; }
}
