/** Shopify CDN: Minification failed

Line 590:0 Expected "}" to go with "{"

**/
/* Tokens (small nudges = global change) */
/* qr-styles.css - goes with qr-landing.html, qr-scripts.js and writeMyRepChat.js */
/* open ai chatgpt api connection, firebase hosting, cloud run function, responses end point */
/* any styles that start with the letter z are not used */


:root{
    /* Colors and Backgrounds (Prioritizing write-my-rep values for most) */
    --ink: #0f172a;       /* Kept qr-styles ink */
    --fg: #111;           /* From write-my-rep */
    --muted: #666;        /* Prioritized write-my-rep muted */
    --line: #e2e8f0;      /* Kept qr-styles line */
    --bg: #fafafa;        /* Prioritized write-my-rep bg */
    --panel: #fff;        /* Kept qr-styles panel */
    --card: #fff;         /* From write-my-rep (used for .frame/.card bg) */
    --border: #e6e6e6;    /* From write-my-rep */
    --dash: #d7d7d7;      /* From write-my-rep (for dashed lines) */

    /* Accent/Brand */
    --accent: #1d4ed8;    /* Kept qr-styles accent */
    --brand: #1a73e8;     /* From write-my-rep */
    --brand-ink: #fff;    /* From write-my-rep */

    /* Status Colors */
    --ok: #176b2c;        /* From write-my-rep */
    --ok-bg: #e6f7ea;     /* From write-my-rep */
    --ok-br: #bfe7c9;     /* From write-my-rep */
    --err: #b00020;       /* From write-my-rep */

    /* Sizing and Effects (Prioritizing write-my-rep radius/shadow for card-like elements) */
    --radius: 14px;       /* Kept qr-styles radius */
    --shadow: 0 8px 28px rgba(15,23,42,.06); /* Kept qr-styles shadow */

    /* Font Sizes (Kept qr-styles for h1-h3 sizing) */
    --fs-12: 12px;
    --fs-14: 14px;
    --fs-18: 18px;
    --fs-22: 22px;
    --fs-28: 28px;
}

/* basic helper so we can hide/show overlay */
    .hidden {
      display: none !important;
    }

    /* full-screen overlay wrapper */
    .wmr-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: auto;
    }

    /* light, red/blue blended backdrop */
    .wmr-overlay-backdrop {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at top left, rgba(248, 113, 113, 0.40), transparent 65%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.40), transparent 65%),
        rgba(15, 23, 42, 0.75);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }

    /* glassmorphism panel – light/red-blue blend look */
    .wmr-overlay-panel {
      position: relative;
      width: 100%;
      max-width: 720px;
      max-height: min(90vh, 720px);
      margin: 1.5rem;
      padding: 1.1rem 1.15rem 1.3rem;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.86); /* glass, lets gradient show through */
      border: 1px solid rgba(209, 213, 219, 0.9);
      box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.32);
      color: #111827;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* header: agent + title + close */
    .wmr-overlay-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid rgba(209, 213, 219, 0.9);
    }

    .wmr-overlay-agent {
      display: flex;
      align-items: center;
      gap: 0.65rem;
    }

    .wmr-agent-avatar {
      width: 40px;
      height: 40px;
      border-radius: 999px;
      background:
        radial-gradient(circle at 30% 20%, #fee2e2, #fecaca 35%, #3b82f6 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      color: #0f172a;
      box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 10px 20px rgba(15, 23, 42, 0.25);
    }

    .wmr-agent-copy .small {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: #6b7280;
      margin: 0 0 0.15rem;
    }

    .wmr-agent-copy .h2,
    .wmr-agent-copy h2 {
      font-size: 14px;
      margin: 0;
      color: #111827;
    }

    .wmr-overlay-close {
      background: transparent;
      border: none;
      color: #9ca3af;
      font-size: 14px;
      line-height: 1;
      padding: 0.1rem 0.35rem;
      border-radius: 999px;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    }

    .wmr-overlay-close:hover {
      background: rgba(209, 213, 219, 0.6);
      color: #111827;
      transform: translateY(-1px);
    }

    /* body: scrollable content area */
    .wmr-overlay-body {
      flex: 1 1 auto;
      margin-top: 0.75rem;
      padding-top: 0.25rem;
      overflow-y: auto;
      background:
        radial-gradient(circle at top right, rgba(59,130,246,0.10), transparent 55%);
    }

    /* make your existing .frame/.card adapt to light glass panel */
    .wmr-overlay-body .frame {
      padding: 0;
      margin: 0;
    }

    .wmr-overlay-body .card {
      background: #f9fafb;
      border-radius: 16px;
      border: 1px solid #e5e7eb;
      box-shadow:
        0 10px 24px rgba(148, 163, 184, 0.45);
      padding: 0.9rem 0.95rem 1.05rem;
      margin-bottom: 0.9rem;
    }

    .wmr-overlay-body .label {
      color: #111827;
    }

    .wmr-overlay-body .muted,
    .wmr-overlay-body .small {
      color: #6b7280;
    }

    .wmr-overlay-body .select,
    .wmr-overlay-body .textarea,
    .wmr-overlay-body .input {
      background: #ffffff;
      color: #111827;
      border-color: #d1d5db;
      border-radius: 0.7rem;
      padding: 0.45rem 0.65rem;
    }

    .wmr-overlay-body .select:focus,
    .wmr-overlay-body .textarea:focus,
    .wmr-overlay-body .input:focus {
      border-color: #2563eb;
      box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
      outline: none;
    }

    .wmr-overlay-body .btn.primary,
    .wmr-overlay-body .btn.primary:disabled {
      background: linear-gradient(135deg, #3b82f6, #f97316);
      border-color: transparent;
      color: #f9fafb;
      box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.45);
    }

    .wmr-overlay-body .btn.primary:hover:not(:disabled) {
      background: linear-gradient(135deg, #1d4ed8, #ea580c);
      border-color: transparent;
    }

    .wmr-overlay-body .btn {
      border-radius: 999px;
    }

    /* mobile tweaks */
    @media (max-width: 640px) {
      .wmr-overlay-panel {
        margin: 0.75rem;
        padding: 1rem 0.9rem 1.1rem;
        border-radius: 20px;
        max-height: 92vh;
      }
      .wmr-agent-copy .h2,
      .wmr-agent-copy h2 {
        font-size: 12px;
      }
	/* Hot topic issue pills (red/blue blend style) */
	.wmr-issue-strip {
	  display: flex;
	  align-items: center;
	  gap: 0.55rem;
	  margin-top: 0.5rem;
	}

	.wmr-issue-nav {
	  border-radius: 999px;
	  width: 30px;
	  height: 30px;
	  border: none;
	  background: rgba(255, 255, 255, 0.9);
	  color: #4b5563;
	  font-size: 12px;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.7);
	  cursor: default; /* not wired yet */
	}

	.wmr-issue-track {
	  flex: 1;
	  display: flex;
	  gap: 0.5rem;
	  overflow: hidden;
	}

	.wmr-issue-chip {
	  flex: 1;
	  min-width: 0;
	  border-radius: 0.9rem;
	  padding: 0.45rem 0.65rem;
	  background: rgba(255, 255, 255, 0.94);
	  border: 1px solid #e5e7eb;
	  display: flex;
	  align-items: center;
	  gap: 0.4rem;
	  font-size: 12px;
	  white-space: nowrap;
	  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.65);
	  color: #111827;
	  cursor: pointer;
	  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
	}

	.wmr-issue-chip:hover {
	  transform: translateY(-1px);
	  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.75);
	}

	.wmr-issue-icon {
	  width: 22px;
	  height: 22px;
	  border-radius: 999px;
	  background: #f9fafb;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  font-size: 12px;
	}

	.wmr-issue-selected {
	  background: rgba(15, 23, 42, 0.9);
	  border-color: #0f172a;
	  color: #f9fafb;
	}
		

/* Layout */
.zcontainer{
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}
.zwrap{
    max-width: 980px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.zgrid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media(min-width: 1080px){
    .grid{grid-template-columns: minmax(0,2fr) minmax(280px,1fr)}
}
.zstack{
    display: grid;
    gap: 16px;
}
.zrow{
    display: flex;
    gap: 8px; 
    flex-wrap: wrap;
    align-items: center;
}
.zcol{
    flex: 1 1 260px;
}
.zmt8{
    margin-top: 8px;
}

/* Headings and Typography */
.header-landing{
  display: inline-block;

  background: linear-gradient(
    90deg,
    #2563eb 0%,
    #ffffff 50%,
    #dc2626 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


.lead {
  font-weight: 700;
}

.muted {
  color: #787878;
  font-size: 11px;
}

.small {
  font-size: 10px;
  color: #787878;
  margin-top: 4px;
}


/* Cards and Panels */
.zcard{
    background: var(--card); /* Uses the general card background */
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 16px;
}
.frame{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px; /* Prioritized larger write-my-rep radius */
    box-shadow: 0 1px 2px rgba(0,0,0,.04); /* Prioritized subtle write-my-rep shadow */
    overflow: hidden;
}
.frame > .card{ /* Targeting the card inside the new frame structure */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 16px;
}
.frame .card + .card{
    border-top: 1px dashed var(--dash);
}
.pad{padding: 16px}
.panel{
    border: 1px dashed var(--dash);
    border-radius: 12px;
    padding: 12px;
    min-height: 160px;
    background: #fcfcfc;
}

/* Forms and Buttons */
input, select, textarea, button{font: inherit}
input, select, textarea{
    border: 1px solid var(--line); /* Kept qr-styles line for inputs */
    border-radius: 10px;
    padding: 8px 10px; /* Kept qr-styles padding for inputs */
    background: #fff;
    width: 100%; /* Added from write-my-rep for full width */
}
/* Unified input, select, textarea classes for full width */
.input, .select, .textarea{
    width: 100%;
    border: 1px solid var(--dash); /* Prioritized write-my-rep dash for input borders */
    border-radius: 10px;
    padding: .65rem .8rem;
    background: #fff;
}
textarea{
    min-height: 120px;
    resize: vertical;
}
.label{
    display: block;
    font-weight: 600;
    margin: .6rem 0 .35rem;
}
.btn{
    border: 1px solid var(--line); /* Base button border */
    background: #fff; /* Base button background */
    border-radius: 10px; /* Kept qr-styles radius */
    padding: 8px 12px; /* Kept qr-styles padding */
    cursor: pointer;
    font-weight: 600; /* Added from write-my-rep */
}
.btn.primary{
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn:disabled{
    opacity: .6;
    cursor: not-allowed;
}

/* New button for Write Your Rep launch */


.btn-write-my-rep{
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: 6px;

  background: #121212;
  color: #ffffff;
  border: 1px solid #111111;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06rem;

  cursor: pointer;
  outline: 6px solid red !important;
}


.btn-write-my-rep:hover{
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.btn-write-my-rep:active{
  background: #666666;
  transform: translateY(0);
  box-shadow: none;
}

/* Header */
.site-header{position:relative;padding:12px 0 36px;}
.watermark{position:absolute;left:0;right:0;top:4px;text-align:center;opacity:.05;font:800 88px/1 system-ui;letter-spacing:.06em;pointer-events:none;}
.top-nav{display:flex;justify-content:space-between;align-items:center;}
.top-nav .links{display:flex;gap:8px;font-weight:600;}
.brand{font-weight:800;letter-spacing:.05em;}

/* nav links */
.top-nav .links a{color:#111;text-decoration:none;padding:4px 6px;border-radius:6px;transition:background-color .15s ease,color .15s ease;}
.top-nav .links a:hover{background:rgba(37,99,235,.08);color:#2563eb;}
.top-nav .links a.active,
.top-nav .links a[aria-current="page"]{color:#cc0000;}


/* Hero */
.hero{display: grid; grid-template-columns: 1fr 160px; gap: 16px; align-items: center}
.qr{height: 160px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; background: repeating-linear-gradient(45deg,#e5e7eb,#e5e7eb 10px,#fff 10px,#fff 20px)}

/* Featured */
.video-ph{height: 220px; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--muted)}
#featured .video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 960px;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
}
#featured .video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Right rail */
.rail .card{position: sticky; top: 16px}
.rail-list{display: grid; gap: 12px}
.thumb{width: 100%; height: 110px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; color: #64748b}

/* CTA */
.cta-grid{display: grid; grid-template-columns: 1fr auto; gap: 16px}
.bot-sticker{width: 90px; height: 90px; border-radius: 999px; background: radial-gradient(circle at 30% 30%, #7dd3fc, #14b8a6); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(2,132,199,.25); color: #fff; font-weight: 800}

/* General Utilities */
.hidden{display: none}
.error{color: var(--err)}
.actions{display: flex; align-items: center; gap: .6rem; margin-top: .8rem; flex-wrap: wrap}
.status{font-size: 11px; color: var(--muted)}
.grow{flex: 1 1 auto}

/* Chat */
.chatbox{border: 1px solid var(--line); border-radius: 12px; overflow: hidden}
.chatlog{height: 180px; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fbfdff}
.chat{max-height: 320px; overflow: auto}
.msg{padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff}
.msg.me{background: #f0f9ff; border-color: #cfe3f7}
.msg.bot{background: #f0fff4; border-color: #d9f5d7}
.chatbar{display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px; border-top: 1px solid var(--line); background: #fff}
.badge{display: inline-block; padding: 2px 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px}
.bubble{margin: .25rem 0; white-space: pre-wrap}
.bubble b{font-weight: 700}
.bubble.user{ text-align: right }
.bubble.assistant{ text-align: left }

/* Typing indicator */
.typing{display: none; margin-top: .4rem; font-size: 12px; color: var(--muted)}
.typing.on{display: block}
.typing .dot{display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); opacity: .4; animation: blink 1s infinite}
.typing .dot:nth-child(2){animation-delay: .2s}
.typing .dot:nth-child(3){animation-delay: .4s}
@keyframes blink{0%,100%{opacity: .2}50%{opacity: .9}}

/* Preview / Email Details */
.preview{white-space: pre-wrap; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 180px; background: #fff}
.checks{color: var(--muted); font-size: 11px; border-top: 1px dashed var(--line); padding: 8px 12px}
.toolbar{display: flex; gap: 8px; align-items: center}
.head{display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem}
.chip{font-size: .12px; background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-br); border-radius: 999px; padding: .25rem .6rem; display: none}

/* Officials */
.officials-grid{display: grid; grid-template-columns: 1fr; gap: 16px}
@media(min-width: 920px){.officials-grid{grid-template-columns: 1fr 1fr}}
.people{display: grid; gap: 12px}
.person{border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff}
.person .meta{font-size: 11px; color: var(--muted)}

/* Footer */
.zsite-footer{margin: 30px 0; text-align: center; color: var(--muted); font-size: 11px}

