/* =========================================================
   Calendar72: topic guide pages (/calendars/, /bundesliga-calendar/, ...)
   Loaded after landing.css and reuses its tokens, nav, buttons, FAQ and
   footer. Static pages without JS, so nothing here depends on .reveal or
   on landing.js toggling classes.
   ========================================================= */

/* The nav stays transparent on the homepage until landing.js adds .is-stuck.
   Guide pages load no JS, so give it the stuck look from the start. */
.guide .nav {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}
.guide a.lang-toggle { text-decoration: none; }

.guide-main {
  padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 64px));
  padding-bottom: clamp(56px, 8vw, 96px);
}
html[lang="de"] .guide-main { hyphens: auto; }
.guide-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 13px; color: var(--label-tertiary); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--label-secondary); transition: color .15s ease; }
.crumbs a:hover { color: var(--label); }

/* ---------- Hero ---------- */
.guide h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.guide .answer {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
  color: var(--label);
  max-width: 64ch;
  text-wrap: pretty;
}
.guide-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.guide-meta {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 14px; color: var(--label-secondary);
}
.guide-meta li { display: inline-flex; align-items: center; gap: 6px; }
.guide-meta svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Sections ---------- */
.g-section { padding: 0; margin-top: clamp(48px, 7vw, 76px); }
.g-section + .g-section { padding-top: 0; }
.guide h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.guide h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.012em; margin-bottom: 6px; }
.g-section > p {
  color: var(--label-secondary);
  margin-bottom: 14px;
  max-width: 68ch;
}
.g-section > p:last-child { margin-bottom: 0; }
.g-section h3.g-sub { margin-top: 30px; margin-bottom: 8px; }
.guide-main p a,
.guide-main .g-card a,
.guide-main .faq-a a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 3px;
}
.guide-main p a:hover,
.guide-main .g-card a:hover { text-decoration-color: var(--accent); }

/* ---------- Cards ---------- */
.g-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.g-cards:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .g-cards { grid-template-columns: minmax(0, 1fr); } }
.g-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  min-width: 0;
}
.g-card p { font-size: 15px; line-height: 1.55; color: var(--label-secondary); }

/* ---------- Tag list (league names) ---------- */
.g-tags {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.g-tags li {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--label-secondary);
}

/* ---------- Steps ---------- */
.g-steps {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; gap: 12px;
  counter-reset: g-step;
}
.g-steps li {
  counter-increment: g-step;
  position: relative;
  padding: 20px 22px 20px 70px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.g-steps li::before {
  content: counter(g-step);
  position: absolute; left: 22px; top: 19px;
  width: 32px; height: 32px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700; font-size: 15px;
}
.g-steps p { font-size: 15px; line-height: 1.55; color: var(--label-secondary); }
@media (max-width: 430px) {
  .g-steps li { padding: 64px 18px 18px; }
  .g-steps li::before { left: 18px; top: 18px; }
}

/* ---------- Note (the * explainer) ---------- */
.g-note {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.g-note p { font-size: 15px; line-height: 1.6; color: var(--label); }
.g-star { color: var(--accent); font-weight: 800; }

/* ---------- FAQ (reuses .faq-* from landing.css) ---------- */
.guide .faq-list { max-width: none; margin: 20px 0 0; }

/* ---------- Link grid (related pages, hub topics) ---------- */
.g-links {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid;
  /* Two columns, like .g-cards: with eight links (seven guides plus the hub)
     three columns left a lone card in the last row. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) { .g-links { grid-template-columns: minmax(0, 1fr); } }
.g-links a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-weight: 600; font-size: 15px;
  color: var(--label);
  transition: border-color .15s ease;
}
.g-links a:hover { border-color: var(--accent); }
.g-links a span {
  display: block;
  margin-top: 4px;
  font-weight: 400; font-size: 13px;
  color: var(--label-secondary);
}
.g-topics a { font-size: 17px; padding: 20px 22px; }

/* ---------- Closing CTA ---------- */
.g-cta {
  margin-top: clamp(56px, 8vw, 88px);
  padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}
.g-cta h2 { margin-bottom: 12px; }
.g-cta p { color: var(--label-secondary); max-width: 48ch; margin: 0 auto 24px; }
.g-cta p.meta { font-size: 13px; color: var(--label-tertiary); margin: 16px auto 0; }
.g-cta .btn { max-width: 100%; }

/* ---------- Footer with a fourth column ---------- */
.footer-grid.g-footer { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 760px) {
  .footer-grid.g-footer { grid-template-columns: 1fr 1fr; }
}

/* Never hyphenate the brand name (German pages use hyphens: auto). */
.brand { hyphens: manual; white-space: nowrap; }
