/* xoilactv_pho-counter — warm Vietnamese pho-counter aesthetic.
   Namespace: .xt-*  Palette: broth-orange #d97706, steam-white #fafaf9, bowl-dark #1c1917, herb-green #65a30d */

:root {
  --xt-broth: #d97706;
  --xt-broth-deep: #a35309;
  --xt-steam: #fafaf9;
  --xt-bowl: #1c1917;
  --xt-bowl-soft: #292524;
  --xt-herb: #65a30d;
  --xt-cream: #fef3c7;
  --xt-muted: #78716c;
  --xt-line: #e7e5e4;
  --xt-font-serif: "Lora", Georgia, serif;
  --xt-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --xt-max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--xt-font-sans); color: var(--xt-bowl); background: var(--xt-steam); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--xt-broth-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.xt-shell { max-width: var(--xt-max); margin: 0 auto; padding: 0 1.25rem; }

/* Topbar */
.xt-topbar { background: var(--xt-bowl); color: var(--xt-steam); border-bottom: 3px solid var(--xt-broth); }
.xt-topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; flex-wrap: wrap; gap: 1rem; }
.xt-brand { color: var(--xt-steam); font-weight: 700; font-size: 1.4rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.xt-brand__mark { color: var(--xt-broth); font-size: 1.6rem; line-height: 1; }
.xt-brand__name { font-family: var(--xt-font-serif); letter-spacing: 0.02em; }
.xt-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.xt-nav__link { color: var(--xt-steam); font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.xt-nav__link:hover { color: var(--xt-broth); text-decoration: none; }
.xt-disclaimer { background: var(--xt-bowl-soft); color: var(--xt-cream); padding: 0.5rem 1.25rem; font-size: 0.82rem; text-align: center; }

/* Hero */
.xt-hero { background: linear-gradient(180deg, var(--xt-cream) 0%, var(--xt-steam) 100%); padding: 3rem 0 2rem; border-bottom: 1px solid var(--xt-line); }
.xt-hero__inner { padding: 0 1.25rem; }
.xt-hero__kicker { display: inline-block; color: var(--xt-broth-deep); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.xt-hero__title { font-family: var(--xt-font-serif); font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 0.75rem; line-height: 1.15; }
.xt-hero__deck { font-size: 1.15rem; color: var(--xt-muted); max-width: 60ch; margin: 0; }

/* Main grid */
.xt-main { padding: 2.5rem 0 3rem; }
.xt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5rem; }
@media (max-width: 880px) { .xt-grid { grid-template-columns: 1fr; } }

.xt-card { background: #fff; border: 1px solid var(--xt-line); border-radius: 6px; padding: 2rem; }
.xt-card--article { padding: 2.5rem; }

/* Prose */
.xt-prose { font-size: 1.04rem; }
.xt-prose h2 { font-family: var(--xt-font-serif); font-size: 1.6rem; margin: 2rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--xt-broth); }
.xt-prose h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; color: var(--xt-bowl); }
.xt-prose p { margin: 0 0 1rem; }
.xt-prose ul, .xt-prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.xt-prose li { margin: 0.25rem 0; }
.xt-prose strong { color: var(--xt-bowl); }
.xt-prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
.xt-prose th, .xt-prose td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--xt-line); }
.xt-prose th { background: var(--xt-cream); font-weight: 700; }
.xt-prose blockquote { border-left: 4px solid var(--xt-herb); padding: 0.5rem 1rem; margin: 1rem 0; color: var(--xt-muted); font-style: italic; }

/* Article head */
.xt-article-head { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--xt-line); }
.xt-article-kicker { color: var(--xt-broth-deep); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; margin: 0 0 0.5rem; }
.xt-article-deck { font-size: 1.15rem; color: var(--xt-muted); margin: 0.5rem 0 1rem; }
.xt-article-meta { color: var(--xt-muted); font-size: 0.88rem; }
.xt-article-meta span { margin: 0 0.4rem; }

/* Sidebar */
.xt-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.xt-sidebar__card { background: #fff; border: 1px solid var(--xt-line); border-radius: 6px; padding: 1.25rem; }
.xt-sidebar__heading { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--xt-muted); font-weight: 700; margin: 0 0 0.75rem; }
.xt-sidebar__list { list-style: none; padding: 0; margin: 0; }
.xt-sidebar__list li { padding: 0.3rem 0; border-bottom: 1px solid var(--xt-line); }
.xt-sidebar__list li:last-child { border-bottom: 0; }
.xt-chip { display: inline-block; background: var(--xt-cream); color: var(--xt-broth-deep); border: 1px solid var(--xt-broth); padding: 0.25rem 0.6rem; border-radius: 3px; font-size: 0.82rem; font-weight: 600; margin: 0.15rem 0.15rem 0.15rem 0; }

/* Widget */
.xt-widget { background: var(--xt-bowl); color: var(--xt-steam); border-radius: 6px; padding: 1.5rem; margin: 1.5rem 0; }
.xt-widget__heading { font-family: var(--xt-font-serif); color: var(--xt-broth); font-size: 1.4rem; margin: 0 0 1rem; }

/* Listing */
.xt-listing { margin-top: 2rem; }
.xt-listing__rows { list-style: none; padding: 0; margin: 0; }
.xt-listing__row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--xt-line); align-items: center; gap: 1rem; }
.xt-listing__when { color: var(--xt-muted); font-size: 0.88rem; }

/* FAQ */
.xt-faq { margin: 2.5rem 0 0; }
.xt-faq__inner { background: #fff; border: 1px solid var(--xt-line); border-radius: 6px; padding: 1.75rem; }
.xt-faq__heading { font-family: var(--xt-font-serif); font-size: 1.5rem; margin: 0 0 1rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--xt-broth); }
.xt-faq__list { display: flex; flex-direction: column; gap: 0.6rem; }
.xt-faq__item { background: var(--xt-steam); border: 1px solid var(--xt-line); border-radius: 4px; padding: 0.85rem 1rem; }
.xt-faq__item[open] { background: #fff; border-color: var(--xt-broth); }
.xt-faq__q { font-weight: 600; cursor: pointer; color: var(--xt-bowl); }
.xt-faq__a { padding-top: 0.65rem; color: var(--xt-bowl-soft); }
.xt-faq__a p:last-child { margin-bottom: 0; }

/* Footer */
.xt-footer { background: var(--xt-bowl); color: var(--xt-cream); padding: 2.5rem 0 1.5rem; margin-top: 4rem; }
.xt-footer__legal { font-size: 0.85rem; color: var(--xt-muted); max-width: 80ch; }
.xt-footer__links { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.xt-footer__links a { color: var(--xt-cream); font-size: 0.9rem; }
.xt-footer__links a:hover { color: var(--xt-broth); }
.xt-footer__copy { color: var(--xt-muted); font-size: 0.82rem; margin: 1rem 0 0; }

/* Sitewide topic index — interlinking grid in footer */
.xt-topic-index { margin: 0 0 2rem; padding: 1.75rem 0 1.5rem; border-bottom: 1px solid rgba(231, 229, 228, 0.15); }
.xt-topic-index__heading { font-family: var(--xt-font-serif); font-size: 1.2rem; color: var(--xt-broth); margin: 0 0 1rem; letter-spacing: 0.02em; }
.xt-topic-index__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem 1.25rem; }
.xt-topic-index__item a { color: var(--xt-cream); font-size: 0.88rem; line-height: 1.4; display: block; padding: 0.15rem 0; border-left: 2px solid transparent; padding-left: 0.6rem; transition: border-color 0.15s, color 0.15s; }
.xt-topic-index__item a:hover { color: var(--xt-broth); border-left-color: var(--xt-broth); text-decoration: none; }
@media (max-width: 720px) { .xt-topic-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .xt-topic-index__list { grid-template-columns: 1fr; } }
