/* EverLeaf UI/UX refinement layer — readable, responsive and consistent. */
:root {
  --ui-surface: #fffdf4;
  --ui-surface-soft: #f3f5e8;
  --ui-text: #294f4c;
  --ui-muted: #627773;
  --ui-leaf: #3f8b48;
  --ui-leaf-dark: #2f6f3c;
  --ui-focus: #1677d2;
  --ui-radius: 14px;
  --ui-shadow: 0 12px 30px rgba(35, 76, 61, .10), 0 2px 5px rgba(35, 76, 61, .07);
}

html { scroll-padding-top: 96px; }
body { color: var(--ui-text); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
a, button, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ui-focus) !important;
  outline-offset: 3px;
}
.skipLink {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 11px 15px;
  border-radius: 8px;
  background: #fff;
  color: #153f39;
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform .18s ease;
  box-shadow: var(--ui-shadow);
}
.skipLink:focus { transform: translateY(0); }
.siteContent:focus { outline: none; }
.wrap { width: min(1240px, calc(100% - 48px)); }

/* Clearer global navigation */
.worldRibbon { font-size: 12px !important; }
.worldRibbon .wrap { min-height: 34px; }
.worldRibbon nav { gap: 22px; }
.worldRibbon a { padding-block: 5px; font-weight: 700; }
.nav { position: sticky !important; top: 0; z-index: 200; backdrop-filter: blur(14px); }
.navin { min-height: 84px !important; grid-template-columns: 245px minmax(0, 1fr) auto; gap: 22px; }
.brandImage img { width: 220px; }
.desktopLinks { height: 84px; gap: 4px; }
.desktopLinks > a:not(.btn) {
  min-height: 46px;
  margin-block: auto;
  padding: 0 14px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  font-size: 12px;
  letter-spacing: .035em;
}
.desktopLinks > a:not(.btn):hover { transform: translateY(-1px); }
.desktopLinks > a.active:not(.btn) { border-color: #c5d3b6 !important; box-shadow: inset 0 -3px 0 #62a254 !important; }
.navActions { gap: 10px; }
.btn, button.btn {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .025em;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.siteBanner .wrap { min-height: 42px; font-size: 13px; }

/* Homepage hierarchy */
.mapleHero { min-height: 650px; }
.mapleHeroShade {
  background: linear-gradient(90deg, rgba(16,55,50,.82) 0%, rgba(16,55,50,.64) 38%, rgba(16,55,50,.22) 66%, rgba(16,55,50,.08) 100%) !important;
}
.mapleHeroInner { min-height: 650px; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
.mapleHeroCopy { max-width: 650px; margin-left: 190px; }
.mapleHeroCopy .heroBrand { width: 250px; margin-bottom: 22px; }
.mapleHeroTag { padding: 8px 12px; font-size: 11px; letter-spacing: .11em; }
.mapleHeroCopy h1 { margin: 14px 0 20px; font-size: clamp(60px, 5.4vw, 82px); line-height: .94; }
.mapleHeroCopy p { max-width: 660px; font-size: 17px; line-height: 1.7; text-shadow: 0 2px 4px rgba(12,42,38,.35); }
.mapleHeroActions { gap: 12px; margin-top: 26px; }
.mapleHeroActions .btn { min-height: 48px; padding-inline: 20px; }
.mapleHeroFacts { margin-top: 24px; gap: 10px 22px; font-size: 11px; }
.mapleHeroCharacters .left { left: -220px; }
.mapleHeroCharacters .right { right: -44px; }
.mapleLive { border-radius: 16px; box-shadow: var(--ui-shadow); }
.mapleLiveHead { padding: 16px 18px; }
.mapleLiveHead strong { font-size: 13px; }
.mapleLiveHead span { font-size: 11px; }
.mapleLiveMetric { padding: 17px; }
.mapleLiveMetric small { font-size: 10px; }
.mapleLiveMetric strong { margin-top: 3px; font-size: 20px; }
.mapleLiveFoot { padding: 13px 17px; font-size: 11px; }
.mapleQuick a { min-height: 82px; gap: 13px; }
.mapleQuick a strong { font-size: 13px; }
.mapleQuick a small { margin-top: 2px; font-size: 11px; }
.mapleQuickIcon { width: 39px; height: 39px; }

.mapleHomeBody { padding-block: 76px 90px; }
.sectionHead { margin-bottom: 24px; }
.sectionHead h2, .mapleJobsHead h2, .mapleRankHead h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.08; }
.sectionHead > a, .mapleJobsHead > a { min-height: 42px; display: inline-flex; align-items: center; font-size: 12px; }
.pageEyebrow, .kicker { font-size: 11px; }
.mapleIntroCard, .libraryFeatureCard, .mapleJobCard, .mapleSpecialJob, .newsStory, .mapleRank, .paperCard, .featurePanel, .supportCard, .accountCard, .formCard, .authCard, .card, .panel {
  border-radius: var(--ui-radius) !important;
  box-shadow: var(--ui-shadow) !important;
}
.libraryFeatureCard { padding: 24px !important; }
.libraryFeatureStatus { font-size: 10px; }
.libraryFeatureCard h3 { font-size: 23px; line-height: 1.2; }
.libraryFeatureCard p { font-size: 14px; line-height: 1.65; }
.libraryFeatureCard > small { font-size: 10px; }
.mapleJobsPolished { margin-top: 52px; padding: 34px 30px 30px; border-radius: 18px; }
.mapleJobsHead p { max-width: 780px; font-size: 14px; }
.mapleJobsGridSix .mapleJobTitle small { font-size: 10px; }
.mapleJobsGridSix .mapleJobPath { font-size: 12px; }
.mapleJobsGridSix .mapleJobFoot { font-size: 10px; }
.mapleSpecialJobsPolished .mapleSpecialJobCopy small,
.mapleSpecialJobsPolished .mapleSpecialJobCopy span,
.cygnusFeature .mapleSpecialJobCopy span { font-size: 11px !important; line-height: 1.55; }
.cygnusFeature .mapleSpecialJobCopy a { font-size: 10px; }
.mapleHomeColumns { margin-top: 62px; gap: 24px; }
.newsStoryBody { padding: 20px; }
.newsStoryMeta { font-size: 10px; }
.newsStory h3 { font-size: 22px; line-height: 1.2; }
.newsStory p { font-size: 13px; line-height: 1.6; }
.mapleRankRow { min-height: 60px; padding: 12px 15px; }
.mapleRankRow strong { font-size: 13px; }
.mapleRankRow small { font-size: 10px; }
.mapleCta { margin-top: 58px; padding: 32px; border-radius: 16px; }
.mapleCta h2 { font-size: 32px; }
.mapleCta p { font-size: 14px; }

/* Inner pages and forms */
.lightTitle { padding-block: 58px 50px; }
.lightTitle h1 { margin-block: 8px 12px; font-size: clamp(40px, 5vw, 58px); }
.lightTitle p { font-size: 16px; line-height: 1.65; }
.pageHeroAside { padding: 18px; border-radius: 12px; }
.pageHeroAside strong, .pageHeroAside span { font-size: 12px; }
.contentGrid { gap: 26px; padding-block: 48px 80px; }
.featurePanel, .paperCard, .supportCard, .accountCard, .formCard { padding: 24px; }
.featurePanel p, .paperCard p, .supportCard p, .accountCard p, .formCard p, .notice, .error, .success { font-size: 14px; }
.newsList { gap: 22px; padding-block: 48px 80px; }
.tab, .pageBtn { min-height: 40px; padding-inline: 14px; font-size: 11px; cursor: pointer; }
.tableWrap { border-radius: 12px; box-shadow: 0 8px 24px rgba(35,76,61,.07); }
th { padding: 13px 14px; font-size: 11px; }
td { padding: 13px 14px; font-size: 14px; }
.rankAvatar { width: 36px; height: 36px; }
.authWrap { padding-block: 70px; }
.authGrid { grid-template-columns: minmax(0, 1fr) minmax(420px, 500px); gap: 42px; }
.authIntro h1 { font-size: clamp(42px, 5vw, 58px); }
.authIntro p { font-size: 16px; }
.authCard { padding: 30px; }
.authCard h2 { font-size: 27px; }
.authCard form { gap: 11px; }
.authCard label, form label { font-size: 11px; }
input, select, textarea { min-height: 46px; padding: 11px 13px; font-size: 15px; border-radius: 9px; }
.miniCard span, .statCard span { font-size: 11px; }

/* Footer */
.footerGrid { padding-block: 50px 34px; gap: 46px; }
.footerBrand p { font-size: 13px; line-height: 1.65; }
.footerCol { gap: 10px; }
.footerCol strong { font-size: 11px; }
.footerCol a { width: max-content; padding-block: 2px; font-size: 13px; }
.footerBottom { padding-block: 17px 24px; font-size: 11px; }

@media (hover:hover) {
  .libraryFeatureCard, .mapleJobCard, .mapleSpecialJob, .newsStory, .mapleQuick a { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .libraryFeatureCard:hover, .mapleJobCard:hover, .mapleSpecialJob:hover, .newsStory:hover { transform: translateY(-4px); border-color: #8eb17f !important; }
  .mapleQuick a:hover { transform: translateY(-2px); }
}

@media (max-width: 1120px) {
  .navin { grid-template-columns: 205px minmax(0, 1fr) auto; gap: 12px; }
  .brandImage img { width: 195px; }
  .desktopLinks > a:not(.btn) { padding-inline: 9px !important; font-size: 11px; }
  .mapleHeroCopy { margin-left: 44px; }
  .mapleHeroCharacters .left { opacity: .5; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 78px; }
  .wrap { width: min(100% - 32px, 720px); }
  .navin { min-height: 72px !important; }
  .mobileMenu summary { min-height: 44px; display: flex; align-items: center; gap: 9px; padding-inline: 14px; font-size: 12px; }
  .mobileMenuPanel { top: 52px; padding: 10px; border-radius: 12px; }
  .mobileMenuPanel > a { min-height: 44px; display: flex; align-items: center; padding-inline: 12px; font-size: 12px; }
  .mobileAuth .btn { width: 100%; }
  .mapleHeroInner { min-height: 720px; }
  .mapleHeroCopy { max-width: 640px; margin: 0; padding: 64px 0 280px; }
  .mapleHeroCopy p { font-size: 16px; }
  .mapleLive { bottom: 32px; }
  .mapleQuick .wrap { width: 100%; }
  .mapleHomeBody { padding-top: 58px; }
  .sectionHead { align-items: flex-start; gap: 16px; }
  .mapleJobsPolished { margin-inline: -4px; }
  .authGrid { grid-template-columns: 1fr; gap: 12px; }
  .authIntro { padding-bottom: 16px; }
  .footerGrid { gap: 28px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .wrap { width: min(100% - 24px, 1200px); }
  .worldRibbon .wrap { justify-content: center; text-align: center; }
  .worldRibbon .wrap > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brandImage img { width: 174px; }
  .mapleHeroInner { min-height: 760px; }
  .mapleHeroCopy { padding-top: 46px; }
  .mapleHeroCopy .heroBrand { width: 205px; }
  .mapleHeroCopy h1 { font-size: clamp(46px, 14vw, 58px); }
  .mapleHeroActions { display: grid; grid-template-columns: 1fr; }
  .mapleHeroFacts { font-size: 10px; }
  .mapleLiveHead { align-items: flex-start; flex-direction: column; gap: 2px; }
  .mapleQuick a:nth-child(n+3) { display: flex; }
  .mapleQuick .wrap { grid-template-columns: 1fr 1fr; }
  .mapleQuick a { min-height: 72px; padding: 10px 12px; }
  .mapleQuick a:last-child { grid-column: 1 / -1; }
  .sectionHead, .mapleJobsHead { align-items: flex-start; flex-direction: column; }
  .mapleJobsPolished { padding: 22px 14px; }
  .mapleJobsGridSix .mapleJobCard { grid-template-columns: 102px 1fr; }
  .mapleJobsGridSix .mapleJobPortrait { margin-right: 10px; }
  .mapleSpecialJobsPolished .cygnusFeature, .mapleSpecialJobsPolished .specialCompact { grid-template-columns: 112px 1fr; }
  .mapleHomeColumns { margin-top: 44px; }
  .mapleNewsGrid .newsStory, .mapleNewsGrid .newsStory:first-child { grid-template-columns: 96px 1fr; }
  .mapleCta { padding: 25px 20px; }
  .lightTitle { padding-block: 42px 38px; }
  .contentGrid { padding-block: 32px 60px; }
  .authWrap { padding-block: 38px; }
  .authIntro { padding-inline: 4px; }
  .authCard { padding: 22px 18px; }
  .footerGrid { grid-template-columns: 1fr 1fr; }
  .footerBrand { grid-column: 1 / -1; }
  .footerBottom { line-height: 1.5; }
}

@media (max-width: 390px) {
  .brandImage img { width: 154px; }
  .mobileMenu summary { padding-inline: 11px; }
  .mapleQuick .wrap { grid-template-columns: 1fr; }
  .mapleQuick a:last-child { grid-column: auto; }
  .mapleJobsGridSix .mapleJobCard { grid-template-columns: 88px 1fr; }
  .footerGrid { grid-template-columns: 1fr; }
  .footerBrand { grid-column: auto; }
}

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