/* ==========================================================================
   TIMEZONE168 (timezone168yy.direct) — Clean Light-Mode E-E-A-T Editorial Stylesheet
   Namespace: .tzy-*
   ========================================================================== */
:root {
  --tzy-bg: #F3FAF6;
  --tzy-paper: #FFFFFF;
  --tzy-surf: #E6F4EC;
  --tzy-surf-alt: #D5ECE0;
  --tzy-ink: #0D1F16;
  --tzy-ink-soft: #264234;
  --tzy-muted: #527060;
  --tzy-pri: #059669;
  --tzy-pri-dark: #065F46;
  --tzy-pri-light: #D1FAE5;
  --tzy-acc: #D97706;
  --tzy-gold: #B45309;
  --tzy-gold-bg: #FEF3C7;
  --tzy-em: #10B981;
  --tzy-line: #B7Dec8;
  --tzy-radius: 16px;
  --tzy-max: 1220px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--tzy-bg); color: var(--tzy-ink); font-family: 'Noto Sans Thai', 'Leelawadee UI', system-ui, -apple-system, sans-serif; line-height: 1.76; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { background: radial-gradient(circle at 12% 4%, var(--tzy-pri-light), transparent 34%), var(--tzy-bg); color: var(--tzy-ink); min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tzy-pri); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--tzy-pri-dark); }

.tzy-wrap { width: min(var(--tzy-max), calc(100% - 32px)); margin-inline: auto; }

/* Top Verification Ribbon */
.tzy-ribbon { background: var(--tzy-pri-dark); color: #F8FAFC; font-size: 0.82rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.tzy-ribbon-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tzy-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; display: inline-block; margin-right: 7px; box-shadow: 0 0 8px #34D399; }
.tzy-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; padding: 2px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }

/* Light Sticky Header with Dark Contrast Logo Chip */
.tzy-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 251, 248, 0.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--tzy-line); box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05); }
.tzy-bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.tzy-logo { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 12px; background: #081C12; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14); }
.tzy-logo img { height: 38px; width: auto; max-width: 210px; object-fit: contain; }
.tzy-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tzy-nav a { color: var(--tzy-ink-soft); font-size: 0.92rem; font-weight: 700; }
.tzy-nav a:hover { color: var(--tzy-pri); }
.tzy-cta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tzy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0.55rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: 0.93rem; border: 1px solid transparent; cursor: pointer; }
.tzy-btn-pri { background: linear-gradient(135deg, #059669 0%, #047857 55%, #D97706 100%); color: #FFFFFF; box-shadow: 0 8px 22px rgba(29, 78, 216, 0.22); }
.tzy-btn-pri:hover { color: #FFFFFF; filter: brightness(1.06); transform: translateY(-1px); }
.tzy-btn-sec { background: var(--tzy-paper); color: var(--tzy-ink); border-color: var(--tzy-line); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); }
.tzy-btn-sec:hover { border-color: var(--tzy-pri); color: var(--tzy-pri); }

/* Breadcrumb & E-E-A-T Byline Strip */
.tzy-crumbs { background: var(--tzy-surf); border-bottom: 1px solid var(--tzy-line); padding: 10px 0; font-size: 0.85rem; }
.tzy-crumbs-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tzy-crumbs ul.items { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--tzy-muted); }
.tzy-crumbs li.item + li.item::before { content: "›"; margin-right: 8px; color: var(--tzy-pri); font-weight: 700; }
.tzy-crumbs strong { color: var(--tzy-ink); }
.tzy-eeat-badge { font-size: 0.8rem; color: var(--tzy-ink-soft); background: var(--tzy-paper); border: 1px solid var(--tzy-line); padding: 3px 12px; border-radius: 999px; font-weight: 600; }

/* Hero */
.tzy-hero { padding: 36px 0 28px; }
.tzy-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tzy-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: var(--tzy-pri-light); color: var(--tzy-pri-dark); font-size: 0.8rem; font-weight: 800; margin-bottom: 14px; }
.tzy-h1 { font-size: clamp(1.65rem, 2.85vw, 2.35rem); line-height: 1.3; font-weight: 800; color: var(--tzy-ink); margin-bottom: 14px; }
.tzy-lead { color: var(--tzy-ink-soft); font-size: 1.01rem; margin-bottom: 20px; }
.tzy-banner-frame { border-radius: var(--tzy-radius); overflow: hidden; border: 2px solid var(--tzy-line); box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14); background: #0f172a; }
.tzy-banner-frame img { width: 100%; height: auto; object-fit: cover; }

/* Score Cards */
.tzy-score-bar { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tzy-score-card { background: var(--tzy-paper); border: 1px solid var(--tzy-line); border-top: 3px solid var(--tzy-pri); border-radius: 14px; padding: 14px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04); }
.tzy-score-val { font-size: 1.32rem; font-weight: 800; color: var(--tzy-pri-dark); display: block; }
.tzy-score-lbl { font-size: 0.81rem; color: var(--tzy-muted); font-weight: 600; }

/* E-E-A-T Quick Takeaways Box */
.tzy-quick-box { background: var(--tzy-paper); border: 1px solid var(--tzy-line); border-left: 5px solid var(--tzy-em); border-radius: 14px; padding: 20px 24px; margin: 18px 0 24px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05); }
.tzy-quick-box h3 { font-size: 1.08rem; color: var(--tzy-ink); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tzy-quick-box ul { padding-left: 20px; display: grid; gap: 7px; color: var(--tzy-ink-soft); font-size: 0.94rem; }

/* Editorial Author & Methodology Box */
.tzy-author-box { background: var(--tzy-surf); border: 1px solid var(--tzy-line); border-radius: 14px; padding: 14px 18px; margin-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--tzy-ink-soft); }

/* Sections & Cards */
.tzy-section { padding: 38px 0; border-top: 1px solid var(--tzy-line); }
.tzy-sec-head { margin-bottom: 22px; }
.tzy-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tzy-card { background: var(--tzy-paper); border: 1px solid var(--tzy-line); border-radius: var(--tzy-radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04); }
.tzy-media-card { background: var(--tzy-paper); border: 1px solid var(--tzy-line); border-radius: var(--tzy-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05); }
.tzy-media-card:hover { transform: translateY(-4px); border-color: var(--tzy-pri); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10); }
.tzy-media-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tzy-media-tag { font-size: 0.75rem; font-weight: 800; color: var(--tzy-pri); text-transform: uppercase; letter-spacing: 0.04em; }
.tzy-media-body strong { color: var(--tzy-ink); font-size: 1.04rem; line-height: 1.4; }
.tzy-media-body p { color: var(--tzy-ink-soft); font-size: 0.87rem; }

/* 2-Col Reading & Subheading Thumbnails */
.tzy-reading-grid { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.tzy-toc { position: sticky; top: 94px; background: var(--tzy-paper); border: 1px solid var(--tzy-line); border-radius: var(--tzy-radius); padding: 20px; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04); }
.tzy-toc h2 { font-size: 1rem; color: var(--tzy-pri-dark); margin-bottom: 12px; }
.tzy-toc ol { padding-left: 18px; display: grid; gap: 8px; font-size: 0.88rem; font-weight: 600; }
.tzy-article { background: var(--tzy-paper); border: 1px solid var(--tzy-line); border-radius: var(--tzy-radius); padding: 32px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); }
.tzy-article h2 { font-size: 1.42rem; color: var(--tzy-ink); margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--tzy-pri); }
.tzy-article h2:first-of-type { margin-top: 0; }
.tzy-article h3 { font-size: 1.18rem; color: var(--tzy-pri-dark); margin: 24px 0 10px; }
.tzy-article p { color: var(--tzy-ink-soft); margin-bottom: 14px; }
.tzy-article ul, .tzy-article ol { padding-left: 22px; margin-bottom: 18px; color: var(--tzy-ink-soft); display: grid; gap: 8px; }
.tzy-article a { color: var(--tzy-pri); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.tzy-subfig { margin: 14px 0 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--tzy-line); background: var(--tzy-surf); }
.tzy-subfig img { width: 100%; max-height: 340px; object-fit: cover; }
.tzy-subfig figcaption { padding: 10px 14px; font-size: 0.83rem; color: var(--tzy-ink-soft); background: var(--tzy-surf); border-top: 1px solid var(--tzy-line); font-weight: 600; }

.tzy-callout { background: var(--tzy-gold-bg); border-left: 4px solid var(--tzy-gold); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 18px 0; color: var(--tzy-ink); font-size: 0.93rem; }
.tzy-table-wrap { overflow-x: auto; margin: 16px 0 22px; border-radius: 12px; border: 1px solid var(--tzy-line); background: var(--tzy-paper); }
.tzy-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.tzy-table th, .tzy-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--tzy-line); color: var(--tzy-ink-soft); }
.tzy-table th { background: var(--tzy-surf); color: var(--tzy-ink); font-weight: 800; }
.tzy-table tr:nth-child(even) td { background: var(--tzy-bg); }

/* FAQ */
.tzy-faq-list { display: grid; gap: 10px; }
.tzy-faq-list details { background: var(--tzy-paper); border: 1px solid var(--tzy-line); border-radius: 12px; padding: 4px 18px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03); }
.tzy-faq-list summary { cursor: pointer; padding: 13px 0; font-weight: 700; color: var(--tzy-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tzy-faq-list summary::-webkit-details-marker { display: none; }
.tzy-faq-list summary::after { content: "+"; color: var(--tzy-pri); font-size: 1.25rem; font-weight: 800; }
.tzy-faq-list details[open] summary::after { content: "–"; }
.tzy-faq-list details p { padding: 0 0 14px; color: var(--tzy-ink-soft); font-size: 0.93rem; }

/* Thai Payments & Footer */
.tzy-pay-box { background: var(--tzy-paper); border: 1px solid var(--tzy-line); border-radius: var(--tzy-radius); padding: 22px; margin-bottom: 28px; text-align: center; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04); }
.tzy-pay-box h3 { color: var(--tzy-ink); margin-bottom: 4px; }
.tzy-pay-icons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }
.tzy-pay-icons img { height: 38px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(15,23,42,0.12)); }
.tzy-footer { background: var(--tzy-surf); border-top: 2px solid var(--tzy-line); padding: 44px 0 28px; color: var(--tzy-ink-soft); font-size: 0.9rem; }
.tzy-foot-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.tzy-footer h3, .tzy-footer h4 { color: var(--tzy-ink); margin-bottom: 10px; font-size: 1rem; font-weight: 800; }
.tzy-footer ul { list-style: none; display: grid; gap: 7px; }

/* Age Gate Verify */
body.gate-page { min-height: 100vh; margin: 0; background: #0f172a; }
.gate-bg { position: fixed; inset: 0; }
.gate-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(9px) brightness(0.65); transform: scale(1.05); }
.gate { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(15, 23, 42, 0.62); padding: 20px; }
.gate-sheet { width: min(440px, 100%); background: var(--tzy-paper); color: var(--tzy-ink); border: 2px solid var(--tzy-pri); border-radius: 22px; padding: 28px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); text-align: center; }
.gate-logo-wrap { display: inline-flex; padding: 8px 16px; border-radius: 12px; background: #081C12; margin-bottom: 12px; }
.gate-logo { height: 38px; width: auto; max-width: 200px; object-fit: contain; }
.gate-mark { margin: 0; font-weight: 800; letter-spacing: 0.08em; color: var(--tzy-pri); }
.gate-kicker { margin: 4px 0 0; color: var(--tzy-muted); font-size: 0.85rem; }
.gate-sheet h2 { margin: 10px 0 6px; font-size: 1.45rem; color: var(--tzy-ink); }
.gate-q { margin: 0 0 18px; color: var(--tzy-ink-soft); }
.gate-actions { display: grid; gap: 10px; }
.gate-actions button { min-height: 48px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
#gate-yes { background: linear-gradient(135deg, #059669 0%, #047857 55%, #D97706 100%); color: #FFFFFF; border: 0; }
#gate-no { background: var(--tzy-surf); color: var(--tzy-ink); border: 1px solid var(--tzy-line); }
.gate-note { margin: 14px 0 0; color: var(--tzy-muted); font-size: 0.88rem; }

@media (max-width: 960px) {
  .tzy-hero-grid, .tzy-reading-grid { grid-template-columns: 1fr; }
  .tzy-toc { position: static; }
  .tzy-score-bar { grid-template-columns: repeat(2, 1fr); }
  .tzy-grid-3, .tzy-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .tzy-nav { display: none; }
  .tzy-score-bar, .tzy-grid-3, .tzy-foot-grid { grid-template-columns: 1fr; }
  .tzy-article { padding: 20px; }
}
