/* /case-study/goldenwin-solutions-online-lottery-platform-case-study — AISHTMLNEWDESIGN-502
   Page-owned styles. EVERY selector is scoped to #page-case-study-goldenwin-solutions-online-lottery-platform-case-study or a
   csgs- prefixed class: this sheet must never style body, a bare
   element, #ais-header or #ais-footer. The document reset
   (html,body{margin:0}) is owned by the shared layout sheet.
   Font is Inter; no body/UI text below 16px.

   GOLDEN DRAW — the page reads as the official record of one lottery draw:
   an ink-navy draw-night ground for the hero and the results board, warm
   paper for the record sections, one brass accent, numbered-ball indexing
   and hairline ticket rules. No keyframes exist in this file; motion is
   limited to hover/focus/active transitions (rule 26). */

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study {
  --gld-ink: #131b2e;        /* draw-night navy — hero + results ground   */
  --gld-ink-2: #1b2743;      /* gradient stop                              */
  --gld-ink-3: #202c4b;      /* chip ground on ink                         */
  --gld-paper: #faf7f0;      /* warm paper — record sections               */
  --gld-paper-2: #f2ede1;    /* deeper paper — alternating bands           */
  --gld-crumb-b: #f5f0e4;    /* breadcrumb strip                           */
  --gld-gold: #c9a227;       /* brass — the winning ball                   */
  --gld-gold-2: #d9b45b;     /* brass on ink (text-grade)                  */
  --gld-gold-3: #e8c766;     /* brass link on ink                          */
  --gld-gold-ink: #7a6117;   /* brass-on-paper for small labels (AA)       */
  --gld-text: #17233c;       /* near-black ink on paper                    */
  --gld-text-2: #3d4459;     /* secondary on paper                         */
  --gld-text-3: #2a3147;     /* prose on paper                             */
  --gld-light: #f5f1e6;      /* warm white on ink                          */
  --gld-light-2: #c6cdde;    /* secondary on ink                           */
  --gld-line: #e7e0ce;       /* hairline on paper                          */
  --gld-line-2: #e4dcc8;     /* hairline on paper-2                        */
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gld-text-3);
  display: block;
}

/* ---- shared page primitives ------------------------------------------ */

/* Scoped border-box reset. This sheet shipped without one -- the only
   converted case study missing it -- so the page inherited content-box and
   `.gld-hero`'s `width:100%` + 24px side padding resolved to viewport+48px,
   pushing the document wider than the viewport and leaving an unpainted
   gutter down the right of every section. Same rule the six sibling
   case-study sheets carry; keeping it identical so the next padded element
   on this page cannot reintroduce the bug. */
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study *,
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study *::before,
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study *::after { box-sizing: border-box; }

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-wrap {
  max-width: 1160px;
  margin-inline: auto;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-wrap--read {
  max-width: 780px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-sec {
  padding: clamp(64px, 7vw, 104px) 24px;
  /* The shared site header is position:sticky, top:0, 77px tall. Without
     this an index jump parks the section heading UNDER the header and the
     link reads as broken. 96px = header + breathing room. This sheet may
     not style html, so it cannot set scroll-padding-top on the scroller --
     scroll-margin on each target is the scoped equivalent. */
  scroll-margin-top: 96px;
}
/* The landed section announces itself, so a jump is visibly "opening" that
   section rather than silently moving the page. :target persists, which is
   what we want -- it marks where you are. */
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-sec:target {
  box-shadow: inset 0 3px 0 0 var(--gld-gold);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-sec--paper  { background: var(--gld-paper); }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-sec--paper2 { background: var(--gld-paper-2); }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-sec--ink {
  background: linear-gradient(165deg, var(--gld-ink) 0%, var(--gld-ink-2) 100%); /* static */
}

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--gld-text);
  margin: 0 0 28px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-h2--light { color: var(--gld-light); }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-h2--centre { text-align: center; }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gld-gold-ink);
  margin: 0 0 10px;
  text-align: center;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--gld-text-2);
  margin: 0;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-prose {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--gld-text-3);
  margin: 0;
}

/* brass shoulder rule above the reading sections' headings */
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-about .gld-h2::before,
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-chal .gld-h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gld-gold);
  margin-bottom: 18px;
}

/* ---- buttons ---------------------------------------------------------- */

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-btn {
  display: inline-block;
  min-height: 48px;
  padding: 13px 30px;
  border: 2px solid transparent;
  border-radius: 5px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 90ms ease;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-btn--gold {
  background: var(--gld-gold);
  color: #101726;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-btn--gold:hover { background: #d6ac31; }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-btn--gold:active { transform: translateY(1px); }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-btn--ink {
  background: transparent;
  border-color: var(--gld-text);
  color: var(--gld-text);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-btn--ink:hover {
  background: var(--gld-text);
  color: var(--gld-light);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-btn--ink:active { transform: translateY(1px); }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-btn:focus-visible {
  outline: 3px solid var(--gld-gold);
  outline-offset: 3px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-sec--ink .gld-btn:focus-visible {
  outline-color: var(--gld-gold-3);
}

/* ---- hero — rule 24: full-bleed static ground, no image ---------------- */

/* `width: 100%` dropped as well: a <section> is block-level and already
   fills <main>, so it was redundant even under border-box. */
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-hero {
  padding: clamp(72px, 9vw, 122px) 24px clamp(56px, 7vw, 92px);
  background: linear-gradient(168deg, #101726 0%, var(--gld-ink) 34%, var(--gld-ink-2) 100%); /* static */
  text-align: center;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-hero__inner {
  max-width: 900px;
  margin-inline: auto;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-hero__eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gld-gold-2);
  margin: 0 0 22px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-hero__h1 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--gld-light);
  margin: 0 0 24px;
  text-wrap: balance;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-hero__lede {
  font-size: 18px;
  line-height: 1.72;
  color: var(--gld-light-2);
  max-width: 66ch;
  margin: 0 auto 36px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-hero__act { margin: 0 0 44px; }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-hero__stackh {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aeb6cc;
  margin: 0 0 14px;
}
/* chips own their foreground at (0,2,0)+ — no prose rule can out-rank (39A) */
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-hero .gld-stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-hero .gld-stack__item {
  background: var(--gld-ink-3);
  border: 1px solid rgba(217, 180, 91, 0.4);
  border-radius: 999px;
  color: #ecdfb4;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  padding: 7px 16px;
}

/* ---- breadcrumb -------------------------------------------------------- */

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-crumb {
  background: var(--gld-crumb-b);
  border-bottom: 1px solid var(--gld-line);
  padding: 15px 24px;
}
/* Mirrors the live .breadcrum-bar: flex row, 16px / weight 700, every crumb
   in the same dark ink, "/" separators at 6px margins, back-arrow first. */
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-crumb__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  max-width: 1160px;
  margin-inline: auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--gld-text);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-crumb__bar a {
  color: var(--gld-text);
  font-weight: 700;
  text-decoration: none;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-crumb__bar a:hover,
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-crumb__bar a:focus-visible {
  color: var(--gld-gold-ink);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-crumb__back {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-crumb__back img { display: block; }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-crumb__slash {
  margin: 0 6px;          /* same 6px the live .slash-home uses */
  color: #5c5647;         /* 6.4:1 on --gld-crumb-b: de-emphasised but AA-clean */
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-crumb__here {
  font-weight: 700;
  color: var(--gld-text);
}

/* ---- case-study index --------------------------------------------------- */

/* The index is the page's only wayfinding control, so each entry is a real
   draw-ticket card that reads as pressable -- the previous treatment was a
   bare hairline rule over text, which gave no affordance that the titles
   were links at all. Motion stays user-initiated (rule 26): nothing moves
   until hover / focus / active. */

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index {
  background: var(--gld-paper-2);
  padding: 40px 24px 48px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__h {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gld-gold-ink);
  margin: 0 0 22px;
}
/* brass ledger rule running off the label to the right margin */
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gld-gold) 0%, var(--gld-line-2) 100%);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 18px 18px 18px 16px;
  background: var(--gld-paper);
  border: 1px solid var(--gld-line-2);
  border-left: 3px solid var(--gld-line-2);
  border-radius: 6px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--gld-text);
  transition: border-color 140ms ease, background-color 140ms ease,
              transform 140ms ease, box-shadow 140ms ease;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item:hover {
  border-color: var(--gld-gold);
  border-left-color: var(--gld-gold);
  background: #fffdf6;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(28, 22, 4, 0.09);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item:active {
  transform: translateY(0);
  box-shadow: none;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item:focus-visible {
  outline: 3px solid var(--gld-gold);
  outline-offset: 2px;
}
/* numbered draw ball */
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gld-gold);
  border-radius: 50%;
  font-size: 16px;        /* page contract: no body/UI text below 16px */
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gld-gold-ink); /* brass at AA text grade — raw #c9a227 is 2.07:1 on paper-2 */
  background: var(--gld-paper-2);
  transition: background-color 140ms ease, color 140ms ease;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item:hover .gld-index__n {
  background: var(--gld-gold);
  color: var(--gld-ink);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__t { flex: 1; }
/* travel arrow — the affordance that says "this goes somewhere" */
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__go {
  flex: none;
  align-self: center;
  font-size: 18px;
  line-height: 1;
  color: var(--gld-gold-ink);
  opacity: 0.45;
  transition: opacity 140ms ease, transform 140ms ease;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item:hover .gld-index__go,
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item:focus-visible .gld-index__go {
  opacity: 1;
  transform: translateX(3px);
}

/* ---- challenges ledger --------------------------------------------------- */

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-chlist {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-chlist__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 26px;
  padding: 26px 0;
  border-top: 1px solid var(--gld-line-2);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-chlist__item:last-child { border-bottom: 1px solid var(--gld-line-2); }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-ball {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--gld-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gld-gold-ink);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-chlist__t {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gld-text);
  margin: 4px 0 8px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-chlist__body p { max-width: 64ch; }

/* ---- solution mapping table ---------------------------------------------- */

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-map__scroll { overflow-x: auto; }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  text-align: left;
  font-size: 16.5px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-table th {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gld-gold-ink);
  padding: 0 18px 12px;
  border-bottom: 2px solid var(--gld-gold);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-table td {
  padding: 20px 18px;
  border-bottom: 1px solid var(--gld-line);
  vertical-align: top;
  line-height: 1.66;
  color: var(--gld-text-3);
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-table td:last-child { color: var(--gld-text); }

/* ---- results board (ink) -------------------------------------------------- */

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 34px;
  margin: 0 0 8px;
  padding: 0;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-stats__item {
  border-top: 2px solid rgba(217, 180, 91, 0.45);
  padding-top: 20px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-stats__n {
  display: block;
  font-size: clamp(44px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gld-gold-2);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-stats__p {
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--gld-light-2);
  margin: 0;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-link {
  color: var(--gld-gold-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-link:hover { color: #f3dd9b; }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-link:focus-visible {
  outline: 3px solid var(--gld-gold-3);
  outline-offset: 2px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-secact {
  margin-top: 44px;
  text-align: center;
}

/* ---- why AIS --------------------------------------------------------------- */

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-whylist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 30px;
  margin: 0;
  padding: 0;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-whylist__item {
  border-top: 1px solid var(--gld-line);
  padding-top: 18px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-whylist__item::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--gld-gold);
  margin-bottom: 16px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-whylist__t {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gld-text);
  margin: 0 0 8px;
}

/* ---- client quote ------------------------------------------------------------ */

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-quote__h { text-align: center; }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-quote__fig { margin: 0; }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-quote__fig::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gld-gold);
  margin: 0 auto 30px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-quote__bq { margin: 0; }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-quote__p {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.56;
  letter-spacing: -0.005em;
  color: var(--gld-text);
  text-align: center;
  text-wrap: balance;
  margin: 0;
}

/* ---- area we serve ------------------------------------------------------------ */

#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-servelist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 30px;
  margin: 26px 0 0;
  padding: 0;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-servelist__item {
  border-top: 1px solid var(--gld-line);
  padding-top: 18px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-servelist__r {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gld-text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-servelist__r img { flex: none; }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-tel {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--gld-text);
  margin-bottom: 8px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-tel:hover { color: var(--gld-gold-ink); }
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-tel:focus-visible {
  outline: 3px solid var(--gld-gold);
  outline-offset: 2px;
}
#page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-serve .gld-body { line-height: 1.62; }

/* ---- CTA modal ------------------------------------------------------------------ */

/* display:none → flex (the sibling-page pattern): the dialog and its close
   button are focusable the same tick .is-open lands — a visibility transition
   would keep them unfocusable at t=0 and silently eat closeBtn.focus(). */
.csgs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 20px 20px 20px; overflow-y: auto;
  background: rgba(9, 13, 24, 0.8);
}
.csgs-modal.is-open { display: flex; }
.csgs-modal__box {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  background: #faf7f0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(5, 8, 16, 0.55);
}
.csgs-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #131b2e;
  color: #f5f1e6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 130ms ease;
}
.csgs-modal__x:hover { background: #c9a227; }
.csgs-modal__x:focus-visible { outline: 3px solid #d9b45b; outline-offset: 2px; }
.csgs-modal__box iframe {
  display: block;
  width: 100%;
  min-height: 820px; /* skill §14: content height + buffer; form_embed.js refines on open */
  border: 0;
  border-radius: 8px;
}

/* ---- responsive ------------------------------------------------------------------- */

@media (max-width: 1020px) {
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__list { grid-template-columns: repeat(2, 1fr); }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-stats { grid-template-columns: repeat(2, 1fr); }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-whylist { grid-template-columns: repeat(2, 1fr); }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-servelist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__list { grid-template-columns: 1fr; }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-chlist__item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-table { min-width: 0; }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-table thead { display: none; }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-table tr {
    display: block;
    border-top: 2px solid var(--gld-gold);
    padding: 18px 0 6px;
  }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-table td {
    display: block;
    padding: 0 0 14px;
    border-bottom: 0;
  }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gld-gold-ink);
    margin-bottom: 4px;
  }
}
@media (max-width: 560px) {
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-stats { grid-template-columns: 1fr; }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-whylist { grid-template-columns: 1fr; }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-servelist { grid-template-columns: 1fr; }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-btn { width: 100%; }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-crumb__bar { font-size: 16px; }
}

/* ---- reduced motion: nothing runs anyway; keep state changes instant ------- */

@media (prefers-reduced-motion: reduce) {
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-btn,
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item,
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__n,
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__go,
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-link,
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-tel,
  .csgs-modal__x {
    transition-duration: 0.01ms !important;
  }
  /* no lift / slide for users who asked for less motion — colour still changes */
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item:hover { transform: none; }
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item:hover .gld-index__go,
  #page-case-study-goldenwin-solutions-online-lottery-platform-case-study .gld-index__item:focus-visible .gld-index__go { transform: none; }
}
