/* Briefing archive pages — /briefings/<date>/<slug>, /briefings/<date>,
   /briefings/<month>. Generated by scripts/briefings_render.py.

   The entry bodies come from the email pipeline and carry their own inline
   styles (they have to: email clients ignore stylesheets). This file does not
   fight them — it sets the page furniture around the prose and only reaches
   inside far enough to stop email-width tables blowing out the column on a
   phone. Anything that looks off inside .be-body is coming from the email
   template, not from here. */

.be-wrap {
  max-width: 820px;          /* a reading measure, unlike the data pages */
  margin: 0 auto;
  padding: 8px 4px 56px;
}

/* ── breadcrumbs ─────────────────────────────────────────────────────────── */
.be-crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 0.8rem; color: #8794a4; margin: 12px 0 14px;
}
.be-crumbs a { color: #667889; text-decoration: none; }
.be-crumbs a:hover { color: var(--pt-orange, #fd7e14); text-decoration: underline; }
.be-crumbs .bi { font-size: 0.62rem; opacity: 0.55; }
.be-crumbs span[aria-current] { color: var(--pt-navy, #0a2540); font-weight: 600; }

/* ── article head ────────────────────────────────────────────────────────── */
.be-kicker {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--pt-orange, #fd7e14); margin: 0 0 6px;
}
.be-head h1 {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--pt-navy, #0a2540); margin: 0 0 10px;
}
.be-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 0.85rem; color: #667889; margin: 0 0 14px;
}
.be-meta .sep { color: #c9d3de; }
.be-byline a { color: var(--pt-navy, #0a2540); font-weight: 600; text-decoration: none; }
.be-byline a:hover { text-decoration: underline; }
.be-standfirst {
  font-size: 1.02rem; line-height: 1.6; color: #384552; margin: 0 0 22px;
  padding-left: 14px; border-left: 3px solid var(--pt-orange, #fd7e14);
}

/* ── the briefing body ───────────────────────────────────────────────────── */
.be-body { font-size: 0.98rem; line-height: 1.62; color: #23303d; }
.be-body p { margin: 0 0 14px; }
.be-body h2, .be-body h3 {
  font-weight: 800; color: var(--pt-navy, #0a2540); margin: 26px 0 10px;
  letter-spacing: -0.01em;
}
.be-body h2 { font-size: 1.2rem; }
.be-body h3 { font-size: 1.03rem; }
.be-body ul, .be-body ol { margin: 0 0 14px; padding-left: 22px; }
.be-body li { margin-bottom: 6px; }
.be-body a { color: var(--pt-navy, #0a2540); }
.be-body img { max-width: 100%; height: auto; }
.be-body strong { color: #16222e; }

/* Email tables are built at a fixed pixel width. Let them scroll inside their
   own box rather than widening the page — the alternative is a horizontal
   scrollbar on the whole document on every phone. */
.be-body table {
  width: 100% !important; max-width: 100% !important;
  border-collapse: collapse; margin: 0 0 18px; font-size: 0.88rem;
  display: block; overflow-x: auto; white-space: nowrap;
}
.be-body thead th {
  background: var(--pt-navy, #0a2540) !important; color: #fff !important;
  font-weight: 700; text-align: left; padding: 7px 10px !important;
  font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase;
}
.be-body tbody td { padding: 7px 10px !important; border-bottom: 1px solid #eef1f5; }
.be-body tbody tr:nth-child(even) { background: #fafbfc; }

/* ── article footer ──────────────────────────────────────────────────────── */
.be-foot { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--pt-line, #e5e7eb); }
.be-foot-note, .be-cite { font-size: 0.83rem; line-height: 1.6; color: #667889; margin: 0 0 8px; }
.be-cite { color: #8794a4; word-break: break-word; }
.be-cite strong { color: #55606c; }
.be-foot a { color: var(--pt-navy, #0a2540); font-weight: 600; text-decoration: none; }
.be-foot a:hover { text-decoration: underline; }
.be-accent { color: var(--pt-orange, #fd7e14); }

/* ── prev / next ─────────────────────────────────────────────────────────── */
.be-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 18px; }
.be-nav-link {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px;
  border: 1px solid var(--pt-line, #e5e7eb); border-radius: 10px;
  background: #fff; text-decoration: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.be-nav-link:hover { border-color: #c9d3de; box-shadow: 0 2px 10px rgba(18, 54, 92, 0.07); }
.be-nav-link[rel="next"] { text-align: right; }
.be-nav-link .dir {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--pt-orange, #fd7e14);
}
.be-nav-link .ttl { font-size: 0.92rem; font-weight: 700; color: var(--pt-navy, #0a2540); }
.be-nav-link .dt { font-size: 0.78rem; color: #8794a4; }

.be-pager-days { display: flex; justify-content: space-between; gap: 12px; }
.be-pager-days a {
  font-size: 0.86rem; font-weight: 600; color: var(--pt-navy, #0a2540);
  text-decoration: none; padding: 8px 12px;
  border: 1px solid var(--pt-line, #e5e7eb); border-radius: 8px; background: #fff;
}
.be-pager-days a:hover { border-color: var(--pt-orange, #fd7e14); color: var(--pt-orange, #fd7e14); }

.be-back { font-size: 0.85rem; color: #8794a4; margin: 0; }
.be-back a { color: var(--pt-navy, #0a2540); font-weight: 600; text-decoration: none; }
.be-back a:hover { text-decoration: underline; }
.be-back .sep { margin: 0 4px; color: #c9d3de; }

/* ── day / month listings ────────────────────────────────────────────────── */
.be-list { list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-direction: column; gap: 10px; }
.be-card-link {
  display: flex; flex-direction: column; gap: 3px; padding: 13px 15px;
  border: 1px solid var(--pt-line, #e5e7eb); border-radius: 10px;
  background: #fff; text-decoration: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.be-card-link:hover { border-color: #c9d3de; box-shadow: 0 2px 10px rgba(18, 54, 92, 0.07); }
.be-card-time {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--pt-orange, #fd7e14);
}
.be-card-title { font-size: 1rem; font-weight: 700; color: var(--pt-navy, #0a2540); }
.be-card-sum { font-size: 0.86rem; line-height: 1.55; color: #667889; }

.be-daygroup { margin: 0 0 8px; }
.be-dayhead { font-size: 1.05rem; font-weight: 800; margin: 20px 0 10px;
  color: var(--pt-navy, #0a2540); }
.be-dayhead a { color: inherit; text-decoration: none; }
.be-dayhead a:hover { color: var(--pt-orange, #fd7e14); }

@media (max-width: 640px) {
  .be-head h1 { font-size: 1.45rem; }
  .be-pager { grid-template-columns: 1fr; }
  .be-nav-link[rel="next"] { text-align: left; }
  .be-wrap { padding: 8px 2px 44px; }
}

/* ── the archive block SSI-included into /briefings ──────────────────────── */
.bf-archive { margin: 34px 0 0; padding-top: 22px;
  border-top: 1px solid var(--pt-line, #e5e7eb); }
.bf-archive h2 { font-size: 1.15rem; font-weight: 800; color: var(--pt-navy, #0a2540);
  margin: 0 0 6px; }
.bf-arc-sub { font-size: 0.86rem; color: #667889; margin: 0 0 14px; }
.bf-arc-list { list-style: none; margin: 0 0 16px; padding: 0; }
.bf-arc-day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  padding: 7px 0; border-bottom: 1px solid #f1f4f7; }
.bf-arc-date { flex: 0 0 140px; font-size: 0.84rem; font-weight: 700;
  color: var(--pt-navy, #0a2540); text-decoration: none; }
.bf-arc-date:hover { color: var(--pt-orange, #fd7e14); }
.bf-arc-entries { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.bf-arc-entry { font-size: 0.8rem; color: #667889; text-decoration: none;
  padding: 2px 8px; border: 1px solid var(--pt-line, #e5e7eb); border-radius: 999px;
  background: #fff; white-space: nowrap; }
.bf-arc-entry:hover { border-color: var(--pt-orange, #fd7e14); color: var(--pt-orange, #fd7e14); }
.bf-arc-months { font-size: 0.84rem; margin: 0 0 10px; display: flex;
  flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.bf-arc-months .lbl { font-weight: 700; color: var(--pt-navy, #0a2540); }
.bf-arc-month { color: #667889; text-decoration: none; }
.bf-arc-month:hover { color: var(--pt-orange, #fd7e14); text-decoration: underline; }
.bf-arc-feed { font-size: 0.84rem; margin: 0; }
.bf-arc-feed a { color: var(--pt-navy, #0a2540); font-weight: 600; text-decoration: none; }
.bf-arc-feed a:hover { color: var(--pt-orange, #fd7e14); }

@media (max-width: 640px) {
  .bf-arc-date { flex: 0 0 100%; }
}
