/* Shared styles for the guides hub and guide pages. Tokens and fonts match privacy.html. */
:root {
  --navy:   #001830;
  --navy2:  #002448;
  --gold:   #D4AF37;
  --gold2:  #B8961E;
  --ivory:  #FBF8F1;
  --ivory2: #F0EBE0;
  --muted:  #5B6677;
  --body:   #2D3748;
  --font-head: 'Cinzel', serif;
  --font-body: 'Nunito', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
a { color: var(--navy); }

/* Nav */
nav {
  background: rgba(251,248,241,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,24,48,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo-text { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.nav-right a { text-decoration: none; color: var(--muted); }
.nav-right a:hover { color: var(--navy); }
.nav-right .btn-nav {
  background: var(--navy);
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
}
.nav-right .btn-nav:hover { color: var(--gold); }

/* Page layout */
.page-wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 12px;
}
h1.page-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 16px;
}
.page-intro { font-size: 19px; color: var(--body); margin-bottom: 36px; }

/* Article typography */
article h2 {
  font-family: var(--font-head);
  font-size: clamp(21px, 4.5vw, 27px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin: 40px 0 12px;
}
article p, article li { color: var(--body); }
article p { margin-bottom: 18px; }
article ul, article ol { margin: 0 0 18px 22px; }
article li { margin-bottom: 8px; }
article a { color: #7A5F0A; text-decoration: underline; text-underline-offset: 2px; }
article a:hover { color: var(--navy); }
.article-meta { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.cta-app {
  background: var(--ivory2);
  border-left: 4px solid var(--gold2);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  margin: 32px 0;
}
.cta-app p { margin-bottom: 0; }

/* Related guides and sources */
.related, .sources { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ivory2); }
.related h2, .sources h2 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy2);
  margin: 0 0 14px;
}
.related ul, .sources ul { list-style: none; margin: 0; }
.related li, .sources li { margin-bottom: 10px; font-size: 16px; }
.related a, .sources a { color: #7A5F0A; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

/* Hub cards */
.guide-list { display: grid; gap: 16px; }
.guide-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--ivory2);
  border-radius: 14px;
  padding: 22px 22px 20px;
  transition: border-color 0.2s, transform 0.1s;
}
.guide-card:hover { border-color: var(--gold2); }
.guide-card:active { transform: scale(0.99); }
.guide-card h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 8px;
}
.guide-card p { font-size: 16px; color: var(--muted); line-height: 1.6; }
.guide-empty { color: var(--muted); font-size: 17px; }

/* Footer */
.page-footer {
  text-align: center;
  padding: 36px 20px;
  border-top: 1px solid var(--ivory2);
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
}
.page-footer a { color: #7A5F0A; text-decoration: none; margin: 0 6px; white-space: nowrap; }
.page-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .nav-logo-text { display: none; }
  .nav-right { gap: 12px; font-size: 13px; }
  .page-wrap { padding-top: 36px; }
  body { font-size: 17px; }
}
