/* ===========================================================================
   Redding Rundown — newsletter issue + hub styles
   Ported from the approved prototype: harness/rundown/prototype-structure.html

   The prototype declared its own private palette. Every one of those values is
   already a design-system token, so this file maps them instead of restating
   hex (harness/spec.md §A: tokens only, no raw hex):

     --cream    #faf9f5  ->  --color-light
     --ink      #141413  ->  --color-dark
     --ink-2    #4a4a48  ->  --color-text-secondary
     --muted    #6b665d  ->  --color-text-muted
     --coral    #d97757  ->  --color-accent-primary   (chips, buttons)
     --coral-ink #a64f33 ->  --color-accent-link      (text links — see below)
     --blue     #6a9bcc  ->  --color-accent-secondary
     --green    #788c5d  ->  --color-accent-tertiary  (source links)
     --border   #d4d2c8  ->  --color-border

   Accent split is deliberate and matches the site rule: coral FILLS stay coral,
   small text links use the darker #a64f33 for contrast.

   Dark mode from the prototype is intentionally NOT ported — the artifact had
   it because artifacts are theme-aware; reddinghomepro.com is light-only, and
   a half-supported dark mode on one page would be worse than none.
   =========================================================================== */

.rundown {
  --rd-card: #ffffff;
  --rd-cream-2: #f5f4f0;
  --rd-border-lt: #e8e6dc;
  /* Small-text link accent. design-system.css has NO token for this — it
     repeats the literal in 8 places with the same WCAG note (brand coral
     #d97757 is 2.8:1 on cream; #a64f33 is 5.3:1). Scoped here rather than
     inventing a site-wide token as a side effect of this feature. */
  --rd-accent-link: #a64f33;
  --rd-shadow:
    0 1px 2px rgba(20, 20, 19, 0.05), 0 8px 24px rgba(20, 20, 19, 0.06);

  background: var(--color-light);
  color: var(--color-dark);
  font-family: var(--font-body);
  line-height: 1.65;
  /* Top padding clears the position:fixed .nav — the site has no global body
     padding for it, so each page's own top-level wrapper provides clearance
     (same as listings.css). Without this the fixed nav sits on top of the
     first 4.5rem of the page, which hid the sample banner entirely. */
  padding: var(--nav-height, 4.5rem) 1.1rem var(--space-12);
}

/* A newsletter measure, not a page measure — 640px is from the prototype. */
.rundown__wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* Sample banner — ONLY on preview issues (issue.isSample). Never on a real send. */
.rundown__sample {
  background: var(--color-dark);
  color: var(--color-light);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 1rem;
  margin: 0 -1.1rem;
}
.rundown__sample span {
  color: var(--color-accent-primary);
}

/* ---- Masthead ---------------------------------------------------------- */

.rundown__masthead {
  text-align: center;
  padding: 0 0 1.2rem;
  border-bottom: 2px solid var(--color-dark);
}

.rundown__hero {
  position: relative;
  margin: 0 -1.1rem 1.2rem;
  min-height: clamp(220px, 46vw, 300px);
  background-size: cover;
  background-position: center 60%;
  display: flex;
  align-items: flex-end;
}

.rundown__hero-inner {
  width: 100%;
  padding: 1.5rem 1.4rem 1.6rem;
}

.rundown__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f3b79b;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.rundown__title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  line-height: 1;
  margin: 0;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.rundown__tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: rgba(255, 255, 255, 0.94);
  margin: 0.7rem 0 0;
  font-size: 1.02rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.rundown__meta {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.rundown__meta b {
  color: var(--color-dark);
  font-weight: 600;
}

.rundown__intro {
  font-size: 1.06rem;
  color: var(--color-text-secondary);
  margin: 1.8rem 0 0.5rem;
}
.rundown__intro .rundown__name {
  color: var(--rd-accent-link);
  font-style: italic;
}

/* ---- Sections ---------------------------------------------------------- */

.rundown__section {
  margin-top: 2.6rem;
}

.rundown__sec-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.rundown__sec-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--rd-card);
  background: var(--color-accent-primary);
  border-radius: 5px;
  padding: 0.12rem 0.42rem;
}

.rundown__sec-head h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-dark);
}

.rundown__sec-sub {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-left: auto;
  letter-spacing: 0.02em;
}

/* ---- Event rows -------------------------------------------------------- */

.rundown__event {
  display: grid;
  grid-template-columns: 50px 1fr 96px;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rd-border-lt);
}
/* No photo — the row collapses to two columns rather than leaving a hole. */
.rundown__event--nophoto {
  grid-template-columns: 50px 1fr;
}
.rundown__event:last-child {
  border-bottom: 0;
}

.rundown__datechip {
  background: var(--rd-cream-2);
  border: 1px solid var(--color-border);
  border-radius: 9px;
  text-align: center;
  padding: 0.35rem 0 0.3rem;
}
.rundown__datechip .rundown__mo {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rd-accent-link);
  display: block;
}
.rundown__datechip .rundown__dy {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.rundown__ev-body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--color-dark);
}
.rundown__ev-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}
.rundown__when {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.3rem;
}

.rundown__thumb {
  width: 96px;
  height: 76px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--color-border);
  display: block;
}

/* Source link — green, on every item. The newsletter's core promise. */
.rundown__src {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-accent-tertiary);
  text-decoration: none;
  margin-top: 0.35rem;
}

/* ---- Get Outside feature card ------------------------------------------ */

.rundown__feature {
  background: var(--rd-card);
  border: 1px solid var(--color-border);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--rd-shadow);
}
.rundown__feature-photo {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.rundown__feature-body {
  padding: 1.2rem 1.4rem 1.35rem;
}
.rundown__feature-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent-tertiary);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  margin-bottom: 0.6rem;
}
.rundown__feature h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-dark);
}
.rundown__feature p {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.rundown__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--rd-accent-link);
  text-decoration: none;
}

/* ---- Good to Know ------------------------------------------------------ */

.rundown__gtk {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rundown__gtk li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rd-border-lt);
  font-size: 0.98rem;
  color: var(--color-text-secondary);
}
.rundown__gtk li:last-child {
  border-bottom: 0;
}
.rundown__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-secondary);
  margin-top: 0.5rem;
}
.rundown__gtk b {
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}
.rundown__gtk .rundown__src {
  margin-top: 0.25rem;
}

/* ---- Market Minute ----------------------------------------------------- */

.rundown__market {
  background: var(--color-dark);
  color: var(--color-light);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.35rem;
  margin-top: 2.6rem;
}
.rundown__market-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin: 0 0 0.6rem;
}
.rundown__market p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
/* Coral fill on dark — .btn--secondary is invisible here (known site rule). */
.rundown__market .rundown__btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--color-accent-primary);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
}

/* ---- Sign-off ---------------------------------------------------------- */

.rundown__signoff-wrap {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--color-dark);
  text-align: center;
}
.rundown__signoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.rundown__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent-primary);
  display: block;
}
.rundown__who {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.rundown__who b {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-size: 0.98rem;
}
.rundown__who .rundown__role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}
.rundown__who a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--rd-accent-link);
  text-decoration: none;
}
.rundown__fine {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}
.rundown__fine a {
  color: var(--rd-accent-link);
  text-decoration: none;
}

/* ---- Hub --------------------------------------------------------------- */

.rundown__hub-head {
  text-align: center;
  padding: var(--space-10) 0 var(--space-6);
}
.rundown__hub-head h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 0 0 var(--space-3);
  color: var(--color-dark);
}
.rundown__hub-head p {
  color: var(--color-text-secondary);
  max-width: 34rem;
  margin: 0 auto;
}

.rundown__archive {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0 0;
}
.rundown__archive li {
  border-bottom: 1px solid var(--rd-border-lt);
}
.rundown__archive li:last-child {
  border-bottom: 0;
}
.rundown__archive a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) 0;
  text-decoration: none;
  color: var(--color-dark);
}
.rundown__archive-title {
  font-family: var(--font-heading);
  font-weight: 600;
}
.rundown__archive-date {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.rundown__empty {
  color: var(--color-text-muted);
  font-style: italic;
}
