.vote-public-page .layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

body.vote-public-page.force-desktop .layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

body.vote-public-page.force-tablet .layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

.vote-public-page .main-content {
  display: grid;
  gap: 18px;
}

.vote-page-shell {
  min-width: 0;
}

.vote-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.vote-breadcrumbs li:not(:last-child)::after {
  content: "‹";
  margin-inline-start: 8px;
  color: var(--muted-2);
}

.vote-breadcrumbs a:hover,
.vote-content-link:hover {
  color: var(--primary-strong);
}

.vote-page-hero,
.vote-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-soft);
}

.vote-page-hero {
  position: relative;
  margin-top: 14px;
  padding: clamp(20px, 4vw, 34px);
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 15%, var(--surface)), var(--surface));
}

.vote-page-hero::after {
  position: absolute;
  inset-inline-start: -70px;
  top: -105px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  content: "";
}

.vote-page-hero > * {
  position: relative;
  z-index: 1;
}

.vote-page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(25px, 3.2vw, 44px);
  line-height: 1.35;
}

.vote-page-hero p {
  max-width: 800px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.95;
}

.vote-kicker,
.vote-kind,
.vote-status,
.vote-result-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 42%, transparent);
  border-radius: 999px;
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 900;
}

.vote-page-section {
  margin-top: 18px;
}

.vote-section-title {
  margin: 0 2px 12px;
  font-size: 20px;
}

.vote-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  padding: 16px;
}

.vote-filter-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.vote-filter-form select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--surface-2);
}

.vote-filter-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 10px;
}

.vote-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  color: #132015;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  font-weight: 900;
}

.vote-action.is-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-2);
}

.vote-card-grid,
.vote-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vote-card,
.vote-story-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.vote-card:hover,
.vote-story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.vote-card h2,
.vote-story-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}

.vote-card p,
.vote-story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.vote-card-meta,
.vote-byline,
.vote-timing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.vote-topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
}

.vote-story-card {
  grid-template-columns: 150px minmax(0, 1fr);
}

.vote-story-card img {
  width: 100%;
  height: 132px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.vote-pagination {
  margin-top: 18px;
  overflow-x: auto;
}

.vote-pagination nav > div:first-child {
  display: none;
}

.vote-empty,
.vote-notice {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: var(--surface);
}

.vote-notice.is-success { border-color: var(--green); color: var(--green); }
.vote-notice.is-error { border-color: var(--red); color: var(--red); }

.vote-detail-grid,
.vote-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}

.vote-detail-main,
.vote-detail-aside,
.vote-article-main,
.vote-related {
  display: grid;
  gap: 16px;
}

.vote-content-section {
  padding: clamp(17px, 3vw, 25px);
}

.vote-content-section h2,
.vote-related h2,
.vote-related h3 {
  margin: 0 0 12px;
}

.vote-description,
.vote-article-body,
.vote-content-section p {
  color: var(--muted);
  line-height: 2;
}

.vote-options,
.vote-result-list,
.vote-related-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vote-option,
.vote-result-list li,
.vote-related-link {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.vote-option {
  grid-template-columns: auto 1fr;
  align-items: center;
  cursor: pointer;
}

.vote-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-strong);
}

.vote-result-list progress {
  width: 100%;
  accent-color: var(--primary-strong);
}

.vote-countdown {
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line));
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

.vote-canonical-url {
  overflow-wrap: anywhere;
}

.vote-article-main > header,
.vote-article-main > figure,
.vote-article-body,
.vote-context,
.vote-source,
.vote-related {
  padding: clamp(17px, 3vw, 25px);
}

.vote-article-main > header h1 {
  margin: 10px 0;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.45;
}

.vote-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.vote-article-main figure {
  margin: 0;
}

.vote-article-main figure img {
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.vote-article-main figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.vote-article-body img,
.vote-article-body video,
.vote-article-body iframe {
  max-width: 100%;
  height: auto;
}

/* Content pasted from rich-text editors must follow the active theme. */
.vote-article-body [style] {
  background-color: transparent !important;
  background-image: none !important;
}

.vote-article-body p,
.vote-article-body div,
.vote-article-body span {
  color: inherit !important;
  font-family: inherit !important;
}

.vote-sr-only,
.vote-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.vote-skip-link:focus {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: 10px;
  color: #132015;
  background: var(--accent);
}

@media (max-width: 1180px) {
  .vote-public-page .layout { grid-template-columns: 224px minmax(0, 1fr); }
  .vote-filter-form { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .vote-detail-grid,
  .vote-article-grid { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 760px) {
  .vote-public-page .layout { display: block; }
  .vote-filter-form,
  .vote-card-grid,
  .vote-story-grid,
  .vote-detail-grid,
  .vote-article-grid { grid-template-columns: 1fr; }
  .vote-story-card img { height: 190px; }
  .vote-filter-actions .vote-action { flex: 1 1 130px; }
  .vote-card:hover,
  .vote-story-card:hover { transform: none; }
}

@media (max-width: 430px) {
  .vote-page-hero,
  .vote-content-section,
  .vote-article-main > header,
  .vote-article-main > figure,
  .vote-article-body,
  .vote-context,
  .vote-source,
  .vote-related { padding: 16px; }
  .vote-story-card img { height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .vote-card,
  .vote-story-card { transition: none; }
}
