/* Shared body layout for Graphics, Take Action, How to Vote, and Start Here.
   The wrapper avoids legacy main > section rules; the site shell stays shared. */
body.page-cleanup #main-content {
  max-width: none !important;
  padding: 0 !important;
  background: var(--m-navy, #06131d) !important;
  font-family: var(--m-readable, Verdana, Arial, sans-serif);
}
body.page-cleanup #main-content::before { display: none; }
.pc-shell {
  --pc-panel: #0c202e;
  --pc-line: #314653;
  --pc-muted: #c5d1d9;
  width: var(--ivdb-shell-width);
  margin: 0 auto;
  padding: 30px 0 48px;
  color: #edf3f6;
  font-size: 16px;
  line-height: 1.55;
}
.pc-shell *, .pc-shell *::before, .pc-shell *::after { box-sizing: border-box; }
.pc-shell :is(section, article, div, a, button) { min-width: 0; }
.pc-shell :is(p, ol, ul) { margin: 0; }
.pc-shell :is(p, li) { line-height: 1.6; }
.pc-shell :is(h1, h2, h3) {
  margin: 0;
  color: #fff;
  font-family: inherit;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
.pc-shell h1 { max-width: 29ch; font-size: clamp(30px, 3.2vw, 46px); }
body.page-cleanup .pc-shell h2 { font-size: clamp(23px, 2.3vw, 30px); letter-spacing: 0; }
.pc-shell h3 { font-size: 19px; }
.pc-shell a { color: #efc84a; text-underline-offset: 3px; }
.pc-shell a:hover { text-decoration-thickness: 2px; }
.pc-shell :is(a, button):focus-visible { outline: 2px solid #efc84a; outline-offset: 4px; }
.pc-shell .pc-kicker {
  margin: 0 0 8px;
  color: #efc84a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.pc-intro { padding-bottom: 24px; }
.pc-intro .pc-case-status { margin-top: 18px; max-width: 78ch; }
.pc-intro .pc-lede { max-width: 78ch; margin-top: 12px; color: var(--pc-muted); }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pc-intro .pc-actions { margin-top: 18px; }
.page-take-action .pc-vote-priority { margin-bottom: 24px; padding: 24px; border: 1px solid var(--pc-line); border-left: 4px solid #c51c2b; border-radius: 5px; background: var(--pc-panel); }
.page-take-action .pc-kicker { color: #fff; }
.page-take-action .pc-vote-guide-summary { max-width: 78ch; margin-top: 12px; color: var(--pc-muted); }
.page-take-action .pc-sound-off-secondary { grid-column: 1 / -1; }
.page-take-action .pc-sound-off-secondary > p { max-width: 78ch; }
.page-take-action .pc-sound-off-secondary a { overflow-wrap: anywhere; }
.pc-shell .pc-button,
.pc-shell .m-share-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #879dab;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
}
.pc-shell :is(.pc-button, .m-share-button):hover { background: #1c3546; }
.pc-shell .pc-button-red { background: #bd1424; border-color: #e83c4b; color: #fff; }
.pc-shell .pc-button-red:hover { background: #a70f1e; }
.pc-shell .pc-button-gold,
.pc-shell .m-share-button.primary {
  background: #efc84a;
  border-color: #efc84a;
  color: #06131d;
}
.pc-shell :is(.pc-button-gold, .m-share-button.primary):hover { background: #ffdb70; border-color: #ffdb70; }
/* Override the legacy share control's forced white / gold text colors. */
.pc-shell .m-share-button.primary { color: #06131d !important; }
.pc-shell .m-share-button.gold { color: #fff !important; }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--pc-line);
  border-radius: 8px;
  background: var(--pc-panel);
}
body.page-cleanup .pc-card h2 { font-size: 23px; }
.pc-card > :is(p, ol, ul) { margin-top: 14px; color: var(--pc-muted); max-width: 86ch; }
.pc-card :is(ol, ul) { padding-left: 22px; }
.pc-card li + li { margin-top: 8px; }
.pc-card > .pc-actions { margin-top: auto; padding-top: 22px; }
.pc-card > .pc-button { margin-top: auto; align-self: flex-start; }
.pc-card > :is(p, ol, ul) + .pc-button { margin-top: 22px; }
.pc-vote-methods > .pc-card > .pc-button { margin-top: auto; }
.pc-vote-methods > .pc-card > p:last-of-type { margin-bottom: 22px; }
.pc-facts > .pc-card:last-child { grid-column: 1 / -1; }
.pc-facts .pc-card-link { margin-top: auto; padding-top: 20px; }
.pc-text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
.pc-exits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pc-line);
}
.pc-exits a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 800; }
.pc-exits a[href="/take-action"] { padding: 10px 16px; background: #b82b31; border: 1px solid #c14b50; border-radius: 5px; color: #fff; text-decoration: none; }
.pc-exits a[href="/take-action"]:hover { background: #d03940; }

/* Keep original image files and share controls; align their preview frames. */
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; color: var(--pc-muted); font-size: 14px; }
.pc-graphics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pc-graphic { overflow: hidden; border: 1px solid var(--pc-line); border-radius: 8px; background: var(--pc-panel); }
.pc-graphic > img { display: block; width: 100%; height: 310px; padding: 12px; object-fit: contain; background: #06131d; border: 0; border-bottom: 1px solid var(--pc-line); }
.pc-graphic-body { padding: 20px; }
body.page-cleanup .pc-graphic h2 { min-height: 2.6em; font-size: 22px; }
.pc-graphic-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px; margin-top: 16px; }
.pc-graphic-actions .m-share-button { width: 100%; min-width: 0; padding-inline: 10px; }
.pc-graphic-actions > :first-child, .pc-graphic-actions > :nth-child(4) { grid-column: 1 / -1; }
.pc-graphics-footer { display: flex; justify-content: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--pc-line); }

/* A single calendar, followed by two methods and practical local help. */
.pc-registration { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px; background: var(--pc-panel); border: 1px solid var(--pc-line); border-radius: 8px; }
.pc-registration p:not(.pc-kicker) { max-width: 76ch; margin-top: 10px; color: var(--pc-muted); }
.pc-registration > .pc-button { flex-shrink: 0; }
.pc-dates { margin: 30px 0; }
.pc-dates > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 20px; border: 1px solid var(--pc-line); border-radius: 8px; background: var(--pc-panel); overflow: hidden; }
.pc-dates article { padding: 20px; }
.pc-dates article + article { border-left: 1px solid var(--pc-line); }
.pc-dates time { display: block; color: #efc84a; font-size: 25px; font-weight: 800; line-height: 1.25; }
.pc-dates span { display: block; margin-top: 10px; color: var(--pc-muted); font-size: 14px; line-height: 1.6; }
.pc-shell .pc-source { margin-top: 16px; color: var(--pc-muted); font-size: 14px; line-height: 1.6; }
.pc-shell #same-day-registration { margin-top: 24px; }
.pc-clerk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 24px; padding: 24px; border: 1px solid var(--pc-line); border-radius: 8px; background: var(--pc-panel); }
.pc-clerk > div + div { padding-left: 32px; border-left: 1px solid var(--pc-line); }
.pc-clerk :is(p:not(.pc-kicker), ul) { margin-top: 12px; color: var(--pc-muted); }
.pc-clerk ul { padding-left: 22px; }
.pc-clerk li + li { margin-top: 6px; }
.pc-official-note { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 24px; padding: 16px 20px; border-left: 3px solid #efc84a; background: var(--pc-panel); font-size: 14px; }
.pc-official-note span { color: var(--pc-muted); }
@media (max-width: 1100px) {
  .pc-dates > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-dates article:nth-child(4) { border-left: 0; }
  .pc-dates article:nth-child(n+4) { border-top: 1px solid var(--pc-line); }
  .pc-graphics-grid { grid-template-columns: 1fr; }
  .pc-graphic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .pc-graphic > img { border-bottom: 0; border-right: 1px solid var(--pc-line); }
  body.page-cleanup .pc-graphic h2 { min-height: 0; }
}
@media (max-width: 760px) {
  .pc-grid, .pc-clerk { grid-template-columns: 1fr; }
  .pc-registration { display: block; }
  .pc-registration > .pc-button { margin-top: 20px; }
  .pc-clerk > div + div { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--pc-line); }
  .pc-dates > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-dates article:nth-child(n) { border-left: 0; border-top: 0; }
  .pc-dates article:nth-child(even) { border-left: 1px solid var(--pc-line); }
  .pc-dates article:nth-child(n+3) { border-top: 1px solid var(--pc-line); }
}
@media (max-width: 600px) {
  .pc-shell { padding-top: 24px; }
  .page-take-action .pc-vote-priority { padding: 20px 16px; }
  .pc-card, .pc-registration, .pc-clerk { padding: 20px 16px; }
  body.page-cleanup .pc-card h2 { font-size: 22px; }
  .pc-actions { width: 100%; align-items: stretch; }
  .pc-actions > .pc-button { flex: 1 1 180px; }
  .pc-graphic { display: block; }
  .pc-graphic > img { height: 290px; border-right: 0; border-bottom: 1px solid var(--pc-line); }
  .pc-graphic-body { padding: 20px 16px; }
  .pc-dates article { padding: 18px 14px; }
  .pc-exits { justify-content: flex-start; }
}
@media (max-width: 380px) {
  .pc-dates > div { grid-template-columns: 1fr; }
  .pc-dates article:nth-child(n) { border-left: 0; }
  .pc-dates article + article { border-top: 1px solid var(--pc-line); }
}
