/* Weekly / monthly roundup pages (handleRoundup in _worker.js). Spec-grid look: paper, 1px ink boxes,
   square corners, no shadows, Inter with tabular figures, Dropbox blue for actions only. All classes rd-. */
.rd { --ink:#0f1923; --paper:#f5f4f1; --rule:#d9dce1; --mute:#6b7280; --body:#374151; --blue:#0061fe; --blue-d:#0050d0; --b50:#f2f7ff; --b100:#dbe8ff; --b300:#5c9dff;
  font-family: Inter, system-ui, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; background: var(--paper); }
.rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
.rd a { color: inherit; }
.rd-wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.rd-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* hero */
.rd-hero { background: #fff; border-bottom: 1px solid var(--ink); padding-block: 26px 28px; }
.rd-crumb { display: flex; gap: 8px; font-size: 12px; color: var(--mute); margin-bottom: 18px; }
.rd-crumb a { text-decoration: none; } .rd-crumb a:hover { color: var(--blue); } .rd-crumb b { color: var(--ink); font-weight: 600; }
.rd-switch { display: inline-flex; border: 1px solid var(--ink); margin-bottom: 18px; }
.rd-switch a { padding: 7px 14px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--body); }
.rd-switch a + a { border-left: 1px solid var(--ink); }
.rd-switch a.on { background: var(--ink); color: #fff; }
.rd-switch a:not(.on):hover { background: var(--b50); color: var(--ink); }
.rd-hero h1 { margin: 0; font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.rd-period { margin: 10px 0 0; font-size: 18px; font-weight: 600; color: var(--body); }
.rd-note { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--mute); }
.rd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 13px; color: var(--mute); }
.rd-meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--rule); margin-right: 18px; vertical-align: middle; }
.rd-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.rd-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid var(--blue); border-radius: 999px; background: var(--blue); color: #fff !important; font: 600 14px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.rd-btn:hover { background: var(--blue-d); border-color: var(--blue-d); }
.rd-btn-line { background: #fff; color: var(--ink) !important; border-color: var(--ink); }
.rd-btn-line:hover { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.rd-cv { display: inline-flex; } .rd-cv i { width: 7px; height: 7px; margin-left: -1px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); opacity: .25; animation: rd-cv 1.2s ease-in-out infinite; }
.rd-cv i:nth-child(2) { animation-delay: .15s; } .rd-cv i:nth-child(3) { animation-delay: .3s; }
@keyframes rd-cv { 40% { opacity: 1; } }

/* jump links */
.rd-jump { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.rd-jump::-webkit-scrollbar { display: none; }
.rd-jump a { flex: none; padding: 6px 12px; border: 1px solid var(--rule); background: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--body); }
.rd-jump a:hover { border-color: var(--ink); color: var(--ink); }

.rd-main { display: flex; flex-direction: column; gap: 28px; padding-block: 28px 56px; }
.rd-sec { background: #fff; border: 1px solid var(--ink); padding: 22px 24px; min-width: 0; scroll-margin-top: 90px; }
.rd-sh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 16px; }
.rd-sh h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.rd-sh p { margin: 0; font-size: 13px; color: var(--mute); }
.rd-st { display: inline-block; padding: 2px 7px; background: var(--b50); color: var(--blue) !important; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
a.rd-st:hover { background: var(--b100); }

/* 60 seconds */
.rd-sum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rd-sum li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--rule); }
.rd-sum li:first-child { border-top: 0; padding-top: 0; }
.rd-sum li > a:last-child { font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.rd-sum li > a:last-child:hover { color: var(--blue); }
.rd-sum .rd-st { justify-self: start; }

/* numbers */
.rd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1px solid var(--ink); background: #fff; }
.rd-tile { padding: 18px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -1px -1px 0; min-width: 0; }
.rd-k { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.rd-v { margin: 6px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.rd-s { margin: 0; font-size: 12.5px; color: var(--mute); line-height: 1.45; }
.rd-s a { text-decoration: none; color: var(--body); } .rd-s a:hover { color: var(--blue); }
.rd-d { font-weight: 700; } .rd-d.up { color: #0a7d4f; } .rd-d.down { color: #c62828; }

/* top stories */
.rd-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; }
.rd-lead { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.rd-lead img, .rd-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--ink); background: var(--paper); }
.rd-lead h3 { margin: 8px 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.rd-lead p { margin: 0; font-size: 13px; color: var(--mute); }
.rd-lead:hover h3 { color: var(--blue); }
.rd-more { list-style: none; margin: 0; padding: 0; counter-reset: rd; }
.rd-more li { border-top: 1px solid var(--rule); } .rd-more li:first-child { border-top: 0; }
.rd-more a { display: grid; gap: 5px; padding: 12px 0; text-decoration: none; }
.rd-more li:first-child a { padding-top: 0; }
.rd-more .rd-st { justify-self: start; }
.rd-more b { font-size: 15px; font-weight: 600; line-height: 1.4; } .rd-more a:hover b { color: var(--blue); }
.rd-more small { font-size: 12px; color: var(--mute); }

/* pipeline */
.rd-pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--rule); }
.rd-pgrid div { padding: 14px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -1px -1px 0; }
.rd-pgrid b { display: block; font-size: 24px; font-weight: 800; } .rd-pgrid span { font-size: 12.5px; color: var(--mute); }
.rd-lock { position: relative; margin-top: 14px; border: 1px dashed var(--b300); background: var(--b50); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: center; }
.rd-lock-rows { display: grid; gap: 9px; } .rd-lock-rows i { height: 12px; background: linear-gradient(90deg, #c9d8f5, #e6eefc); filter: blur(1.5px); }
.rd-lock-rows i:nth-child(2) { width: 82%; } .rd-lock-rows i:nth-child(3) { width: 64%; }
.rd-lock-cta b { font-size: 16px; } .rd-lock-cta p { margin: 4px 0 12px; font-size: 13px; color: var(--body); }

/* all developments */
.rd-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.rd-filters button { padding: 7px 11px; border: 1px solid var(--rule); background: #fff; font: 600 12.5px Inter, system-ui, sans-serif; color: var(--body); cursor: pointer; }
.rd-filters button i { font-style: normal; color: var(--mute); font-weight: 500; margin-left: 2px; }
.rd-filters button:hover { border-color: var(--ink); }
.rd-filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; } .rd-filters button.on i { color: #c9ccd2; }
.rd-sel { margin-left: auto; }
.rd-sel select { height: 34px; padding: 0 30px 0 10px; border: 1px solid var(--ink); background: #fff; font: 500 13px Inter, system-ui, sans-serif; color: var(--ink); }
.rd-tw { overflow-x: auto; border: 1px solid var(--ink); }
.rd-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.rd-tbl th { position: sticky; top: 0; background: var(--paper); text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.rd-tbl th button { all: unset; cursor: pointer; } .rd-tbl th button::after { content: " \2195"; opacity: .45; }
.rd-tbl th button[data-dir="asc"]::after { content: " \2191"; opacity: 1; } .rd-tbl th button[data-dir="desc"]::after { content: " \2193"; opacity: 1; }
.rd-tbl td { padding: 11px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
.rd-tbl tr:first-child td { border-top: 0; }
.rd-tbl tbody tr:hover td { background: var(--b50); }
.rd-date { color: var(--mute); white-space: nowrap; }
.rd-hl a { display: block; font-weight: 600; line-height: 1.4; text-decoration: none; } .rd-hl a:hover { color: var(--blue); }
.rd-tg { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 600; color: var(--mute); }
.rd-num { text-align: right !important; white-space: nowrap; font-weight: 600; }
.rd-tbl tr[hidden] { display: none; }
.rd-fine { margin: 10px 0 0; font-size: 12px; color: var(--mute); }

/* states + names */
.rd-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.rd-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rd-bars li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 13.5px; }
.rd-bars a { text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rd-bars a:hover { color: var(--blue); }
.rd-bar { height: 10px; background: var(--paper); } .rd-bar i { display: block; height: 100%; background: var(--blue); }
.rd-bars b { text-align: right; }
.rd-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rd-names li { padding: 6px 10px; border: 1px solid var(--rule); font-size: 13px; font-weight: 600; }
.rd-names i { font-style: normal; color: var(--mute); font-weight: 500; margin-left: 3px; }

/* lists: policy, earlier */
.rd-list { list-style: none; margin: 0; padding: 0; }
.rd-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--rule); }
.rd-list li:first-child { border-top: 0; }
.rd-list .rd-st { justify-self: start; }
.rd-list a:not(.rd-st) { font-weight: 600; line-height: 1.4; text-decoration: none; } .rd-list a:not(.rd-st):hover { color: var(--blue); }
.rd-list small { font-size: 12px; color: var(--mute); white-space: nowrap; }
.rd-ea { border-top: 1px solid var(--rule); } .rd-ea:first-of-type { border-top: 0; }
.rd-ea summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 15px; }
.rd-ea summary::-webkit-details-marker { display: none; }
.rd-ea summary::before { content: "+"; width: 18px; font-weight: 700; color: var(--blue); }
.rd-ea[open] summary::before { content: "\2212"; }
.rd-ea summary b { flex: 1; } .rd-ea summary span { color: var(--mute); font-size: 13px; }
.rd-ea .rd-list { padding-bottom: 10px; }

/* closing band */
.rd-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; background: #fff; border: 1px solid var(--ink); border-top: 4px solid var(--blue); }
.rd-band h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .rd-band p { margin: 6px 0 0; font-size: 14px; color: var(--body); }
.rd-band .rd-acts { margin: 0; }

.rd a:focus-visible, .rd button:focus-visible, .rd select:focus-visible, .rd summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 860px) {
  .rd-top, .rd-two { grid-template-columns: 1fr; }
  .rd-lock { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rd-sec { padding: 18px 16px; }
  .rd-sum li, .rd-list li { grid-template-columns: 1fr; gap: 6px; }
  .rd-list small { white-space: normal; }
  .rd-sel { margin-left: 0; width: 100%; } .rd-sel select { width: 100%; }
  .rd-bars li { grid-template-columns: 100px minmax(0, 1fr) 26px; }
  .rd-v { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .rd-cv i { animation: none; opacity: 1; } }
