/* Official GARPU identity: red and white, finished with metallic gold. */
:root {
  --garpu-red: #cf0920;
  --garpu-deep-red: #a9071b;
  --garpu-pale: #fff9f4;
  --garpu-gold: #c89539;
  --garpu-gold-dark: #805b17;
  --garpu-gold-light: #ffe4a3;
  --garpu-gold-line: #e7d4ae;
  --garpu-metal: linear-gradient(110deg,#a96f18 0%,#eec86e 30%,#fff1c7 48%,#d5a341 72%,#b87c21 100%);
  --garpu-banner: linear-gradient(120deg,#a9071b 0%,#d80b23 58%,#ef1530 100%);
}

/* A single uncropped transparent emblem is used across the entire academy. */
img[src^="/brand-garpu-gold.png"] { object-fit:contain; }
body.garpu-home .identity img,
body.portal-visual .brand img,
body.portal-visual .login-brand img,
body:not(.garpu-home) .shared-admin-nav .shared-brand img {
  background:transparent; border-radius:0; padding:0; object-fit:contain;
}
body.garpu-home .site-header .identity img { width:56px; height:60px; }
body.garpu-home .site-header { border-bottom:1px solid var(--garpu-gold); box-shadow:0 4px 22px #6640060a; }
body.garpu-home .site-header .identity small { color:var(--garpu-deep-red); }
body.garpu-home .site-header nav a[aria-current="location"],
body.garpu-home .site-header details.is-active>summary { border-bottom-color:var(--garpu-gold); }
body.garpu-home .admission-menu>div { border-top-color:var(--garpu-gold); }
body.garpu-home .admission-menu>div>a:hover,
body.garpu-home .site-header details a[aria-current="location"] { background:#fff6e4; }

body.garpu-home .hero-emblem {
  background-color:var(--garpu-red);
  background-image:radial-gradient(ellipse at 50% 42%,#ffde9030,transparent 62%),var(--garpu-banner);
  border-left:1px solid var(--garpu-gold);
}
body.garpu-home .hero-emblem::before { opacity:.15; }
body.garpu-home .hero-emblem .crest-display { position:relative; isolation:isolate; }
/* The light sits behind the transparent crest and follows its alpha outline. */
body.garpu-home .hero-emblem .crest-display::before {
  content:""; position:absolute; inset:12px; z-index:-1; pointer-events:none;
  background:url('/brand-garpu-gold.png') center/contain no-repeat;
  --aura-gold:brightness(0) saturate(100%) invert(82%) sepia(62%) saturate(900%) hue-rotate(346deg);
  filter:var(--aura-gold) blur(18px); opacity:.5; transform:scale(1.04);
  animation:garpu-gold-aura 4.8s ease-in-out infinite;
}
body.garpu-home .hero-emblem .crest-display>img {
  --crest-glow-low:drop-shadow(0 0 2px #fff0b8cc) drop-shadow(0 0 10px #ffd15a99) drop-shadow(0 0 24px #ffba354d);
  --crest-glow-high:drop-shadow(0 0 3px #fff5d4ee) drop-shadow(0 0 18px #ffdc70dd) drop-shadow(0 0 38px #ffc34388);
  filter:var(--crest-glow-low);
  animation-duration:4.8s;
}
@keyframes garpu-gold-aura {
  0%,100% { opacity:.4; transform:translateY(0) scale(1.03); filter:var(--aura-gold) blur(18px); }
  50% { opacity:.72; transform:translateY(-7px) scale(1.08); filter:var(--aura-gold) blur(24px); }
}
body.garpu-home .emblem-caption { color:#fff0cf; }
body.garpu-home .hero-foot { border-top-color:var(--garpu-gold); }
body.garpu-home .hero-foot::before { background:var(--garpu-metal); }
body.garpu-home .hero-schedule { border:1px solid var(--garpu-gold-line); background:#fffdf7; }
body.garpu-home .hero-copy>.eyebrow { color:var(--garpu-gold-dark); }

/* Gold belongs on edges and ornaments; text retains strong contrast. */
body.garpu-home .button:where(:not(.outline,.white)),
body.garpu-home .header-login {
  background:var(--garpu-banner); color:#fff; border-color:var(--garpu-gold);
  box-shadow:inset 0 -2px 0 #e6bc66;
}
body.garpu-home .button.outline { border-color:var(--garpu-gold); color:var(--garpu-deep-red); background:#fffdf8; }
body.garpu-home .button.white { border-color:var(--garpu-gold-light); background:#fffaf0; color:var(--garpu-deep-red); }
/* Light CTA surfaces must stay distinct from the red panels behind them. */
body.garpu-home :is(.section-heading,.media-heading,.training-location-copy,.about>div:first-child,.contact>div:first-child,.kit,.join) .button {
  background:#fffaf0; color:var(--garpu-deep-red)!important;
  border-color:var(--garpu-gold-light);
}
body.garpu-home :is(.section-heading,.media-heading,.training-location-copy,.about>div:first-child,.contact>div:first-child,.kit,.join) .button:hover {
  background:#fff1cf;
}
body.garpu-home :is(.section-heading,.media-heading,.training-location-copy,.about>div:first-child,.contact>div:first-child,.kit,.join) .button:focus-visible {
  outline:3px solid #fff; outline-offset:4px;
}
body.garpu-home :is(.section-heading,.media-heading,.about>div:first-child,.training-location-copy,.contact>div:first-child,.kit,.join) {
  background:var(--garpu-banner); box-shadow:inset 0 -3px 0 var(--garpu-gold);
}
body.garpu-home .section-heading h2::after { background:var(--garpu-metal); opacity:1; }
body.garpu-home :is(.section-heading,.media-heading,.kit,.join) .eyebrow { color:#fff0c8; opacity:1; }
body.garpu-home .section { border-bottom-color:var(--garpu-gold-line); }
body.garpu-home :is(.admissions,.mitra-home,.media-showcase,.organization-section) { background-color:#fffbf5; }
body.garpu-home :is(.program-card,.news-card,.admission-card,.mitra-offer-card,.sponsor-card,.person-card,.org-card) {
  border-color:var(--garpu-gold-line); border-top-color:var(--garpu-gold);
}
body.garpu-home :is(.program-card,.news-card,.admission-card)::after {
  background:linear-gradient(125deg,transparent 0 18%,#c89539 19% 39%,transparent 40% 48%,#eac26b 49% 65%,transparent 66% 74%,#f8e3b4 75% 87%,transparent 88%);
}
body.garpu-home .values { border-top-color:var(--garpu-gold); }
body.garpu-home .admission-info>article { border-left-color:var(--garpu-gold); }
body.garpu-home .mitra-offer-bonus { background:var(--garpu-banner); border-bottom:2px solid var(--garpu-gold); }
body.garpu-home :is(.team-shortcuts a,.academy-tabs button,.media-filter) { border-color:var(--garpu-gold-line); }
body.garpu-home .media-feature-copy { background:var(--garpu-banner); }
body.garpu-home .site-footer { background:#fffbf4; border-top:3px solid var(--garpu-gold); }
body.garpu-home .swatches span:nth-child(3) i { background:var(--garpu-metal); border-color:#f3d487; }
.garpu-social-dock .social-badge { border-color:#e7c274; box-shadow:0 4px 16px #890b1d20; }
.garpu-social-dock .social-badge::after { background:var(--garpu-metal); }

/* Shared portals: management, coaching, parents, partners and the media studio. */
body:not(.garpu-home) { background-color:#fffbf6!important; }
body:not(.garpu-home) :is(.studio-hero,.child-hero,.op-banner,.welcome,.report-hero,.registration-support) {
  background:var(--garpu-banner)!important; border-bottom:3px solid var(--garpu-gold)!important;
}
body:not(.garpu-home).portal-visual main>header,
body:not(.garpu-home).portal-visual>header {
  background:var(--garpu-banner)!important; border-bottom-color:var(--garpu-gold)!important;
}
body:not(.garpu-home) .shared-admin-nav .shared-brand { background:var(--garpu-banner)!important; border-bottom:3px solid var(--garpu-gold); }
body:not(.garpu-home) .shared-admin-nav details summary { background:#fff8e9!important; border-left-color:var(--garpu-gold)!important; }
body:not(.garpu-home) :is(.shared-admin-nav a[aria-current=page],.studio-sidebar nav a[aria-current],.profile-tabs a[aria-current]) {
  background:var(--garpu-banner)!important; color:#fff!important; box-shadow:inset 3px 0 var(--garpu-gold-light);
}
body:not(.garpu-home) :is(.studio-sidebar,.studio-header,.register-header,.registration-footer) { border-color:var(--garpu-gold-line); }
body:not(.garpu-home) :is(.studio-brand small,.nav-label,.register-intro .eyebrow) { color:var(--garpu-gold-dark); }
body:not(.garpu-home) :is(.login-panel,.mitra-card,.mitra-stat,.registration-summary,.stat,.profile-preview,.org-card) { border-top-color:var(--garpu-gold)!important; }
body:not(.garpu-home).portal-visual .login-wrap #login-form { border-top-color:var(--garpu-gold)!important; }
body:not(.garpu-home) :is(.login-panel,.registration-section,.registration-summary,.mitra-card,.media-card,.org-card) { border-color:var(--garpu-gold-line); }
body:not(.garpu-home) button:not(.secondary):not(.quiet-button):not(.light-button):not(.text-button):not(.danger):not(.social-badge) {
  border-color:var(--garpu-gold);
}
body:not(.garpu-home) .registration-section-heading { background:var(--garpu-banner)!important; box-shadow:inset 3px 0 var(--garpu-gold); }
body:not(.garpu-home) .registration-package:has(input:checked) { border-color:var(--garpu-gold)!important; background:#fff9ed!important; box-shadow:0 0 0 3px #c8953920!important; }
body.mitra-page .mitra-header { border-top-color:var(--garpu-gold); border-bottom-color:var(--garpu-gold-line); }
body .garpu-certificate { border-top-color:var(--garpu-gold); --cert-line:#e7d4ae; }
body .garpu-certificate :is(.cert-mast,.cert-title,.cert-seal) { border-color:var(--garpu-gold); }
body .garpu-certificate .cert-title { background:var(--garpu-banner); }
body .garpu-certificate .cert-seal { color:var(--garpu-gold-dark); }

@media(max-width:1100px) {
  body.garpu-home .site-header .identity img { width:44px; height:48px; }
  body.garpu-home .site-menu-panel { border-color:var(--garpu-gold-line); }
  body.garpu-home :is(.site-menu-heading,.site-menu-actions) { border-color:var(--garpu-gold-line); }
  body.garpu-home .site-menu-toggle { border-color:var(--garpu-gold-line); background:#fffaf0; }
}
@media(max-width:650px) {
  body.garpu-home .site-header .identity img { width:40px; height:44px; }
  body.garpu-home .hero-emblem { border-left:0; border-top:1px solid var(--garpu-gold); }
  body.garpu-home .hero-emblem .crest-display::before { inset:8px; }
}
@media(prefers-reduced-motion:reduce) {
  body.garpu-home .hero-emblem .crest-display::before { animation:none; opacity:.55; }
  body.garpu-home .hero-emblem .crest-display>img { animation:none; }
}
@media print {
  body.garpu-home .hero-emblem .crest-display::before { display:none; }
  body.garpu-home .hero-emblem .crest-display>img { animation:none; filter:none; }
  body:not(.garpu-home) { background:#fff!important; }
  body .garpu-certificate { border-top-color:#a57522; box-shadow:none; }
}
