/* ═══════════════════════════════════════════════════════════
   NY-DIGNITY — Subpage styles (news, resources, videos,
   survey, join, donate). Loaded AFTER styles.css; reuses its
   CSS variables and button classes.
   ═══════════════════════════════════════════════════════════ */

/* ───── Subpage nav (no JS required — scrollable on mobile) ───── */
.subnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 28px;
  background: rgba(6,10,24,0.82);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.subnav .brand { flex-shrink: 0; }
.subnav-links {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; margin-left: auto;
}
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.subnav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.subnav-links a.active { color: var(--gold-soft); }
.subnav-links a.subnav-cta {
  background: var(--grad-gold); color: var(--navy-950);
  font-weight: 700; padding: 9px 16px; border-radius: 999px;
}
@media (max-width: 720px) {
  .subnav { padding: 12px 16px; gap: 10px; }
  .subnav .brand span { display: none; }
}

/* ───── Page hero ───── */
.page-hero {
  padding: 150px 24px 60px; text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212,175,106,0.12), transparent),
    linear-gradient(180deg, var(--navy-900), transparent);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 500; line-height: 1.12; margin: 14px auto 16px;
  max-width: 800px;
}
.page-hero .lead { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.page-hero .eyebrow { justify-content: center; }

/* ───── Generic content section ───── */
.page-section { padding: 56px 24px; }
.page-section .container { max-width: var(--maxw); margin: 0 auto; }
.page-section.tint { background: linear-gradient(180deg, transparent, rgba(15,22,49,0.4), transparent); }
.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 500;
  margin: 0 0 8px;
}
.section-sub { color: var(--muted); max-width: 640px; margin: 0 0 30px; }

/* ───── Card grids ───── */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.pg-card {
  background: var(--grad-blue);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s, border-color .25s;
}
a.pg-card { text-decoration: none; color: var(--text); }
a.pg-card:hover { transform: translateY(-3px); border-color: rgba(212,175,106,0.4); }
.pg-card .tag {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(212,175,106,0.35); border-radius: 4px;
  padding: 3px 9px;
}
.pg-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.25; margin: 0; }
.pg-card p { color: var(--muted); font-size: 14px; margin: 0; flex-grow: 1; }
.pg-card .card-more { color: var(--gold-soft); font-size: 13px; font-weight: 600; }
.pg-card .card-meta { color: var(--muted-2); font-size: 12px; }

/* ───── External-link list rows ───── */
.link-rows { display: flex; flex-direction: column; gap: 12px; }
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: rgba(15,22,49,0.55);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, background .2s;
}
.link-row:hover { border-color: rgba(212,175,106,0.4); background: rgba(20,29,68,0.6); }
.link-row .lr-main { display: flex; flex-direction: column; gap: 3px; }
.link-row .lr-title { font-weight: 600; font-size: 15.5px; }
.link-row .lr-desc { color: var(--muted); font-size: 13px; }
.link-row .lr-arrow { color: var(--gold); flex-shrink: 0; font-size: 18px; }
.link-row .lr-badge {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #6dd49b; border: 1px solid rgba(109,212,155,0.35); border-radius: 4px; padding: 3px 8px;
}

/* ───── Accordions (financial education) ───── */
.edu-item {
  background: rgba(15,22,49,0.55);
  border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.edu-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 22px; font-weight: 600; font-size: 15.5px;
}
.edu-item summary::-webkit-details-marker { display: none; }
.edu-item summary::after { content: "+"; color: var(--gold); font-size: 20px; font-weight: 400; }
.edu-item[open] summary::after { content: "–"; }
.edu-item .edu-body { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }
.edu-item .edu-body p { margin: 0 0 10px; }
.edu-item .edu-body ul { margin: 0 0 10px; padding-left: 20px; }
.edu-item .edu-body li { margin-bottom: 5px; }
.edu-item .edu-body strong { color: var(--text); }
.edu-item .bridge {
  border-left: 3px solid var(--gold);
  background: rgba(212,175,106,0.08);
  padding: 10px 14px; border-radius: 0 8px 8px 0;
  font-size: 13.5px; margin-top: 12px;
}

/* ───── Article pages ───── */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 150px 24px 60px; }
.article-wrap .eyebrow { margin-bottom: 14px; }
.article-wrap h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 4.6vw, 44px); font-weight: 500; line-height: 1.15;
  margin: 0 0 14px;
}
.article-meta { color: var(--muted-2); font-size: 13px; margin-bottom: 34px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-body { font-size: 16.5px; line-height: 1.75; color: rgba(232,236,255,0.85); }
.article-body h2 { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 500; margin: 40px 0 12px; color: var(--text); }
.article-body h3 { font-size: 18px; margin: 28px 0 8px; color: var(--text); }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--gold-soft); }
.article-body .keybox {
  background: var(--grad-blue); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; margin: 24px 0; font-size: 15px;
}
.article-body .keybox .kb-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 8px;
}
.article-disclaimer {
  margin-top: 36px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--muted-2); font-size: 12.5px;
}

/* ───── Video grid ───── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.video-card { background: var(--grad-blue); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-thumb {
  position: relative; aspect-ratio: 16 / 9; cursor: pointer; border: 0; padding: 0; width: 100%;
  background: var(--navy-800); display: block;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.video-thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-thumb .play span {
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(6,10,24,0.75); border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft); font-size: 20px; padding-left: 4px;
  transition: transform .2s, background .2s;
}
.video-thumb:hover .play span { transform: scale(1.08); background: rgba(212,175,106,0.25); }
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-card .v-info { padding: 16px 18px 18px; }
.video-card .v-info h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
.video-card .v-info p { color: var(--muted); font-size: 13px; margin: 0; }
.video-empty {
  border: 1.5px dashed rgba(212,175,106,0.35); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; color: var(--muted);
}

/* ───── Poll / survey ───── */
.poll-card {
  max-width: 640px; margin: 0 auto;
  background: var(--grad-blue); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px;
}
.poll-q { font-family: 'Fraunces', Georgia, serif; font-size: 23px; font-weight: 500; margin: 0 0 20px; line-height: 1.3; }
.poll-opt {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: 15px;
}
.poll-opt:hover { border-color: rgba(212,175,106,0.45); background: rgba(212,175,106,0.06); }
.poll-opt input { accent-color: var(--gold); width: 17px; height: 17px; }
.poll-results { display: none; }
.poll-results.show { display: block; }
.poll-bar-row { margin-bottom: 14px; }
.poll-bar-row .pb-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
.poll-bar-row .pb-head .pct { font-weight: 700; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.poll-bar-row .pb-track { height: 9px; background: rgba(255,255,255,0.07); border-radius: 5px; overflow: hidden; }
.poll-bar-row .pb-fill { height: 100%; background: var(--grad-gold); border-radius: 5px; width: 0; transition: width .8s ease; }
.poll-total { color: var(--muted-2); font-size: 12.5px; margin-top: 14px; text-align: center; }

/* ───── Join / donate ───── */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; max-width: 720px; margin: 0 auto; }
.donate-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--grad-blue); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 16px; text-decoration: none; color: var(--text);
  transition: transform .2s, border-color .2s;
}
.donate-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.donate-card.featured { border-color: rgba(212,175,106,0.55); background: linear-gradient(135deg, rgba(212,175,106,0.14), rgba(15,22,49,0.8)); }
.donate-card .amt { font-family: 'Fraunces', Georgia, serif; font-size: 32px; color: var(--gold-soft); }
.donate-card .lbl { font-weight: 600; font-size: 14px; }
.donate-card .impact { color: var(--muted-2); font-size: 12px; text-align: center; }

/* ───── Notice / disclaimer blocks ───── */
.notice {
  max-width: 760px; margin: 26px auto 0;
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid rgba(212,175,106,0.3);
  background: rgba(212,175,106,0.06);
  border-radius: 12px; padding: 14px 18px;
  color: var(--muted); font-size: 13px;
}
.notice svg { flex-shrink: 0; margin-top: 2px; }

/* ───── CTA band to the retirement plan ───── */
.retire-band {
  margin: 70px 0 0; padding: 60px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(212,175,106,0.13), transparent),
    var(--navy-900);
  border-top: 1px solid var(--line);
}
.retire-band h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(24px, 3.6vw, 34px); font-weight: 500; margin: 0 0 10px; }
.retire-band p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

/* ───── Compact footer for subpages ───── */
.subfoot {
  border-top: 1px solid var(--line);
  padding: 34px 24px; text-align: center;
  color: var(--muted-2); font-size: 12.5px;
}
.subfoot .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.subfoot .links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.subfoot .links a:hover { color: var(--gold-soft); }

/* subpage body top padding handled by hero/article */
.breadcrumb { font-size: 12.5px; color: var(--muted-2); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-soft); }

/* ───── Request/suggest content box (videos page) ───── */
.request-box {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--grad-blue);
  border: 1px solid rgba(212,175,106,0.28);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}
.video-loading { text-align: center; font-size: 14px; }

/* ───── Topic tiles (videos page — driver appeal) ───── */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.topic-tile {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--grad-blue); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 18px;
  text-decoration: none; color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.topic-tile:hover { transform: translateY(-3px); border-color: rgba(212,175,106,0.45); background: rgba(20,29,68,0.6); }
.topic-tile .ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px;
  background: rgba(212,175,106,0.12); border: 1px solid rgba(212,175,106,0.32);
  display: flex; align-items: center; justify-content: center; color: var(--gold-soft);
}
.topic-tile h4 { margin: 0 0 3px; font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.topic-tile p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.topic-tile .go { color: var(--gold-soft); font-size: 12px; font-weight: 600; margin-top: 6px; display: inline-block; }

/* ───── Restricted / locked document row (news research section) ───── */
.doc-locked {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(135deg, rgba(212,175,106,0.10), rgba(15,22,49,0.55));
  border: 1px solid rgba(212,175,106,0.38); border-radius: 14px;
  padding: 18px 22px; width: 100%; text-align: left;
  color: var(--text); cursor: pointer; font-family: inherit;
  transition: border-color .2s, background .2s;
}
.doc-locked:hover { border-color: var(--gold); background: linear-gradient(135deg, rgba(212,175,106,0.16), rgba(20,29,68,0.6)); }
.doc-locked .lr-main { display: flex; flex-direction: column; gap: 3px; }
.doc-locked .lr-title { font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.doc-locked .lr-desc { color: var(--muted); font-size: 13px; }
.doc-locked .lock-badge {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid rgba(212,175,106,0.5); border-radius: 4px; padding: 4px 9px;
}
/* Code entry inside the access modal */
.code-divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin: 22px 0 16px; }
.code-divider::before, .code-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-row { display: flex; gap: 10px; }
.code-row input {
  flex: 1; background: rgba(6,10,24,0.7); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 15px; font-family: inherit; letter-spacing: 0.06em;
}
.code-row input:focus { outline: none; border-color: var(--gold); }
.code-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.code-msg.err { color: #e08a77; }
.code-msg.ok { color: #6dd49b; }
