:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel-strong: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.14);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 16px;
  --maxw: 980px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(59,130,246,.35), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(14,165,233,.28), transparent 55%),
    radial-gradient(900px 700px at 60% 100%, rgba(99,102,241,.22), transparent 60%),
    var(--bg);
  line-height: 1.55;
}

a{ color: #cfe7ff; text-decoration: none; }
a:hover{ text-decoration: underline; }

.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.logo{
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.brand-text h1{
  font-size: 16px;
  margin: 0;
  letter-spacing: .2px;
}
.brand-subtitle{
  margin: 2px 0 0 0;
  font-size: 12px;
  color: var(--muted);
}

.site-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-nav a{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
}
.site-nav a:hover{
  border-color: var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  text-decoration: none;
}
.site-nav a.active{
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  color: var(--text);
}

main{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 20px 42px;
  display: grid;
  gap: 18px;
}

.hero{
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  box-shadow: var(--shadow);
}

.hero h2{
  margin: 0 0 10px 0;
  font-size: 30px;
  letter-spacing: .2px;
}
.hero p{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 72ch;
}

.hero-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge{
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.16);
  color: var(--muted);
  font-size: 12px;
}

.hero-badges{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card{
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.card h2{
  margin: 0 0 10px 0;
  font-size: 18px;
}

.feature-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.feature-list strong{ color: var(--text); }

.steps{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.steps strong{ color: var(--text); }

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-card{
  border: 1px solid var(--border);
  background: rgba(0,0,0,.14);
  padding: 14px;
  border-radius: 14px;
}
.mini-card h3{
  margin: 0 0 8px 0;
  font-size: 14px;
}
.mini-card p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.catalog{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.catalog-item{
  border: 1px solid var(--border);
  background: rgba(0,0,0,.14);
  padding: 14px;
  border-radius: 14px;
}
.catalog-item h3{
  margin: 0 0 6px 0;
  font-size: 15px;
}
.catalog-item p{
  margin: 0;
  color: var(--muted);
}
.catalog-item p + p{ margin-top: 8px; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover{
  background: rgba(255,255,255,.14);
  text-decoration: none;
}
.btn-ghost{
  background: rgba(0,0,0,.10);
  border-color: var(--border);
  color: var(--muted);
}
.btn-ghost:hover{
  color: var(--text);
  background: rgba(0,0,0,.16);
}

.contact-form{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.contact-form label{
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
input, textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.20);
  color: var(--text);
  font-size: 14px;
}
input::placeholder, textarea::placeholder{ color: rgba(255,255,255,.45); }

.site-footer{
  border-top: 1px solid var(--border);
  padding: 22px 20px;
  color: var(--muted);
  background: rgba(0,0,0,.18);
}
.site-footer .fine{
  font-size: 12px;
  color: rgba(255,255,255,.62);
  max-width: var(--maxw);
}

.fine{
  font-size: 12px;
  color: rgba(255,255,255,.62);
}

@media (max-width: 820px){
  .site-header{
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav{
    width: 100%;
    justify-content: flex-start;
  }
  .grid{
    grid-template-columns: 1fr;
  }
}

/* Header logo + social links */
.site-brand .logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.site-brand {
  align-items: center;
}

.site-nav a.social {
  opacity: 0.9;
}

.site-nav a.social:hover {
  opacity: 1;
}




/* Home page background logo watermark (responsive, gutter-anchored) */
@media (min-width: 1100px) {
  body.home {
    --contentw: 1020px; /* main max-width (980) + padding (20+20) */
    --gutter: calc((100vw - var(--contentw)) / 2);

    /* watermark size adapts to available gutter */
    --wm-size: clamp(260px, calc(var(--gutter) - 40px), 520px);

    /* opacity tuned: visible but not loud */
    --wm-left-opacity: 0.105;
    --wm-right-opacity: 0.075;

    /* center of each gutter, measured from page center */
    --wm-offset: calc(25vw + (var(--contentw) / 4));
  }



  body.home .site-header,
  body.home main,
  body.home footer {
    position: relative;
    z-index: 1;
  }
}


/* Home page watermark opacity bump */
@media (min-width: 1100px) {
  body.home {
    --wm-left-opacity: 0.12;
    --wm-right-opacity: 0.085;
  }
}


/* Home page watermark opacity bump (stronger) */
@media (min-width: 1100px) {
  body.home {
    --wm-left-opacity: 0.135;
    --wm-right-opacity: 0.095;
  }
}


/* ===========================
   LIGHT THEME OVERRIDE (YDAAC)
   Palette:
   - Blue:  #225184
   - White: #ffffff
   =========================== */

:root{
  --brand-blue: #225184;
  --brand-white: #ffffff;

  --bg: var(--brand-white);
  --text: var(--brand-blue);
  --muted: rgba(34,81,132,0.75);
  --border: rgba(34,81,132,0.22);
  --card: rgba(34,81,132,0.05);
  --card-strong: rgba(34,81,132,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

html, body{
  background: var(--bg) !important;
  color: var(--text) !important;
}

a{
  color: var(--brand-blue) !important;
  text-underline-offset: 2px;
}

a:hover{
  opacity: 0.85;
}

/* Remove heavy dark/gradient styling if present */
body{
  background-image: none !important;
}

/* Top construction notice */
.site-notice{
  background: rgba(34,81,132,0.08) !important;
  color: var(--brand-blue) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Header */
.site-header{
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
}

.site-brand h1,
.site-brand .brand-subtitle{
  color: var(--brand-blue) !important;
}

/* Nav pills */
.site-nav a{
  color: var(--brand-blue) !important;
  border: 1px solid transparent !important;
  background: transparent !important;
}

.site-nav a.active,
.site-nav a:hover{
  background: rgba(34,81,132,0.08) !important;
  border-color: var(--border) !important;
}

/* Hero + cards */
.hero .hero-inner,
.card{
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  color: var(--brand-blue) !important;
}

.hero h2,
.card h2{
  color: var(--brand-blue) !important;
}

/* Badges */
.badge{
  background: rgba(34,81,132,0.10) !important;
  border: 1px solid var(--border) !important;
  color: var(--brand-blue) !important;
}

/* Buttons */
.btn{
  background: var(--brand-blue) !important;
  color: var(--brand-white) !important;
  border: 1px solid var(--brand-blue) !important;
}

.btn:hover{
  opacity: 0.92;
}

.btn.btn-ghost{
  background: transparent !important;
  color: var(--brand-blue) !important;
  border: 1px solid var(--brand-blue) !important;
}

/* Footer */
.site-footer{
  background: var(--bg) !important;
  border-top: 1px solid var(--border) !important;
  color: var(--brand-blue) !important;
}

.site-footer .fine{
  color: var(--muted) !important;
}

/* Home-page side watermarks: disable for light theme unless you want them back later */


/* === Hero banner (readable, horizontal) === */
.hero-banner{
  display: block;
  max-width: 520px;
  width: 100%;
  margin: 0 auto 16px auto;
}

}





/* === Hero centering: grid math (1fr | content | 1fr) === */
.hero-inner{
  display: grid;
  grid-template-columns: 1fr min(760px, 100%) 1fr;
  align-items: start;
}

.hero-inner > *{
  grid-column: 2;
}

.hero-banner{
  justify-self: center;
}

.hero-inner h2,
.hero-inner p,
.hero-inner .hero-actions,
.hero-inner .hero-badges{
  text-align: left;
}


/* === Hero: enforce a single center axis under the banner === */
body.home .hero-inner{
  justify-items: center;   /* center each grid item on the same axis */
  text-align: center;      /* center text block */
}

body.home .hero-inner p{
  max-width: 62ch;         /* readable line length, centered */
  margin-left: auto;
  margin-right: auto;
}

body.home .hero-actions{
  display: flex;
  justify-content: center; /* center buttons on axis */
}

body.home .hero-badges{
  display: flex;
  justify-content: center; /* center badges on axis */
  flex-wrap: wrap;
  gap: 10px;
}


/* Variant: centered hero block, left-aligned paragraph */
body.home .hero-inner p{
  text-align: left;
}


/* Hero vertical breathing room: lift content off bottom border */
.hero-badges{
  margin-bottom: 12px;
}





body.home .site-header,
body.guttered .site-header,
body.home main,
body.guttered main,
body.home footer,
body.guttered footer{
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px){
}


/* === Page gutter logos (home + interior) === */
body.home::before,
body.home::after,
body.guttered::before,
body.guttered::after{
  content: "";
  position: fixed;
  top: 110px;
  height: calc(100vh - 220px);
  width: clamp(220px, 18vw, 320px);

  background-image: url("/assets/Young_dems_logo_website.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.075;
  pointer-events: none;
  z-index: 0;
}

body.home::before,
body.guttered::before{ left: 24px; }

body.home::after,
body.guttered::after{ right: 24px; }

body.home .site-header,
body.home main,
body.home footer,
body.guttered .site-header,
body.guttered main,
body.guttered footer{
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px){
  body.home::before,
  body.home::after,
  body.guttered::before,
  body.guttered::after{
    display: none;
  }
}

