/*
 * JEDI Premium System V1
 * Shared visual refinement layer. Loaded after each page's own stylesheets.
 * Brand orange sampled from the official JEDI logo: #C06A48 / #B34A2C.
 * Scope: existing JEDI pages only; no layout or content restructuring.
 */

:root,
[data-theme="jedi"] {
  --jedi-orange: #B34A2C;
  --jedi-orange-logo: #C06A48;
  --jedi-orange-hover: #963D25;
  --jedi-orange-light: #D99170;
  --jedi-orange-soft: #F8EEE9;
  --jedi-orange-line: rgba(192, 106, 72, .28);
  --jedi-red: #B34A2C;
  --jedi-accent: #B34A2C;
  --jedi-accent-content: #FFFFFF;
  --color-accent: #B34A2C;
  --color-accent-content: #FFFFFF;
  --jedi-card-shadow:
    0 1px 2px rgba(16, 42, 71, .025),
    0 9px 24px rgba(16, 42, 71, .055),
    0 20px 42px rgba(16, 42, 71, .025),
    inset 0 1px 0 rgba(255, 255, 255, .94);
  --jedi-card-shadow-hover:
    0 3px 8px rgba(16, 42, 71, .035),
    0 17px 36px rgba(16, 42, 71, .09),
    0 29px 54px rgba(16, 42, 71, .04),
    inset 0 1px 0 rgba(255, 255, 255, .96);
  --jedi-motion-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
:focus-visible {
  outline-color: var(--jedi-orange) !important;
  outline-offset: 3px;
}
::selection { color: #fff; background: var(--jedi-orange); }

/* ---------------------------------------------------------------------
   Orange brand accents — text on light surfaces uses the darker logo tone;
   accents on navy surfaces use the lighter orange for readable contrast.
   --------------------------------------------------------------------- */

/* Homepage */
.home-v3-eyebrow span,
.home-v3-section-kicker,
.home-v3-trust-number,
.home-v3-card-link b,
.home-v3-note-mark,
.home-v3-text-link span,
.home-v3-text-link:hover,
.home-v3-consideration-grid article > span,
.home-v3-guidance-list > div > span,
.home-v3-why-grid article > span {
  color: var(--jedi-orange) !important;
}
.home-v3-eyebrow span { background: var(--jedi-orange-logo) !important; }
.home-v3-hero h1 em,
.home-v3-caption-kicker,
.home-v3-art-kicker,
.home-v3-guidance-photo figcaption span:first-child,
.home-v3-why .home-v3-section-kicker,
.home-v3-why-grid article > span,
.home-v3-hero-note .home-v3-note-mark {
  color: var(--jedi-orange-light) !important;
}
.home-v3-note-mark { border-color: rgba(217, 145, 112, .52) !important; }
.home-v3-button-primary {
  background: var(--jedi-orange) !important;
  box-shadow: 0 10px 25px rgba(179, 74, 44, .22) !important;
}
.home-v3-button-primary:hover { background: var(--jedi-orange-hover) !important; }
.home-v3-program-card { box-shadow: var(--jedi-card-shadow) !important; }
.home-v3-program-card:hover { box-shadow: var(--jedi-card-shadow-hover) !important; }
.home-v3-card-link b { transition: transform .24s var(--jedi-motion-ease); }
.home-v3-program-card:hover .home-v3-card-link b { transform: translate(3px, -2px); }
.hero-sun { background: var(--jedi-orange) !important; box-shadow: 0 0 90px rgba(179,74,44,.22) !important; }
.home-v3-program-body h3 {
  font-size: 18px !important;
  line-height: 1.32 !important;
  font-weight: 780 !important;
  letter-spacing: -.035em !important;
}
.home-v3-program-body p {
  margin-top: 12px !important;
  color: #6C7C8E !important;
  font-size: 12px !important;
  line-height: 1.82 !important;
}
.home-v3-consideration-grid article {
  border: 1px solid #E2E8EE;
  border-radius: 14px;
  background: linear-gradient(150deg, #fff 0%, #fff 72%, #FBFCFD 100%);
  box-shadow: var(--jedi-card-shadow);
  transition: transform .28s var(--jedi-motion-ease), box-shadow .28s var(--jedi-motion-ease), border-color .28s ease;
}
.home-v3-why-grid article {
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .10), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .28s var(--jedi-motion-ease), box-shadow .28s var(--jedi-motion-ease), border-color .28s ease;
}
.home-v3-consideration-grid article h3,
.home-v3-why-grid article h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 770;
  letter-spacing: -.025em;
}
.home-v3-consideration-grid article p,
.home-v3-why-grid article p {
  font-size: 12px;
  line-height: 1.82;
}
.home-v3-section-kicker[style*="#D9A5A9"],
.home-v3-why .home-v3-section-kicker {
  color: var(--jedi-orange-light) !important;
}

/* About JEDI */
.about-v1 { --jedi-red: var(--jedi-orange); }
.about-v1-hero h1 em,
.about-v1-kicker-light,
.about-v1-vision-label,
.about-v1-caption-mark {
  color: var(--jedi-orange-light) !important;
}
.about-v1-kicker::before,
.about-v1-section-kicker::before,
.about-v1-kicker-light::before,
.about-v1-vision-rule,
.about-v1-mini-line {
  background: var(--jedi-orange-logo) !important;
}
.about-v1-button-primary,
.about-v1-caption-mark { background: var(--jedi-orange) !important; }
.about-v1-button-primary { box-shadow: 0 10px 24px rgba(179, 74, 44, .22) !important; }
.about-v1-button-primary:hover { background: var(--jedi-orange-hover) !important; box-shadow: 0 14px 30px rgba(179, 74, 44, .27) !important; }
.about-v1-story-note { border-left-color: var(--jedi-orange) !important; }
.about-v1-story-note span,
.about-v1-kicker,
.about-v1-section-kicker { color: var(--jedi-orange) !important; }
.about-v1-hero h1 em { color: var(--jedi-orange-light) !important; }
.about-v1-step,
.about-v1-values-grid article {
  border-radius: 14px !important;
  box-shadow: var(--jedi-card-shadow) !important;
  transition: transform .28s var(--jedi-motion-ease), box-shadow .28s var(--jedi-motion-ease), border-color .28s ease !important;
}
.about-v1-step:hover,
.about-v1-values-grid article:hover { box-shadow: var(--jedi-card-shadow-hover) !important; }
.about-v1-step h3,
.about-v1-values-grid h3 { font-size: 15px !important; font-weight: 780 !important; line-height: 1.38 !important; }
.about-v1-step p,
.about-v1-values-grid p { color: #6E7F91 !important; font-size: 11px !important; line-height: 1.82 !important; }
.about-v1-step { border-top-color: var(--jedi-orange) !important; }

/* Vocational education */
.vocational-v1-hero h1 em,
.vocational-v1-kicker,
.vocational-v1-kicker-light,
.vocational-v1-visual-label strong,
.vocational-v1-image-caption span { color: var(--jedi-orange-light) !important; }
.vocational-v1-section-kicker,
.vocational-v1-intro h2 em,
.vocational-v1-section-heading h2 em,
.vocational-v1-gallery-card figcaption span { color: var(--jedi-orange) !important; }
.vocational-v1-kicker > span,
.vocational-v1-proof-dot { background: var(--jedi-orange-logo) !important; }
.vocational-v1-proof-dot { box-shadow: 0 0 0 5px rgba(192,106,72,.16) !important; }
.vocational-v1-button-primary { background: var(--jedi-orange) !important; box-shadow: 0 10px 25px rgba(179,74,44,.20) !important; }
.vocational-v1-button-primary:hover { background: var(--jedi-orange-hover) !important; box-shadow: 0 14px 30px rgba(179,74,44,.27) !important; }
.vocational-v1-image-caption { border-left-color: var(--jedi-orange) !important; }
.vocational-v1-text-link:hover { color: var(--jedi-orange) !important; }
.vocational-v1-focus-icon { color: var(--jedi-orange) !important; background: var(--jedi-orange-soft) !important; border: 1px solid rgba(192,106,72,.13); }
.vocational-v1-focus-card,
.vocational-v1-institution-card,
.vocational-v1-gallery-card {
  border-radius: 15px !important;
  box-shadow: var(--jedi-card-shadow) !important;
  transition: transform .28s var(--jedi-motion-ease), box-shadow .28s var(--jedi-motion-ease), border-color .28s ease !important;
}
.vocational-v1-focus-card:hover,
.vocational-v1-institution-card:hover,
.vocational-v1-gallery-card:hover { box-shadow: var(--jedi-card-shadow-hover) !important; }
.vocational-v1-focus-card h3,
.vocational-v1-institution-card h3,
.vocational-v1-gallery-card figcaption strong { font-weight: 780 !important; }
.vocational-v1-focus-card p,
.vocational-v1-institution-card p { color: #6D7D8F !important; font-size: 12px !important; line-height: 1.82 !important; }

/* Institution directory */
.institution-v1 {
  --ins-red: var(--jedi-orange);
  --ins-pink: var(--jedi-orange-light);
}
.institution-v1-kicker,
.institution-v1-section-kicker,
.institution-v1-directory-head h2 em,
.institution-v1-card-location span,
.institution-v1-text-link:hover,
.institution-v1-official-link:hover { color: var(--jedi-orange) !important; }
.institution-v1-kicker { color: var(--jedi-orange-light) !important; }
.institution-v1-kicker span { background: var(--jedi-orange-light) !important; }
.institution-v1-visual-bottom strong { color: var(--jedi-orange-light) !important; }
.institution-v1-button-primary { background: var(--jedi-orange) !important; box-shadow: 0 10px 26px rgba(179,74,44,.20) !important; }
.institution-v1-button-primary:hover { background: var(--jedi-orange-hover) !important; box-shadow: 0 14px 32px rgba(179,74,44,.26) !important; }
.institution-v1-card {
  border-radius: 15px !important;
  box-shadow: var(--jedi-card-shadow) !important;
  transition: transform .28s var(--jedi-motion-ease), box-shadow .28s var(--jedi-motion-ease), border-color .28s ease !important;
}
.institution-v1-card:hover { transform: translateY(-4px) !important; box-shadow: var(--jedi-card-shadow-hover) !important; border-color: #D8C2B8 !important; }
.institution-v1-card h3 { font-size: 18px !important; font-weight: 780 !important; line-height: 1.32 !important; }
.institution-v1-card-summary { color: #6D7D90 !important; font-size: 12px !important; line-height: 1.8 !important; }
.institution-v1-card-note { border-left-color: rgba(192,106,72,.65) !important; color: #805744 !important; background: #FCF6F2; }
.institution-v1-category-nav a:hover { color: var(--jedi-orange) !important; }

/* Seven institutional profiles */
.school-profile-v1 {
  --sp-red: var(--jedi-orange);
  --sp-pink: var(--jedi-orange-light);
}
.school-profile-kicker,
.school-profile-section-kicker,
.school-profile-overview-heading h2 em,
.school-profile-section-content h2 em,
.school-profile-admission h2 em,
.school-profile-sources h2 em,
.school-profile-text-link span,
.school-profile-source-item:hover,
.school-profile-source-item b { color: var(--jedi-orange) !important; }
.school-profile-kicker-light,
.school-profile-brand-panel-bottom strong { color: var(--jedi-orange-light) !important; }
.school-profile-button-primary,
.school-profile-notice-mark { background: var(--jedi-orange) !important; }
.school-profile-button-primary { box-shadow: 0 10px 25px rgba(179,74,44,.20) !important; }
.school-profile-button-primary:hover { background: var(--jedi-orange-hover) !important; }
.school-profile-section-index { color: #C77A5B !important; }
.school-profile-special-notice { border-color: rgba(192,106,72,.22) !important; background: #FCF6F2 !important; }
.school-profile-admission,
.school-profile-fact {
  border-radius: 13px !important;
  box-shadow: var(--jedi-card-shadow) !important;
  transition: transform .28s var(--jedi-motion-ease), box-shadow .28s var(--jedi-motion-ease), border-color .28s ease !important;
}
.school-profile-admission:hover,
.school-profile-fact:hover { transform: translateY(-3px); box-shadow: var(--jedi-card-shadow-hover) !important; border-color: #D8C2B8 !important; }
.school-profile-admission { box-shadow: 0 12px 30px rgba(16,42,71,.055), inset 0 1px 0 #fff !important; }
.school-profile-fact strong { font-size: 14px !important; font-weight: 760 !important; line-height: 1.45 !important; }
.school-profile-body-copy { color: #68798C !important; font-size: 13px !important; line-height: 1.9 !important; }
.school-profile-bullet-list li { font-size: 12px !important; line-height: 1.8 !important; }
.school-profile-disclaimer p { border-left-color: var(--jedi-orange-logo) !important; }

/* Student assistance */
.sa-v1-section-kicker,
.sa-v1-service-index,
.sa-v1-text-link,
.sa-v1-image-note span { color: var(--jedi-orange) !important; }
.sa-v1-kicker-light,
.sa-v1-hero .sa-v1-kicker,
.sa-v1-hero h1 em,
.sa-v1-intro h2 em,
.sa-v1-section-heading h2 em,
.sa-v1-fit h2 em,
.sa-v1-final h2 em,
.sa-v1-service-card-featured .sa-v1-service-index { color: var(--jedi-orange-light) !important; }
.sa-v1-kicker > span { background: var(--jedi-orange-logo) !important; }
.sa-v1-breadcrumb a:hover { color: var(--jedi-orange-light) !important; }
.sa-v1-proof-dot { background: var(--jedi-orange-logo) !important; box-shadow: 0 0 0 5px rgba(192,106,72,.15) !important; }
.sa-v1-button-primary,
.sa-v1-caption-mark { background: var(--jedi-orange) !important; }
.sa-v1-button-primary:hover { background: var(--jedi-orange-hover) !important; }
.sa-v1-intro-note { border-left-color: var(--jedi-orange) !important; }
.sa-v1-service-card {
  border-radius: 15px !important;
  box-shadow: var(--jedi-card-shadow) !important;
  transition: transform .28s var(--jedi-motion-ease), box-shadow .28s var(--jedi-motion-ease), border-color .28s ease !important;
}
.sa-v1-service-card:hover { box-shadow: var(--jedi-card-shadow-hover) !important; }
.sa-v1-service-card h3 { font-size: 18px !important; font-weight: 780 !important; line-height: 1.34 !important; }
.sa-v1-service-card p { color: #6B7C8F !important; font-size: 12px !important; line-height: 1.82 !important; }
.sa-v1-service-card-featured p { color: #C7D4E0 !important; }
.sa-v1-service-icon { background: linear-gradient(145deg, #F8F3EF, #F5EAE3) !important; color: var(--jedi-orange) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 5px 13px rgba(179,74,44,.07) !important; }
.sa-v1-service-card-featured .sa-v1-service-icon { background: rgba(255,255,255,.11) !important; color: #fff !important; }
.sa-v1-journey-grid article > span { color: var(--jedi-orange-light) !important; }
.sa-v1-journey .sa-v1-section-heading h2 em { color: var(--jedi-orange-light) !important; }
.sa-v1-events-panel { box-shadow: 0 20px 44px rgba(16,42,71,.16), inset 0 1px 0 rgba(255,255,255,.06); }

/* Japanese language school keeps its accepted V1.0.4 card treatment;
   this layer only brings its accent palette into the JEDI orange system. */
.language-v1 {
  --language-red: var(--jedi-orange);
  --language-pink: var(--jedi-orange-light);
}
.language-v1-kicker,
.language-v1-section-kicker,
.language-v1-intro-copy h2 em,
.language-v1-section-heading h2 em,
.language-v1-life-copy h2 em,
.language-v1-text-link span,
.language-v1-official-link span { color: var(--jedi-orange) !important; }
.language-v1-hero h1 em,
.language-v1-kicker-light,
.language-v1-check-copy .language-v1-section-kicker,
.language-v1-support-heading .language-v1-section-kicker,
.language-v1-check-copy h2 em { color: var(--jedi-orange-light) !important; }
.language-v1-kicker > span { background: var(--jedi-orange-logo) !important; }
.language-v1-proof-dot { background: var(--jedi-orange-logo) !important; box-shadow: 0 0 0 5px rgba(192,106,72,.15) !important; }
.language-v1-steps article > span,
.language-v1-faq-list summary span { color: var(--jedi-orange) !important; }
.language-v1-breadcrumb a:hover { color: var(--jedi-orange-light) !important; }
.language-v1-button-primary { background: var(--jedi-orange) !important; box-shadow: 0 10px 24px rgba(179,74,44,.20) !important; }
.language-v1-button-primary:hover { background: var(--jedi-orange-hover) !important; }
.language-v1-caption-mark { background: var(--jedi-orange) !important; }
.language-v1-intro-note { border-left-color: rgba(192,106,72,.65) !important; }
.language-v1-image-note span { color: var(--jedi-orange-light) !important; }
.language-v1-school-place { color: var(--jedi-orange) !important; }
.language-v1-checklist .language-v1-section-kicker { color: var(--jedi-orange-light) !important; }

/* Contact, Events, Courses and shared legacy page components */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(192,106,72,.14), transparent 28%),
    linear-gradient(135deg, #091A2D 0%, #102A47 58%, #173653 100%) !important;
}
.page-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .24;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 58px 58px;
}
.page-hero .site-shell { position: relative; z-index: 1; }
.page-hero .hero-eyebrow { color: #D9E2EA !important; }
.page-hero h1 em { color: var(--jedi-orange-light) !important; font-style: normal; }
.page-hero .hero-eyebrow::before { background: var(--jedi-orange-logo) !important; }
.hero-eyebrow::before { background: var(--jedi-orange) !important; }
.hero-title em { color: var(--jedi-orange-light) !important; }
.section-eyebrow { color: var(--jedi-orange) !important; }
.btn-jedi-primary { background: var(--jedi-orange) !important; box-shadow: 0 10px 24px rgba(179,74,44,.18); }
.btn-jedi-primary:hover { background: var(--jedi-orange-hover) !important; box-shadow: 0 13px 28px rgba(179,74,44,.24); }
.detail-note { border-left-color: var(--jedi-orange) !important; border-radius: 0 12px 12px 0; box-shadow: var(--jedi-card-shadow); }
.contact-form {
  border-radius: 16px !important;
  box-shadow: var(--jedi-card-shadow) !important;
  transition: box-shadow .28s var(--jedi-motion-ease), border-color .28s ease !important;
}
.contact-form:hover { box-shadow: var(--jedi-card-shadow-hover) !important; border-color: #D8C2B8 !important; }
.contact-field input,
.contact-field select,
.contact-field textarea { border-radius: 9px !important; transition: border-color .2s ease, box-shadow .2s ease !important; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus { box-shadow: 0 0 0 4px rgba(192,106,72,.10) !important; }
.contact-field label { font-size: 12px !important; font-weight: 760 !important; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 3px solid rgba(192,106,72,.14) !important;
  border-color: var(--jedi-orange-logo) !important;
}
.institution-card,
.program-card,
.assistance-step,
.consideration-card,
.value-item,
.featured-card {
  box-shadow: var(--jedi-card-shadow);
  transition: transform .28s var(--jedi-motion-ease), box-shadow .28s var(--jedi-motion-ease), border-color .28s ease;
}
.institution-card,
.program-card,
.consideration-card { border: 1px solid #E4EAF0 !important; border-radius: 14px !important; background: linear-gradient(155deg, #FFFFFF 0%, #FFFFFF 72%, #FBFCFD 100%) !important; }
.institution-card:hover,
.program-card:hover,
.consideration-card:hover,
.assistance-step:hover,
.value-item:hover,
.featured-card:hover { transform: translateY(-3px); box-shadow: var(--jedi-card-shadow-hover) !important; border-color: #D8C2B8 !important; }
.program-card h3,
.consideration-card h3,
.assistance-step h3 { font-size: 16px !important; font-weight: 780 !important; line-height: 1.35 !important; }
.program-card p,
.consideration-card p,
.assistance-step p { font-size: 12px !important; line-height: 1.82 !important; }
.assistance-step { border-radius: 0 0 12px 12px; border-top-color: var(--jedi-orange) !important; }
.value-item { border: 1px solid #E7EBEF; border-radius: 12px !important; }

/* Shared navbar / footer feedback */
.nav-dropdown-item:hover,
.mobile-program-link:hover { background: #FBF4F0 !important; }
.nav-dropdown-item:hover .nav-item-title,
.mobile-program-link:hover { color: var(--jedi-orange) !important; }
.footer-links a { transition: color .2s ease, transform .2s ease; }
.footer-links a:hover { color: var(--jedi-orange-light) !important; transform: translateX(2px); }
.nav-cta { background: var(--jedi-orange) !important; box-shadow: 0 8px 22px rgba(179,74,44,.18); }
.nav-cta:hover { background: var(--jedi-orange-hover) !important; box-shadow: 0 12px 27px rgba(179,74,44,.24); }
.jedi-language-picker__option.is-active { color: var(--jedi-orange) !important; }
.jedi-language-picker__check { color: var(--jedi-orange) !important; }

/* Card interaction is restrained, consistent and disabled for reduced motion. */
@media (hover: hover) and (pointer: fine) {
  .home-v3-consideration-grid article:hover,
  .home-v3-why-grid article:hover,
  .institution-card:hover,
  .program-card:hover,
  .consideration-card:hover,
  .value-item:hover,
  .contact-form:hover {
    transform: translateY(-3px);
    box-shadow: var(--jedi-card-shadow-hover);
    border-color: #D8C2B8;
  }
}

@media (max-width: 700px) {
  .home-v3-program-card { border-radius: 14px !important; }
  .home-v3-program-body { padding: 21px 19px 20px !important; }
  .home-v3-program-body h3 { font-size: 17px !important; }
  .home-v3-program-body p { font-size: 12px !important; }
  .institution-v1-card,
  .school-profile-fact,
  .sa-v1-service-card,
  .vocational-v1-focus-card { box-shadow: 0 1px 2px rgba(16,42,71,.025), 0 8px 20px rgba(16,42,71,.05) !important; }
}

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