:root {
  --bg: #fff8ef;
  --surface: #ffffff;
  --ink: #2a1608;
  --muted: #6a5543;
  --accent: #a54a0d;
  --accent-d: #7c3407;
  --accent2: #669bbc;
  --accent2-d: #3f6f91;
  --line: #e8d5bf;
  --soft: #fdeedb;
  --blue-soft: #e2edf5;
  --foot-ink: #f3e6d6;
  --foot-gold: #e8a36b;
  --foot-th: #ffd9b0;
  --foot-sub: #d9c7b2;
  --font-thai: KoHo, Tahoma, sans-serif;
  --font-num: Graduate, serif;
  --radius-card: 6px;
  --radius-btn: 4px;
  --trans: 0.15s ease;
}

/* ==========================================================================
   01. DOCUMENT BASE AND RESETS
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

html.jl-lock {
  overflow: hidden;
  touch-action: none;
}

body.jl-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-thai);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: clip;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main.jl-main {
  display: block;
  min-height: 50vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

table {
  border-spacing: 0;
}

/* Skip to content link */
a.jl-skip {
  position: absolute;
  top: -9999px;
  left: 20px;
  z-index: 1000;
  padding: 12px 20px;
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font-thai);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-btn);
  outline: none;
}

a.jl-skip:focus {
  top: 20px;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ==========================================================================
   02. CORE TYPOGRAPHY AND NUMERALS
   ========================================================================== */

h1.jl-h1 {
  margin: 0 0 16px 0;
  font-family: var(--font-thai);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}

h2.jl-h2 {
  margin: 0 0 24px 0;
  font-family: var(--font-thai);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  border-left: 4px solid var(--accent2);
  padding-left: 14px;
  overflow-wrap: anywhere;
}

p.jl-eyebrow {
  margin: 0 0 12px 0;
  font-family: var(--font-thai);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--accent-d);
  text-transform: uppercase;
}

p.jl-lead {
  margin: 0 0 20px 0;
  font-family: var(--font-thai);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
  overflow-wrap: anywhere;
}

p.jl-big {
  font-family: var(--font-num);
  font-size: clamp(96px, 14vw, 200px);
  line-height: 0.9;
  color: var(--accent);
  margin: 0;
  user-select: none;
}

p.jl-big-r {
  font-family: var(--font-num);
  color: var(--bg);
  text-align: right;
  margin: 0 0 24px 0;
}

p.jl-big-nf {
  font-family: var(--font-num);
  font-size: clamp(80px, 20vw, 180px);
  line-height: 0.95;
  color: var(--accent);
  margin: 0 0 20px 0;
  user-select: none;
}

a.jl-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-thai);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent-d);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color var(--trans);
}

a.jl-more::after {
  content: "\203A";
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

a.jl-more:hover {
  color: var(--accent);
}

a.jl-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   03. BUTTON COMPONENTS
   ========================================================================== */

.jl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-thai);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--trans), border-color var(--trans), color var(--trans);
}

.jl-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.jl-btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 18px;
}

.jl-btn-solid {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.jl-btn-solid:hover {
  background-color: var(--accent-d);
  border-color: var(--accent-d);
  color: #ffffff;
}

.jl-btn-solid:active {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.jl-btn-line {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-d);
}

.jl-btn-line:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.jl-btn-line:active {
  background-color: var(--accent-d);
  border-color: var(--accent-d);
  color: #ffffff;
}

/* ==========================================================================
   04. CONTAINER AND LAYOUT WRAPPERS
   ========================================================================== */

.jl-wrap {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.jl-page {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   05. HEADER AND NAVIGATION
   ========================================================================== */

header.jl-top {
  position: sticky;
  top: 0;
  z-index: 300;
  width: 100%;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.jl-top-in {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 68px;
}

a.jl-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
}

svg.jl-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

path.jl-mark-hex {
  fill: var(--accent);
  stroke: var(--accent2);
  stroke-width: 2px;
}

text.jl-mark-t {
  fill: var(--bg);
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  dominant-baseline: central;
  text-anchor: middle;
}

span.jl-logo-w {
  font-family: var(--font-num);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.02em;
}

span.jl-logo-w b {
  color: var(--accent);
  font-weight: 700;
}

nav.jl-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 28px;
}

a.jl-mi {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--font-thai);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}

a.jl-mi:hover {
  color: var(--accent);
}

a.jl-mi:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a.jl-mi.is-on {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

div.jl-acts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

button.jl-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  cursor: pointer;
  padding: 0;
}

button.jl-burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button.jl-burger i {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  margin-top: 2.5px;
  margin-bottom: 2.5px;
  border-radius: 1px;
}

/* ==========================================================================
   06. HEADER SUB STRIP
   ========================================================================== */

.jl-sub {
  width: 100%;
  height: 32px;
  background-color: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 32px;
}

.jl-sub-in {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.jl-sub-in a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--trans);
}

.jl-sub-in a:hover {
  color: var(--accent);
}

.jl-sub-in span {
  color: var(--muted);
  user-select: none;
}

/* ==========================================================================
   07. MOBILE DRAWER NAVIGATION
   ========================================================================== */

nav.jl-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 290;
  box-shadow: 0 8px 16px rgba(42, 22, 8, 0.06);
}

nav.jl-drawer[hidden] {
  display: none;
}

.jl-drawer-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 16px 20px;
  gap: 12px;
}

.jl-dg {
  display: flex;
  flex-direction: column;
}

p.jl-dg-t {
  margin: 8px 0 4px 0;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

a.jl-dl {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--trans), color var(--trans);
}

a.jl-dl:hover {
  background-color: var(--soft);
  color: var(--accent);
}

a.jl-dl:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

a.jl-dl-home {
  font-weight: 700;
  color: var(--accent-d);
}

/* ==========================================================================
   08. BREADCRUMBS
   ========================================================================== */

nav.jl-crumb {
  width: 100%;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

ol.jl-crumb-in {
  list-style: none;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 1120px;
}

ol.jl-crumb-in li {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

ol.jl-crumb-in li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--muted);
}

ol.jl-crumb-in a {
  color: var(--accent-d);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--trans);
}

ol.jl-crumb-in a:hover {
  color: var(--accent);
}

ol.jl-crumb-in a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   09. HOME HERO SECTION
   ========================================================================== */

section.jl-hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.jl-hero-l {
  background-color: var(--bg);
  display: flex;
  align-items: center;
}

.jl-hero-lin {
  width: 100%;
  max-width: 560px;
  padding: 56px 20px 56px max(20px, calc((100vw - 1120px) / 2));
}

div.jl-hero-b {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.jl-hero-r {
  position: relative;
  background-color: var(--accent2);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -7%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.jl-hero-rin {
  width: 100%;
  padding: 56px max(20px, calc((100vw - 1120px) / 2)) 56px 40px;
}

div.jl-tilt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  perspective: 800px;
}

figure.jl-tc {
  position: relative;
  margin: 0;
  width: 150px;
  flex-shrink: 0;
  transition: transform var(--trans);
}

figure.jl-tc.jl-tc1 {
  transform: rotate(-6deg) translateY(-8px);
  z-index: 1;
}

figure.jl-tc.jl-tc2 {
  transform: rotate(2deg) translateY(12px);
  z-index: 2;
}

figure.jl-tc.jl-tc3 {
  transform: rotate(7deg) translateY(-4px);
  z-index: 1;
}

figure.jl-tc:hover {
  z-index: 5;
  transform: scale(1.04);
}

img.jl-tc-i {
  width: 100%;
  aspect-ratio: 286 / 400;
  object-fit: cover;
  border: 4px solid var(--bg);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 14px rgba(42, 22, 8, 0.12);
}

/* ==========================================================================
   10. INNER PAGE HEADER
   ========================================================================== */

section.jl-ph {
  position: relative;
  width: 100%;
  background-color: var(--soft);
  border-bottom: 1px solid var(--line);
}

section.jl-ph::after {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  background-color: var(--accent2);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
}

.jl-ph-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 40px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px;
}

.jl-ph-t {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.jl-ph-t .jl-btn {
  margin-top: 12px;
}

.jl-ph-i {
  display: flex;
  justify-content: center;
}

img.jl-ph-img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 4px solid var(--surface);
  border-radius: var(--radius-card);
  transform: rotate(2deg);
  box-shadow: 0 4px 12px rgba(42, 22, 8, 0.08);
}

/* ==========================================================================
   11. SPLIT HIGHLIGHT SECTION
   ========================================================================== */

section.jl-split {
  padding: 64px 0;
  background-color: var(--bg);
}

.jl-sp2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.jl-spc {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.jl-spc-a {
  border-top: 6px solid var(--accent);
}

.jl-spc-b {
  border-top: 6px solid var(--accent2);
}

p.jl-spn {
  font-family: var(--font-num);
  font-size: 72px;
  line-height: 1;
  margin: 0 0 16px 0;
  user-select: none;
}

.jl-spc-a p.jl-spn {
  color: var(--accent);
}

.jl-spc-b p.jl-spn {
  color: var(--accent2-d);
}

p.jl-spp {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  flex-grow: 1;
}

/* ==========================================================================
   12. GAME GRID AND CARDS
   ========================================================================== */

.jl-gg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

article.jl-gc {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 150px;
  transition: border-color var(--trans);
}

article.jl-gc:hover {
  border-color: var(--accent);
}

.jl-gc-i {
  position: relative;
  overflow: hidden;
  background-color: var(--soft);
}

img.jl-gc-img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  transition: transform var(--trans);
}

article.jl-gc:hover img.jl-gc-img {
  transform: scale(1.03);
}

.jl-gc-b {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h3.jl-gc-n {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

p.jl-gc-p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   13. PROVIDER STRIP
   ========================================================================== */

p.jl-lab-t {
  margin: 32px 0 16px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

ul.jl-labs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

li.jl-lb {
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--line);
  transition: border-color var(--trans), transform var(--trans);
}

li.jl-lb:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

img.jl-lb-i {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   14. WALLET STEPS SECTION
   ========================================================================== */

section.jl-wallet {
  padding: 64px 0;
  background-color: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

ol.jl-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

li.jl-st {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
}

span.jl-sn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-btn);
  user-select: none;
}

h3.jl-sh {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

li.jl-st p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   15. LIVE CASINO SECTION
   ========================================================================== */

section.jl-live {
  padding: 64px 0;
  background-color: var(--bg);
}

.jl-live-in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
}

.jl-live-t {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.jl-live-t p {
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

ul.jl-tips {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px 0;
  width: 100%;
}

ul.jl-tips li {
  display: block;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

ul.jl-tips li:last-child {
  border-bottom: none;
}

ul.jl-tips li b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

ul.jl-tips li span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.jl-live-i {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

figure.jl-lv {
  margin: 0;
  position: relative;
  transition: transform var(--trans);
}

img.jl-lv-i {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(42, 22, 8, 0.08);
}

figure.jl-lv:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   16. LONG FORM ARTICLE AND EDITORIAL
   ========================================================================== */

section.jl-longform {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

article.jl-article {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}

section.jl-sec {
  margin-bottom: 36px;
}

.jl-article h2 {
  position: relative;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  color: var(--ink);
}

.jl-article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background-color: var(--accent);
}

.jl-article p {
  margin: 0 0 16px 0;
}

.jl-article ul,
.jl-article ol {
  margin: 0 0 20px 0;
  padding-left: 1.3em;
}

.jl-article li {
  margin-bottom: 8px;
}

.jl-article a {
  color: var(--accent-d);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--trans);
}

.jl-article a:hover {
  color: var(--accent);
}

.jl-article a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

div.jl-mid {
  background-color: var(--blue-soft);
  border-left: 6px solid var(--accent2);
  padding: 18px 20px;
  margin: 28px 0;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

div.jl-mid p {
  margin: 0;
  flex: 1 1 240px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

figure.jl-fig {
  margin: 8px 0 28px 0;
}

img.jl-fig-i {
  width: 220px;
  aspect-ratio: 286 / 400;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

div.jl-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 28px 0;
}

figure.jl-sf {
  margin: 0;
}

img.jl-sf-i {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

/* ==========================================================================
   17. FAQ ACCORDION SECTION
   ========================================================================== */

section.jl-faq {
  padding: 56px 0;
  background-color: var(--bg);
}

.jl-qs {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 10px;
}

details.jl-q {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--trans);
}

details.jl-q:hover {
  border-color: var(--accent);
}

details.jl-q summary {
  padding: 16px 48px 16px 18px;
  font-family: var(--font-thai);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

details.jl-q summary::-webkit-details-marker {
  display: none;
}

details.jl-q summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

details.jl-q[open] summary::after {
  content: "\00d7";
  font-size: 24px;
}

details.jl-q summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

details.jl-q p {
  margin: 0;
  padding: 0 18px 16px 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* ==========================================================================
   18. FULL WIDTH CTA BAND
   ========================================================================== */

section.jl-cta {
  background-color: var(--accent);
  color: #ffffff;
  padding: 48px 0;
}

.jl-cta-in {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

p.jl-cta-t {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  flex: 1 1 320px;
}

section.jl-cta .jl-btn-solid {
  background-color: var(--surface);
  border-color: var(--surface);
  color: var(--accent-d);
}

section.jl-cta .jl-btn-solid:hover {
  background-color: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}

section.jl-cta .jl-btn-line {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

section.jl-cta .jl-btn-line:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--accent-d);
}

/* ==========================================================================
   19. NOT FOUND 404 SECTION
   ========================================================================== */

section.jl-nf {
  padding: 80px 0;
  text-align: center;
  background-color: var(--bg);
}

p.jl-nf-l {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 0 0;
}

/* ==========================================================================
   20. MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */

nav.jl-bnav {
  display: none;
}

a.jl-bt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  text-decoration: none;
  min-height: 44px;
  padding: 4px 2px;
  transition: background-color var(--trans);
}

a.jl-bt b {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

a.jl-bt span {
  font-family: var(--font-thai);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  margin-top: 2px;
}

a.jl-bt.is-on {
  background-color: var(--soft);
}

a.jl-bt.is-on b {
  color: var(--accent-d);
}

.jl-bnav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

/* ==========================================================================
   21. SITE FOOTER
   ========================================================================== */

footer.jl-foot {
  background-color: var(--ink);
  color: var(--foot-ink);
  padding: 56px 0 0 0;
  border-top: 1px solid var(--line);
}

.jl-foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1.3fr);
  gap: 40px;
}

.jl-fb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

p.jl-fb-n {
  margin: 0 0 12px 0;
  font-family: var(--font-num);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--foot-ink);
}

p.jl-fb-n b {
  color: var(--foot-gold);
}

p.jl-fb-d {
  margin: 0 0 16px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--foot-sub);
}

a.jl-home-l {
  font-size: 14px;
  font-weight: 600;
  color: var(--foot-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 20px;
  transition: color var(--trans);
}

a.jl-home-l:hover {
  color: #ffffff;
}

.jl-fcols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.jl-fc {
  display: flex;
  flex-direction: column;
}

p.jl-ft {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--foot-gold);
}

.jl-fc a {
  display: block;
  padding: 6px 0;
  color: var(--foot-ink);
  font-size: 14px;
  line-height: 1.5;
  min-height: 32px;
  transition: color var(--trans);
}

.jl-fc a:hover {
  color: var(--foot-gold);
  text-decoration: underline;
}

.jl-fc a:focus-visible {
  outline: 2px solid var(--foot-gold);
  outline-offset: 2px;
}

.jl-fchk {
  display: flex;
  flex-direction: column;
}

table.jl-tbl {
  width: 100%;
  border-collapse: collapse;
}

table.jl-tbl tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

table.jl-tbl tr:last-child {
  border-bottom: none;
}

table.jl-tbl th {
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  width: 38%;
  padding: 8px 10px 8px 0;
  vertical-align: top;
  color: var(--foot-th);
}

table.jl-tbl td {
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 0;
  color: var(--foot-ink);
}

.jl-foot-b {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 40px;
  padding: 20px max(20px, calc((100vw - 1120px) / 2));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--foot-sub);
}

span.jl-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--foot-gold);
  color: var(--foot-gold);
  border-radius: var(--radius-btn);
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.jl-foot-b p {
  margin: 0;
}

p.jl-copy {
  margin-left: auto;
}

/* ==========================================================================
   22. DESKTOP ADAPTATIONS (980PX AND ABOVE)
   ========================================================================== */

@media (min-width: 980px) {
  section.jl-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  nav.jl-drawer {
    display: none !important;
  }

  button.jl-burger {
    display: none;
  }

  figure.jl-fig {
    float: right;
    margin: 4px 0 16px 24px;
  }

  figure.jl-lv2 {
    transform: translateY(20px);
  }

  figure.jl-lv2:hover {
    transform: translateY(20px) scale(1.03);
  }
}

/* ==========================================================================
   23. TABLET AND MOBILE ADAPTATIONS (BELOW 980PX)
   ========================================================================== */

@media (max-width: 979px) {
  body.jl-body {
    padding-bottom: 76px;
  }

  .jl-top-in {
    height: 60px;
  }

  nav.jl-menu {
    display: none;
  }

  div.jl-acts .jl-btn-line {
    display: none;
  }

  div.jl-acts .jl-btn-solid {
    padding: 0 14px;
    font-size: 15px;
  }

  button.jl-burger {
    display: inline-flex;
  }

  section.jl-hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .jl-hero-lin {
    max-width: 100%;
    padding: 40px 20px;
  }

  .jl-hero-r {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    margin-left: 0;
    width: 100%;
    padding-top: 48px;
  }

  .jl-hero-rin {
    padding: 32px 20px 48px 20px;
  }

  p.jl-big.jl-big-r {
    font-size: clamp(72px, 22vw, 120px);
    text-align: center;
    margin-bottom: 16px;
  }

  figure.jl-tc {
    width: 28vw;
    max-width: 140px;
  }

  .jl-ph-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 20px;
  }

  .jl-ph-i {
    order: -1;
  }

  img.jl-ph-img {
    max-width: 220px;
  }

  .jl-sp2 {
    grid-template-columns: minmax(0, 1fr);
  }

  ol.jl-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .jl-live-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  figure.jl-fig {
    display: block;
    float: none;
    margin-left: auto;
    margin-right: auto;
  }

  div.jl-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jl-foot-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .jl-fcols {
    grid-template-columns: minmax(0, 1fr);
  }

  nav.jl-bnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68px;
    background-color: var(--surface);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
    gap: 6px;
    padding: 8px 10px;
    z-index: 200;
    box-shadow: 0 -4px 12px rgba(42, 22, 8, 0.06);
  }

  footer.jl-foot {
    padding-bottom: 24px;
  }
}

/* ==========================================================================
   24. MID-MOBILE RESPONSIVE (600PX AND ABOVE)
   ========================================================================== */

@media (min-width: 600px) and (max-width: 979px) {
  .jl-drawer-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jl-fcols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   25. SMALL MOBILE ADJUSTMENTS (UNDER 600PX)
   ========================================================================== */

@media (max-width: 599px) {
  .jl-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .jl-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .jl-gg {
    grid-template-columns: minmax(0, 1fr);
  }

  article.jl-gc {
    grid-template-columns: 35% minmax(0, 1fr);
  }

  .jl-foot-b {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  p.jl-copy {
    margin-left: 0;
  }

  .jl-cta-in {
    flex-direction: column;
    align-items: flex-start;
  }

  .jl-cta-in .jl-btn {
    width: 100%;
  }
}

/* ==========================================================================
   26. ULTRA-COMPACT 390PX VIEWPORT SAFETY
   ========================================================================== */

@media (max-width: 390px) {
  span.jl-logo-w {
    font-size: 20px;
  }

  svg.jl-mark {
    width: 34px;
    height: 34px;
  }

  article.jl-gc {
    grid-template-columns: minmax(0, 1fr);
  }

  .jl-gc-i {
    height: 140px;
  }

  img.jl-gc-img {
    min-height: 140px;
  }

  ul.jl-labs {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  }

  .jl-bnav {
    padding: 6px 4px;
    gap: 4px;
  }

  a.jl-bt b {
    font-size: 18px;
  }

  a.jl-bt span {
    font-size: 11px;
  }
}

/* ==========================================================================
   27. ACCESSIBILITY: REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
/* ===== patch 1: tile images keep their aspect, header strip aligned ===== */
img.jl-tc-i, img.jl-lv-i, img.jl-fig-i, img.jl-ph-img, img.jl-sf-i {
  height: auto;
}
.jl-sub-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.jl-page {
  padding-top: 40px;
  padding-bottom: 24px;
}
.jl-longform .jl-page {
  padding-top: 0;
  padding-bottom: 0;
}

/* ===== patch 2: contrast and tap sizes ===== */
.jl-article .jl-btn-solid, .jl-article .jl-btn-solid:hover {
  color: #ffffff;
  text-decoration: none;
}
.jl-bt span {
  font-size: 12px;
}
.jl-sub-in a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
}
p.jl-big.jl-big-r {
  color: #1d3a52;
}
.jl-bnav .jl-bt span {
  font-size: 12px !important;
}
.jl-sub .jl-sub-in a {
  min-height: 32px !important;
  min-width: 40px;
  justify-content: center;
}
.jl-crumb .jl-crumb-in a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.jl-foot-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.jl-foot-b {
  box-sizing: border-box;
}
@media (max-width: 599px) {
  article.jl-gc {
    grid-template-columns: 36% minmax(0, 1fr) !important;
    min-height: 140px;
  }
  article.jl-gc .jl-gc-img {
    min-height: 140px;
    height: 100%;
  }
  article.jl-gc .jl-gc-b {
    padding: 12px 14px;
  }
}
