/* Advocacy Day — the public registration and invitation pages, in the style of WSHA Connect's survey
   form: a navy brand panel with an aurora glow pinned beside a light panel of white cards. */

.pub, .pub-preview {
    --pub-navy: #0D2447;
    --pub-navy-dark: #091A36;
    --pub-navy-600: #1E3D70;
    --pub-teal: #00C5A8;
    --pub-teal-dark: #009E88;
    --pub-ink: #172238;
    --pub-ink-2: #3E4A60;
    --pub-ink-3: #6B7588;
    --pub-label: #243049;
    --pub-line: #d2d9e6;
    --pub-surface: #F2F6FC;
    --pub-ui: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pub-serif: 'Instrument Serif', Georgia, serif;
}
.pub {
    display: grid;
    grid-template-columns: minmax(300px, .95fr) 1.85fr;
    min-height: 100vh;
    background: var(--pub-surface);
    font-family: var(--pub-ui);
    color: var(--pub-ink);
}

/* ── Brand panel ── */
.pub-hero {
    position: sticky; top: 0; height: 100vh;
    overflow: hidden;
    overflow: clip;
    background: var(--pub-navy-dark);
    color: #fff;
    isolation: isolate;
}
.pub-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pub-aurora > span { position: absolute; border-radius: 50%; filter: blur(60px); }
.pub-aurora-1 { width: 60%; height: 45%; top: -10%; left: -15%; background: var(--pub-teal); opacity: .32; animation: pub-drift-1 26s ease-in-out infinite alternate; }
.pub-aurora-2 { width: 70%; height: 55%; bottom: -20%; right: -25%; background: var(--pub-navy-600); opacity: .85; animation: pub-drift-2 32s ease-in-out infinite alternate; }
.pub-aurora-3 { width: 45%; height: 35%; top: 45%; left: 30%; background: var(--pub-teal); opacity: .14; animation: pub-drift-3 38s ease-in-out infinite alternate; }
.pub-aurora > .pub-aurora-grid {
    inset: 0; border-radius: 0; filter: none; width: auto; height: auto;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.pub-aurora > .pub-aurora-grain {
    inset: 0; border-radius: 0; filter: none; opacity: .07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes pub-drift-1 { to { transform: translate(18%, 12%) scale(1.15); } }
@keyframes pub-drift-2 { to { transform: translate(-14%, -10%) scale(1.1); } }
@keyframes pub-drift-3 { to { transform: translate(-20%, 15%) scale(.9); } }

/* The content scrolls inside the pinned panel, since an agenda can run long. */
.pub-hero-content {
    height: 100%; overflow-y: auto; scrollbar-width: none;
    display: flex; flex-direction: column; gap: 2.5rem;
    padding: 2.75rem clamp(1.5rem, 3.2vw, 3.25rem) 2rem;
}
.pub-hero-content::-webkit-scrollbar { display: none; }

.pub-brand { display: flex; align-items: center; gap: .85rem; }
.pub-brand-logo { height: 42px; width: auto; max-width: 150px; object-fit: contain; }
.pub-brand-logo:not(.logo-plate) { filter: brightness(0) invert(1); opacity: .92; }
.pub-brand-words { display: flex; flex-direction: column; line-height: 1.2; }
.pub-brand-name { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.92); }
.pub-brand-suffix { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pub-teal); margin-top: .15rem; }

.pub-hero-copy { flex: 1; }
.pub-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pub-teal); margin-bottom: 1rem; }
.pub-eyebrow::before { content: ""; width: 1.5rem; height: 2px; border-radius: 2px; background: var(--pub-teal); }
.pub-title { font-family: var(--pub-serif); font-weight: 400; font-size: clamp(2.1rem, 3.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.01em; color: #fff; margin: 0 0 1.1rem; }
.pub-when { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.pub-when > span {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.9);
    padding: .35rem .8rem; border-radius: 999px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
}
.pub-when i { color: var(--pub-teal); }

.pub-intro { font-size: .98rem; line-height: 1.6; color: rgba(255,255,255,.78); }
.pub-intro .ai-md-p { margin: 0 0 1rem; }
.pub-intro .ai-md-list { margin: -.4rem 0 1rem; padding-left: 1.2rem; }
.pub-intro .ai-md-list li { margin-bottom: .3rem; }
.pub-intro strong { color: #fff; font-weight: 600; }
.pub-intro a { color: #fff; text-decoration: underline; text-decoration-color: rgba(0,197,168,.6); text-underline-offset: 3px; }

.pub-hero-foot { font-size: .75rem; color: rgba(255,255,255,.45); }

/* ── The agenda: a glass card with a timeline ── */
.pub-agenda {
    margin: .5rem 0 1.25rem;
    padding: 1.25rem 1.35rem 1.1rem;
    border-radius: 16px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(6px);
}
.pub-agenda-head {
    display: flex; align-items: center; gap: .55rem;
    font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.65); margin-bottom: 1rem;
}
.pub-agenda-head i { color: var(--pub-teal); font-size: .9rem; }
.pub-agenda-day + .pub-agenda-day { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px dashed rgba(255,255,255,.12); }
.pub-agenda-date { font-family: var(--pub-serif); font-size: 1.3rem; line-height: 1.2; color: #fff; margin-bottom: .75rem; }
.pub-agenda-items { list-style: none; margin: 0; padding: 0; position: relative; }
.pub-agenda-items::before { content: ""; position: absolute; left: 5px; top: .9rem; bottom: .9rem; width: 2px; border-radius: 2px; background: rgba(0,197,168,.35); }
.pub-agenda-items li { position: relative; display: grid; grid-template-columns: 8.4rem 1fr; gap: .2rem .9rem; padding: .45rem 0 .45rem 1.6rem; }
.pub-agenda-items li::before { content: ""; position: absolute; left: 0; top: .78rem; width: 12px; height: 12px; border-radius: 50%; background: var(--pub-navy-dark); border: 2px solid var(--pub-teal); }
.pub-agenda-time { font-size: .8rem; font-weight: 600; color: var(--pub-teal); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.pub-agenda-items li:not(:has(.pub-agenda-time)) .pub-agenda-what { grid-column: 1 / -1; }
.pub-agenda-what { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.pub-agenda-title { font-size: .95rem; font-weight: 600; color: #fff; line-height: 1.35; }
.pub-agenda-place { font-size: .8rem; color: rgba(255,255,255,.58); line-height: 1.35; }
.pub-agenda-place i { font-size: .72rem; margin-right: .15rem; }
.pub-agenda-note { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: .6rem; line-height: 1.45; }

/* Event settings shows the welcome as the brand panel will. */
.pub-preview { background: var(--pub-navy-dark); color: #fff; font-family: var(--pub-ui); border-radius: 12px; padding: 1.25rem 1.35rem; max-height: 30rem; overflow-y: auto; }
.pub-preview .pub-agenda { margin-bottom: .75rem; }

/* ── Form panel ── */
.pub-panel { padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) 4rem; min-width: 0; }
.pub-panel-inner { max-width: 640px; margin: 0 auto; }

.pub-required-note { font-size: .85rem; color: var(--pub-ink-3); margin: 0 0 1rem; }
.pub-req { color: #C62828; font-weight: 600; margin-left: .1rem; }
.pub-optional { font-size: .75rem; font-weight: 500; color: var(--pub-ink-3); margin-left: .35rem; }

.pub-card {
    position: relative; overflow: hidden;
    background: #fff;
    border: 1px solid rgba(13,36,71,.08);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(13,36,71,.04), 0 12px 32px -18px rgba(13,36,71,.22);
    padding: 1.9rem clamp(1.25rem, 3.5vw, 2.1rem) 1.75rem;
    margin-bottom: 1.25rem;
}
.pub-card-bar { position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--pub-navy-600), var(--pub-teal)); }
.pub-card-title { font-family: var(--pub-ui); font-size: 1.2rem; font-weight: 650; color: var(--pub-ink); margin: 0 0 1.25rem; display: flex; align-items: center; gap: .5rem; }
.pub-card-title i { color: var(--pub-teal-dark); font-size: 1.05rem; }
.pub-card-lead { color: var(--pub-ink-2); line-height: 1.55; margin: -.5rem 0 1.4rem; }
.pub-card--info .pub-card-bar { background: linear-gradient(90deg, var(--pub-teal), rgba(0,197,168,.25)); }

.pub-info { color: var(--pub-ink-2); line-height: 1.6; font-size: .95rem; }
.pub-info .ai-md-p { margin: 0 0 .85rem; }
.pub-info .ai-md-p:last-child { margin-bottom: 0; }
.pub-info .ai-md-list { padding-left: 1.2rem; margin: 0 0 .85rem; }
.pub-info a { color: var(--pub-teal-dark); font-weight: 500; }

.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem 1rem; }
.pub-field { min-width: 0; }
.pub-field--full { grid-column: 1 / -1; }
.pub-card > .pub-field + .pub-field, .pub-question + .pub-field { margin-top: 1.35rem; }

.pub-label { display: block; font-size: .92rem; font-weight: 600; color: var(--pub-label); margin-bottom: .4rem; line-height: 1.4; }
legend.pub-label { float: none; width: auto; padding: 0; }
.pub-help { font-size: .82rem; line-height: 1.45; color: var(--pub-ink-3); margin: -.15rem 0 .5rem; }
.pub-help--after { margin: .45rem 0 0; }

.pub-input {
    display: block; width: 100%;
    font: inherit; font-size: .98rem; color: var(--pub-ink);
    background: #fff;
    border: 1px solid var(--pub-line); border-radius: 10px;
    padding: .6rem .8rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pub-input::placeholder { color: #9AA3B2; }
.pub-input:hover { border-color: #b7c1d3; }
.pub-input:focus { outline: none; border-color: var(--pub-teal); box-shadow: 0 0 0 3px rgba(0,197,168,.18); }
.pub-input[readonly] { background: #F5F7FB; color: var(--pub-ink-2); }
textarea.pub-input { resize: vertical; min-height: 5.5rem; }

.pub-check { display: flex; align-items: flex-start; gap: .6rem; margin-top: .8rem; font-size: .85rem; line-height: 1.45; color: var(--pub-ink-2); cursor: pointer; }
.pub-check input { width: 1.05rem; height: 1.05rem; margin-top: .12rem; flex-shrink: 0; accent-color: var(--pub-teal-dark); }

/* A required Yes/No question: two pill choices. */
.pub-question { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.pub-question:last-of-type { margin-bottom: 0; }
.pub-choices { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.pub-choice {
    position: relative; display: inline-flex; align-items: center; gap: .55rem;
    min-width: 6.5rem; padding: .6rem 1.15rem;
    border: 1px solid var(--pub-line); border-radius: 999px; background: #fff;
    font: inherit; font-size: .95rem; font-weight: 500; color: var(--pub-ink); cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pub-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pub-choice-dot { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #b7c1d3; flex-shrink: 0; transition: all .15s ease; }
.pub-choice:hover { border-color: #9fb0c8; }
.pub-choice.is-on { border-color: var(--pub-teal); background: rgba(0,197,168,.08); box-shadow: 0 0 0 3px rgba(0,197,168,.12); }
.pub-choice.is-on .pub-choice-dot { border-color: var(--pub-teal-dark); background: var(--pub-teal-dark); box-shadow: inset 0 0 0 2px #fff; }
.pub-choice:focus-within { outline: 2px solid var(--pub-teal); outline-offset: 2px; }
.pub-choice:disabled { opacity: .6; cursor: default; }
.pub-choices--big .pub-choice { padding: .8rem 1.5rem; font-size: 1rem; }

.pub-notice { display: flex; gap: .6rem; align-items: flex-start; border-radius: 12px; padding: .85rem 1rem; font-size: .9rem; line-height: 1.45; margin-bottom: 1.1rem; }
.pub-notice i { margin-top: .1rem; }
.pub-notice--info { background: rgba(0,197,168,.09); color: #0B5E4F; border: 1px solid rgba(0,197,168,.25); }
.pub-notice--error { background: #FDECEC; color: #9B1C1C; border: 1px solid #F5C2C2; }
.pub-notice--ok { background: rgba(0,197,168,.09); color: #0B5E4F; border: 1px solid rgba(0,197,168,.25); font-weight: 500; }

.pub-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pub-captcha { margin: .5rem 0 1rem; }

.pub-actions { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.pub-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    border: 0; border-radius: 11px; cursor: pointer;
    padding: .8rem 1.7rem;
    font: inherit; font-size: 1rem; font-weight: 650; color: #fff; text-decoration: none;
    background: linear-gradient(135deg, var(--pub-navy-600), var(--pub-teal-dark));
    box-shadow: 0 8px 20px -10px rgba(0,158,136,.7);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.pub-btn:hover:not(:disabled) { color: #fff; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 26px -12px rgba(0,158,136,.8); }
.pub-btn:focus-visible { outline: 3px solid rgba(0,197,168,.45); outline-offset: 2px; }
.pub-btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.pub-btn i { transition: transform .15s ease; }
.pub-btn:hover:not(:disabled) i { transform: translateX(3px); }
.pub-link { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; font-weight: 500; color: var(--pub-teal-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pub-link:hover { color: var(--pub-navy-600); }
.pub-link:disabled { opacity: .5; cursor: default; }
.pub-link--danger { color: #B42318; }

/* Done, closed, not found. */
.pub-state { text-align: center; padding: 2.75rem 2rem 2.5rem; }
.pub-state-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--pub-navy-600); background: #EAF0F8;
}
.pub-state-icon--ok { color: #fff; background: linear-gradient(135deg, var(--pub-teal), var(--pub-teal-dark)); box-shadow: 0 0 0 8px rgba(0,197,168,.14), 0 12px 28px -10px rgba(0,158,136,.7); }
.pub-state-title { font-family: var(--pub-serif); font-weight: 400; font-size: 2rem; color: var(--pub-ink); margin: 0 0 .75rem; }
.pub-state-body { color: var(--pub-ink-2); line-height: 1.6; max-width: 30rem; margin: 0 auto .75rem; }
.pub-state-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: #F2F6FC; font-family: 'Outfit', system-ui, sans-serif; }
.pub-state-page .pub-card { max-width: 520px; width: 100%; }
.pub-dots { display: flex; gap: .5rem; }
.pub-dots span { width: 10px; height: 10px; border-radius: 50%; background: #00C5A8; animation: pub-pulse 1.2s ease-in-out infinite; }
.pub-dots span:nth-child(2) { animation-delay: .15s; }
.pub-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes pub-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* The invitee's page: numbered questions, the people already added, a box per new person. */
.pub-step { display: inline-flex; align-items: center; justify-content: center; width: 1.85rem; height: 1.85rem; flex-shrink: 0; border-radius: 50%; font-size: .9rem; font-weight: 650; color: #fff; background: linear-gradient(135deg, var(--pub-navy-600), var(--pub-teal-dark)); }
.pub-done { display: flex; align-items: flex-start; gap: .55rem; color: #0B6A54; font-weight: 500; line-height: 1.5; margin: 0; }
.pub-done i { color: var(--pub-teal-dark); font-size: 1.1rem; }
.pub-others { list-style: none; padding: 0; margin: 0 0 1.25rem; border: 1px solid rgba(13,36,71,.08); border-radius: 12px; overflow: hidden; }
.pub-others li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1rem; }
.pub-others li + li { border-top: 1px solid rgba(13,36,71,.07); }
.pub-others-email { color: var(--pub-ink-3); font-size: .85rem; margin-left: .35rem; }
.pub-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: #EEF1F6; color: var(--pub-ink-2); }
.pub-tag--ok { background: rgba(0,197,168,.12); color: #0B6A54; }
.pub-tag--sent { background: #E8EEF8; color: var(--pub-navy-600); }
.pub-person { border: 1px dashed #c3cddd; border-radius: 14px; padding: 1.1rem; margin-bottom: .85rem; background: #FAFBFD; }

@media (max-width: 980px) {
    .pub { grid-template-columns: 1fr; }
    .pub-hero { position: relative; height: auto; }
    .pub-hero-content { height: auto; overflow: visible; padding: 2rem 1.25rem 2.25rem; gap: 1.75rem; }
    .pub-hero-foot { display: none; }
    .pub-panel { padding: 1.5rem 1rem 3rem; }
}
@media (max-width: 560px) {
    .pub-grid { grid-template-columns: 1fr; }
    .pub-agenda { padding: 1rem 1rem .9rem; }
    .pub-agenda-items li { grid-template-columns: 1fr; }
    .pub-actions .pub-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .pub-aurora > span, .pub-dots span { animation: none; }
    .pub-btn, .pub-btn i, .pub-choice, .pub-input { transition: none; }
}

/* The Organization field's match list (Pages/Public/OrganizationPicker). */
.pub-combo { position: relative; }
.pub-combo-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: .3rem; list-style: none; max-height: 18rem; overflow-y: auto;
  background: #fff; border: 1px solid var(--pub-line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(13, 36, 71, .14);
}
.pub-combo-option {
  padding: .55rem .7rem; border-radius: 7px; cursor: pointer;
  font: 500 .95rem/1.3 var(--pub-ui); color: var(--pub-ink);
}
.pub-combo-option--active { background: rgba(0, 197, 168, .12); color: var(--pub-navy); }

/* An invitee's page once both questions are answered. */
.pub-allset .pub-card-title { display: flex; align-items: center; gap: .5rem; }
.pub-allset .pub-card-title .bi { color: var(--pub-teal-dark); }
.pub-allset-list { margin: 0 0 .5rem; padding-left: 1.2rem; color: var(--pub-ink); font: 500 .98rem/1.5 var(--pub-ui); }
.pub-allset-list li { margin-bottom: .25rem; }
