/* UK Member Benefits Guide — shared styles */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #222;
  background: #fafaf7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6e3dc;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1f3a5f;
}
.brand-mark {
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #1f3a5f;
}
.brand-tag {
  font-size: 11.5px;
  color: #777;
  font-weight: 400;
  margin-top: 1px;
}
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.site-nav a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.site-nav a:hover, .site-nav a.active {
  color: #1f3a5f;
  border-bottom-color: #1f3a5f;
}

/* Main */
main {
  flex: 1;
  padding: 0 20px;
}
article {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 32px 0 60px;
}

/* Typography */
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: #1a1a1a;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  color: #1a1a1a;
  scroll-margin-top: 80px;
}
h3 {
  font-size: 18px;
  margin: 26px 0 8px;
  color: #1a1a1a;
}
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
a { color: #1f3a5f; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #0f2240; }
strong { font-weight: 600; }

.meta {
  color: #6b6b6b;
  font-size: 14px;
  margin: 0 0 28px;
}
.meta span { margin-right: 14px; }

/* Components */
.tldr {
  background: #f4f8f3;
  border: 1px solid #d6e4d2;
  border-left: 4px solid #4a7c3f;
  padding: 18px 22px;
  border-radius: 6px;
  margin: 22px 0 36px;
}
.tldr h2 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #2c5024;
  letter-spacing: 0;
}
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin-bottom: 4px; }

.callout {
  background: #fff8e8;
  border: 1px solid #efd99a;
  border-left: 4px solid #c88a1e;
  padding: 16px 20px;
  border-radius: 6px;
  margin: 20px 0;
}
.callout strong { color: #7a5410; }
.callout-info {
  background: #eef4fb;
  border-color: #c4d6ec;
  border-left-color: #1f3a5f;
}
.callout-info strong { color: #1f3a5f; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
}
.checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid #ececec;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  border: 2px solid #4a7c3f;
  border-radius: 4px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 15.5px;
}
th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #e6e3dc;
  vertical-align: top;
}
th {
  background: #f4f1ea;
  font-weight: 600;
  color: #333;
}
tr:hover td { background: #faf8f3; }

.timeline {
  border-left: 2px solid #c4d6ec;
  padding-left: 18px;
  margin: 18px 0 24px;
}
.timeline-item { position: relative; padding-bottom: 14px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f3a5f;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #c4d6ec;
}
.timeline-date {
  font-weight: 600;
  color: #1f3a5f;
  font-size: 15px;
}

.toc {
  background: #fff;
  border: 1px solid #e6e3dc;
  border-radius: 6px;
  padding: 14px 22px;
  margin: 22px 0 36px;
}
.toc-title {
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 14px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  columns: 2;
  column-gap: 28px;
}
.toc li { margin-bottom: 4px; break-inside: avoid; }

.faq-q {
  font-weight: 600;
  margin: 24px 0 6px;
  color: #1a1a1a;
  font-size: 17px;
}
.faq-a { margin: 0 0 12px; color: #2a2a2a; }

.last-updated {
  margin-top: 50px;
  padding: 16px 0;
  border-top: 1px solid #e6e3dc;
  color: #6b6b6b;
  font-size: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e6e3dc;
  background: #f4f1ea;
  padding: 30px 20px 24px;
  color: #555;
  font-size: 14.5px;
  margin-top: 40px;
}
.site-footer .wrap {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1f3a5f;
  margin: 0 0 10px;
  font-weight: 600;
}
.footer-col p { margin: 0; font-size: 14px; color: #555; line-height: 1.55; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a {
  color: #444;
  text-decoration: none;
  font-size: 14.5px;
}
.footer-col a:hover { color: #1f3a5f; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #d9d4c8;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.disclaimer { font-size: 12.5px; color: #6b6b6b; line-height: 1.55; margin: 0; }
.copyright { font-size: 12.5px; color: #888; margin: 0; }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  body { font-size: 16px; }
  .toc ol { columns: 1; }
  article { padding: 24px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .brand-tag { display: none; }
  .site-nav { gap: 16px; }
  .site-header .wrap { gap: 12px; }
}
