/* Issues of the Day income-plan chrome
   sticky bar #1c1915, accent #8c2f1b, paper #f4efe4, ink #1a140c */

:root {
  --iotd-bar: #1c1915;
  --iotd-accent: #8c2f1b;
  --iotd-paper: #f4efe4;
  --iotd-ink: #1a140c;
}

html.iotd-in {
  scroll-padding-bottom: 96px;
}

.iotd-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  background: var(--iotd-bar);
  color: var(--iotd-paper);
  border-top: 3px solid var(--iotd-accent);
  font-family: "Arial Narrow", "Franklin Gothic Medium", Impact, sans-serif;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.iotd-bar.is-top {
  position: sticky;
  top: 0;
  bottom: auto;
  border-top: 0;
  border-bottom: 3px solid var(--iotd-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.iotd-bar .iotd-copy {
  flex: 1 1 180px;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.25;
}

.iotd-bar .iotd-copy strong {
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.iotd-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 240px;
  align-items: center;
}

.iotd-bar input[type="email"] {
  flex: 1 1 160px;
  min-width: 0;
  background: #0f0d0b;
  color: var(--iotd-paper);
  border: 1px solid #3a342c;
  padding: 10px 12px;
  font: 1rem Georgia, serif;
}

.iotd-bar input[type="email"]:focus {
  outline: 2px solid var(--iotd-accent);
  border-color: var(--iotd-accent);
}

.iotd-btn {
  display: inline-block;
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: var(--iotd-accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  white-space: nowrap;
}

.iotd-btn:hover {
  filter: brightness(1.08);
  color: #fff;
}

.iotd-btn.is-ghost {
  background: transparent;
  border: 1px solid #5a5044;
  color: var(--iotd-paper);
}

.iotd-btn:disabled,
.iotd-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.iotd-disclosure {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: #141210;
  border-left: 4px solid var(--iotd-accent);
  color: #cfc6b8;
  font-family: Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.45;
}

.iotd-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 40px;
  color: var(--iotd-paper);
}

.iotd-page h1 {
  font-family: "Arial Narrow", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-left: 6px solid var(--iotd-accent);
  padding-left: 10px;
  color: #f4f1ea;
}

.iotd-kicker {
  margin: 0 0 6px;
  color: var(--iotd-accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-family: "Arial Narrow", Impact, sans-serif;
}

.iotd-offer {
  background: #141210;
  border: 1px solid #2c2720;
  padding: 18px 16px;
  margin: 18px 0;
}

.iotd-offer h2 {
  margin: 0 0 8px;
  font-family: "Arial Narrow", Impact, sans-serif;
  text-transform: uppercase;
  font-size: 1.35rem;
  border: 0;
  padding: 0;
}

.iotd-price {
  color: var(--iotd-accent);
  font-weight: 800;
  font-family: "Arial Narrow", Impact, sans-serif;
  letter-spacing: 0.04em;
  margin: 6px 0 10px;
}

.iotd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.iotd-meta {
  font-family: Georgia, serif;
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.45;
}

a.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

.iotd-bar .iotd-status {
  flex: 1 1 100%;
  font-family: Georgia, serif;
  font-size: 0.88rem;
  color: #cfc6b8;
}

.iotd-story-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.iotd-story-list li {
  border-bottom: 1px solid #2a2a2a;
}

.iotd-story-list a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  color: #f4f1ea;
  font-family: Georgia, serif;
}

.iotd-story-list a:hover {
  color: var(--iotd-accent);
}

.iotd-calc label {
  display: block;
  margin: 10px 0 4px;
  font-family: "Arial Narrow", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: #cfc6b8;
}

.iotd-calc input {
  width: min(220px, 100%);
  background: #0f0d0b;
  color: var(--iotd-paper);
  border: 1px solid #3a342c;
  padding: 8px 10px;
  font: 1rem Georgia, serif;
}

.iotd-calc .iotd-total {
  margin-top: 16px;
  font-size: 1.2rem;
  font-family: "Arial Narrow", Impact, sans-serif;
  text-transform: uppercase;
}

.iotd-rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-family: Georgia, serif;
}

.iotd-rate-table th,
.iotd-rate-table td {
  border: 1px solid #2c2720;
  padding: 10px 12px;
  text-align: left;
}

.iotd-rate-table th {
  background: #141210;
  font-family: "Arial Narrow", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .iotd-bar {
    padding: 10px 10px 12px;
    gap: 8px;
  }
  .iotd-bar form {
    flex: 1 1 100%;
  }
  .iotd-btn {
    width: 100%;
    text-align: center;
  }
  html.iotd-in {
    scroll-padding-bottom: 140px;
  }
}

.iotd-recommended {
  border-color: var(--iotd-accent);
  box-shadow: 0 0 0 1px rgba(140, 47, 27, 0.35);
}

.iotd-benefits {
  margin: 12px 0 16px;
  padding-left: 1.2em;
  font-family: Georgia, serif;
  line-height: 1.5;
  color: #ddd;
}

.iotd-benefits li {
  margin: 6px 0;
}

.iotd-owner-flag {
  background: #3a1c12;
  border: 1px solid #8c2f1b;
  color: #f4c7b0;
  padding: 10px 12px;
  margin: 12px 0;
  font-family: Georgia, serif;
  font-size: 0.92rem;
}

.iotd-hero-cta {
  font-size: 1.05rem;
  padding: 14px 22px;
}

.iotd-scoreboard .iotd-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #2a2a2a;
  font-family: Georgia, serif;
}

.iotd-scoreboard .iotd-stat strong {
  font-family: "Arial Narrow", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.iotd-note {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.45;
}
