:root {
  --bg: #f6f4f1;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --border: #e7e5e4;
  --poll-bg: #ecfdf5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Fixed slot = old embedded SVG (200×32 CSS px). Wide PNGs scale inside; cannot spill across the header. */
.site-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 200px;
  height: 32px;
  max-width: min(200px, 58vw);
}

.site-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

main {
  padding: 2rem 0 3rem;
}

.poll-banner {
  background: var(--poll-bg);
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.poll-banner h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.poll-banner .hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.poll-choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.poll-choice-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.poll-results .bar-row {
  margin-bottom: 0.65rem;
}

.poll-results .bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.poll-results .bar-track {
  height: 8px;
  background: #d1fae5;
  border-radius: 4px;
  overflow: hidden;
}

.poll-results .bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

a.btn:hover {
  color: #fff;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn--primary {
  margin-top: 0;
  padding: 0.65rem 1.35rem;
  font-size: 1.05rem;
  border-radius: 8px;
}

.home-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.3;
  font-weight: 700;
}

.home-hero__lead {
  margin: 0 0 1.25rem;
}

.home-hero__blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.guide-intro h1 {
  margin-top: 0.25rem;
}

.guide-disclaimer {
  margin-bottom: 0;
}

.guide-section__heading {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.guide-emphasis {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.guide-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.guide-list li {
  margin-bottom: 0.35rem;
}

.guide-steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.guide-steps > li {
  margin-bottom: 1.15rem;
}

.guide-steps > li strong {
  display: block;
  margin-bottom: 0.35rem;
}

.guide-sublist {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.guide-sublist li {
  margin-bottom: 0.25rem;
}

.finger-callout {
  margin: 0.35rem 0 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.finger-callout__icon {
  flex-shrink: 0;
  line-height: 1.5;
}

.guide-quote {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--poll-bg);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text);
}

.guide-section--caution .guide-section__heading {
  color: #9a3412;
}

.guide-section--closing {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border-color: #a7f3d0;
}

.guide-section--closing .guide-section__heading {
  color: var(--accent-hover);
}

.guide-section--closing p:last-child {
  margin-bottom: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  margin-bottom: 1.25rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.messages li {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.messages .success {
  background: #d1fae5;
  color: #065f46;
}

.messages .error {
  background: #fee2e2;
  color: #991b1b;
}

.messages .info {
  background: #e0f2fe;
  color: #075985;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
}
