/* independent.scot — Saltire-inspired, clean and readable */
:root {
  --blue: #005eb8;        /* Saltire blue */
  --blue-dark: #00437f;
  --ink: #1a1a2e;
  --paper: #ffffff;
  --grey: #5a6572;
  --grey-light: #eef2f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.06rem;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--blue);
  color: #fff;
  padding: 2.2rem 0 1.8rem;
}
.site-title {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-title .dot { opacity: 0.75; font-weight: 400; }
.tagline {
  margin: 0.4rem 0 0;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  opacity: 0.9;
  font-size: 1rem;
}

/* Main */
main { padding: 2.5rem 1.25rem 3rem; }

h1, h2, h3 {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.25;
  color: var(--blue-dark);
}
h1 { font-size: 1.9rem; margin-top: 0; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

/* FAQ index */
.category-block { margin-bottom: 2.2rem; }
.category-block > h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  border-bottom: 2px solid var(--grey-light);
  padding-bottom: 0.4rem;
}
.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-list li { margin: 0; }
.faq-list a {
  display: block;
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  border-bottom: 1px solid var(--grey-light);
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
}
.faq-list a:hover { background: var(--grey-light); }
.faq-list .summary {
  display: block;
  font-weight: 400;
  color: var(--grey);
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

/* FAQ entry */
.crumb {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
}
.crumb a { text-decoration: none; }
.category-label {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 0.2rem;
}
.faq-entry blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 1.2rem;
  border-left: 4px solid var(--blue);
  background: var(--grey-light);
  font-style: italic;
}
/* Tables */
.faq-entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.93rem;
  line-height: 1.45;
}
.faq-entry thead th {
  text-align: left;
  background: var(--blue-dark);
  color: #fff;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.faq-entry td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--grey-light);
  vertical-align: top;
}
.faq-entry tbody tr:nth-child(even) { background: var(--grey-light); }
/* Highlight the row containing bold text (Scotland) — keep after zebra rule */
.faq-entry tbody tr:has(strong) {
  background: #e2edfa;
  box-shadow: inset 4px 0 0 var(--blue);
}
@media (max-width: 640px) {
  .faq-entry table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .faq-entry table th,
  .faq-entry table td { white-space: nowrap; }
  .faq-entry table th:last-child,
  .faq-entry table td:last-child { white-space: normal; min-width: 13rem; }
}

.sources {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--grey-light);
}
.sources h2 { font-size: 1rem; }
.sources ul { padding-left: 1.2rem; font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--grey-light);
  color: var(--grey);
  padding: 1.8rem 0;
  font-size: 0.9rem;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
