/* ============================================================
   Stewrd — Know Your Rights (/rights/)
   Shared stylesheet for the hub page and all article pages.
   Structure adapted from privacy.html; brand colours applied.
   ============================================================ */

:root {
  /* Brand */
  --navy:       #1B2D4F;   /* primary / header surfaces */
  --lime:       #E2F075;   /* accent / CTA */
  --lime-dark:  #D4E85F;
  --teal:       #2E7D6E;   /* positive / confirmed */
  --teal-lt:    #7fd3bf;

  /* Site surfaces (matches index.html / privacy.html) */
  --navy-dark:  #0c1830;
  --navy-deep:  #060e1c;
  --white:      #ffffff;
  --muted:      #6e87b0;
  --body:       #8aa0c0;
  --link:       #80a8f0;
  --border:     rgba(255,255,255,0.08);
  --card:       rgba(255,255,255,0.045);

  /* Callout — soft amber, warm not alarming */
  --amber:      #e8c46a;
  --amber-soft: #f0d79a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--navy-dark);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV (deliberately minimal — 3 links max, never synced with index.html) ── */
.rights-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .9rem 2.5rem;
  background: rgba(12,24,48,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.rights-nav-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.rights-nav-logo img { width: 44px; height: 44px; border-radius: 10px; }
.rights-nav-logo span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem; font-weight: 800; letter-spacing: .04em;
  color: var(--white);
}
.rights-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.rights-nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}
.rights-nav-links a:hover { color: var(--white); }
.rights-nav-cta {
  background: var(--lime); color: #0c1830 !important;
  padding: .45rem 1.1rem; border-radius: 6px; font-weight: 700 !important;
  transition: background .2s, transform .15s;
}
.rights-nav-cta:hover { background: var(--lime-dark); color: #0c1830 !important; transform: translateY(-1px); }

/* ── SHELL ── */
.rights-shell {
  flex: 1 0 auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 2.5rem 5rem;
}

/* ── BACK LINK ── */
.rights-back {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--link); font-size: .87rem; font-weight: 500;
  text-decoration: none;
  margin-bottom: 2.25rem;
  transition: color .2s;
}
.rights-back:hover { color: var(--white); }

/* ── HERO ── */
.rights-hero { margin-bottom: 2.5rem; }
.rights-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.05;
  margin-bottom: .6rem;
}
.rights-hero p {
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 62ch;
}
.rights-hero p + p { margin-top: .9rem; }
.rights-hero .rights-meta { margin-top: 1.1rem; }

/* ── HERO CHARACTER (mascot accent — matches homepage .hero-char treatment) ── */
.rights-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.rights-hero-text { flex: 1 1 auto; min-width: 0; }
.rights-hero-char {
  flex: 0 0 auto;
  width: 128px;
  height: auto;
  aspect-ratio: 640/555;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.4));
  margin-top: .25rem;
}
@media (max-width: 640px) {
  .rights-hero-char { width: 88px; }
}

/* ── INLINE CHARACTER (mid-article accent, floats beside a callout/CTA) ── */
.rights-figure {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2.25rem 0;
}
.rights-figure img {
  flex: 0 0 auto;
  width: 110px;
  height: auto;
  aspect-ratio: 480/431;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}
.rights-figure p {
  color: var(--body);
  font-size: .98rem;
  line-height: 1.75;
  margin: 0;
}
@media (max-width: 560px) {
  .rights-figure { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .rights-figure img { width: 84px; }
}

/* ── META / FRESHNESS SIGNAL ── */
.rights-meta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(46,125,110,.12);
  border: 1px solid rgba(46,125,110,.38);
  border-radius: 100px;
  padding: .3rem .85rem;
  color: var(--teal-lt);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
}
.rights-meta::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-lt);
  flex-shrink: 0;
}

/* ── BODY PROSE ── */
.rights-body { margin-top: 2.5rem; }
.rights-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 2.5rem 0 .75rem;
}
.rights-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: #90a8c0;
  margin: 1.9rem 0 .55rem;
}
.rights-body > *:first-child { margin-top: 0; }
.rights-body p,
.rights-body li {
  color: #8098b8;
  font-size: 1rem;
  line-height: 1.85;
}
.rights-body p + p { margin-top: .95rem; }
.rights-body ul,
.rights-body ol { padding-left: 1.35rem; margin: .75rem 0 1.25rem; }
.rights-body li { margin-bottom: .5rem; }
.rights-body li::marker { color: var(--muted); }
.rights-body strong { color: #c5d5e8; font-weight: 600; }
.rights-body em { color: #a8bcd8; }
.rights-body a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.rights-body a:hover { color: var(--white); }
.rights-body hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.07);
  margin: 2.5rem 0;
}
.rights-body blockquote {
  border-left: 3px solid rgba(46,125,110,.55);
  padding: .25rem 0 .25rem 1.15rem;
  margin: 1.5rem 0;
  color: #93a9c6;
  font-style: italic;
}
.rights-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.rights-body th,
.rights-body td {
  text-align: left;
  padding: .7rem .85rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #8098b8;
  line-height: 1.6;
}
.rights-body th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  background: rgba(27,45,79,.55);
}

/* ── CALLOUT (important caveats — warm, not alarming) ── */
.rights-callout {
  background: rgba(232,196,106,.07);
  border: 1px solid rgba(232,196,106,.32);
  border-left: 3px solid var(--amber);
  border-radius: 12px;
  padding: 1.35rem 1.6rem;
  margin: 1.75rem 0;
}
.rights-callout h3,
.rights-callout h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--amber);
  margin: 0 0 .5rem;
  letter-spacing: .01em;
}
.rights-callout p,
.rights-callout li { color: var(--amber-soft); font-size: .95rem; line-height: 1.8; }
.rights-callout p + p { margin-top: .75rem; }
.rights-callout ul,
.rights-callout ol { padding-left: 1.25rem; margin: .6rem 0 0; }
.rights-callout li { margin-bottom: .35rem; }
.rights-callout li::marker { color: rgba(232,196,106,.7); }
.rights-callout strong { color: #ffeec4; font-weight: 700; }
.rights-callout a { color: #ffeec4; }
.rights-callout a:hover { color: var(--white); }

/* ── ARTICLE LIST (hub) ── */
.rights-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 2.25rem 0 3rem;
}

/* ── ARTICLE CARD ── */
.rights-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(226,240,117,.5);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
}
.rights-card:hover,
.rights-card:focus-visible {
  background: rgba(27,45,79,.55);
  border-color: rgba(255,255,255,.16);
  border-left-color: var(--lime);
  transform: translateY(-2px);
}
.rights-card h2,
.rights-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 .5rem;
}
.rights-card:hover h2,
.rights-card:hover h3 { color: var(--lime); }
.rights-card p {
  color: var(--body);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.rights-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.rights-card-go {
  color: var(--lime);
  font-size: .87rem; font-weight: 700;
  white-space: nowrap;
}

/* ── CTA ── */
.rights-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  margin: 3rem 0 1rem;
  text-align: center;
}
.rights-cta h2,
.rights-cta h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.85rem; font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 .65rem;
}
.rights-cta p {
  color: var(--body);
  font-size: .97rem;
  line-height: 1.75;
  max-width: 46ch;
  margin: 0 auto 1.4rem;
}
.rights-cta a {
  display: inline-block;
  background: var(--lime);
  color: #0c1830;
  font-size: .97rem; font-weight: 700;
  text-decoration: none;
  padding: .85rem 1.75rem;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.rights-cta a:hover { background: var(--lime-dark); transform: translateY(-2px); }
.rights-cta p a {
  display: inline; background: none; padding: 0; border-radius: 0;
  color: var(--link); font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
}
.rights-cta p a:hover { background: none; transform: none; color: var(--white); }
.rights-cta .rights-cta-note {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
  margin: 1.1rem auto 0;
}

/* ── FOOTER ── */
.rights-footer {
  flex-shrink: 0;
  background: var(--navy-deep);
  padding: 2.25rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,.05);
  text-align: center;
}
.rights-footer p {
  color: #33445e;
  font-size: .8rem;
  line-height: 1.7;
}
.rights-footer p + p { margin-top: .45rem; }
.rights-footer a { color: #33445e; text-decoration: none; transition: color .2s; }
.rights-footer a:hover { color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .rights-nav { padding: .8rem 1.25rem; }
  .rights-nav-logo img { width: 38px; height: 38px; }
  .rights-nav-logo span { font-size: 1.5rem; }
  .rights-nav-links { gap: .9rem; }
  .rights-nav-links a { font-size: .84rem; }
  .rights-nav-cta { padding: .4rem .85rem; }
  .rights-shell { padding: 7rem 1.5rem 3.5rem; }
  .rights-card { padding: 1.25rem 1.35rem; }
  .rights-cta { padding: 1.85rem 1.35rem; }
  .rights-footer { padding: 2rem 1.5rem; }
}
@media (max-width: 460px) {
  .rights-nav-links a.rights-nav-hub { display: none; }
}
