/* ==========================================================================
   Microsoft partner glossary (/microsoft-partner-glossary)
   Page-only styles, loaded after site.css. The "glass" look is frosted panels
   (backdrop-filter blur over soft brand-colored light). Browsers without
   backdrop-filter get a solid panel instead, so text stays readable everywhere.
   Crimson budget: the nav and closing "Book a call" buttons only. Active
   filters use navy and gold, never red.
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */
.gl-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 84px 0 72px;
}
.gl-hero h1 { color: #fff; max-width: 16ch; }
.gl-hero .lede { color: #c3c7e0; margin: 18px 0 30px; max-width: 58ch; }

/* Soft colored light behind the glass. Purely decorative. */
.gl-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; pointer-events: none; }
.gl-glow.g1 { width: 460px; height: 460px; background: var(--gold); top: -140px; right: -60px; opacity: .35; }
.gl-glow.g2 { width: 520px; height: 520px; background: #3a3f9a; bottom: -260px; left: -140px; }
.gl-glow.g3 { width: 300px; height: 300px; background: var(--crimson); top: 40%; right: 26%; opacity: .32; }
@media (prefers-reduced-motion: no-preference) {
  .gl-glow.g1 { animation: gl-drift 18s ease-in-out infinite alternate; }
  .gl-glow.g3 { animation: gl-drift 24s ease-in-out infinite alternate-reverse; }
}
@keyframes gl-drift { to { transform: translate(-60px, 40px) scale(1.12); } }

/* Hero layout: copy and decoder on the left, a stack of floating glass term
   cards on the right (decorative, desktop only). */
.gl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.gl-stack { position: relative; height: 440px; }
.gl-float { position: absolute; width: 268px; padding: 20px 22px; color: #fff; }
.gl-float b { display: block; font-family: var(--head); font-weight: 800; font-size: 2rem; line-height: 1; }
.gl-float i { display: block; font-style: normal; font-family: var(--head); font-weight: 700; font-size: .9rem; color: var(--gold); margin: 8px 0 8px; }
.gl-float span { display: block; font-size: .84rem; line-height: 1.45; color: #d5d8ec; }
.gl-float.f1 { top: 0; left: 0; transform: rotate(-4deg); }
.gl-float.f2 { top: 168px; right: -24px; transform: rotate(3deg); z-index: 2; }
.gl-float.f3 { top: 318px; left: 12px; transform: rotate(-1.5deg); }
@media (prefers-reduced-motion: no-preference) {
  .gl-float.f1 { animation: gl-bob 7s ease-in-out infinite; }
  .gl-float.f2 { animation: gl-bob 8s ease-in-out infinite reverse; }
  .gl-float.f3 { animation: gl-bob 9s ease-in-out infinite; }
}
@keyframes gl-bob { 50% { translate: 0 -10px; } }
@media (max-width: 980px) { .gl-hero-grid { grid-template-columns: 1fr; } .gl-stack { display: none; } }

/* ---- Glass surface (shared) ----------------------------------------------- */
.glass {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(5,6,24,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(28,31,74,.92); }
}

/* ---- Decoder (hero search) ------------------------------------------------ */
.gl-decoder { padding: 22px; max-width: 640px; }
.gl-decoder label { display: block; font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.gl-search-row { display: flex; gap: 10px; }
.gl-search {
  flex: 1; min-width: 0; font: inherit; font-size: 1.08rem; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px; padding: 14px 16px;
}
.gl-search::placeholder { color: #a9add0; }
.gl-search:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gl-surprise {
  font-family: var(--head); font-weight: 700; font-size: .92rem; color: var(--navy);
  background: var(--gold); border: 0; border-radius: 12px; padding: 0 18px; cursor: pointer;
  white-space: nowrap;
}
.gl-surprise:hover { filter: brightness(1.06); }
.gl-surprise:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gl-answer { margin: 14px 0 0; min-height: 1.6em; color: #e6e8f5; font-size: .98rem; }
.gl-answer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gl-answer b { color: var(--gold); font-family: var(--head); }

.gl-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gl-fact { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: .8rem; color: #fff; }
.gl-fact svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 2.2; }

/* ---- Body: the term wall --------------------------------------------------- */
/* overflow: clip (not hidden) keeps the glows contained without turning the
   section into a scroll container, which would break the sticky filter bar. */
.gl-body { position: relative; overflow: hidden; overflow: clip; isolation: isolate; background: var(--wash); padding: 56px 0 72px; }
.gl-body .gl-glow { opacity: .22; filter: blur(90px); }
.gl-body .gl-glow.g1 { top: 120px; right: -180px; }
.gl-body .gl-glow.g2 { top: 45%; left: -220px; bottom: auto; background: #6c71c9; }
.gl-body .gl-glow.g3 { top: auto; bottom: 80px; right: 20%; opacity: .14; }

/* Light glass for panels that sit on the pale background. */
.glass-light {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(13,16,48,.05), 0 12px 32px rgba(13,16,48,.08);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-light { -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-light { background: #fff; }
}

/* Sticky filter bar */
.gl-filters { position: sticky; top: 86px; z-index: 20; padding: 12px 14px; margin-bottom: 26px; }
.gl-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gl-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  font-family: var(--head); font-size: .82rem; font-weight: 700; line-height: 1;
  color: var(--navy); background: rgba(255,255,255,.75); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer;
}
.gl-chip:hover { border-color: var(--navy); }
.gl-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gl-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gl-chip .n { font-size: .72rem; opacity: .6; }
.gl-chip[aria-pressed="true"] .n { color: var(--gold); opacity: 1; }
.gl-count { margin-left: auto; font-size: .84rem; color: var(--muted); }

/* Cards */
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: stretch; }
.gl-card { display: flex; flex-direction: column; padding: 22px 22px 18px; scroll-margin-top: 170px; transition: transform .16s ease, box-shadow .16s ease; }
.gl-card .gl-src { margin-top: auto; padding-bottom: 12px; }
.gl-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(13,16,48,.05), 0 18px 40px rgba(13,16,48,.12); }
.gl-card.is-flash { animation: gl-flash 1.6s ease; }
@keyframes gl-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--gold), 0 18px 40px rgba(13,16,48,.12); } 100% { box-shadow: 0 1px 2px rgba(13,16,48,.05), 0 12px 32px rgba(13,16,48,.08); } }
.gl-cat { font-family: var(--head); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.gl-abbr { font-family: var(--head); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--navy); letter-spacing: -.01em; margin: 0; }
.gl-abbr .gl-dot { color: var(--gold); }
.gl-name { font-family: var(--head); font-weight: 700; font-size: 1rem; color: var(--navy); margin: 8px 0 10px; }
.gl-title { font-family: var(--head); font-weight: 800; font-size: 1.35rem; line-height: 1.2; color: var(--navy); margin: 0 0 10px; }
.gl-title + .gl-name { margin-top: -4px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.gl-card .gl-name:first-child { margin-top: 0; }
.gl-def { font-size: .97rem; color: var(--ink); margin: 0 0 12px; }
.gl-aka { font-size: .8rem; color: var(--muted); margin: -4px 0 12px; }
.gl-card details { border-top: 1px solid rgba(13,16,48,.08); padding-top: 10px; }
.gl-card summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--head); font-weight: 700; font-size: .84rem; color: var(--navy);
}
.gl-card summary::-webkit-details-marker { display: none; }
.gl-card summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--gold); transition: transform .18s ease; }
.gl-card details[open] summary::after { transform: rotate(45deg); }
.gl-card summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.gl-why { font-size: .94rem; margin: 10px 0 10px; }
.gl-related { font-size: .84rem; color: var(--muted); margin: 0 0 8px; }
.gl-related a { color: var(--navy); font-weight: 700; border-bottom: 1px dotted var(--gold); }
.gl-related a:hover { text-decoration: none; border-bottom-style: solid; }
.gl-src { display: flex; align-items: flex-start; gap: 8px; font-size: .78rem; color: var(--muted); margin: 0; }
.gl-src svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; stroke: var(--navy); fill: none; stroke-width: 2; }
.gl-src a { color: var(--navy); }
.gl-copy { margin-top: 10px; font: inherit; font-size: .78rem; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gl-copy:hover { color: var(--navy); }
.gl-empty { display: none; padding: 28px; text-align: center; color: var(--muted); }
.gl-empty.is-on { display: block; }
.gl-card[hidden] { display: none; }

/* ---- Quick decode: one-line roles, teams and shorthand -------------------- */
/* Deliberately lighter than the cards: no "why it matters", no expanders, so
   thirty more acronyms add a few screens of scanning, not a second wall. */
.gl-quick { margin-top: 64px; }
.gl-quick.is-alone { margin-top: 0; }
.gl-quick[hidden], .gl-qgroup[hidden], .gl-q[hidden] { display: none; }
.gl-quick-h { margin-bottom: 8px; }
.gl-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; align-items: start; }
.gl-qgroup { padding: 20px 22px 8px; }
.gl-qgroup h3 { font-family: var(--head); font-weight: 800; font-size: 1.05rem; color: var(--navy); margin: 0 0 4px; }
.gl-qintro { font-size: .84rem; color: var(--muted); margin: 0 0 8px; }
.gl-qgroup dl { margin: 0; }
.gl-q { padding: 11px 0; border-top: 1px solid rgba(13,16,48,.08); scroll-margin-top: 170px; border-radius: 8px; }
.gl-q.is-flash { animation: gl-qflash 1.6s ease; }
@keyframes gl-qflash { 0%, 40% { background: rgba(216,117,56,.16); box-shadow: 0 0 0 6px rgba(216,117,56,.16); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.gl-q dt { font-family: var(--head); color: var(--navy); line-height: 1.3; }
.gl-q dt b { font-weight: 800; font-size: 1.02rem; margin-right: 4px; }
.gl-q dt span { font-weight: 600; font-size: .9rem; }
.gl-q dd { margin: 3px 0 0; font-size: .88rem; color: var(--ink); line-height: 1.5; }
.gl-q-was { color: var(--muted); }
.gl-q-src { font-size: .74rem; color: var(--muted); white-space: nowrap; border-bottom: 1px dotted var(--gold); margin-left: 2px; }
.gl-q-src:hover { color: var(--navy); text-decoration: none; border-bottom-style: solid; }
.gl-chip-quick { border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .gl-q.is-flash { animation: none; background: rgba(216,117,56,.16); } }

/* ---- Flashcards ---------------------------------------------------------- */
.gl-quiz { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0; }
.gl-quiz h2 { color: #fff; }
.gl-quiz .lede { color: #c3c7e0; }
.gl-flash-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.gl-flip { display: block; width: 100%; perspective: 900px; height: 160px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.gl-flip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 18px; }
.gl-flip-in { display: block; position: relative; width: 100%; height: 100%; transition: transform .5s ease; transform-style: preserve-3d; }
.gl-flip:hover .gl-face.front { border-color: rgba(216,117,56,.7); }
.gl-flip.is-flipped .gl-flip-in { transform: rotateY(180deg); }
.gl-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.gl-face.front { align-items: center; text-align: center; }
.gl-face.front b { font-family: var(--head); font-weight: 800; font-size: 1.7rem; color: #fff; }
.gl-face.front span { font-size: .74rem; color: #a9add0; margin-top: 8px; letter-spacing: .08em; text-transform: uppercase; }
.gl-face.back { transform: rotateY(180deg); color: #fff; font-family: var(--head); font-weight: 700; font-size: .95rem; line-height: 1.3; }
.gl-flip-more { color: var(--gold); font-size: .76rem; margin-top: 10px; font-family: var(--body); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .gl-flip-in { transition: none; } .gl-card { transition: none; } }
.gl-quiz-actions { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.gl-quiz-actions .gl-surprise { padding: 13px 22px; }
@media (max-width: 980px) { .gl-flash-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gl-quiz-score { color: #c3c7e0; font-size: .9rem; }

.gl-note { max-width: 760px; margin: 34px auto 0; }

@media (max-width: 680px) {
  .gl-hero { padding: 56px 0 52px; }
  .gl-search-row { flex-direction: column; }
  .gl-surprise { padding: 12px 18px; }
  .gl-filters { top: 84px; padding: 10px; }
  .gl-filter-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gl-filter-row::-webkit-scrollbar { display: none; }
  .gl-chip { flex: 0 0 auto; }
  .gl-count { display: none; }
  .gl-grid { grid-template-columns: 1fr; }
  .gl-flash-row { grid-template-columns: repeat(2, 1fr); }
}
