/* Shared visual polish for public pages and signed-in workspaces. */
:root {
  --ght-ink: #17372f;
  --ght-muted: #65766f;
  --ght-border: #e1e9e3;
  --ght-surface: #fff;
  --ght-canvas: #f5f8f5;
  --ght-accent: #00875a;
  --ght-accent-dark: #006c49;
}
html { scroll-behavior: smooth; }
body:not(.report-page) { color: var(--ght-ink); }
body:not(.report-page) :focus-visible { outline: 3px solid #7cbe9d; outline-offset: 3px; }
body:not(.report-page) :is(button, a, input, select, textarea) { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }

/* Main portal shell */
#app-shell { --paper: var(--ght-canvas); --line: var(--ght-border); }
#app-shell .app-main { min-width: 0; background: var(--ght-canvas); }
#app-shell .app-content { max-width: 1680px; margin-inline: auto; }
#app-shell .app-content > :is(h1, .page-title) { color: var(--ght-ink); letter-spacing: -.045em; }
#app-shell .app-topbar { box-shadow: 0 1px 0 rgba(23,55,47,.08), 0 8px 24px rgba(23,55,47,.045); }
#app-shell .app-sidebar { border-right: 1px solid var(--ght-border); box-shadow: 8px 0 28px rgba(23,55,47,.025); }
#app-shell .app-sidebar-nav a { border-radius: 12px; }
#app-shell .app-sidebar-nav a:hover { background: #eff6f1; color: var(--ght-accent-dark); }
#app-shell .app-sidebar-nav a.active { box-shadow: 0 7px 18px rgba(0,112,73,.14); }
#app-shell :is(.card, .panel, .saas-kpi, .kpi-card, .kpi, .stu-kpi) { background: var(--ght-surface); border-color: var(--ght-border); box-shadow: 0 7px 24px rgba(23,55,47,.045); }
#app-shell .app-content table { border-color: var(--ght-border); }
#app-shell .app-content table thead th { color: #667970; background: #f2f6f2; }
#app-shell .app-content tbody tr { border-color: var(--ght-border); }
#app-shell .btn, #app-shell button.btn { border-radius: 11px; font-weight: 650; }
#app-shell .btn:not(.ghost):not(.secondary) { box-shadow: 0 5px 14px rgba(0,112,73,.13); }
#app-shell .btn:not(.ghost):not(.secondary):hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,112,73,.2); }

/* Public website */
.header-1 { box-shadow: 0 2px 18px rgba(23,55,47,.07); }
.header-1 .main-menu > nav > ul > li > a { transition: color .18s ease; }
.header-1 .main-menu > nav > ul > li > a:hover { color: var(--ght-accent); }
.platform-hero { background-color: #f5f8f5; }
.public-button, .theme-btn { border-radius: 12px; }
.public-button:hover, .theme-btn:hover { transform: translateY(-1px); }

/* Main GHT homepage hero */
body.ght-public-site .ght-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 83% 16%, #e4f3e9 0, transparent 34%), linear-gradient(125deg, #f7faf6 0%, #f1f7f1 58%, #edf5ef 100%);
}
body.ght-public-site .ght-hero::before {
  position: absolute; inset: 0 auto 0 0; width: 48%; content: ""; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.62), transparent);
}
body.ght-public-site .ght-hero-track, body.ght-public-site .ght-hero-inner { min-height: 540px; }
body.ght-public-site .ght-hero-inner { width: min(1320px, calc(100% - 64px)); grid-template-columns: 1fr .96fr; gap: clamp(22px, 4vw, 62px); }
body.ght-public-site .ght-hero-copy { padding: 58px 0 48px; }
body.ght-public-site .ght-hero-copy .ght-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px;
  border: 1px solid #d8e9dc; border-radius: 99px; background: rgba(255,255,255,.82);
  color: #16724b; font-size: 10px; letter-spacing: .14em;
}
body.ght-public-site .ght-hero-copy .ght-eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: #0a9c68; content: ""; }
body.ght-public-site .ght-hero-copy h1 { max-width: 660px; margin: 19px 0 16px; color: #15382e; font-size: clamp(48px, 5.5vw, 76px); line-height: 1.01; letter-spacing: -.065em; }
body.ght-public-site .ght-hero-copy h1 em { color: #00855a; font-style: normal; }
body.ght-public-site .ght-hero-copy > p { max-width: 510px; color: #5c7067; font-size: 16px; line-height: 1.7; }
body.ght-public-site .ght-hero-actions { gap: 12px; margin-top: 24px; }
body.ght-public-site .ght-hero-actions .ght-button { min-height: 49px; padding-inline: 17px; border-radius: 12px; font-size: 12px; box-shadow: 0 8px 20px rgba(23,55,47,.09); }
body.ght-public-site .ght-hero-stats { gap: clamp(12px, 2vw, 26px); margin-top: 31px; }
body.ght-public-site .ght-hero-stats > span { min-width: 0; }
body.ght-public-site .ght-hero-stats i { color: #18845b; }
body.ght-public-site .ght-hero-stats b { color: #173b30; font-size: 16px; }
body.ght-public-site .ght-hero-stats small { color: #6c7e75; font-size: 9px; }
body.ght-public-site .ght-hero-visual { height: 440px; min-height: 440px; margin: 0; border: 8px solid rgba(255,255,255,.88); border-radius: 30px; background: #dfeee4; box-shadow: 0 28px 70px rgba(24,67,47,.16); }
body.ght-public-site .ght-hero-visual img { width: 100%; height: 100%; min-height: 0; max-height: none; border-radius: 22px; clip-path: none; object-fit: cover; object-position: center 35%; }
body.ght-public-site .ght-hero-visual::after { position: absolute; inset: 0; border-radius: 22px; content: ""; pointer-events: none; background: linear-gradient(180deg, transparent 58%, rgba(11,47,33,.18)); }
body.ght-public-site .ght-hero-sticker { top: 22px; right: 20px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.75); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 12px 32px rgba(20,54,39,.12); color: #173b30; backdrop-filter: blur(10px); }
body.ght-public-site .ght-hero-sticker b { color: #00855a; }
body.ght-public-site .ght-video-link { right: 18px; bottom: 18px; padding: 10px 15px; border: 1px solid rgba(255,255,255,.65); border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(20,54,39,.13); color: #173b30; }
body.ght-public-site .ght-video-link > span { background: #00855a; color: white; }
body.ght-public-site .ght-slider-controls { z-index: 5; }

@media (max-width: 800px) {
  body.ght-public-site .ght-hero-track, body.ght-public-site .ght-hero-inner { min-height: 0; }
  body.ght-public-site .ght-hero-inner { width: min(100% - 36px, 620px); grid-template-columns: 1fr; gap: 0; }
  body.ght-public-site .ght-hero-copy { padding: 42px 0 25px; }
  body.ght-public-site .ght-hero-copy h1 { max-width: 590px; font-size: clamp(42px, 9vw, 62px); }
  body.ght-public-site .ght-hero-copy > p { font-size: 15px; }
  body.ght-public-site .ght-hero-visual { height: clamp(260px, 62vw, 390px); min-height: 0; margin: 0 0 34px; }
  body.ght-public-site .ght-hero-visual img { min-height: 0; }
  body.ght-public-site .ght-hero-stats { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  body.ght-public-site .ght-hero-inner { width: 100%; }
  body.ght-public-site .ght-hero-copy { padding: 32px 20px 22px; }
  body.ght-public-site .ght-hero-copy h1 { font-size: clamp(40px, 11vw, 54px); }
  body.ght-public-site .ght-hero-actions { grid-template-columns: 1fr; }
  body.ght-public-site .ght-hero-actions .ght-button { min-height: 48px; font-size: 12px; }
  body.ght-public-site .ght-hero-stats { display: grid; grid-template-columns: 1fr 1fr; row-gap: 14px; }
  body.ght-public-site .ght-hero-stats > span { justify-items: start; text-align: left; }
  body.ght-public-site .ght-hero-visual { height: 265px; min-height: 0; margin: 0 14px 30px; }
}

/* Compact learner shell */
.stu-sheet { padding-bottom: max(88px, env(safe-area-inset-bottom)); }
.stu-more nav, .stu-list, .stu-card { border-color: var(--ght-border); }
.stu-row { transition: background .18s ease; }
.stu-row:hover { background: #f6faf7; }

@media (max-width: 720px) {
  #app-shell .app-content { padding: 20px 15px 40px !important; }
  #app-shell .app-content :is(.card.pad, .panel.pad) { padding: 18px !important; }
  .header-1 .header-main { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
