/*
 * Triviathlon product site (triviathlon.online): home (/ and /bs), pub-quiz city pages
 * (/pub-quiz/<city>, /pub-kviz/<city>), single quiz pages (/quiz/<id>) and the
 * quiz-master pages (/quiz-masters, /kviz-masteri). Served by productSite.js as
 * /triviathlon.css?v=<content hash>. The Foundry7 studio page keeps site.css.
 *
 * The first block is the quiz-master page design (green palette, white cards); the
 * rest reuses the same tokens for the other pages.
 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* System fonts only; the fallbacks cover Thai, Devanagari, Arabic/Urdu, Greek, Cyrillic and CJK. */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial,
  "Thonburi", "Leelawadee UI", "Noto Sans Thai", "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari",
  "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali", "Vrinda",
  "Noto Sans Georgian", "Sylfaen", "Noto Sans Armenian",
  "Arial Hebrew", "Noto Sans Hebrew",
  "Geeza Pro", "Segoe UI Arabic", "Noto Naskh Arabic", "Noto Sans Arabic",
  "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR",
  "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
  "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans JP", sans-serif;
  margin: 0; color: #12281a; background: linear-gradient(180deg, #f2f8f4 0%, #e4ede8 100%); }
.wrap { max-width: 880px; margin: 0 auto; padding: 40px 16px 60px; }
header { text-align: center; margin-bottom: 26px; }
header img.logo { width: 64px; height: 64px; }
h1 { font-size: clamp(26px, 5vw, 38px); color: #0d3d1f; margin: 12px 0 10px; }
.sub { color: #4d6355; max-width: 40em; margin: 0 auto; font-size: 17px; line-height: 1.55; }
nav.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; }
nav.jump a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #c9dccf;
  color: #136f2d; text-decoration: none; font-weight: 600; font-size: 14px; }
nav.jump a:hover { background: #e9f4ec; }
a { color: #136f2d; }
.qm-row { display: flex; gap: 28px; align-items: center; margin: 28px 0;
  background: #fff; border: 1px solid #d7e5db; border-radius: 18px; padding: 24px;
  box-shadow: 0 8px 24px rgba(13,61,31,.08); }
.qm-row.flip { flex-direction: row-reverse; }
.qm-row img { width: 220px; max-width: 38%; border-radius: 14px; height: auto; }
.qm-row h2 { color: #0d3d1f; margin: 0 0 8px; font-size: 22px; }
.qm-row p { margin: 0; color: #4d6355; line-height: 1.6; }
.card { background: #fff; border: 1px solid #d7e5db; border-radius: 18px; padding: 24px 28px; margin: 28px 0;
  box-shadow: 0 8px 24px rgba(13,61,31,.06); scroll-margin-top: 16px; }
.card > h2 { color: #0d3d1f; margin: 0 0 8px; font-size: 24px; }
.card h3 { color: #0d3d1f; margin: 0 0 10px; font-size: 18px; }
.card p { color: #4d6355; line-height: 1.6; margin: 0 0 12px; }
.card b { color: #12281a; }
.login-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; align-items: start; margin-top: 14px; }
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
ol.steps li { counter-increment: step; position: relative; padding-block: 0 14px; padding-inline: 44px 0; color: #2f4637; line-height: 1.55; }
ol.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: -2px; width: 30px; height: 30px;
  border-radius: 50%; background: #136f2d; color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; }
ul.ticks { margin: 0; padding-inline-start: 20px; color: #2f4637; line-height: 1.55; }
ul.ticks li { margin-bottom: 8px; }
.phone { border: 1px solid #c9dccf; border-radius: 26px; padding: 18px 14px 20px; background: #f7fbf8; text-align: center; }
.phone .bar { font-size: 13px; font-weight: 700; color: #0d3d1f; margin-bottom: 14px; }
.phone .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; font-weight: 800;
  letter-spacing: 0.18em; color: #12281a; background: #fff; border: 1px solid #d7e5db; border-radius: 12px; padding: 14px 4px; }
.phone .exp { font-size: 12px; color: #4d6355; margin-top: 8px; }
.phone .fake-btn { margin-top: 12px; padding: 8px; border-radius: 10px; background: #136f2d; color: #fff; font-size: 13px; font-weight: 600; }
.phone .url { margin-top: 10px; font-size: 12px; color: #4d6355; }
.tip { background: #eef7f1; border: 1px solid #cfe5d6; border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.tip h3 { font-size: 16px; margin: 0 0 4px; }
.tip p { margin: 0; }
.muted-note { font-size: 14px; margin-top: 12px !important; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.two > div { background: #f7fbf8; border: 1px solid #d7e5db; border-radius: 14px; padding: 18px; scroll-margin-top: 16px; }
details { border-top: 1px solid #e1ece4; padding: 12px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; color: #0d3d1f; line-height: 1.45; }
details p { margin: 8px 0 0; }
.cta { text-align: center; margin-top: 38px; }
.cta h2 { color: #0d3d1f; }
.button { display: inline-block; margin: 6px; padding: 12px 22px; border-radius: 10px;
  background: #136f2d; color: #fff; text-decoration: none; font-weight: 600; }
.muted { color: #4d6355; font-size: 14px; margin-top: 18px; }
@media (max-width: 680px) {
  .qm-row, .qm-row.flip { flex-direction: column; padding: 20px; }
  .qm-row img { max-width: 65%; }
  .card { padding: 20px 18px; }
  .login-grid, .two { grid-template-columns: 1fr; }
  .phone { max-width: 240px; margin: 0 auto; }
}

/* ---- Shared pieces for home, city and quiz pages (same palette as above). ---- */
.wrap { position: relative; }
.lang-switch { position: absolute; top: 14px; inset-inline-end: 16px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #c9dccf; color: #136f2d; text-decoration: none; font-weight: 600; font-size: 14px; }
.lang-switch:hover, .pills a:hover, .qm-link a:hover, .button.secondary:hover { background: #e9f4ec; }
.button:hover { background: #0f5c25; }
.button.secondary { background: #fff; color: #136f2d; border: 1px solid #8eb89a; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #136f2d; }
.eyebrow a { text-decoration: none; }
header .eyebrow { margin-top: 12px; }
.actions { margin: 18px 0 0; }
.card .actions { margin: 4px 0 0; }
.qm-link { margin: 14px 0 0; }
.qm-link a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #c9dccf;
  text-decoration: none; font-weight: 600; font-size: 14px; }
.section-title { text-align: center; color: #0d3d1f; font-size: 24px; margin: 40px 0 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 28px; }
.grid > .card { margin: 0; }
.grid > .card p:last-child { margin-bottom: 0; }
.card.center { text-align: center; }
.card.qm-cta { background: #eef7f1; border-color: #cfe5d6; text-align: center; }
.card.qm-cta p:last-child, .card.center p:last-child { margin-bottom: 0; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 0; }
.pills a { padding: 8px 14px; border-radius: 999px; background: #f7fbf8; border: 1px solid #c9dccf;
  color: #136f2d; text-decoration: none; font-weight: 600; font-size: 14px; }
img.quiz-logo { border-radius: 50%; object-fit: cover; border: 2px solid #1f8a5b; background: #fff; flex: none; }
header img.quiz-logo { width: 96px; height: 96px; }
.quiz-card { display: flex; flex-direction: column; }
.quiz-card .top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.quiz-card .top h3 { margin: 0; overflow-wrap: anywhere; }
.quiz-card .top h3 a { color: #0d3d1f; text-decoration: none; }
.quiz-card .top h3 a:hover { text-decoration: underline; }
.quiz-card p { margin: 0 0 6px; }
.quiz-card .go { margin-top: auto; padding-top: 8px; }
.quiz-card .go .button { margin: 0; }
.facts { list-style: none; margin: 0 0 4px; padding: 0; }
.facts li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid #e1ece4;
  color: #2f4637; line-height: 1.5; overflow-wrap: anywhere; }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts .ico { flex: none; width: 1.4em; text-align: center; }
.facts b { color: #12281a; }
.desc { margin-top: 12px !important; }
.socials { margin: 10px -6px 0 !important; }
footer.site-footer { text-align: center; margin-top: 38px; color: #4d6355; font-size: 14px; }
footer.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
footer.site-footer p { margin: 0; }
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .lang-switch { top: 10px; inset-inline-end: 12px; }
}

/* ---- Evergreen SEO pages (seoPages.js): language switcher, question lists, category grid. ---- */
/* Language picker: <details> with every language by native name; no JS. */
.langs { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5; font-size: 14px; }
.langs summary { list-style: none; cursor: pointer; padding: 6px 12px; border-radius: 999px; background: #fff;
  border: 1px solid #c9dccf; color: #136f2d; font-weight: 700; white-space: nowrap; user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; font-size: 11px; }
.langs[open] summary { background: #e9f4ec; }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #c9dccf; border-radius: 14px; box-shadow: 0 10px 30px rgba(13,61,31,.16);
  display: grid; grid-template-columns: repeat(3, minmax(9.5em, 1fr)); gap: 2px; width: max-content;
  max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; }
.langs img.flag { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; object-fit: cover; }
.langs summary img.flag { vertical-align: -2px; }
.langs li a, .langs li span { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; text-decoration: none;
  color: #12281a; white-space: nowrap; text-align: start; }
.langs li a:hover { background: #eef7f1; }
.langs li span[aria-current] { background: #136f2d; color: #fff; font-weight: 700; }
header .eyebrow { padding: 0 8px; }
.app-note { margin: 8px 0 0; font-size: 14px; color: #4d6355; }
.card .app-note { margin: 6px 0 0 !important; }
.qm-row img { box-shadow: 0 4px 14px rgba(13,61,31,.10); }
.qlist { list-style: none; margin: 12px 0 0; padding: 0; }
.qlist > li.q { border-top: 1px solid #e1ece4; padding: 16px 0; }
.qlist > li.q:first-child { border-top: 0; padding-top: 4px; }
.q-head { margin: 0 0 6px !important; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eef7f1; border: 1px solid #cfe5d6;
  color: #136f2d; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.card h3.q-text { font-size: 17px; line-height: 1.45; margin: 0 0 8px; color: #12281a; }
.q-num { color: #136f2d; margin-inline-end: 2px; }
ol.opts { margin: 0 0 6px; padding-inline-start: 26px; color: #2f4637; line-height: 1.6; }
ol.opts li::marker { font-weight: 700; color: #136f2d; }
.qlist details { border-top: 0; padding: 4px 0 0; }
.qlist summary { color: #136f2d; font-size: 15px; }
.answer { font-weight: 700; color: #0d3d1f !important; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.tier { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1px solid transparent; }
.tier-0 { background: #f6e7da; color: #7a4a22; border-color: #e6cdb6; }
.tier-1 { background: #eef1f4; color: #4a5560; border-color: #d5dbe1; }
.tier-2 { background: #fdf3cf; color: #7a5b00; border-color: #f0dc8f; }
.tier-3 { background: #e7f3f6; color: #2a5f6e; border-color: #c4e0e8; }
.tier-4 { background: #ece8fd; color: #4b3aa8; border-color: #d4ccf7; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 28px; }
a.card.cat-card { display: flex; gap: 14px; align-items: center; margin: 0; padding: 16px 18px; text-decoration: none; color: #12281a; }
a.card.cat-card:hover, a.card.explore-card:hover { border-color: #8eb89a; background: #fbfdfb; }
.cat-icon { font-size: 28px; flex: none; }
.cat-card b { display: block; font-size: 17px; color: #0d3d1f; }
.cat-card small { color: #4d6355; font-size: 13px; }
a.card.explore-card { display: block; text-decoration: none; }
a.card.explore-card h3 { color: #136f2d; }
.card h2.feature-h { font-size: 18px; margin: 0 0 10px; }
footer.site-footer nav.footer-langs { margin-top: -2px; font-size: 13px; }
@media (max-width: 680px) {
  .cat-grid { grid-template-columns: 1fr; }
  .langs { top: 8px; inset-inline-end: 8px; font-size: 13px; }
  .langs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 24px); max-height: 65vh; }
  .langs li a, .langs li span { padding: 7px 8px; white-space: normal; }
  header { padding-top: 18px; }
}

/* Scripts with tall glyphs need more line height; right-to-left pages mirror via logical properties. */
html:lang(th), html:lang(hi), html:lang(ur), html:lang(bn), html:lang(ka) { line-height: 1.7; }
html:lang(bn) .card p, html:lang(bn) .sub { line-height: 1.85; }
html:lang(bn) h1, html:lang(ka) h1 { line-height: 1.45; }
html:lang(th) .card p, html:lang(hi) .card p, html:lang(ur) .card p, html:lang(th) .sub, html:lang(hi) .sub, html:lang(ur) .sub { line-height: 1.85; }
html:lang(ur) h1, html:lang(th) h1, html:lang(hi) h1 { line-height: 1.45; }
html[dir="rtl"] .langs summary::after { content: " ▾"; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
html:lang(he) .eyebrow, html:lang(ko) .eyebrow, html:lang(bn) .eyebrow, html:lang(ka) .eyebrow, html:lang(hy) .eyebrow,
html:lang(ar) .eyebrow, html:lang(ur) .eyebrow, html:lang(ja) .eyebrow, html:lang(zh-Hans) .eyebrow, html:lang(th) .eyebrow, html:lang(hi) .eyebrow { text-transform: none; letter-spacing: .02em; }
