/* /case-study/luckydraw-online-lottery-platform-case-study — AISHTMLNEWDESIGN-524
   Page-owned styles. EVERY selector is scoped to #page-case-study-luckydraw-online-lottery-platform-case-study or a
   cslo- 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.

   TICKET STUB — a printed lottery ticket: a kraft-oat hero, white ticket
   panels for the record sections, a stamped-red accent, and a punched
   perforation rule above each H2.

   TWO deliberate separations, both worth keeping:

   1. The hero is LIGHT. All twelve sibling case studies built in this batch
      open on a dark ground, so hue alone stopped distinguishing them; this
      page differentiates on COMPOSITION instead, with the single dark band
      moved down to the results stub. Rule 24 requires the hero be image-free,
      full-bleed and flat or static-gradient — it does not require dark.

   2. It must not read like /case-study/goldenwin-solutions-online-lottery-
      platform-case-study, the OTHER lottery case study, which runs GOLDEN
      DRAW: navy ground, brass accent, warm paper. Kraft + stamped red shares
      none of those three.

   No keyframes exist in this file; motion is limited to hover/focus/active
   transitions (rule 26) — no number is ever drawn on its own. */

#page-case-study-luckydraw-online-lottery-platform-case-study {
  --tkt-kraft: #e9ddc7;      /* kraft-oat — the hero ground                 */
  --tkt-kraft-2: #f3ecdd;    /* lighter kraft, for the crumb strip          */
  --tkt-oat: #f6f0e4;        /* oat panel — second record tone              */
  --tkt-ticket: #fdfcfa;     /* ticket white — main record panels           */
  --tkt-stub: #1b1a17;       /* the stub — the one dark band on this page   */
  --tkt-stub-2: #272521;     /* gradient stop                                */
  --tkt-red: #c62828;        /* stamped red — the single accent             */
  --tkt-red-ink: #8e1f1a;    /* same accent at AA text grade on kraft/white */
  --tkt-text: #1e1b16;       /* press ink                                    */
  --tkt-text-2: #544d43;     /* secondary ink                                */
  --tkt-text-3: #ded6c9;     /* copy on the stub                             */
  --tkt-line: #e6dccb;       /* hairline on ticket white                     */
  --tkt-line-2: #cfc2ab;     /* stronger hairline                            */
  --tkt-line-dark: #3d3931;  /* hairline on the stub                         */

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--tkt-text);
  -webkit-font-smoothing: antialiased;
}

/* Scoped border-box reset, declared up front. Without one, any element
   combining width:100% with side padding resolves to viewport+padding and
   pushes the document wider than the viewport. */
#page-case-study-luckydraw-online-lottery-platform-case-study *,
#page-case-study-luckydraw-online-lottery-platform-case-study *::before,
#page-case-study-luckydraw-online-lottery-platform-case-study *::after { box-sizing: border-box; }

#page-case-study-luckydraw-online-lottery-platform-case-study p { margin: 0 0 18px; }
#page-case-study-luckydraw-online-lottery-platform-case-study p:last-child { margin-bottom: 0; }

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

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-wrap {
  max-width: 1160px;
  margin-inline: auto;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-wrap--read { max-width: 780px; }

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-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. This sheet may
     not style html, so scroll-padding-top on the scroller is unavailable —
     scroll-margin on each target is the scoped equivalent. */
  scroll-margin-top: 96px;
}
/* the landed section announces itself, so a jump visibly opens THAT section */
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-sec:target {
  box-shadow: inset 0 3px 0 0 var(--tkt-red);
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-sec--ticket { background: var(--tkt-ticket); }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-sec--oat    { background: var(--tkt-oat); }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-sec--stub {
  background: linear-gradient(160deg, var(--tkt-stub) 0%, var(--tkt-stub-2) 100%); /* static */
}

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin: 0 0 22px;
  color: var(--tkt-text);
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-h2--light { color: #fdfcfa; }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-h2--centre { text-align: center; }
/* perforation — punched holes along a tear line, the page motif */
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-h2::before {
  content: "";
  display: block;
  width: 64px;
  height: 10px;
  margin-bottom: 18px;
  background-image: radial-gradient(
    circle,
    transparent 2px,
    var(--tkt-red) 2.2px,
    var(--tkt-red) 3.2px,
    transparent 3.4px
  );
  background-size: 13px 10px;
  background-repeat: repeat-x;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-h2--centre::before { margin-inline: auto; }

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-lead {
  font-size: 18px;
  line-height: 1.78;
  color: var(--tkt-text-2);
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-link {
  color: var(--tkt-red-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 140ms ease;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-link:hover { color: var(--tkt-text); }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-link:focus-visible,
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-tel:focus-visible {
  outline: 3px solid var(--tkt-red-ink);
  outline-offset: 2px;
}

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

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border: 0;
  border-radius: 4px;
  background: var(--tkt-red-ink);
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-btn:hover {
  background: #731712;
  transform: translateY(-2px);
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-btn:active { transform: translateY(0); }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-btn:focus-visible {
  outline: 3px solid var(--tkt-red);
  outline-offset: 3px;
}
/* on the dark stub the brighter stamped red carries itself */
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-btn--light {
  background: var(--tkt-red);
  color: #ffffff;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-btn--light:hover { background: #e14b41; }
/* every section CTA is centred, matching the hero's */
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-sec__cta {
  margin: 34px 0 0;
  text-align: center;
}

/* ---- hero — rule 24: image-free full-bleed FLAT ground, light ----------- */

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-hero {
  padding: clamp(72px, 9vw, 122px) 24px clamp(56px, 7vw, 92px);
  background: var(--tkt-kraft); /* flat colour, no gradient, no image */
  border-bottom: 2px solid var(--tkt-line-2);
  text-align: center;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-hero__inner {
  max-width: 900px;
  margin-inline: auto;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-hero__eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tkt-red-ink);
  margin: 0 0 18px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-hero__h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--tkt-text);
  margin: 0 0 24px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-hero__lede {
  font-size: 18px;
  line-height: 1.8;
  color: var(--tkt-text-2);
  margin: 0 0 32px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-hero__cta { margin: 0 0 40px; }

/* technology strip — a label plus its chips, not a heading (the source styles
   it as a div and the record's HEADING INVENTORY omits it) */
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-stack {
  border-top: 1px dashed var(--tkt-line-2);
  padding-top: 26px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-stack__label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tkt-red-ink);
  margin-bottom: 16px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-stack__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-stack__item {
  font-size: 16px;
  font-weight: 600;
  color: var(--tkt-text);
  border: 1px solid var(--tkt-line-2);
  border-radius: 4px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.55);
}

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

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-crumb {
  background: var(--tkt-kraft-2);
  border-bottom: 1px solid var(--tkt-line-2);
  padding: 15px 24px;
}
/* mirrors the live .breadcrum-bar: flex row, 16px / weight 700, every crumb
   in the same ink, "/" separators at 6px margins, back-arrow first */
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-crumb__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1160px;
  margin-inline: auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--tkt-text);
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-crumb__bar a {
  color: var(--tkt-text);
  font-weight: 700;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-crumb__bar a:hover,
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-crumb__bar a:focus-visible { color: var(--tkt-red-ink); }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-crumb__back {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-crumb__back img { display: block; }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-crumb__slash {
  margin: 0 6px;
  color: #7d7365;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-crumb__here { font-weight: 700; }

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

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index {
  background: var(--tkt-oat);
  padding: 40px 24px 48px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__h {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tkt-red-ink);
  margin: 0 0 22px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--tkt-red) 0%, var(--tkt-line-2) 100%);
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
}
/* each index entry is a torn stub: dashed left edge, square serial */
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 18px 18px 18px 16px;
  background: var(--tkt-ticket);
  border: 1px solid var(--tkt-line);
  border-left: 3px dashed var(--tkt-line-2);
  border-radius: 6px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--tkt-text);
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item:hover {
  border-color: var(--tkt-red);
  border-left-color: var(--tkt-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 27, 22, 0.12);
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item:active {
  transform: translateY(0);
  box-shadow: none;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item:focus-visible {
  outline: 3px solid var(--tkt-red-ink);
  outline-offset: 2px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--tkt-red-ink);
  border-radius: 2px;
  font-size: 16px;      /* page contract: no body/UI text below 16px */
  font-weight: 700;
  color: var(--tkt-red-ink);
  background: var(--tkt-kraft-2);
  transition: background-color 140ms ease, color 140ms ease;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item:hover .tkt-index__n {
  background: var(--tkt-red-ink);
  color: #ffffff;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__t { flex: 1; }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__go {
  flex: none;
  align-self: center;
  font-size: 18px;
  line-height: 1;
  color: var(--tkt-red-ink);
  opacity: 0.45;
  transition: opacity 140ms ease, transform 140ms ease;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item:hover .tkt-index__go,
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item:focus-visible .tkt-index__go {
  opacity: 1;
  transform: translateX(3px);
}

/* ---- challenges --------------------------------------------------------- */
/* Unnumbered on this record, so no numeral column — the dashed tear edge on
   the left of each card does the marking instead. */

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-chlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-chlist__item {
  background: var(--tkt-ticket);
  border: 1px solid var(--tkt-line);
  border-left: 4px dashed var(--tkt-red);
  border-radius: 6px;
  padding: 24px 26px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-chlist__t {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tkt-text);
  margin-bottom: 8px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-chlist__item p {
  color: var(--tkt-text-2);
  max-width: 62ch;
}

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

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-map__scroll {
  overflow-x: auto;
  border: 1px solid var(--tkt-line-2);
  border-radius: 6px;
  background: var(--tkt-ticket);
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  text-align: left;
  font-size: 16.5px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table th {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tkt-red-ink);
  background: var(--tkt-oat);
  border-bottom: 2px solid var(--tkt-red);
  padding: 14px 18px;
  vertical-align: bottom;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table td {
  border-top: 1px solid var(--tkt-line);
  padding: 18px;
  vertical-align: top;
  color: var(--tkt-text-2);
}
/* zebra banding so a tall row stays trackable across all three columns */
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table tbody tr:nth-child(even) td {
  background: var(--tkt-oat);
}
/* Column dividers — one bold accent rule per boundary, running the full height
   of the table through the header band. A faint uniform grid does not read as
   a separator, and separating the columns IS this table's whole job: showing
   which solution belongs to which challenge. Accent is this page's --tkt-red,
   which is dark enough to read on both the ticket white and the oat band.
   border-left on the cells rather than a box-shadow: this is a real <table>
   with border-collapse:collapse, so an actual border is what collapses and
   aligns between th and td. */
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table th + th,
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table td + td {
  border-left: 4px solid var(--tkt-red);
}

/* ---- results stub ------------------------------------------------------- */
/* The one dark band on this page. Each entry is ONE sentence that opens with
   its figure, so the figure is enlarged in place — no separate display number
   above the line, because that would print the same percentage twice. */

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 40px;
  margin: 0;
  padding: 0;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-stats__item {
  border-top: 1px dashed var(--tkt-line-dark);
  padding-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tkt-text-3);
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-stats__n {
  display: block;
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ef5350;   /* the stamped red lifted for the dark stub */
  margin-bottom: 10px;
}

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

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-whylist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-whylist__item {
  background: var(--tkt-ticket);
  border: 1px solid var(--tkt-line);
  border-top: 3px solid var(--tkt-red);
  border-radius: 6px;
  padding: 24px 22px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-whylist__n {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tkt-red-ink);
  margin-bottom: 12px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-whylist__t {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: var(--tkt-text);
  margin-bottom: 8px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-whylist__item p {
  font-size: 16.5px;
  color: var(--tkt-text-2);
}

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

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-quote__plate {
  margin: 0;
  background: var(--tkt-ticket);
  border: 1px solid var(--tkt-line);
  border-left: 4px dashed var(--tkt-red);
  border-radius: 6px;
  padding: 30px 32px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-quote__plate blockquote { margin: 0; }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-quote__plate p {
  font-size: 20px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--tkt-text);
}

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

#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-servelist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-servelist__item {
  background: var(--tkt-ticket);
  border: 1px solid var(--tkt-line);
  border-radius: 6px;
  padding: 24px 22px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-servelist__h {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tkt-red-ink);
  margin: 0 0 12px;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-servelist__tel { margin: 0 0 10px; }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-tel {
  font-size: 17px;
  font-weight: 700;
  color: var(--tkt-text);
  transition: color 140ms ease;
}
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-tel:hover { color: var(--tkt-red-ink); }
#page-case-study-luckydraw-online-lottery-platform-case-study .tkt-servelist__addr {
  font-size: 16px;
  line-height: 1.6;
  color: var(--tkt-text-2);
}

/* ---- enquiry modal ------------------------------------------------------ */

.cslo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(27, 26, 23, 0.78);
  overflow-y: auto;
}
/* sibling display:none -> flex rather than a visibility transition: the close
   button must be focusable on the same tick .is-open lands, or closeBtn.focus()
   at t=0 is swallowed */
.cslo-modal.is-open { display: flex; align-items: flex-start; }
.cslo-modal__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: max(6vh, 100px) auto 48px;
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(27, 26, 23, 0.42);
}
.cslo-modal__x {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #8e1f1a;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.cslo-modal__x:hover { background: #731712; }
.cslo-modal__x:focus-visible { outline: 3px solid #c62828; outline-offset: 2px; }
.cslo-modal__box iframe {
  display: block;
  width: 100%;
  min-height: 820px; /* content height + buffer; form_embed.js refines on open */
  border: 0;
  border-radius: 8px;
}

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

@media (max-width: 1020px) {
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__list { grid-template-columns: repeat(2, 1fr); }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-whylist { grid-template-columns: repeat(2, 1fr); }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-servelist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__list { grid-template-columns: 1fr; }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-chlist { grid-template-columns: 1fr; }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-stats { grid-template-columns: 1fr; }
  /* the mapping table becomes stacked labelled rows rather than a
     horizontally-scrolling table */
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-map__scroll { padding: 0 16px; }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table { min-width: 0; }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table thead { display: none; }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table tr {
    display: block;
    border-top: 2px dashed var(--tkt-red);
    padding: 16px 0;
  }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table td,
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table tbody tr:nth-child(even) td {
    display: block;
    border: 0;
    padding: 6px 0;
    background: transparent;
  }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table td::before {
    content: attr(data-l);
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tkt-red-ink);
    margin-bottom: 4px;
  }
}
@media (max-width: 560px) {
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-whylist { grid-template-columns: 1fr; }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-servelist { grid-template-columns: 1fr; }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-btn { width: 100%; }
}

/* ── The stacked layout has no columns, so no vertical rule. This MUST be its
      own block placed AFTER the base rule, and it must out-specify the even-row
      banding selector too: `.tkt-table td + td` (1,1,2) already beats the 720px
      block's `.tkt-table td` (1,1,1), and `tbody tr:nth-child(even) td` (1,2,3)
      in turn beats `td + td` — so a reset naming only `td + td` would clear the
      bar on odd stacked rows and leave it on even ones. ── */
@media (max-width: 720px) {
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table th + th,
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table td + td,
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-table tbody tr:nth-child(even) td + td {
    border-left: 0;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-btn,
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item,
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__n,
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__go,
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-link,
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-tel,
  .cslo-modal__x {
    transition-duration: 0.01ms !important;
  }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-btn:hover,
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item:hover { transform: none; }
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item:hover .tkt-index__go,
  #page-case-study-luckydraw-online-lottery-platform-case-study .tkt-index__item:focus-visible .tkt-index__go { transform: none; }
}
