/* Shared layout for the guide pages (/guides/ and /<lang>/guides/).
   Loaded after style.css, reuses its tokens. */

.guide-section { padding: 44px 0 88px; }
.guide-wrap { max-width: 720px; margin: 0 auto; }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--green); font-weight: 600; }
.breadcrumb span { opacity: 0.5; margin: 0 6px; }

.guide-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--text);
  margin-bottom: 16px;
}

.guide-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  border-radius: var(--radius-lg);
  background: var(--green-pale);
  border: 1px solid rgba(45, 106, 79, 0.14);
  padding: 14px 16px;
}
.guide-hero img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.guide-hero figcaption {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.guide-standfirst {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text-muted);
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.guide-cards {
  display: grid;
  gap: 14px;
  margin: 8px 0 28px;
}
.guide-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  padding: 12px 14px;
}
.guide-card:hover { border-color: var(--green); }
.guide-card img {
  width: 48px;
  height: 48px;
  display: block;
}
.guide-card-body { padding: 0; }
.guide-card-body strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 6px;
}
.guide-card-body span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .guide-card { grid-template-columns: 48px 1fr; }
}

.guide-body { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }
.guide-body p { margin-bottom: 18px; }
.guide-body a { color: var(--green); font-weight: 600; }
.guide-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 14px;
  line-height: 1.3;
}
.guide-body h3 {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
.guide-body ul, .guide-body ol { margin: 0 0 18px 20px; }
.guide-body li { margin-bottom: 9px; }
.guide-body strong { color: var(--text); font-weight: 700; }

.guide-note {
  background: var(--amber-pale);
  border: 1px solid rgba(233, 196, 106, 0.34);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.93rem;
  margin: 24px 0;
}

.guide-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 0.93rem; }
.guide-table th, .guide-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.guide-table th { color: var(--text); font-weight: 700; background: var(--surface-2); }
.guide-table-scroll { overflow-x: auto; }

.guide-cta {
  background: var(--green-pale);
  border: 1px solid rgba(45, 106, 79, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin: 40px 0 8px;
}
.guide-cta h2 { margin-top: 0; }
.guide-cta .btn { margin-top: 6px; }

.guide-cta .store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.guide-cta .store-badge {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.guide-cta .store-badge img {
  height: 44px;
  width: auto;
  display: block;
}
.guide-cta .store-badge:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.guide-region {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 36px 0 8px;
}
.guide-region > h2 { margin-top: 0; }
.guide-region-lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.guide-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.guide-region-tabs button {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.guide-region-tabs button[aria-selected="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.guide-region-tabs button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.guide-region-panel[hidden] { display: none; }
.guide-region-panel h3 {
  margin-top: 0;
}
.guide-region-panel p:last-child,
.guide-region-panel ul:last-child {
  margin-bottom: 0;
}

.guide-faq { margin-top: 8px; }
.guide-faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.guide-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: "+"; color: var(--green); font-size: 1.2rem; line-height: 1; }
.guide-faq details[open] summary::after { content: "\2212"; }
.guide-faq details p { margin: 12px 0 0; }

.guide-related {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.guide-related h2 { font-size: 1.05rem; margin: 0 0 12px; color: var(--text); font-weight: 800; }
.guide-related ul { margin: 0 0 0 20px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green);
}
