
:root{
  --bg:#0a0d0c;
  --surface:#101412;
  --surface2:#151a17;
  --ink:#f0ede4;
  --soft:#c1c0b8;
  --muted:#7f8882;
  --line:#2a302c;
  --line2:#363e38;
  --green:#67d99a;
  --green-dim:#1e3b2d;
  --paper:#d7d1c2;
  --amber:#d3a660;
  --red:#df7d72;
  --blue:#89aeda;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
body{overflow-x:hidden}
a{color:inherit}

.bmc-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 14% 0%,rgba(103,217,154,.055),transparent 26%),
    linear-gradient(180deg,#0b0f0d 0%,#090c0b 100%);
}

.bmc-shell{
  width:min(1420px,calc(100% - 42px));
  margin:0 auto;
}

/* restrained editorial masthead */
.bmc-top{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.bmc-brand{
  font:700 10px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:#a9afa9;
}
.bmc-brand b{color:var(--green);font-weight:800}
.bmc-status{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font:600 9px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.1em;
  text-transform:uppercase
}
.bmc-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--green);
  box-shadow:0 0 12px rgba(103,217,154,.45)
}

/* more editorial, less dashboard */
.bmc-hero{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.55fr);
  gap:72px;
  padding:64px 0 50px;
  border-bottom:1px solid var(--line);
}
.bmc-kicker{
  font:700 10px ui-monospace,SFMono-Regular,Menlo,monospace;
  color:var(--green);
  letter-spacing:.17em;
  text-transform:uppercase
}
.bmc-hero h1{
  margin:16px 0 18px;
  max-width:900px;
  font:400 clamp(48px,6vw,84px)/.98 Georgia,"Times New Roman",serif;
  letter-spacing:-.055em;
}
.bmc-hero p{
  margin:0;
  max-width:810px;
  color:#aeb3ad;
  font-size:16px;
  line-height:1.72
}

/* next event is a margin note, not a card */
.bmc-next{
  align-self:end;
  padding:0 0 2px 28px;
  border-left:2px solid var(--green);
  background:transparent;
}
.bmc-next-label{
  color:var(--muted);
  font:700 9px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.15em;
  text-transform:uppercase
}
.bmc-next h2{
  margin:14px 0 9px;
  font:500 24px/1.25 Georgia,"Times New Roman",serif;
  letter-spacing:-.02em
}
.bmc-countdown{
  margin:18px 0 7px;
  color:var(--green);
  font:700 25px ui-monospace,SFMono-Regular,Menlo,monospace
}
.bmc-next-meta{
  color:var(--muted);
  font:10px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace
}

/* slim "ticker" instead of boxed stat grid */
.bmc-stats{
  display:flex;
  flex-wrap:wrap;
  gap:0;
  padding:17px 0;
  border-bottom:1px solid var(--line);
}
.bmc-stat{
  min-height:auto;
  padding:4px 28px 4px 0;
  margin-right:28px;
  border-right:1px solid var(--line);
}
.bmc-stat:last-child{border-right:0;margin-right:0}
.bmc-stat span{
  display:block;
  color:var(--muted);
  font:700 8px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.11em;
  text-transform:uppercase
}
.bmc-stat strong{
  display:block;
  margin-top:6px;
  font:600 19px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:-.03em
}

/* toolbar */
.bmc-controls{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  padding:24px 0 20px
}
.bmc-filter{
  appearance:none;
  border:0;
  border-bottom:1px solid transparent;
  background:transparent;
  color:#818a84;
  padding:8px 3px;
  margin-right:14px;
  cursor:pointer;
  font:700 9px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.1em;
  text-transform:uppercase
}
.bmc-filter:hover,.bmc-filter.active{
  color:var(--ink);
  border-bottom-color:var(--green)
}
.bmc-window{
  margin-left:auto;
  border:1px solid var(--line);
  background:#0d110f;
  color:#b6bbb5;
  padding:9px 11px;
  font:700 9px ui-monospace,SFMono-Regular,Menlo,monospace;
  text-transform:uppercase
}

/* agenda layout */
.bmc-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:54px;
  padding:6px 0 64px
}
.bmc-list{border-top:1px solid var(--line)}
.bmc-date{
  position:sticky;
  top:0;
  z-index:2;
  padding:18px 0 10px;
  background:linear-gradient(180deg,#0a0d0c 74%,rgba(10,13,12,.92));
  color:var(--paper);
  font:500 17px Georgia,"Times New Roman",serif;
  letter-spacing:-.01em;
  text-transform:none
}
.bmc-event{
  position:relative;
  display:grid;
  grid-template-columns:105px 112px minmax(0,1fr) 82px;
  gap:18px;
  align-items:start;
  padding:22px 0 23px;
  border-top:1px solid #202622
}
.bmc-event:before{
  content:"";
  position:absolute;
  left:-14px;
  top:29px;
  width:5px;height:5px;border-radius:50%;
  background:#465048
}
.bmc-event:hover:before{background:var(--green)}
.bmc-event-time{
  color:#dadbd4;
  font:700 11px ui-monospace,SFMono-Regular,Menlo,monospace
}
.bmc-event-time small{
  display:block;
  margin-top:7px;
  color:#717a74;
  font:9px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace
}
.bmc-cat{
  color:#8c958f;
  font:700 8px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.09em;
  text-transform:uppercase
}
.bmc-cat i{
  display:inline-block;
  width:5px;height:5px;border-radius:50%;
  margin-right:7px;
  background:var(--blue)
}
.bmc-cat[data-cat="Central Banks"] i{background:var(--green)}
.bmc-cat[data-cat="Inflation"] i{background:var(--red)}
.bmc-cat[data-cat="Labour"] i{background:var(--amber)}
.bmc-cat[data-cat="Treasury"] i{background:var(--blue)}
.bmc-event h3{
  margin:0 0 7px;
  font:500 18px/1.3 Georgia,"Times New Roman",serif;
  letter-spacing:-.018em
}
.bmc-why{
  margin:0;
  max-width:760px;
  color:#8f9892;
  font-size:12.5px;
  line-height:1.58
}
.bmc-source{
  display:inline-block;
  margin-top:10px;
  color:#74cda1;
  text-decoration:none;
  font:700 8px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.08em;
  text-transform:uppercase
}
.bmc-impact{
  justify-self:end;
  border:0;
  padding:0;
  color:#8c958f;
  font:800 8px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.08em;
  text-transform:uppercase
}
.bmc-impact.critical{color:#f09b91}
.bmc-impact.high{color:#dab271}

/* compact research-note sidebar */
.bmc-side{
  padding-left:28px;
  border-left:1px solid var(--line)
}
.bmc-side section{
  padding:22px 0 25px;
  border-top:1px solid var(--line)
}
.bmc-side h2{
  margin:0 0 16px;
  font:500 18px Georgia,"Times New Roman",serif
}
.bmc-side p{
  margin:0;
  color:#858e88;
  font-size:12px;
  line-height:1.65
}
.bmc-health-row{
  display:grid;
  grid-template-columns:9px 1fr auto;
  gap:9px;
  align-items:center;
  padding:9px 0;
  border-top:1px solid #1b211d;
  font-size:11px
}
.bmc-health-dot{
  width:5px;height:5px;border-radius:50%;
  background:#69716c
}
.bmc-health-dot.ok{background:var(--green)}
.bmc-health-dot.fallback,.bmc-health-dot.seed{background:var(--amber)}
.bmc-health-dot.error{background:var(--red)}
.bmc-health-row small{
  color:#6f7772;
  font:700 8px ui-monospace,SFMono-Regular,Menlo,monospace;
  text-transform:uppercase
}
.bmc-note{
  padding:0;
  border:0;
  background:transparent;
  color:#838b85;
  font-size:11.5px;
  line-height:1.65
}

/* editorial footnotes */
.bmc-explain{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  padding:48px 0 68px;
  border-top:1px solid var(--line)
}
.bmc-explain h2{
  margin:0 0 13px;
  font:500 22px Georgia,"Times New Roman",serif;
  letter-spacing:-.025em
}
.bmc-explain p{
  margin:0;
  color:#8c948e;
  font-size:13px;
  line-height:1.72
}
.bmc-empty{padding:35px 0;color:#808983}
.bmc-local{color:#707873}

@media(max-width:980px){
  .bmc-hero{grid-template-columns:1fr;gap:38px}
  .bmc-next{max-width:620px}
  .bmc-main{grid-template-columns:1fr}
  .bmc-side{padding-left:0;border-left:0;display:grid;grid-template-columns:1fr 1fr;gap:26px}
}
@media(max-width:720px){
  .bmc-shell{width:min(100% - 24px,1420px)}
  .bmc-hero{padding:45px 0 38px}
  .bmc-hero h1{font-size:clamp(44px,14vw,62px)}
  .bmc-stats{display:grid;grid-template-columns:1fr 1fr}
  .bmc-stat{margin:0;padding:9px 14px 9px 0;border-right:0;border-bottom:1px solid #1c221e}
  .bmc-window{margin-left:0}
  .bmc-event{grid-template-columns:1fr 74px;gap:10px;padding:19px 0}
  .bmc-event:before{display:none}
  .bmc-event-time,.bmc-cat{grid-column:1}
  .bmc-impact{grid-column:2;grid-row:1}
  .bmc-event>div:nth-child(3){grid-column:1/-1}
  .bmc-side{grid-template-columns:1fr}
  .bmc-explain{grid-template-columns:1fr;gap:32px}
}


/* =========================================================
   V2 — RATES DIARY identity
   More editorial / timetable-like, less generic dashboard.
   ========================================================= */

.bmc-market-rail{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-bottom:1px solid var(--line);
  border-top:1px solid var(--line);
  margin-top:-1px;
}
.bmc-market-rail span{
  position:relative;
  padding:15px 18px 14px 0;
  color:#9ba29c;
  font:700 9px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.bmc-market-rail span:not(:last-child){
  border-right:1px solid var(--line);
  margin-right:18px;
}
.bmc-market-rail b{
  display:inline-block;
  margin-right:9px;
  color:var(--green);
  font-weight:800;
  letter-spacing:.05em;
}

/* Hero gains a "printed market note" feeling */
.bmc-hero{
  position:relative;
}
.bmc-hero:after{
  content:"RATES / MACRO / FUNDING";
  position:absolute;
  right:0;
  top:22px;
  color:#333a35;
  font:800 9px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.25em;
  writing-mode:vertical-rl;
  text-orientation:mixed;
}
.bmc-hero h1{
  max-width:760px;
}
.bmc-next{
  position:relative;
}
.bmc-next:before{
  content:"";
  position:absolute;
  left:-7px;
  top:0;
  width:12px;
  height:12px;
  border:1px solid var(--green);
  border-radius:50%;
  background:var(--bg);
}

/* Stats now read as a restrained market strip */
.bmc-stats{
  background:
    linear-gradient(90deg,rgba(103,217,154,.025),transparent 28%),
    transparent;
}
.bmc-stat strong{
  font-family:Georgia,"Times New Roman",serif;
  font-size:22px;
  font-weight:500;
}

/* Distinctive agenda: left timeline + event "index number" */
.bmc-list{
  counter-reset:eventrow;
  border-top:0;
  position:relative;
}
.bmc-list:before{
  content:"";
  position:absolute;
  left:96px;
  top:0;
  bottom:0;
  width:1px;
  background:#202823;
}
.bmc-date{
  margin-top:10px;
  padding:24px 0 12px 116px;
  background:var(--bg);
  color:#d8d4c8;
  font:500 19px Georgia,"Times New Roman",serif;
}
.bmc-date:before{
  content:"";
  position:absolute;
  left:91px;
  top:31px;
  width:11px;
  height:11px;
  border-radius:50%;
  border:1px solid #59625b;
  background:var(--bg);
}
.bmc-event{
  counter-increment:eventrow;
  grid-template-columns:78px 112px minmax(0,1fr) 82px;
  padding-left:116px;
  min-height:104px;
}
.bmc-event:before{
  content:counter(eventrow, decimal-leading-zero);
  left:0;
  top:23px;
  width:auto;
  height:auto;
  border-radius:0;
  background:transparent;
  color:#4d5650;
  font:800 9px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.08em;
}
.bmc-event:after{
  content:"";
  position:absolute;
  left:92px;
  top:28px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#2f3832;
  border:2px solid var(--bg);
  box-shadow:0 0 0 1px #59625b;
}
.bmc-event:hover:after{
  background:var(--green);
  box-shadow:0 0 0 1px var(--green);
}
.bmc-event:hover{
  background:linear-gradient(90deg,transparent 0,rgba(103,217,154,.025) 20%,transparent 72%);
}
.bmc-event h3{
  font-size:19px;
}
.bmc-impact{
  min-width:58px;
  text-align:right;
}

/* Category labels become narrow editorial marks, not dashboard chips */
.bmc-cat{
  line-height:1.6;
}
.bmc-cat i{
  border-radius:0;
  width:8px;
  height:2px;
  vertical-align:middle;
}

/* Sidebar gets a research-note margin treatment */
.bmc-side{
  position:relative;
}
.bmc-side:before{
  content:"RESEARCH MARGIN";
  display:block;
  margin:0 0 16px;
  color:#525b55;
  font:800 8px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.18em;
}
.bmc-side h2{
  font-size:17px;
}
.bmc-health-row{
  grid-template-columns:7px 1fr auto;
}
.bmc-health-dot{
  width:4px;
  height:12px;
  border-radius:0;
}

/* Footer explanation is deliberately typographic rather than card-like */
.bmc-explain{
  position:relative;
}
.bmc-explain:before{
  content:"METHOD";
  position:absolute;
  top:18px;
  left:0;
  color:#4e5751;
  font:800 8px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.18em;
}
.bmc-explain>div{
  padding-top:14px;
}

@media(max-width:900px){
  .bmc-market-rail{grid-template-columns:1fr 1fr}
  .bmc-market-rail span:nth-child(2){border-right:0}
  .bmc-list:before{left:70px}
  .bmc-date{padding-left:88px}
  .bmc-date:before{left:65px}
  .bmc-event{
    padding-left:88px;
    grid-template-columns:72px 100px minmax(0,1fr) 72px;
  }
  .bmc-event:after{left:66px}
}
@media(max-width:720px){
  .bmc-market-rail{grid-template-columns:1fr 1fr}
  .bmc-market-rail span{padding:12px 8px 12px 0}
  .bmc-list:before{display:none}
  .bmc-date{
    padding-left:0;
    position:relative;
  }
  .bmc-date:before{display:none}
  .bmc-event{
    padding-left:0;
    grid-template-columns:1fr 70px;
  }
  .bmc-event:before,
  .bmc-event:after{display:none}
  .bmc-hero:after{display:none}
}
