/* หน้ารวมบริการกฎหมาย AI /services-ai (17 พ.ย. 2026 · agent.md §74)
   ธีม "หอดูดาวของสำนักงาน": จอแรกพื้นกรมท่ายามค่ำ ตราชั่งทองเหลืองกลางวงโคจร 9 วง (= บริการ 9 ด้าน)
   ส่วนเนื้อหาสลับพื้นงาช้าง ขาว และแถบกรมท่า · ใช้สีและฟอนต์จาก tokens.css ของเว็บ (ไม่โหลดฟอนต์เพิ่ม)
   ทุกกฎจำกัดใต้ body.aihub-page หรือคลาส ax-* เพื่อไม่กระทบหน้าอื่น · ส่วน dn-* (ขั้นตอน ค่าบริการ ทนาย FAQ ฟอร์ม) มาจาก svc-notice.css */

body.aihub-page { background: var(--ivory); }
body.aihub-page [hidden] { display: none !important; }
body.aihub-page .nw { white-space: nowrap; }   /* คำไทยสั้นที่ห้ามตัดกลางคำ แม้บนมือถือ (.nowrap ยาวถูกปล่อยให้ตัดบนจอแคบ) */

/* ── หัวส่วนร่วม ── */
.ax-k { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--gold-text); font-size: .9rem; font-weight: 600; letter-spacing: .02em; }
.ax-k::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.ax-k-on-dark { color: var(--gold-bright); }
.ax-k-on-dark::before { background: var(--gold-bright); }
.ax-sec-head { max-width: 920px; }
.ax-sec-head h2 { margin-top: 14px; font-size: clamp(1.8rem, 1.1rem + 2.5vw, 3.2rem); line-height: 1.18; letter-spacing: var(--track-tight); text-wrap: balance; }
.ax-sec-head p { margin-top: 16px; color: var(--slate); font-size: clamp(1.02rem, .97rem + .3vw, 1.16rem); line-height: 1.85; max-width: 64ch; text-wrap: pretty; }
.ax-sec-head.center { margin-inline: auto; text-align: center; }
.ax-sec-head.center p { margin-inline: auto; }
.ax-ref { margin-top: 14px; color: var(--slate-light); font-size: .88rem; line-height: 1.6; }

/* ── S1 จอแรก ── */
.ax-hero { position: relative; isolation: isolate; overflow: hidden; background: #0A1324; color: var(--on-navy); }
.ax-hero-media { position: absolute; inset: 0; z-index: -2; display: block; }
.ax-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 92% 50%; }
.ax-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,15,30,.94) 0%, rgba(8,15,30,.82) 34%, rgba(8,15,30,.32) 60%, rgba(8,15,30,0) 78%),
              linear-gradient(0deg, rgba(7,14,28,.88) 0%, rgba(7,14,28,0) 34%); }
.ax-hero-in { display: grid; align-content: end; gap: clamp(30px, 4vw, 52px); min-height: clamp(600px, 84vh, 800px); padding-block: clamp(64px, 9vw, 120px) clamp(28px, 3.4vw, 40px); }
.ax-hero-copy { max-width: 600px; }
.ax-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; color: var(--gold-bright); font-size: .92rem; font-weight: 600; letter-spacing: .03em; }
.ax-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--grad-gold); }
.ax-hero h1 { margin-top: 20px; color: #fff; font-family: var(--serif-th); font-weight: 600; font-size: clamp(2.5rem, 1.35rem + 3.9vw, 4.6rem); line-height: 1.12; letter-spacing: var(--track-display); text-wrap: balance; }
.ax-h1-sub { display: block; margin-top: .12em; color: var(--gold-bright); }
.ax-lead { margin-top: 22px; max-width: 50ch; color: #D5DAE3; font-size: clamp(1.04rem, .98rem + .32vw, 1.2rem); line-height: 1.85; text-wrap: pretty; }
.ax-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ax-btn-ghost { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(231,203,128,.55); color: #F4F0E7; background: rgba(255,255,255,.04); }
.ax-btn-ghost svg { width: 18px; height: 18px; }
.ax-btn-ghost:hover { border-color: var(--gold-bright); background: rgba(184,144,47,.18); color: #fff; }
.ax-facts { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); border-top: 1px solid rgba(217,197,139,.32); }
.ax-facts li { display: grid; gap: 4px; }
.ax-facts b { color: var(--gold-bright); font-family: var(--serif-th); font-weight: 600; font-size: 1.12rem; }
.ax-facts span { color: #B9C0CC; font-size: .92rem; line-height: 1.55; }

/* ── ทางลัดในหน้า ── */
.ax-jump { background: var(--navy-900); border-bottom: 1px solid rgba(217,197,139,.18); }
.ax-jump .container { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.ax-jump .container::-webkit-scrollbar { display: none; }
.ax-jump a { flex: none; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid rgba(217,197,139,.3); color: #E8E2D2; font-size: .9rem; text-decoration: none; transition: background .2s, border-color .2s; }
.ax-jump a:hover, .ax-jump a:focus-visible { background: rgba(184,144,47,.2); border-color: var(--gold-soft); color: #fff; }

/* ── S2 คำตอบสั้น + กฎหมาย 3 ชั้น ── */
.ax-answer-sec { background: var(--ivory-warm); }
.ax-answer { max-width: 900px; padding-left: clamp(18px, 2.4vw, 30px); border-left: 2px solid var(--gold); }
.ax-answer h2 { margin-top: 12px; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); line-height: 1.22; text-wrap: balance; }
.ax-answer-a { margin-top: 18px; color: var(--ink); font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem); line-height: 1.9; text-wrap: pretty; }
.ax-layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: 110px; }
.ax-layer { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); }
.ax-layer-tag { align-self: flex-start; margin: 0; padding: 6px 14px; border-radius: var(--r-pill); background: var(--ivory); color: var(--gold-text); font-size: .84rem; font-weight: 600; }
.ax-layer h3 { margin-top: 16px; font-size: 1.18rem; line-height: 1.45; color: var(--navy); }
.ax-layer ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.ax-layer li { position: relative; padding-left: 18px; color: var(--ink); font-size: .97rem; line-height: 1.7; }
.ax-layer li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.ax-layer em { font-style: normal; color: var(--gold-text); font-weight: 600; white-space: nowrap; }
.ax-layer-note { margin-top: auto; padding-top: 18px; color: var(--slate); font-size: .9rem; line-height: 1.7; }
.ax-layer-now { background: var(--grad-navy); border-color: transparent; color: var(--on-navy); box-shadow: var(--sh-lg); }
.ax-layer-now .ax-layer-tag { background: rgba(231,203,128,.16); color: var(--gold-bright); }
.ax-layer-now h3 { color: #fff; }
.ax-layer-now li { color: #E3E6EC; }
.ax-layer-now li::before { background: var(--gold-bright); }
.ax-layer-now em { color: var(--gold-bright); }
.ax-layer-now .ax-layer-note { color: var(--on-navy-muted); }
.ax-layer-guide { border-color: var(--line-gold); box-shadow: var(--sh-md); }
.ax-layer-draft { background: transparent; border: 1px dashed var(--line-strong); }
.ax-layer-draft .ax-layer-tag { background: transparent; border: 1px dashed var(--line-strong); color: var(--slate); }
.ax-layer-draft li::before { background: transparent; border: 1px solid var(--slate-light); }
.ax-layers-foot { margin-top: 22px; max-width: 70ch; color: var(--slate); font-size: .98rem; line-height: 1.8; }

/* ── S3 ช่วยเลือกบริการ ── */
.ax-finder-sec { background: var(--white); scroll-margin-top: 90px; }
.ax-finder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: clamp(28px, 4vw, 44px); }
.ax-finder-pick { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.ax-finder-pick legend { padding: 0; margin-bottom: 10px; color: var(--slate); font-size: .92rem; font-weight: 600; }
.ax-chip { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--ivory-warm); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.ax-chip:hover { border-color: var(--gold-soft); transform: translateX(2px); }
.ax-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ax-chip-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--white); color: transparent; transition: .2s; }
.ax-chip-box svg { width: 15px; height: 15px; }
.ax-chip-t { color: var(--ink); font-size: 1rem; line-height: 1.55; }
.ax-chip:has(input:checked) { background: var(--navy); border-color: var(--navy); }
.ax-chip:has(input:checked) .ax-chip-t { color: #fff; }
.ax-chip input:checked + .ax-chip-box { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy); }
.ax-chip input:focus-visible + .ax-chip-box { outline: 2px solid var(--gold); outline-offset: 3px; }
.ax-finder-out { position: sticky; top: calc(var(--header-h) + 18px); padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-xl); background: var(--grad-ink); color: var(--on-navy); box-shadow: var(--sh-xl); min-height: 320px; }
.ax-out-k { margin: 0; color: var(--gold-bright); font-size: .9rem; font-weight: 600; letter-spacing: .02em; }
.ax-out-empty { margin-top: 14px; color: #fff; font-family: var(--serif-th); font-size: 1.3rem; line-height: 1.55; }
.ax-out-hint { margin-top: 16px; color: var(--on-navy-muted); font-size: .95rem; line-height: 1.75; }
.ax-out-hint a, .ax-out-extra a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.ax-out-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: axo; }
.ax-out-list li { counter-increment: axo; position: relative; padding: 14px 16px 14px 56px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(217,197,139,.18); }
.ax-out-list li::before { content: counter(axo); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-gold); color: var(--on-gold); font-weight: 700; font-size: .92rem; }
.ax-out-list li:first-child { border-color: rgba(231,203,128,.55); background: rgba(184,144,47,.12); }
.ax-out-list .ax-out-tag { display: block; color: var(--gold-bright); font-size: .8rem; font-weight: 600; }
.ax-out-list a { display: block; margin-top: 2px; color: #fff; font-weight: 600; line-height: 1.5; text-decoration: none; }
.ax-out-list a:hover { text-decoration: underline; text-decoration-color: var(--gold-bright); text-underline-offset: 4px; }
.ax-out-list p { margin-top: 6px; color: var(--on-navy-muted); font-size: .9rem; line-height: 1.7; }
.ax-out-extra { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); border: 1px dashed rgba(217,197,139,.35); color: #D5DAE3; font-size: .92rem; line-height: 1.7; }
.ax-out-extra p + p { margin-top: 6px; }
.ax-out-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ax-out-send { display: inline-flex; align-items: center; gap: 9px; }
.ax-out-send svg { width: 18px; height: 18px; }
.ax-out-copy { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid rgba(217,197,139,.45); background: transparent; color: #F4F0E7; font: inherit; font-size: .95rem; cursor: pointer; }
.ax-out-copy svg { width: 17px; height: 17px; }
.ax-out-copy:hover { background: rgba(184,144,47,.16); }
.ax-out-msg { margin-top: 12px; color: var(--gold-bright); font-size: .9rem; line-height: 1.6; }
.ax-out-fresh { animation: axFresh .5s var(--ease); }
@keyframes axFresh { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── S4 บริการ 9 ด้าน ── */
.ax-svc-sec { background: var(--ivory); }
.ax-group { margin-top: clamp(36px, 5vw, 60px); }
.ax-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.ax-group-head h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); color: var(--navy); }
.ax-group-head p { color: var(--slate); font-size: .98rem; }
.ax-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 1.8vw, 22px); margin-top: 22px; }
@media (min-width: 700px) { .ax-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ax-cards[data-n="5"] > :last-child, .ax-cards[data-n="3"] > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1180px) {
  .ax-cards[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ax-cards[data-n="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ax-cards[data-n="5"] > * { grid-column: span 2; }
  .ax-cards[data-n="5"] > :nth-child(n+4) { grid-column: span 3; }
  .ax-cards[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ax-cards[data-n="3"] > :last-child { grid-column: auto; }
}
.ax-card { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 28px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; scroll-margin-top: 110px; }
.ax-card:hover, .ax-card:focus-within { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--line-gold); }
.ax-card-n { font-family: var(--serif-th); font-size: 2.3rem; line-height: 1; font-weight: 600; color: var(--gold); }
.ax-card h4 { margin-top: 14px; font-size: 1.16rem; line-height: 1.45; }
.ax-card h4 a { color: var(--navy); text-decoration: none; }
.ax-card h4 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ax-card-fit { margin-top: 10px; color: var(--slate); font-size: .95rem; line-height: 1.7; }
.ax-card-fit b { color: var(--ink); font-weight: 600; }
.ax-card-get { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ax-card-get li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink); font-size: .94rem; line-height: 1.6; }
.ax-card-get svg { width: 16px; height: 16px; margin-top: 4px; color: var(--gold); }
.ax-card-law { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ax-card-law span { padding: 4px 10px; border-radius: var(--r-pill); background: var(--ivory); color: var(--gold-text); font-size: .8rem; font-weight: 600; }
.ax-card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--navy); font-weight: 600; font-size: .95rem; }
.ax-card-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.ax-card:hover .ax-card-more svg { transform: translateX(4px); }

/* ── S5 6 คำถามก่อนอนุมัติ (แถบกรมท่า) ── */
.ax-six-sec { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 8vw, 116px); background: var(--grad-ink); color: var(--on-navy); }
.ax-six-sec::before { content: ""; position: absolute; z-index: -1; right: -18%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(217,197,139,.14); box-shadow: 0 0 0 60px rgba(217,197,139,.03), 0 0 0 140px rgba(217,197,139,.02); }
.ax-six-sec::after { content: ""; position: absolute; z-index: -1; left: -10%; bottom: -30%; width: 50%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(184,144,47,.16), transparent); }
.ax-six-head { max-width: 860px; }
.ax-six-head h2 { margin-top: 14px; color: #fff; font-size: clamp(1.8rem, 1.1rem + 2.5vw, 3.2rem); line-height: 1.18; text-wrap: balance; }
.ax-six-head p { margin-top: 16px; color: var(--on-navy-muted); font-size: clamp(1.02rem, .97rem + .3vw, 1.16rem); line-height: 1.85; max-width: 66ch; }
.ax-six { list-style: none; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(217,197,139,.18); border: 1px solid rgba(217,197,139,.18); border-radius: var(--r-xl); overflow: hidden; }
.ax-six-item { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 30px); background: #0B1528; }
.ax-six-n { font-family: var(--serif-th); font-size: 2.6rem; line-height: 1; font-weight: 600; color: var(--gold-bright); }
.ax-six-q { color: #EEF0F4; font-size: 1.02rem; line-height: 1.75; }
.ax-six-svc { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: .9rem; line-height: 1.75; }
.ax-six-svc span { display: block; color: var(--on-navy-muted); font-size: .8rem; }
.ax-six-svc a, .ax-six-foot a { color: var(--gold-bright); text-decoration: underline; text-decoration-color: rgba(231,203,128,.45); text-underline-offset: 3px; }
.ax-six-svc a:hover { text-decoration-color: var(--gold-bright); }
.ax-six-svc i, .ax-road-svc i { font-style: normal; margin: 0 8px; opacity: .55; }
.ax-six-foot { margin-top: 20px; color: var(--on-navy-muted); font-size: .9rem; line-height: 1.7; max-width: 80ch; }

/* ── S6 ลำดับงาน ── */
.ax-road-sec { background: var(--ivory-warm); }
.ax-road { list-style: none; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); position: relative; }
.ax-road::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 1px; background: var(--rule-gold); }
.ax-road-step { position: relative; display: grid; gap: 16px; align-content: start; }
.ax-road-n { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--gold-bright); font-family: var(--serif-th); font-weight: 600; font-size: 1.3rem; box-shadow: 0 0 0 6px var(--ivory-warm); }
.ax-road-step h3 { font-size: 1.12rem; color: var(--navy); }
.ax-road-step p { margin-top: 8px; color: var(--slate); font-size: .94rem; line-height: 1.72; }
.ax-road-svc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; }
.ax-road-svc a { display: inline-block; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-gold); background: var(--white); color: var(--navy); font-size: .84rem; font-weight: 600; line-height: 1.45; text-decoration: none; transition: background .2s, color .2s; }
.ax-road-svc a:hover, .ax-road-svc a:focus-visible { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── S7 ตามประเภทธุรกิจ ── */
.ax-ind-sec { background: var(--white); }
.ax-ind { margin-top: clamp(26px, 3.6vw, 40px); border-top: 1px solid var(--line-strong); }
.ax-ind-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px 28px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.ax-ind-t b { display: block; color: var(--navy); font-size: 1.04rem; }
.ax-ind-t span { display: block; margin-top: 3px; color: var(--slate); font-size: .92rem; line-height: 1.6; }
.ax-ind-s { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-ind-s span a { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-gold); color: var(--navy); font-size: .9rem; line-height: 1.45; text-decoration: none; background: var(--ivory-warm); transition: background .2s, color .2s; }
.ax-ind-s span a:hover, .ax-ind-s span a:focus-visible { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── S8 เอกสารต้นทาง ── */
.ax-src-sec { background: var(--ivory); }
.ax-src { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); margin-top: clamp(26px, 3.6vw, 40px); }
.ax-src-item { display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 26px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.ax-src-item h3 { font-size: 1.02rem; line-height: 1.6; color: var(--navy); }
.ax-src-pub { margin-top: 8px; color: var(--gold-text); font-size: .88rem; font-weight: 600; }
.ax-src-use { margin-top: 10px; color: var(--slate); font-size: .92rem; line-height: 1.7; }
.ax-src-use b { color: var(--ink); }
.ax-src-item a { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; color: var(--navy); font-weight: 600; font-size: .92rem; }
.ax-src-item a svg { width: 15px; height: 15px; }

/* ── ส่วนร่วม dn-* ปรับเล็กน้อยให้เข้าหน้า ── */
body.aihub-page .ax-phases { margin-top: clamp(26px, 3.5vw, 40px); }
.ax-plans { margin-top: 22px; display: grid; gap: 10px; }
.ax-plans > div { padding: 16px 18px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 4px; }
.ax-plans b { color: var(--navy); }
.ax-plans span { color: var(--slate); font-size: .94rem; line-height: 1.65; }
.ax-plans a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
body.aihub-page .ax-related-sec { background: var(--ivory-warm); }
body.aihub-page .ax-related-sec .related-grid { margin-top: clamp(24px, 3.4vw, 36px); }

/* ── จอแคบ ── */
@media (max-width: 1080px) {
  .ax-layers { grid-template-columns: minmax(0, 1fr); }
  .ax-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-road { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ax-road::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-gold), var(--gold), var(--line-gold)); }
  .ax-road-step { grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
}
@media (max-width: 900px) {
  .ax-finder { grid-template-columns: minmax(0, 1fr); }
  .ax-finder-out { position: relative; top: 0; min-height: 0; }
}
@media (max-width: 760px) {
  .ax-hero { background: var(--navy-900); }
  .ax-hero-media { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .ax-hero-media img { object-position: 50% 50%; }
  .ax-hero::before { inset: auto 0 0 0; height: 100%; background: linear-gradient(180deg, rgba(13,24,41,0) 0%, rgba(13,24,41,0) 30%, var(--navy-900) 43%); }
  .ax-hero-in { min-height: 0; margin-top: -8px; padding-block: 0 30px; }
  .ax-eyebrow { font-size: .84rem; }
  .ax-hero h1 { font-size: clamp(2.15rem, 1.3rem + 4.4vw, 2.8rem); }
  .ax-hero-cta .btn { width: 100%; justify-content: center; }
  .ax-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ax-facts li { grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .ax-facts b { font-size: 1rem; }
  .ax-six { grid-template-columns: minmax(0, 1fr); }
  .ax-ind-row { grid-template-columns: minmax(0, 1fr); }
  .ax-src { grid-template-columns: minmax(0, 1fr); }
  .ax-chip { padding: 13px 14px; }
  .ax-sec-head h2 .nowrap, .ax-six-head h2 .nowrap, body.aihub-page .dn-fees-copy h2 .nowrap { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-chip, .ax-card, .ax-card-more svg { transition: none; }
  .ax-chip:hover, .ax-card:hover, .ax-card:focus-within { transform: none; }
  .ax-out-fresh { animation: none; }
}
