/* Toss-up Daily (olivewing.co/tossup/). Uses the site's colours and fonts from /style.css; adds the map's own two:
   --toss (a toss-up state) and --toss-strong (selected, bars). */

:root {
  --toss: #E9DDB4;
  --toss-strong: #B8913A;
  --panel: #FFFFFF;
  --quote-bg: #EEF1E6;
}

.tu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

.tu-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.tu-head h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 22ch;
}

.tu-sub {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-body);
  max-width: 60ch;
}

.tu-status {
  margin-top: 1.2rem;
  padding: 0.7rem 1rem;
  background: var(--accent-light);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-body);
}

.tu-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.tu-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  min-width: 0;
}

/* --- the map --- */

.tu-map {
  padding: 0.6rem 0.8rem;
}

.tu-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.tu-map .st {
  fill: #E6E5E0;
  stroke: #FFFFFF;
  stroke-width: 1;
}

.tu-map .st.t {
  fill: var(--toss);
  stroke: var(--toss-strong);
  stroke-width: 1.4;
  cursor: pointer;
  transition: fill 0.15s;
}

.tu-map .st.t:hover,
.tu-map .st.t.on {
  fill: var(--toss-strong);
}

.tu-map .lab {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  fill: var(--text);
  pointer-events: none;
}

/* --- the state strip --- */

.tu-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.tu-strip button {
  font: inherit;
  text-align: left;
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  color: var(--text);
  min-height: 44px;
}

.tu-strip button:first-child {
  border-left: none;
}

.tu-strip button:hover,
.tu-strip button[aria-selected="true"] {
  background: #F6F1E1;
}

.tu-strip b {
  display: block;
  font-size: 0.75rem;
  white-space: nowrap;
}
/* Oct 18: a quiet cue that the states are clickable: an arrow that steps forward and an accent line on hover */
.tu-strip b::after {
  content: " \203A";
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  transition: transform 0.15s ease;
}
.tu-strip button { transition: background 0.15s ease, box-shadow 0.15s ease; }
.tu-strip button:hover b::after { transform: translateX(3px); }
.tu-strip button:hover { box-shadow: inset 0 -2px 0 var(--accent); }
.tu-strip button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--accent); }
.tu-hint {
  margin: 0;
  padding: 0.75rem 1rem 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.tu-hint b { color: var(--accent); font-weight: 600; }

.tu-strip span {
  display: block;
  font-size: 0.62rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tu-bar {
  height: 4px;
  background: #ECEAE3;
  margin-top: 0.4rem;
}

.tu-bar i {
  display: block;
  height: 4px;
  background: var(--toss-strong);
}

.tu-strip-cap {
  padding: 0.45rem 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.6rem;
  color: var(--text-secondary);
}

/* --- the side panel: quotes, and a state's topics --- */

.tu-side {
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow-y: auto;          /* Oct 18: a state's summary, topics and arguments can be taller than the panel; scroll inside it */
  overscroll-behavior: contain;
}
.tu-side > * { flex-shrink: 0; }
.tu-side .tu-feed { flex: 1 0 260px; }   /* the quotes always keep room of their own */

.tu-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.tu-side-head h2 {
  font-size: 0.8rem;
  font-weight: 600;
}

.tu-all {
  font: inherit;
  font-size: 0.68rem;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  min-height: 32px;
}

.tu-today {
  padding: 0.6rem 1rem 0;
}

.tu-today-date {
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.tu-today-line {
  margin-top: 0.25rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}

.tu-state-facts {
  margin-top: 2rem;
  max-width: 70ch;
}

.tu-state-facts h2 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tu-state-facts ul {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;      /* Oct 18: the bullet sat outside the text's left edge */
}

.tu-state-facts li, .tu-state-facts p {
  font-size: 0.8rem;
  color: var(--text-body);
  margin-bottom: 0.35rem;
}

.tu-state-nav {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.75rem;
}

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

.tu-topics {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.tu-topics h3 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.tu-topic {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.75rem;
  padding: 0.22rem 0;
}

.tu-topic b {
  flex: 1;
  font-weight: 500;
}

.tu-topic span {
  font-size: 0.65rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.tu-feed {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.tu-track.moving {
  animation: tu-scroll var(--dur, 40s) linear infinite;
}

.tu-feed:hover .tu-track,
.tu-feed:focus-within .tu-track {
  animation-play-state: paused;
}

@keyframes tu-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.tu-q {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.tu-q .who {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--toss-strong);
}

.tu-q blockquote {
  margin: 0.3rem 0;
  padding: 0.45rem 0.65rem;
  background: var(--quote-bg);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text);
}

.tu-q .meta {
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.tu-q .meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.tu-empty {
  padding: 1.2rem 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.tu-note {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* --- the teaser and sign-up --- */

.tu-teaser {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.8rem 2rem;
  background: var(--accent-light);
  border-top: 3px solid var(--accent);
}

.tu-teaser h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
}

.tu-teaser p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-body);
}

.tu-teaser ul {
  margin-top: 0.7rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-body);
}

.tu-more {
  font-size: 0.78rem !important;
}

.tu-more a {
  color: var(--accent);
  font-weight: 500;
}

.tu-opt {
  font-weight: 400;
  color: var(--text-secondary);
}

.tu-fine {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.tu-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-self: center;
}

.tu-form label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
}

.tu-form input,
.tu-form select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--text);
  min-height: 44px;
  margin-bottom: 0.4rem;
}

.tu-form .tu-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.tu-form button {
  margin-top: 0.3rem;
  min-height: 44px;
  cursor: pointer;
}

.tu-form-msg {
  min-height: 1.2em;
  font-size: 0.75rem;
  color: var(--text-body);
}

.tu-form-msg.bad {
  color: #A33A2A;
}

/* --- method and footer --- */

.tu-method {
  margin-top: 2.5rem;
  max-width: 70ch;
}

.tu-method h2 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tu-method p {
  font-size: 0.78rem;
  color: var(--text-body);
  margin-bottom: 0.6rem;
}

.tu-foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.tu-foot a {
  color: var(--text-secondary);
}

/* --- phones and tablets --- */

@media (max-width: 900px) {
  .tu { padding: 1rem 1rem 2.5rem; }
  .tu-head h1 { font-size: 1.6rem; }
  .tu-grid { grid-template-columns: minmax(0, 1fr); }
  .tu-side { height: 520px; }
  .tu-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tu-strip button:nth-child(5) { border-left: none; }
  .tu-strip button:nth-child(n+5) { border-top: 1px solid var(--border); }
  .tu-teaser { grid-template-columns: minmax(0, 1fr); padding: 1.4rem 1.2rem; }
  .tu-foot { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tu-track.moving { animation: none; }
  .tu-feed { overflow-y: auto; }
}

/* Oct 15: the arguments inside a topic, and the argument a quote makes */
.tu-arg {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-secondary);
  padding: 2px 0 6px 14px;
  border-left: 2px solid var(--border);
  margin: 0 0 4px 2px;
}
.tu-q .arg {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin: 2px 0 4px;
}
