/*
 * 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; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 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: 0 0 14px 44px; color: #2f4637; line-height: 1.55; }
ol.steps li::before { content: counter(step); position: absolute; left: 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-left: 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; right: 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; right: 12px; }
}
