/* ProxMe ballot explainer pages (e.g. /cintas). Builds on styles.css. */
.ballot-hero { position: relative; background: var(--navy); color: var(--white); padding: 2rem 0 2.75rem; overflow: hidden; }
.ballot-hero-inner { position: relative; max-width: 980px; }
.ballot-hero h1 { font-size: clamp(1.55rem, 5.2vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; margin: 0 0 1.5rem; }
.ballot-lede { font-size: 1.075rem; color: #E6EAF0; max-width: 46rem; }
.ballot-lede a { color: var(--gold); }
.ballot-lede strong { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.btn-meta { font-weight: 400; font-size: .9rem; margin-left: .35rem; opacity: .85; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }

.ballot-section { padding-top: 2.5rem; }
.ballot-h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); color: var(--navy); margin: 0 0 1rem; }
.h2-note { font-weight: 500; color: var(--muted); font-size: .8em; }

/* Key dates */
.date-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.date-card { background: var(--white); border: 1px solid var(--pale); border-left: 6px solid var(--steel); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 2px 6px rgba(23,50,71,.06); }
.date-card p { margin: 0; }
.date-card-plan { border-left-color: var(--gold-deep); background: #FFFBF3; }
.date-who { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.date-big { font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1.15; margin-top: .25rem !important; }
.date-when { font-weight: 600; color: var(--blue); margin-bottom: .45rem !important; }
.date-what { color: var(--muted); font-size: .97rem; }

/* Unusual box */
.unusual { background: #FFF8EC; border: 2px solid var(--gold-deep); border-radius: var(--radius); padding: 1.1rem 1.25rem .6rem; margin: 0 0 2.25rem; }
.unusual h2 { font-size: 1.2rem; color: var(--navy); margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.unusual h2::before { content: "!"; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: .95rem; flex: none; }
.unusual ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.unusual li { margin: 0 0 .55rem; }

/* Five items table: stacked cards on phones, table from 760px */
.items-table { width: 100%; border-collapse: collapse; }
.items-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.items-table tr { display: grid; grid-template-columns: 2.4rem 1fr; gap: .35rem .75rem; background: var(--white); border: 1px solid var(--pale); border-radius: var(--radius); padding: 1rem; margin-bottom: .85rem; box-shadow: 0 2px 6px rgba(23,50,71,.06); }
.items-table th.col-n { grid-row: span 3; text-align: left; vertical-align: top; }
.items-table td { display: block; }
.items-table td[data-label]:not(:first-of-type)::before { content: attr(data-label); display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-top: .35rem; }
.item-n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; }
.rec { display: inline-block; font-weight: 700; color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; background: var(--pale); color: var(--navy); border-radius: 999px; padding: .12rem .6rem; }
.muted { color: var(--muted); }
.items-foot { font-size: .92rem; color: var(--muted); margin-top: .5rem; }

.neutral-box { background: var(--navy); color: #EEF1F5; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 1.5rem; border-left: 6px solid var(--gold); }
.neutral-box strong { color: var(--gold); }
.neutral-box p:last-child { margin-bottom: 0; }

/* Details band + body */
.details-band { background: var(--blue); color: var(--white); padding: 2rem 0 1.6rem; border-top: 6px solid var(--gold); scroll-margin-top: 64px; }
.details-band h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 .35rem; }
.details-band p:last-child { margin: 0; color: #E6EAF0; }
.details { padding-top: 2rem; }
.details-grid { display: grid; gap: 1.5rem; }
.details-toc { background: var(--off); border: 1px solid var(--pale); border-radius: var(--radius); padding: 1rem 1.15rem; align-self: start; }
.toc-head { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin-bottom: .4rem; }
.details-toc ol { margin: 0 0 .9rem; padding-left: 1.2rem; font-size: .95rem; }
.details-toc li { margin: .2rem 0; }
.prose { min-width: 0; font-size: 1.02rem; }
.prose h2 { font-size: clamp(1.3rem, 3.4vw, 1.65rem); color: var(--navy); margin: 2.2rem 0 .75rem; padding-top: .4rem; scroll-margin-top: 80px; }
.prose h3 { font-size: 1.2rem; color: var(--navy); margin: 1.6rem 0 .5rem; scroll-margin-top: 80px; }
.prose h4 { font-size: 1.05rem; color: var(--blue); margin: 1.2rem 0 .4rem; }
.prose > h2:first-of-type, .prose > .notice + h2 { margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--pale); margin: 2rem 0; }
.prose a { overflow-wrap: anywhere; }
.prose .cite { font-size: .8em; text-decoration: none; white-space: nowrap; vertical-align: .05em; }
.prose code { font-size: .9em; background: var(--pale); padding: 0 .25rem; border-radius: 4px; }
.notice { margin: 0 0 1.5rem; background: #FFF8EC; border-left: 5px solid var(--gold-deep); border-radius: 6px; padding: .9rem 1.1rem; }
.notice p { margin: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .75rem 0 1.25rem; border: 1px solid var(--pale); border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--pale); }
.prose thead th { background: var(--navy); color: var(--white); font-weight: 600; }
.prose tbody tr:nth-child(even) { background: var(--off); }
.prose #sources + ul { font-size: .92rem; }
.prose li[id^="src-"] { scroll-margin-top: 80px; }
.prose li[id^="src-"]:target { background: #FFF3DC; }
.back-top { margin-top: 2rem; font-weight: 600; }
.cta-sub { margin: .4rem 0 0; color: var(--navy); }

@media (min-width: 640px) {
  .date-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) {
  .items-wrap { border: 1px solid var(--pale); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 6px rgba(23,50,71,.06); }
  .items-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .items-table thead th { background: var(--navy); color: var(--white); text-align: left; font-weight: 600; padding: .75rem .9rem; font-size: .98rem; }
  .items-table tr { display: table-row; box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
  .items-table tbody tr:nth-child(even) { background: var(--off); }
  .items-table td, .items-table th.col-n { display: table-cell; padding: .9rem; border-top: 1px solid var(--pale); vertical-align: top; }
  .items-table td[data-label]::before { display: none !important; }
  .items-table .col-n { width: 3.4rem; }
  .items-table td:nth-of-type(2) { width: 17%; }
  .items-table td:nth-of-type(3) { width: 25%; }
}
@media (min-width: 960px) {
  .ballot-hero { padding: 3rem 0 3.5rem; }
  .details-grid { grid-template-columns: 250px 1fr; gap: 2.5rem; }
  .details-toc { position: sticky; top: 84px; }
}
/* Scroll shadows hint that wide tables scroll sideways on phones */
.table-scroll {
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 28px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(23,50,71,.22), rgba(23,50,71,0)) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(23,50,71,.22), rgba(23,50,71,0)) right center / 12px 100% no-repeat scroll;
}
.prose tbody tr:nth-child(even) { background: rgba(23,50,71,.035); }
@media (max-width: 639px) { .prose table { min-width: 520px; font-size: .9rem; } }

/* Landing-page callout linking to a live ballot explainer */
.ballot-callout { background: var(--off); border-bottom: 1px solid var(--pale); padding: 1.5rem 0; }
.ballot-callout-inner { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.ballot-callout .eyebrow { margin-bottom: .3rem; }
.ballot-callout h2 { font-size: clamp(1.2rem, 3.4vw, 1.5rem); color: var(--navy); margin: 0 0 .3rem; }
.ballot-callout p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .ballot-callout-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; } }
