/* Shared styling for the generated guide pages (/guides). Written by hand rather than
   generated from src/styles.css: these pages are served as static HTML with no app
   bundle, so they carry only what they need. */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bebas-neue-latin.woff2') format('woff2');
}

:root {
  --bg: #f8fafc;
  --header: #0f172a;
  --accent: #2563eb;
  --muted: #64748b;
  --text: #0f172a;
  --body: #334155;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: Inter, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- chrome ---------- */

.site-header {
  background: var(--header);
  color: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.site-nav a[aria-current='page'] {
  color: #ffffff;
}

.site-footer {
  margin-top: 48px;
  padding: 26px 0;
  background: var(--header);
  color: #94a3b8;
  font-size: 13px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-brand {
  font-weight: 700;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

/* ---------- page ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  font-weight: 600;
  text-decoration: none;
}

.guide-header {
  margin: 14px 0 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.guide-header h1 {
  margin: 0 0 12px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--text);
}

.guide-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 40px;
  align-items: start;
}

.guide-body > section {
  margin-bottom: 26px;
}

.guide-body h2 {
  margin: 26px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
}

.guide-body p {
  margin: 0 0 12px;
  max-width: 68ch;
}

.guide-body ul {
  margin: 0 0 14px;
  padding-left: 20px;
  max-width: 68ch;
}

.guide-body li {
  margin-bottom: 6px;
}

.guide-body strong {
  color: var(--text);
}

.guide-answer {
  padding: 18px 20px;
  margin: 0 0 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.guide-answer p {
  margin: 0;
  max-width: 66ch;
}

.guide-body table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.guide-body th,
.guide-body td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
}

.guide-body thead th {
  background: #f1f5f9;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
}

.guide-body tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- sidebar ---------- */

.guide-aside {
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
}

.guide-aside h2 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.guide-aside li {
  margin-bottom: 10px;
}

.guide-aside a {
  font-weight: 600;
  text-decoration: none;
}

.guide-aside a:hover,
.guide-aside a:focus-visible {
  text-decoration: underline;
}

.guide-cta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.guide-cta a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.guide-cta a:hover,
.guide-cta a:focus-visible {
  background: #1d4ed8;
}

/* ---------- index ---------- */

.guide-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-card {
  display: block;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.guide-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--text);
}

.guide-card p {
  margin: 0;
  font-size: 14px;
  color: var(--body);
}

@media (max-width: 860px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .guide-aside {
    order: 2;
  }
}
