/* Hallmark · surface: night obsidian arena · posture: committed · hero: split headline and visual · nav: pill menu · footer: 4-column mega footer */
:root {
  --hxp-bg: #0a0c10;
  --hxp-surface: #12161d;
  --hxp-surface-2: #1a2029;
  --hxp-gold: #e9b44c;
  --hxp-gold-soft: #f3d58e;
  --hxp-turq: #2ec4b6;
  --hxp-terra: #c8643f;
  --hxp-text: #ece6da;
  --hxp-muted: #a8a092;
  --hxp-ink: #0a0c10;
  --hxp-line: rgba(236, 230, 218, 0.12);
  --hxp-shadow: rgba(0, 0, 0, 0.45);
  --hxp-font: "Noto Sans Thai", "Leelawadee UI", "Sarabun", sans-serif;
  --hxp-radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hxp-bg); color: var(--hxp-text); font-family: var(--hxp-font); line-height: 1.82; text-align: left; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hxp-turq); text-underline-offset: 3px; }
a:hover { color: var(--hxp-gold-soft); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--hxp-gold); outline-offset: 3px; border-radius: 6px; }
.hxp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hxp-strip { background: var(--hxp-surface); border-bottom: 1px solid var(--hxp-line); font-size: 0.86rem; color: var(--hxp-muted); }
.hxp-strip .hxp-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 20px; }
.hxp-head { position: sticky; top: 0; z-index: 20; background: var(--hxp-bg); border-bottom: 2px solid var(--hxp-terra); }
.hxp-head .hxp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; flex-wrap: wrap; }
.hxp-logo img { height: 48px; width: auto; }
.hxp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hxp-btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--hxp-gold); color: var(--hxp-ink); transition: transform 0.18s ease, opacity 0.18s ease; }
.hxp-btn:hover { transform: translateY(-1px); color: var(--hxp-ink); }
.hxp-btn-ghost { background: transparent; color: var(--hxp-turq); border: 1.5px solid var(--hxp-turq); }
.hxp-btn-ghost:hover { color: var(--hxp-gold-soft); }
.hxp-menu { background: var(--hxp-surface); border-bottom: 1px solid var(--hxp-line); }
.hxp-menu ul { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.hxp-menu a { display: inline-block; padding: 6px 12px; border-radius: 8px; color: var(--hxp-text); text-decoration: none; font-size: 0.94rem; }
.hxp-menu a[aria-current="page"], .hxp-menu a:hover { background: var(--hxp-surface-2); color: var(--hxp-gold); }
.hxp-trail { font-size: 0.9rem; color: var(--hxp-muted); margin: 18px 0 8px; }
.hxp-trail ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.hxp-trail li + li::before { content: "/"; margin-right: 8px; color: var(--hxp-terra); }
.hxp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; padding: 8px 0 26px; }
.hxp-hero h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.38; margin: 0 0 12px; color: var(--hxp-gold-soft); overflow-wrap: break-word; min-width: 0; }
.hxp-byline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.88rem; color: var(--hxp-muted); margin-bottom: 14px; }
.hxp-summary { background: var(--hxp-surface); border: 1px solid var(--hxp-line); border-left: 5px solid var(--hxp-turq); border-radius: var(--hxp-radius); padding: 16px 20px; margin-bottom: 16px; }
.hxp-summary h2 { font-size: 1.12rem; margin: 0 0 6px; color: var(--hxp-gold); }
.hxp-summary p { margin: 0 0 8px; }
.hxp-summary ul { margin: 0; padding-left: 20px; color: var(--hxp-text); }
.hxp-visual { border-radius: var(--hxp-radius); overflow: hidden; border: 1px solid var(--hxp-line); box-shadow: 0 16px 40px var(--hxp-shadow); background: var(--hxp-surface); }
.hxp-visual img, .hxp-figure img, .hxp-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
.hxp-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-bottom: 40px; }
.hxp-article section { background: var(--hxp-surface); border: 1px solid var(--hxp-line); border-radius: var(--hxp-radius); padding: 26px; margin-bottom: 22px; }
.hxp-article h2 { font-size: 1.42rem; line-height: 1.45; color: var(--hxp-gold); margin: 0 0 14px; overflow-wrap: break-word; }
.hxp-article h3 { font-size: 1.08rem; color: var(--hxp-turq); margin: 6px 0 8px; }
.hxp-article p { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.82; text-align: left; }
.hxp-figure { margin: 20px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--hxp-line); background: var(--hxp-surface-2); }
.hxp-figure figcaption { padding: 10px 16px; font-size: 0.88rem; color: var(--hxp-muted); }
.hxp-table-box { overflow-x: auto; border: 1px solid var(--hxp-line); border-radius: 12px; margin: 16px 0; }
.hxp-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--hxp-surface-2); }
.hxp-table caption { text-align: left; padding: 12px 16px; font-weight: 700; color: var(--hxp-gold); }
.hxp-table th, .hxp-table td { padding: 12px 14px; border-top: 1px solid var(--hxp-line); text-align: left; vertical-align: top; font-size: 0.95rem; }
.hxp-table th { color: var(--hxp-turq); }
.hxp-steps { margin: 14px 0 0; padding-left: 24px; }
.hxp-steps li { margin-bottom: 10px; }
.hxp-side { position: sticky; top: 90px; display: grid; gap: 18px; }
.hxp-panel { background: var(--hxp-surface); border: 1px solid var(--hxp-line); border-radius: var(--hxp-radius); padding: 18px; }
.hxp-panel h2 { font-size: 1.02rem; color: var(--hxp-gold); margin: 0 0 10px; }
.hxp-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hxp-panel a { color: var(--hxp-text); text-decoration: none; font-size: 0.92rem; }
.hxp-panel a:hover { color: var(--hxp-turq); }
.hxp-facts { margin: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.hxp-facts dt { color: var(--hxp-turq); font-weight: 700; }
.hxp-facts dd { margin: 0 0 4px; color: var(--hxp-text); }
.hxp-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hxp-note { background: var(--hxp-surface-2); border-top: 3px solid var(--hxp-terra); border-radius: 12px; padding: 16px; }
.hxp-note h3 { margin-top: 0; }
.hxp-note-by { font-size: 0.85rem; color: var(--hxp-muted); }
.hxp-faq-item { background: var(--hxp-surface-2); border: 1px solid var(--hxp-line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.hxp-faq-item summary { cursor: pointer; font-weight: 700; }
.hxp-faq-item p { margin: 10px 0 0; }
.hxp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.hxp-card { background: var(--hxp-surface-2); border: 1px solid var(--hxp-line); border-radius: 12px; overflow: hidden; }
.hxp-card div { padding: 12px 14px; }
.hxp-card h3 { font-size: 1rem; margin: 0 0 6px; }
.hxp-card p { font-size: 0.9rem; color: var(--hxp-muted); margin: 0; }
.hxp-foot { background: var(--hxp-surface); border-top: 2px solid var(--hxp-gold); padding: 40px 0 24px; }
.hxp-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-bottom: 26px; }
.hxp-footer-grid h2 { font-size: 1rem; color: var(--hxp-gold); margin: 0 0 10px; }
.hxp-footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hxp-footer-grid a { color: var(--hxp-text); text-decoration: none; font-size: 0.92rem; }
.hxp-footer-grid p { font-size: 0.9rem; color: var(--hxp-muted); margin: 0 0 10px; }
.hxp-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.hxp-pills span { font-size: 0.8rem; border: 1px solid var(--hxp-turq); color: var(--hxp-turq); border-radius: 999px; padding: 2px 10px; }
.hxp-pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px; border: 1px solid var(--hxp-line); border-radius: 12px; margin-bottom: 18px; }
.hxp-pay span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; padding: 4px 12px; background: var(--hxp-surface-2); border-radius: 8px; }
.hxp-pay img { width: 26px; height: 26px; }
.hxp-copy { text-align: center; font-size: 0.86rem; color: var(--hxp-muted); }
@media (max-width: 980px) {
  .hxp-hero, .hxp-body { grid-template-columns: minmax(0, 1fr); }
  .hxp-side { position: static; }
  .hxp-notes { grid-template-columns: minmax(0, 1fr); }
  .hxp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hxp-footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hxp-btn { transition: none; }
}
