/* ============================================================
   Amen28.us — Site Stylesheet
   Navy + Gold civic theme (Georgia serif / Helvetica sans)
   Split out from index.php inline <style> — 2026
   ============================================================ */

/* ── TOKENS ── */
:root {
  --navy:      #0d1f3c;
  --gold:      #b8922a;
  --gold-lt:   #e8c46a;
  --ink:       #1a1a2e;
  --slate:     #4a5568;
  --bg:        #f7f8fa;
  --white:     #ffffff;
  --rule:      #dde2ea;
  --red-acc:   #8b1a1a;

  --serif:     'Georgia', 'Times New Roman', serif;
  --sans:      'Helvetica Neue', Arial, sans-serif;
  --mono:      'Courier New', monospace;

  --max:       820px;
  --radius:    4px;

  /* Alias so any markup written against the upgradeparty.com token
     names (e.g. var(--ink-dim)) still resolves correctly here. */
  --ink-dim:   var(--slate);

  /* Same aliasing, extended to cover the shared text-size.js widget
     (built against upgradeparty.com's violet/gold tokens) so it
     renders in amen28's own navy/gold theme instead of falling
     back to its hardcoded violet defaults. */
  --violet-deep:  var(--navy);
  --violet-mid:   var(--navy);
  --violet-bright: var(--navy);
  --gold-bright:  var(--gold-lt);
  --surface-2:    var(--bg);
  --line-strong:  var(--rule);
  --font-display: var(--sans);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

/* width:100% (not just max-width) so sizing is driven from the container,
   not the video's own pixel resolution — !important guards against some
   mobile browsers re-applying native pixel dimensions once playback starts,
   which is what causes a video to overflow and need horizontal scrolling
   to view on a phone. */
video {
  width: 100% !important;
  max-width: min(640px, 100%) !important;
  max-height: 420px;
  height: auto !important;
  display: block;
  margin: 0;
}
@media (min-width: 601px) {
  /* Center the videos on tablet/desktop; phones keep the flush-left
     alignment above so they stay flush with the surrounding text. */
  video { margin: 0 auto; }
}

/* Belt-and-suspenders: never allow the page itself to scroll horizontally,
   regardless of what causes an oversized child element. */
html, body { overflow-x: hidden; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ── SITE HEADER ── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 14px 24px;
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-header__brand {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-lt);
  text-decoration: none;
}
.site-header__brand:hover { color: var(--white); }
.site-header__tag {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 9px 24px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--slate);
}
.breadcrumb__inner { max-width: var(--max); margin: 0 auto; }
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb__sep { margin: 0 6px; opacity: .4; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 24px 48px;
  text-align: center;
}
.hero__inner { max-width: var(--max); margin: 0 auto; }
.hero__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: bold;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 10px;
}
.hero__title em {
  font-style: normal;
  color: var(--gold-lt);
}
.hero__subtitle {
  font-family: var(--sans);
  font-size: 16px;
  color: rgba(255,255,255,.72);
  max-width: 540px;
  margin: 12px auto 0;
  line-height: 1.55;
}
.hero__badge {
  margin: 28px auto 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: rgba(184,146,42,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-lt);
  overflow: hidden;
}
.hero__badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── MAIN ── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ── Generic wrap utility (used by newer sections like .support-band) ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 640px; }

/* ── SECTION ── */
.section {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-top: 28px;
}

table.lj-table {
  width: 100%;
  border-collapse: collapse;
}
table.lj-table img {
  max-width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  table.lj-table, table.lj-table tbody, table.lj-table tr, table.lj-table td {
    display: block;
    width: 100%;
  }
  table.lj-table td:first-child {
    text-align: center;
    padding-bottom: 12px;
  }
  table.lj-table img {
    max-width: 220px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .section { padding: 24px 20px; }
}

.section__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--navy);
  margin: 24px 0 10px;
}

.section p { margin-bottom: 14px; color: var(--ink); }
.section p:last-child { margin-bottom: 0; }

/* ── CONTEXT BOX ── */
.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 20px 0 4px;
}
@media (max-width: 540px) {
  .context-grid { grid-template-columns: 1fr; }
}
.context-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.context-card__num {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.context-card__label {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--slate);
  line-height: 1.4;
}

/* ── JURISDICTION LIST ── */
.juris-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.juris-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
}
.juris-list li::before {
  content: "⚖";
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--gold);
}

/* ── ALSO LIST ── */
.also-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.also-list li {
  padding-left: 22px;
  position: relative;
  font-size: 16px;
}
.also-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red-acc);
  font-weight: bold;
}

/* ── POSITION CARDS ── */
.position-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 4px;
}
@media (max-width: 520px) {
  .position-grid { grid-template-columns: 1fr; }
}
.pos-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--bg);
}
.pos-card__icon {
  font-size: 20px;
  margin-bottom: 6px;
}
.pos-card__title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.pos-card p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
}

/* ── CALLOUT ── */
.callout {
  background: #f0f4ff;
  border: 1px solid #c5d3f0;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  color: #2c3e70;
  line-height: 1.6;
}
.callout strong { font-weight: 700; }

/* ── PRINT LINK ── */
.print-link-wrap {
  margin-top: 20px;
}
.print-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 8px 14px;
}
.print-link:hover { background: var(--navy); color: var(--white); }

/* ── TOOLS SECTION ── */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tool-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 8px 14px;
  background: var(--white);
  transition: border-color .15s, background .15s;
}
.tool-link:hover { border-color: var(--navy); background: var(--bg); }

/* ── POSTER CALLOUT (compelling CTA for the CJUSA poster) ── */
.poster-callout {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px;
  margin-top: 20px;
}
@media (max-width: 560px) {
  .poster-callout { flex-direction: column; text-align: center; padding: 20px; }
}

/* Groups the poster thumbnail + button into one centered column,
   so the button sits directly under the image rather than beside it. */
.poster-callout__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.poster-callout__preview {
  display: block;
  width: min(140px, 32vw);
  transition: transform .15s, box-shadow .15s;
}
.poster-callout__preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13,31,60,.25);
}
.poster-callout__preview img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 560px) {
  .poster-callout__preview { width: min(190px, 60vw); }
}

/* Frame treatment for the poster thumbnail itself (moved out of the
   inline <style> that was in index.php — same look, semicolon bug fixed) */
.framed-image {
  border: 4px solid #333333;
  border-radius: 8px;
  padding: 10px;
  margin: 0 auto;
}

.poster-callout__body { min-width: 0; }
.poster-callout__body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 2px 0 8px;
}
.poster-callout__body p {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 14px;
}

/* Faint-purple "real button" treatment, centered under the thumbnail.
   Uses a compound selector (not just .poster-callout__btn) so it reliably
   beats the base .btn rule regardless of where either appears in the file. */
.poster-callout__media .poster-callout__btn {
  background: #EDE9F7;
  border-color: #B9AEDD;
  color: #3B2E63;
  font-weight: 700;
  display: inline-block;
  width: auto;
  text-align: center;
}
.poster-callout__media .poster-callout__btn:hover {
  background: #DED6F2;
  border-color: #9C8FCC;
  color: #241a47;
}
@media (max-width: 560px) {
  .poster-callout__media .poster-callout__btn { display: block; width: 100%; }
}

/* ============================================================
   Shared components — added so sections built from
   upgradeparty.com-style markup (e.g. "Fund The Upgrade")
   render correctly on amen28.us instead of falling back to
   unstyled browser defaults.
   ============================================================ */

/* ── Generic button (base for the shopping buttons below) ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 11px 20px;
  color: var(--navy);
  background: var(--white);
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--rule); color: var(--slate); }
.btn.ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--bg); }

.hero-cta {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── HUD-style card (corner-bracket callout box) ── */
.hud {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.hud::before, .hud::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
}
.hud::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hud::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-band { padding: 44px 0 8px; }
.support-band h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ── Shopping / payment buttons ──
   Extend .btn (e.g. class="btn venmo-btn") to keep the same
   shape/sizing as the rest of the site's buttons, with each
   service's own brand color layered on top. */
.venmo-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #3D95CE;
  border-color: #3D95CE;
  color: #ffffff;
}
.venmo-btn:hover { background: #2f7aab; border-color: #2f7aab; color: #fff; text-decoration: none; }

.shopify-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #95BF47;
  border-color: #95BF47;
  color: #ffffff;
}
.shopify-btn:hover { background: #7da83a; border-color: #7da83a; color: #fff; text-decoration: none; }

/* ── SUBSTACK GRID ──
   Mirrors upgradeparty.com's .substack-grid/.substack-card pattern,
   restyled for amen28's navy/gold civic theme instead of copied
   verbatim, so it looks native here rather than pasted in. */
.substack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 680px) {
  .substack-grid { grid-template-columns: 1fr; }
}
.substack-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.substack-card:hover { text-decoration: none; }
.substack-card .thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.substack-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.substack-card .card-body { padding: 12px 4px 0; }
.substack-card .card-title {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0;
}
.substack-card:hover .card-title { color: var(--gold); }
.substack-more {
  text-align: center;
  margin-top: 18px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 32px 24px;
  margin-top: 48px;
  text-align: center;
}
footer .footer__inner { max-width: var(--max); margin: 0 auto; }
footer a { color: var(--gold-lt); }
footer a:hover { color: var(--white); }
.footer__back {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-lt);
  text-decoration: none;
  border: 1px solid rgba(232,196,106,.4);
  border-radius: var(--radius);
  padding: 8px 16px;
  margin-bottom: 20px;
}
.footer__back:hover { background: rgba(232,196,106,.12); color: var(--white); }
.footer__copy {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-top: 14px;
}

/* ============================================================
   Data directory table — for reference lists (e.g. AG directory)
   Matches the navy/gold civic theme and .section conventions.
   ============================================================ */
.directory-note {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 4px;
}
.directory-note strong { color: var(--navy); }

.table-wrap { overflow-x: auto; margin: 18px 0 4px; }
table.ag-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13.5px;
}
.ag-table caption {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 0 10px;
}
.ag-table thead th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 10px 14px;
  white-space: nowrap;
}
.ag-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  vertical-align: top;
}
.ag-table tbody tr:nth-child(even) { background: var(--bg); }
.ag-table tbody tr:hover { background: #f0f4ff; }
.ag-table td.state-name {
  font-family: var(--serif);
  font-weight: bold;
  color: var(--navy);
  white-space: nowrap;
}
.ag-table td a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.ag-table td a:hover { color: var(--gold); }

.directory-section { margin-top: 28px; }
.directory-section:first-child { margin-top: 0; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
