/* Shared index layout – topic groups for guide lists */
:root {
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-light: #ccfbf1;
  --bg: #f0fdfa;
  --surface: #fff;
  --text: #134e4a;
  --text-muted: #115e59;
  --border: #99f6e4;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(13, 148, 136, 0.08);
  --shadow-hover: 0 4px 12px rgba(13, 148, 136, 0.15);
  --font: 'Segoe UI', 'Heebo', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.page-header {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff;
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}

.page-header .wrap {
  max-width: 720px;
  margin: 0 auto;
}

.guide-logo {
  display: inline-block;
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.page-header .tagline {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
}

.page-header a.company {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  display: inline-block;
}

.page-header a.company:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  position: relative;
  margin-top: -1.25rem;
}

.card-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1rem 0.85rem 1.15rem;
}

.lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
  padding: 0 0.35rem;
}

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0 0.25rem;
}

.topic-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--brand-light) 55%, #fff);
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
}

.topic-nav a:hover {
  background: var(--brand-light);
  border-color: var(--brand);
}

.guide-topic {
  margin: 0 0 1.35rem;
  padding: 0.85rem 0.55rem 0.25rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.guide-topic:first-of-type {
  border-top: 0;
  padding-top: 0.25rem;
}

.guide-topic-title {
  margin: 0 0 0.2rem;
  padding: 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.guide-topic-desc {
  margin: 0 0 0.75rem;
  padding: 0 0.35rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.guide-topic ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-topic li {
  margin-bottom: 0.45rem;
}

a.guide-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

a.guide-link:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  color: var(--brand-dark);
}

a.guide-link::before {
  content: '';
  width: 4px;
  min-height: 1.4em;
  margin-top: 0.15em;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.guide-link-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.guide-link-title {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
}

.guide-link-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.35;
}

.guide-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
}

.guide-footer p { margin: 0.35rem 0; }

.guide-footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.guide-footer a:hover { text-decoration: underline; }
