/* EasySecretBallot.com
   Identity drawn from the AFA Local 975 site: heavy condensed uppercase display
   type (Anton), Oswald for card titles and section labels, deep navy panels,
   orange numerals, red kickers, light gray canvas, square-cornered cards.
   All fonts are self-hosted; the voting pages load nothing off-origin. */

@font-face {
  font-family: "Anton";
  src: url("anton.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("oswald.woff2") format("woff2");
  font-weight: 200 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #1c2733;
  --ink-soft: #55606c;
  --line: #d9dde2;
  --line-strong: #aab3bd;
  --paper: #ffffff;
  --canvas: #f1f2f4;
  --navy: #1c2733;
  --navy-deep: #131c26;
  --navy-tint: #e8ecf1;
  --orange: #f5993d;
  --orange-dark: #e07f1c;
  --red: #d9482b;
  --good: #1b7f4b;
  --good-tint: #e6f4ec;
  --warn: #8a5a00;
  --warn-tint: #fdf3e0;
  --bad: #a02121;
  --bad-tint: #fbeaea;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(19, 28, 38, .08), 0 6px 18px rgba(19, 28, 38, .06);
  --display: "Anton", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --heading: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 16px/1.6 var(--body);
  color: var(--ink);
  background: var(--canvas);
}

a { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px 64px; }
.wrap.narrow { max-width: 660px; }
.wrap.wide { max-width: 1200px; }

/* --- masthead --- */
.masthead { background: var(--navy); color: #fff; padding: 16px 0; }
.masthead .wrap { display: flex; align-items: center; gap: 18px;
                  padding-bottom: 0; flex-wrap: wrap; }
.masthead a { color: #fff; text-decoration: none; }
.brand { font-family: var(--heading); font-weight: 600; letter-spacing: .5px;
         font-size: 19px; text-transform: uppercase; }
.brand span { opacity: .6; font-weight: 300; font-size: 14px; letter-spacing: 1px; }
.masthead nav { margin-left: auto; display: flex; gap: 20px; align-items: center;
                flex-wrap: wrap; font-size: 13px; font-family: var(--heading);
                text-transform: uppercase; letter-spacing: 1px; }
.masthead nav a { opacity: .85; }
.masthead nav a:hover { opacity: 1; color: var(--orange); }
.masthead form { margin: 0; }

/* --- headings --- */
h1, h2, h3, h4 { font-family: var(--heading); text-transform: uppercase;
                 letter-spacing: .5px; line-height: 1.15; }
h1 { font-size: 34px; margin: 28px 0 8px; font-weight: 700; }
h2 { font-size: 23px; margin: 28px 0 10px; font-weight: 600; }
h3 { font-size: 18px; margin: 20px 0 8px; font-weight: 600; }
.lede { color: var(--ink-soft); font-size: 17px; margin-top: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.kicker { font-family: var(--heading); font-weight: 600; font-size: 13px;
          letter-spacing: 2px; text-transform: uppercase; color: var(--red);
          margin: 0 0 4px; }
.kicker.orange { color: var(--orange); }

/* --- surfaces --- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin: 18px 0;
  box-shadow: var(--shadow);
}
.card.tight { padding: 16px; }
.card.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.card.dark h2, .card.dark h3 { color: #fff; }
.card.dark .muted, .card.dark .small { color: #aab4c0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

.rule-dotted { border: 0; border-top: 2px dotted var(--line-strong); margin: 28px 0; }

/* --- forms --- */
label { display: block; font-weight: 600; margin: 16px 0 6px;
        font-family: var(--heading); text-transform: uppercase;
        letter-spacing: .8px; font-size: 13px; }
label .hint { display: block; font-weight: 400; color: var(--ink-soft);
              font-size: 13.5px; font-family: var(--body); text-transform: none;
              letter-spacing: 0; margin-top: 2px; }
input[type=text], input[type=password], input[type=email], input[type=number],
input[type=tel], input[type=datetime-local], select, textarea {
  width: 100%; padding: 12px 13px; font-size: 16px; font-family: var(--body);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input[type=file] { width: 100%; padding: 10px 0; }

.checkbox, .radio {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  margin: 8px 0; font-weight: 400; background: #fff; cursor: pointer;
  font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 16px;
}
.checkbox:hover, .radio:hover { border-color: var(--orange); background: #fef6ec; }
.checkbox input, .radio input { margin-top: 3px; width: 20px; height: 20px; flex: none;
                                accent-color: var(--navy); }
.checkbox.attest { background: var(--warn-tint); border-color: #e3c88a; }

.field-error { color: var(--bad); font-weight: 600; font-size: 14px; margin: 6px 0 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 17px; padding: 0; }

/* --- buttons --- */
.btn {
  display: inline-block; padding: 13px 24px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius); border: 2px solid var(--navy); background: var(--navy);
  color: #fff; cursor: pointer; text-decoration: none;
  font-family: var(--heading); text-transform: uppercase; letter-spacing: 1.2px;
  line-height: 1.3;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn.primary, .btn.orange { background: var(--orange); border-color: var(--orange);
                            color: var(--navy-deep); }
.btn.primary:hover, .btn.orange:hover { background: var(--orange-dark);
                                        border-color: var(--orange-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--navy); }
.btn.secondary:hover { background: var(--navy-tint); }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.danger:hover { background: #b03318; border-color: #b03318; }
.btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.small { padding: 7px 14px; font-size: 12px; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }

/* --- notices --- */
.notice { padding: 14px 16px; border-radius: var(--radius); border: 1px solid;
          border-left-width: 5px; margin: 16px 0; }
.notice.success { background: var(--good-tint); border-color: #a8d5bd;
                  border-left-color: var(--good); color: #14532d; }
.notice.error   { background: var(--bad-tint); border-color: #e2adad;
                  border-left-color: var(--bad); color: #7a1a1a; }
.notice.warning { background: var(--warn-tint); border-color: #e3c88a;
                  border-left-color: #c98a00; color: #6b4600; }
.notice.info    { background: var(--navy-tint); border-color: #becbd9;
                  border-left-color: var(--navy); color: var(--navy-deep); }
.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }

/* --- pills --- */
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 2px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; font-family: var(--heading);
  background: var(--line); color: var(--ink-soft);
}
.pill.open { background: var(--good-tint); color: #14532d; }
.pill.closed { background: var(--bad-tint); color: #7a1a1a; }
.pill.draft { background: var(--warn-tint); color: #6b4600; }
.pill.certified { background: var(--navy-tint); color: var(--navy-deep); }

/* --- tables --- */
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
     color: var(--ink-soft); background: var(--canvas); font-family: var(--heading);
     font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.table-scroll { overflow-x: auto; }

/* --- stats --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat { background: var(--paper); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 16px; }
.stat .n { font-family: var(--display); font-size: 34px; line-height: 1.05;
           color: var(--navy); font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12px; color: var(--ink-soft); text-transform: uppercase;
           letter-spacing: 1px; margin-top: 6px; font-family: var(--heading);
           font-weight: 600; }

.bar { height: 12px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 8px 0; }
.bar > i { display: block; height: 100%; background: var(--good); }
.bar.brand > i { background: var(--orange); }

/* --- results --- */
.result-row { margin: 12px 0; }
.result-row .label { display: flex; justify-content: space-between; gap: 12px;
                     font-weight: 600; }
.result-row .label .count { font-variant-numeric: tabular-nums; color: var(--ink-soft);
                            font-weight: 400; }
.result-row.winner .label { color: #14532d; }

/* --- checklist --- */
.checklist { list-style: none; padding: 0; margin: 10px 0; }
.checklist li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li:before { position: absolute; left: 4px; font-weight: 700; }
.checklist li.ok:before { content: "\2713"; color: var(--good); }
.checklist li.no:before { content: "\2715"; color: var(--bad); }

/* --- ballot --- */
.ballot-question { border: 2px solid var(--line-strong); border-radius: var(--radius);
                   padding: 22px; margin: 20px 0; background: #fff; }
.ballot-question.has-error { border-color: var(--bad); }
.ballot-question .qnum { font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
                         color: var(--red); text-transform: uppercase;
                         font-family: var(--heading); }
.ballot-question .prompt { font-size: 21px; font-weight: 600; margin: 4px 0 4px;
                           line-height: 1.3; font-family: var(--heading);
                           text-transform: none; letter-spacing: .2px; }
.instruction { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px;
         font-size: 12px; flex-wrap: wrap; font-family: var(--heading);
         text-transform: uppercase; letter-spacing: .8px; }
.steps li { padding: 6px 13px; border-radius: 2px; background: var(--line);
            color: var(--ink-soft); font-weight: 600; }
.steps li.current { background: var(--navy); color: #fff; }
.steps li.done { background: var(--good-tint); color: #14532d; }

.receipt { font-size: 26px; font-weight: 700; letter-spacing: 2px; text-align: center;
           padding: 18px; background: var(--navy-tint); border: 2px dashed var(--navy);
           border-radius: var(--radius); font-family: ui-monospace, Menlo, monospace; }

/* --- embed card --- */
body.embed { background: transparent; }
.embed-card { border: 1px solid var(--line); border-radius: 4px; background: #fff;
              padding: 18px; box-shadow: var(--shadow); }
.embed-card .kicker { font-size: 11px; margin-bottom: 2px; }
.embed-card h1 { font-size: 21px; margin: 4px 0 8px; }
.embed-foot { display: flex; justify-content: space-between; align-items: center;
              gap: 12px; margin-top: 14px; font-size: 13px; color: var(--ink-soft);
              flex-wrap: wrap; }

/* ==========================================================================
   Marketing site
   ========================================================================== */
.hero { background: var(--navy-deep); color: #fff; padding: 72px 0 64px;
        background-image: linear-gradient(160deg, #131c26 0%, #1c2733 55%, #22303f 100%); }
.hero .wrap { padding-bottom: 0; }
.hero .kicker { color: var(--orange); }
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 8vw, 84px); line-height: .98; letter-spacing: .5px;
  margin: 10px 0 22px; color: #fff;
}
.display .accent { color: var(--orange); }
h1.display { margin-top: 10px; }
.hero .sub { font-size: 19px; line-height: 1.6; color: #c3ccd6; max-width: 620px;
             margin: 0 0 30px; }
.hero .actions { margin-top: 26px; }
.hero-rule { border: 0; border-top: 2px dotted rgba(255,255,255,.35);
             margin: 44px 0 0; }

/* stat band, like the 1,300+ / 100+ / 40+ panel */
.statband { background: var(--navy-deep); color: #fff; padding: 54px 0; }
.statband .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
                  gap: 0; padding-bottom: 0; }
.statband .item { text-align: center; padding: 10px 26px;
                  border-left: 1px solid rgba(255,255,255,.18); }
.statband .item:first-child { border-left: 0; }
.statband .n { font-family: var(--display); font-size: clamp(48px, 6vw, 72px);
               line-height: 1; color: var(--orange); }
.statband .k { font-family: var(--heading); font-weight: 600; font-size: 14px;
               letter-spacing: 2px; text-transform: uppercase; margin-top: 10px; }
.statband .d { color: #97a2ae; font-size: 14.5px; margin-top: 8px; line-height: 1.5; }

.section { padding: 56px 0 8px; }
.section .wrap { padding-bottom: 0; }
.section-head { max-width: 720px; }
.section-title { font-family: var(--display); font-weight: 400;
                 font-size: clamp(32px, 5vw, 52px); line-height: 1.02;
                 text-transform: uppercase; margin: 6px 0 14px; color: var(--ink); }
.section .sub { color: var(--ink-soft); font-size: 17px; }

.grid { display: grid; gap: 18px; margin: 30px 0; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.feature { background: #fff; border: 1px solid var(--line); padding: 26px;
           box-shadow: var(--shadow); }
.feature .date { font-family: var(--heading); font-weight: 600; font-size: 12px;
                 letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
.feature h3 { font-size: 21px; margin: 10px 0 10px; letter-spacing: .3px; }
.feature p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
.feature .more { font-family: var(--heading); font-weight: 600; font-size: 13px;
                 letter-spacing: 1.2px; text-transform: uppercase; color: var(--red);
                 text-decoration: none; border-bottom: 2px solid var(--red);
                 padding-bottom: 2px; }
.feature .more:hover { color: var(--orange); border-color: var(--orange); }
.feature.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.feature.dark h3 { color: #fff; }
.feature.dark p { color: #b7c1cc; }
.feature.dark .date { color: var(--orange); }
.feature.dark .more { color: var(--orange); border-color: var(--orange); }

.stepnum { font-family: var(--display); font-size: 58px; line-height: 1;
           color: var(--orange); }

.usecase-list { list-style: none; padding: 0; margin: 24px 0;
                display: grid; gap: 10px;
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.usecase-list li { background: #fff; border: 1px solid var(--line); padding: 14px 16px;
                   font-weight: 600; font-size: 15px; position: relative;
                   padding-left: 42px; }
.usecase-list li:before { content: "\2713"; position: absolute; left: 16px;
                          color: var(--orange); font-weight: 700; }

.cta-band { background: var(--red); color: #fff; padding: 52px 0; margin-top: 56px;
            background-image: linear-gradient(120deg, #c93d22, #d9482b 60%, #e05a2d); }
.cta-band .wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
                  padding-bottom: 0; }
.cta-band .display { font-size: clamp(30px, 4.5vw, 46px); margin: 0; }
.cta-band p { color: #ffd9cd; margin: 6px 0 0; }
.cta-band .actions { margin: 0 0 0 auto; }

.price-card { background: var(--navy); color: #fff; padding: 38px; text-align: center; }
.price-card .amount { font-family: var(--display); font-size: 88px; line-height: 1;
                      color: var(--orange); }
.price-card .per { font-family: var(--heading); text-transform: uppercase;
                   letter-spacing: 2px; font-weight: 600; margin-top: 8px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; text-align: left; }
.price-card li { padding: 9px 0 9px 30px; position: relative; color: #c3ccd6;
                 border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.price-card li:before { content: "\2713"; position: absolute; left: 4px;
                        color: var(--orange); font-weight: 700; }

.lawbox { border-left: 5px solid var(--navy); background: #fff;
          border-top: 1px solid var(--line); border-right: 1px solid var(--line);
          border-bottom: 1px solid var(--line); padding: 20px 22px; margin: 18px 0; }
.lawbox .cite { font-family: var(--heading); font-weight: 600; letter-spacing: 1px;
                text-transform: uppercase; font-size: 13px; color: var(--red); }
.lawbox blockquote { margin: 10px 0; padding-left: 14px;
                     border-left: 3px solid var(--orange); color: var(--ink-soft);
                     font-style: italic; }

/* --- footer --- */
.site-foot { background: var(--navy-deep); color: #97a2ae; margin-top: 64px;
             padding: 40px 0; font-size: 14px; }
.site-foot .wrap { padding-bottom: 0; }
.site-foot a { color: #c3ccd6; }
.site-foot .foot-brand { font-family: var(--heading); font-weight: 600;
                         text-transform: uppercase; letter-spacing: 1px;
                         color: #fff; font-size: 16px; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; }

/* --- printing --- */
@media print {
  body { background: #fff; }
  .masthead, .site-foot, .no-print, .actions { display: none !important; }
  .card { border: 1px solid #999; box-shadow: none; page-break-inside: avoid; }
  .wrap { max-width: none; padding: 0; }
  a[href]:after { content: ""; }
}

@media (max-width: 640px) {
  h1 { font-size: 27px; }
  .card { padding: 18px; }
  .btn { width: 100%; text-align: center; }
  .actions .btn { width: 100%; }
  .masthead nav { width: 100%; margin-left: 0; gap: 14px; }
  .statband .item { border-left: 0; border-top: 1px solid rgba(255,255,255,.18);
                    padding: 22px 10px; }
  .statband .item:first-child { border-top: 0; }
  .cta-band .actions { margin-left: 0; }
}

/* --- animated highlight (scroll-triggered by site.js) --- */
.hl {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  transition: background-size 1.1s cubic-bezier(.25,.7,.3,1), color .5s ease .25s;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 2px 4px; margin: -2px -4px;
}
.hl.on { background-size: 100% 100%; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hl { transition: none; }
}

/* --- the ballot-box mark --- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-sheet {
  position: absolute; top: 6px; right: 20px;
  background: #f4f5f7; padding: 16px;
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  pointer-events: none;
}
.hero-sheet .esb-mark { display: block; width: clamp(120px, 13vw, 170px); height: auto; }
@media (max-width: 1020px) { .hero-sheet { display: none; } }

/* masthead brand chip */
.brand-mark {
  display: inline-flex; background: #f4f5f7; border-radius: 8px;
  padding: 4px; line-height: 0;
}
.brand-mark .esb-mark { width: 40px; height: 40px; }

/* keep a section title on one line */
.one-line { white-space: nowrap; font-size: clamp(24px, 4.4vw, 47px); }
@media (max-width: 560px) { .one-line { white-space: normal; } }

/* --- accessibility skip link --- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy);
             color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* --- cookie notice --- */
.cookie-note { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
               background: var(--navy); color: #eef1f4; border: 1px solid #33414f;
               border-radius: 4px; padding: 14px 16px; display: flex; gap: 14px;
               align-items: center; justify-content: center; flex-wrap: wrap;
               box-shadow: 0 8px 30px rgba(0,0,0,.4); font-size: 14px; max-width: 760px;
               margin: 0 auto; }
.cookie-note a { color: var(--orange); }
/* The author display:flex above would otherwise override the `hidden`
   attribute (whose display:none comes only from the UA stylesheet), leaving
   the banner visible after dismissal - and permanently on pages that never
   load site.js. */
.cookie-note[hidden] { display: none; }

/* --- FAQ details/summary --- */
details.card summary { cursor: pointer; font-size: 16px; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::before { content: "\25B8"; color: var(--orange); font-weight: 700;
                               margin-right: 10px; display: inline-block; transition: transform .15s; }
details.card[open] summary::before { transform: rotate(90deg); }
details.card[open] summary { margin-bottom: 8px; }
details.card p, details.card ul { margin-bottom: 0; }
.section h2[id] { scroll-margin-top: 20px; }
