/* The free guides under /learn/ and /de/lernen/ (written by scripts/build-site-pages.ts); site.css holds the theme. */

.top .lang {
  font-size: 0.9rem; color: var(--text-muted); text-decoration: none; padding: 4px 14px; border-radius: 999px;
  border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--rim) border-box;
}
.top .lang:hover { color: var(--heading); box-shadow: var(--rim-glow); }

.eyebrow {
  margin: 0 0 10px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-soft);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lead { margin: 0 0 28px; font-size: 1.15rem; line-height: 1.5; color: var(--text-muted); }

/* The text of a guide: German words can be long for a 360 px phone. */
article p, article li, article td { hyphens: auto; overflow-wrap: break-word; }
article p { margin: 0 0 16px; }
article h2 + p, article h2 + ul, article h2 + ol { margin-top: 0; }
article ul, article ol { margin: 0 0 16px; padding-left: 1.5em; }
article ul { list-style: none; }
article li { margin-bottom: 6px; }
article ul li { position: relative; }
article ul li::before { content: '✦'; position: absolute; left: -1.5em; color: #f6a95f; }
article ol li::marker { color: #f6a95f; }
article strong { font-weight: 600; color: var(--heading); }
.warning {
  margin: 0 0 24px; padding: 12px 16px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--error);
}

.table { margin: 0 0 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
th, td { padding: 8px 10px; border-bottom: 1px solid rgba(166, 173, 216, 0.18); text-align: left; vertical-align: top; }
th { color: var(--heading); font-weight: 600; }

.pager {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 40px;
}
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager .next { margin-left: auto; text-align: right; }

/* The call at the end of every page. */
.cta {
  margin: 48px 5px 0; padding: 24px 20px; text-align: center;
}
.cta h2 { margin: 0 0 8px; }
.cta p { margin: 0 0 18px; color: var(--text-muted); }
.button { display: inline-block; padding: 12px 24px; }
.button:focus-visible, .guides a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cta .note { display: block; margin-top: 10px; font-size: 0.8rem; color: var(--text-muted); }

/* The index: one card per guide; long sections in two columns where there is room. */
.guides { list-style: none; margin: 0; padding: 0 5px; display: grid; gap: 12px; }
.guides a {
  display: block; height: 100%; padding: 14px 18px; text-decoration: none; color: var(--text);
}
.guides a:hover { box-shadow: var(--rim-glow), 0 0 0 1px rgba(201, 166, 240, 0.35); }
.guides strong { display: block; font: 600 1.3rem/1.25 var(--display); color: var(--heading); }
.guides span { display: block; margin-top: 2px; font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); }
@media (min-width: 600px) {
  .guides.many { grid-template-columns: 1fr 1fr; }
}
