/* dooball66_temple-flag — Thai temple-flag aesthetic.
   Namespace: .tf-*
   Palette: saffron #f59e0b · temple-red #b91c1c · cream-paper #fef3c7 · ink-blue #1e3a8a · paper #fffbeb · ink #1c1917
   Layout: full-width banner-stripe top, centered single column, no sidebar, scallop-edge separators,
           red double-rule headings — deliberately diverges from sanam-luang (single-column long-form,
           Kanit/Sarabun, gold-accent on cream) by using a centered banner-strip layout, double-rule
           ink-blue headings, and a saffron-on-cream prayer-flag motif. */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;600;700&family=Noto+Serif+Thai:wght@600;700&family=Inter:wght@400;600;700&display=swap');

:root {
  --tf-saffron: #f59e0b;
  --tf-saffron-deep: #b45309;
  --tf-temple-red: #b91c1c;
  --tf-temple-red-deep: #7f1d1d;
  --tf-cream: #fef3c7;
  --tf-paper: #fffbeb;
  --tf-ink: #1c1917;
  --tf-ink-blue: #1e3a8a;
  --tf-muted: #78716c;
  --tf-line: #fde68a;
  --tf-line-strong: #fbbf24;
  --tf-font-thai: "Noto Sans Thai", "Sarabun", "Leelawadee UI", "Thonburi", sans-serif;
  --tf-font-thai-serif: "Noto Serif Thai", "Noto Sans Thai", "Sarabun", serif;
  --tf-font-latin: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --tf-max: 960px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--tf-font-thai), var(--tf-font-latin);
  color: var(--tf-ink);
  background: var(--tf-paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tf-temple-red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Prayer-flag banner — full-width saffron/red bunting on top */
.tf-flagstrip {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--tf-saffron) 0 40px,
    var(--tf-temple-red) 40px 80px,
    var(--tf-ink-blue) 80px 120px,
    var(--tf-cream) 120px 160px
  );
}

/* Topbar — centered brand, no left/right split */
.tf-topbar { background: var(--tf-paper); border-bottom: 2px solid var(--tf-line-strong); }
.tf-topbar__inner {
  padding: 1.5rem 1.5rem 0.75rem;
  text-align: center;
}
.tf-brand {
  color: var(--tf-temple-red-deep);
  font-family: var(--tf-font-thai-serif);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  display: inline-block;
}
.tf-brand__mark { color: var(--tf-saffron); margin-right: 0.4rem; }
.tf-nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.tf-nav__link {
  color: var(--tf-ink-blue);
  font-weight: 600;
  font-size: 0.95rem;
}
.tf-nav__link:hover { color: var(--tf-temple-red); text-decoration: none; }
.tf-disclaimer {
  background: var(--tf-temple-red);
  color: var(--tf-cream);
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
}

/* Hero — centered, banner style, no big background */
.tf-hero {
  background: var(--tf-cream);
  padding: 2.75rem 0 2.25rem;
  border-bottom: 2px double var(--tf-temple-red);
  text-align: center;
}
.tf-hero__kicker {
  display: inline-block;
  color: var(--tf-temple-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
}
.tf-hero__title {
  font-family: var(--tf-font-thai-serif);
  font-size: clamp(1.8rem, 4.6vw, 2.9rem);
  margin: 0 0 0.85rem;
  line-height: 1.25;
  color: var(--tf-ink-blue);
}
.tf-hero__deck { font-size: 1.1rem; color: var(--tf-ink); max-width: 64ch; margin: 0 auto; }

/* Main — single centered column, no sidebar */
.tf-main { padding: 2.5rem 0 3rem; }
.tf-card {
  background: #fff;
  border-top: 4px solid var(--tf-saffron);
  border-bottom: 4px solid var(--tf-temple-red);
  border-left: 1px solid var(--tf-line);
  border-right: 1px solid var(--tf-line);
  padding: 2.25rem 2rem;
}
.tf-card--article { padding: 2.5rem 2rem; }

/* Prose */
.tf-prose { font-size: 1.05rem; }
.tf-prose h2 {
  font-family: var(--tf-font-thai-serif);
  font-size: 1.55rem;
  margin: 2rem 0 0.9rem;
  padding: 0.4rem 0;
  color: var(--tf-ink-blue);
  border-top: 1px solid var(--tf-temple-red);
  border-bottom: 1px solid var(--tf-temple-red);
}
.tf-prose h3 {
  font-size: 1.18rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--tf-temple-red-deep);
}
.tf-prose p { margin: 0 0 1rem; }
.tf-prose ul, .tf-prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.tf-prose li { margin: 0.3rem 0; }
.tf-prose strong { color: var(--tf-temple-red-deep); }
.tf-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  background: var(--tf-paper);
}
.tf-prose th, .tf-prose td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--tf-line);
}
.tf-prose th { background: var(--tf-saffron); color: var(--tf-ink); font-weight: 700; }
.tf-prose blockquote {
  border-left: 4px solid var(--tf-saffron);
  padding: 0.6rem 1rem;
  margin: 1.1rem 0;
  color: var(--tf-muted);
  background: var(--tf-cream);
  font-style: italic;
}

/* Article head */
.tf-article-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--tf-line-strong);
  text-align: center;
}
.tf-article-kicker {
  color: var(--tf-temple-red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin: 0 0 0.6rem;
}
.tf-article-deck { font-size: 1.1rem; color: var(--tf-muted); margin: 0.5rem 0 1rem; }
.tf-article-meta { color: var(--tf-muted); font-size: 0.88rem; }
.tf-article-meta span { margin: 0 0.4rem; }

/* Broadcaster chips */
.tf-broadcasters {
  background: var(--tf-cream);
  border: 1px solid var(--tf-line-strong);
  padding: 1.25rem;
  margin: 1.75rem 0;
  text-align: center;
}
.tf-broadcasters__heading {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tf-temple-red-deep);
  font-weight: 700;
  margin: 0 0 0.85rem;
}
.tf-chip {
  display: inline-block;
  background: #fff;
  color: var(--tf-ink-blue);
  border: 1px solid var(--tf-line-strong);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.2rem;
}

/* Widget block */
.tf-widget {
  background: var(--tf-ink-blue);
  color: var(--tf-cream);
  padding: 1.75rem 1.5rem;
  margin: 1.5rem 0 2rem;
  border-top: 4px solid var(--tf-saffron);
  border-bottom: 4px solid var(--tf-saffron);
}
.tf-widget__heading {
  font-family: var(--tf-font-thai-serif);
  color: var(--tf-saffron);
  font-size: 1.4rem;
  margin: 0 0 1rem;
  text-align: center;
}

/* Listing */
.tf-listing { margin-top: 2rem; }
.tf-listing__heading {
  font-family: var(--tf-font-thai-serif);
  font-size: 1.3rem;
  color: var(--tf-ink-blue);
  margin: 0 0 1rem;
}
.tf-listing__rows { list-style: none; padding: 0; margin: 0; }
.tf-listing__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dotted var(--tf-line-strong);
}
.tf-listing__when { color: var(--tf-muted); font-size: 0.88rem; }

/* FAQ */
.tf-faq { margin: 2.5rem 0 0; }
.tf-faq__inner {
  background: #fff;
  border-top: 3px solid var(--tf-saffron);
  border-bottom: 3px solid var(--tf-temple-red);
  padding: 1.75rem 1.5rem;
}
.tf-faq__heading {
  font-family: var(--tf-font-thai-serif);
  font-size: 1.45rem;
  color: var(--tf-ink-blue);
  margin: 0 0 1.1rem;
  text-align: center;
}
.tf-faq__list { display: flex; flex-direction: column; gap: 0.5rem; }
.tf-faq__item {
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  padding: 0.9rem 1.1rem;
}
.tf-faq__item[open] {
  background: var(--tf-cream);
  border-color: var(--tf-saffron);
}
.tf-faq__q { font-weight: 600; cursor: pointer; color: var(--tf-temple-red-deep); }
.tf-faq__a { padding-top: 0.7rem; color: var(--tf-ink); }
.tf-faq__a p:last-child { margin-bottom: 0; }

/* Footer */
.tf-footer {
  background: var(--tf-ink-blue);
  color: var(--tf-cream);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 6px solid var(--tf-saffron);
}
.tf-footer__legal { font-size: 0.86rem; color: #fde68a; max-width: 80ch; margin: 0 auto; text-align: center; }
.tf-footer__links {
  list-style: none; padding: 0;
  margin: 1.5rem 0;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1.25rem;
}
.tf-footer__links a { color: var(--tf-cream); font-size: 0.92rem; }
.tf-footer__links a:hover { color: var(--tf-saffron); }
.tf-footer__copy { color: var(--tf-line); font-size: 0.82rem; margin: 1rem 0 0; text-align: center; }

/* Hybrid homepage variants — hero darker, widget prominent, chip row, quick-links, collapsed takedown */
.tf-hero--dark {
  background: linear-gradient(180deg, #0f1d4a 0%, var(--tf-ink-blue) 60%, #142255 100%);
  color: var(--tf-cream);
  border-bottom: 4px double var(--tf-saffron);
  padding: 3rem 0 2.5rem;
}
.tf-hero--dark .tf-hero__kicker { color: var(--tf-saffron); }
.tf-hero--dark .tf-hero__title { color: var(--tf-cream); }
.tf-hero--dark .tf-hero__deck { color: var(--tf-line); }

.tf-widget--prominent {
  margin: 0 0 2rem;
  padding: 2rem 1.5rem 2.25rem;
  border-top: 6px solid var(--tf-saffron);
  border-bottom: 6px solid var(--tf-temple-red);
  box-shadow: 0 8px 22px rgba(15, 29, 74, 0.18);
}
.tf-widget--prominent .tf-widget__heading {
  font-size: 1.7rem;
  margin-bottom: 1.25rem;
}

.tf-chiprow {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.45rem; margin: 0 0 2rem;
  padding: 1rem 0.5rem;
  background: var(--tf-cream);
  border-top: 1px dashed var(--tf-temple-red);
  border-bottom: 1px dashed var(--tf-temple-red);
}
.tf-chiprow__label {
  width: 100%; text-align: center;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--tf-temple-red-deep); font-weight: 700;
  margin-bottom: 0.35rem;
}
.tf-chiprow a.tf-chip { color: var(--tf-ink-blue); }
.tf-chiprow a.tf-chip:hover {
  background: var(--tf-saffron); color: var(--tf-ink); text-decoration: none;
  border-color: var(--tf-temple-red);
}

.tf-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 2rem;
}
.tf-quicklinks__card {
  display: block;
  background: #fff;
  border: 1px solid var(--tf-line-strong);
  border-left: 4px solid var(--tf-saffron);
  padding: 0.95rem 1rem;
  color: var(--tf-ink);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.tf-quicklinks__card:hover {
  transform: translateY(-2px);
  border-left-color: var(--tf-temple-red);
  text-decoration: none;
}
.tf-quicklinks__name {
  display: block;
  font-family: var(--tf-font-thai-serif);
  font-weight: 700;
  color: var(--tf-ink-blue);
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}
.tf-quicklinks__note { font-size: 0.82rem; color: var(--tf-muted); }

.tf-takedown {
  margin: 2rem 0 0;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-left: 4px solid var(--tf-temple-red);
  padding: 0.4rem 1rem;
}
.tf-takedown > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--tf-temple-red-deep);
  padding: 0.6rem 0;
  list-style: none;
}
.tf-takedown > summary::-webkit-details-marker { display: none; }
.tf-takedown > summary::before {
  content: "▸ ";
  color: var(--tf-saffron);
  font-size: 0.9em;
}
.tf-takedown[open] > summary::before { content: "▾ "; }
.tf-takedown[open] { padding-bottom: 1rem; }
.tf-takedown p { margin: 0.6rem 0; color: var(--tf-ink); font-size: 0.97rem; }

/* World Cup 2026 prediction-game CTA (tf-wccta) — Thai temple */
.tf-wccta { margin: 2.6rem auto; max-width: var(--tf-max); padding: 0 1rem; }
.tf-wccta__inner { background: var(--tf-paper); border: 1px solid var(--tf-line-strong); border-left: 4px solid var(--tf-temple-red); border-radius: 6px; padding: 1.6rem 1.8rem; }
.tf-wccta__kicker { display:inline-block; font-family: var(--tf-font-thai); font-size:.85rem; color: var(--tf-saffron-deep); font-weight:700; margin-bottom:.5rem; }
.tf-wccta__title { font-family: var(--tf-font-thai-serif); font-weight:700; font-size:1.7rem; line-height:1.4; margin:0 0 .55rem; color: var(--tf-temple-red-deep); }
.tf-wccta__copy { font-family: var(--tf-font-thai); margin:0 0 1.1rem; color: var(--tf-ink); font-size:1.02rem; line-height:1.8; }
.tf-wccta__btn { display:inline-block; background: var(--tf-temple-red); color:#fff; font-family: var(--tf-font-thai); font-weight:700; font-size:1rem; padding:.6rem 1.5rem; border-radius:6px; transition: background .18s ease; }
.tf-wccta__btn:hover { background: var(--tf-temple-red-deep); color:#fff; }
.tf-wccta--home { margin:1.1rem 0 0; max-width:none; padding:0; }
.tf-wccta--home .tf-wccta__inner { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem 1rem; padding:.65rem 1.1rem; }
.tf-wccta--home .tf-wccta__kicker { margin:0; }
.tf-wccta--home .tf-wccta__title { margin:0; font-size:1.06rem; line-height:1.35; flex:1 1 12rem; }
.tf-wccta--home .tf-wccta__copy { display:none; }
.tf-wccta--home .tf-wccta__btn { margin:0; flex:0 0 auto; padding:.45rem 1.2rem; font-size:.92rem; }
