/* Market Pulse homepage (prototype). Uses the site's existing "Signal Room" variables. */
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0 1.6rem;
}
@media (max-width: 820px) { .pulse-grid { grid-template-columns: 1fr; } }

.pulse-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem 1rem;
  min-width: 0;
}
.pulse-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.pulse-head h2 { margin: 0; font-size: 1.15rem; }
.pulse-tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 999px; white-space: nowrap;
}
.pulse-tag.live { background: rgba(46,204,113,.16); color: #4ADE80; }
.pulse-tag.est  { background: rgba(245,194,66,.16); color: #F5C242; }
.pulse-tag.thin { background: rgba(245,194,66,.16); color: #F5C242; }
.pulse-tag.none { background: rgba(124,147,179,.18); color: var(--muted); }
.pulse-sub { color: var(--muted); margin: -.2rem 0 .8rem; font-size: .9rem; }

.pulse-kpis { display: flex; gap: 1.6rem; margin-bottom: .9rem; }
.pulse-kpis div { display: flex; flex-direction: column; }
.pulse-kpis b { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; line-height: 1.1; }
.pulse-kpis span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }

.pulse-note { color: var(--muted); font-size: .78rem; line-height: 1.45; margin: .8rem 0 0; }
.pulse-note.gap { color: #F5C242; }

/* quarter bar chart */
.bars { display: flex; align-items: flex-end; gap: .35rem; height: 170px; padding-top: 1rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bar { width: 100%; background: linear-gradient(180deg, #3FA9E0, #1E6FA8); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-val { font-size: .62rem; color: var(--muted); height: 1rem; }
.bar-label { font-size: .58rem; color: var(--muted); margin-top: .3rem; white-space: nowrap; }

/* deal lists */
.deal-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.deal-list li { border-top: 1px solid var(--border); }
.deal-list li:first-child { border-top: none; }
.deal-list a { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem 0; text-decoration: none; color: var(--text); }
.deal-list a:hover .dl-name { color: var(--accent); }
.dl-name { font-weight: 600; font-size: .9rem; min-width: 0; }
.dl-meta { color: var(--muted); font-size: .78rem; white-space: nowrap; text-align: right; }

/* empty state */
.empty-state { border: 1.5px dashed var(--border); border-radius: 8px; padding: 1.6rem 1rem; text-align: center; color: var(--muted); }
.empty-state p { margin: .35rem 0; font-size: .9rem; }
.empty-state b { color: var(--text); }
.empty-icon { font-size: 2rem; color: var(--border); }

/* overseas investment split + region bars */
.split { display: flex; height: 2.1rem; border-radius: 6px; overflow: hidden; margin: .2rem 0 .5rem; }
.split-seg { display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: #0C1524; min-width: 0; }
.seg-au { background: #2ECC71; }
.seg-foreign { background: #3FA9E0; }
.seg-mixed { background: #B79AE0; }
.split-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .75rem; color: var(--muted); margin-bottom: .8rem; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; }
.dot-au { background: #2ECC71; } .dot-foreign { background: #3FA9E0; } .dot-mixed { background: #B79AE0; }

.hbars { display: flex; flex-direction: column; gap: .45rem; }
.hbar-row { display: grid; grid-template-columns: 8.5rem 1fr auto; align-items: center; gap: .6rem; font-size: .82rem; }
.hbar-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { background: rgba(255,255,255,.06); border-radius: 4px; height: .7rem; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: #3FA9E0; border-radius: 4px; }
.hbar-fill.sector { background: #F5C242; }
.hbar-val { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.hbar-val em { font-style: normal; opacity: .7; }
.pulse-card .deal-list { margin-top: .9rem; }

.pulse-footnote { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 2rem; color: var(--muted); font-size: .85rem; }
.pulse-footnote h3 { margin: 0 0 .4rem; font-family: Georgia, serif; color: var(--heading); font-size: 1rem; }
.pulse-footnote ul { margin: 0; padding-left: 1.1rem; line-height: 1.55; }
.pulse-footnote b { color: var(--text); }

/* year picker + yearly views */
.year-bar { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin: 1rem 0 -.4rem; }
.year-bar label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.year-bar select {
  -webkit-appearance: none; appearance: none;
  background-color: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem 2.5rem .45rem 1rem; font-size: .95rem; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%237C93B3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px;
}
.year-view[hidden] { display: none; }
.yr-badge { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-size: .5em; vertical-align: middle;
  background: rgba(63,169,224,.18); color: #7FC7EA; border-radius: 999px; padding: .15em .65em; margin-left: .4rem; font-weight: 700; }

/* every deal in the selected year */
.all-deals { margin: .4rem 0 1.6rem; }
.all-deals h2 { margin: 0 0 .2rem; }
.all-deals .count, .scanner-box .count { color: var(--muted); font-size: .8em; font-family: -apple-system, sans-serif; font-weight: 500; }
.deal-rows { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: .7rem; background: var(--panel); }
.deal-row {
  display: grid; grid-template-columns: 5.6rem 3.4rem minmax(0, 1fr) 9rem 5.6rem 5.6rem; align-items: center; gap: .7rem;
  padding: .6rem .9rem; border-top: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: .86rem;
}
.deal-row:first-child { border-top: none; }
a.deal-row:hover { background: rgba(63,169,224,.08); }
.dr-date { color: var(--muted); font-size: .78rem; }
.dr-name { font-weight: 600; min-width: 0; }
.dr-sector { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-value { text-align: right; font-weight: 600; white-space: nowrap; }
@media (max-width: 820px) {
  .deal-row { grid-template-columns: 4.8rem minmax(0, 1fr) auto; }
  .deal-row .deal-type-badge, .deal-row .dr-sector, .deal-row .deal-card-status { display: none; }
}

/* scanner candidates (kept visibly separate from verified deals) */
.scanner-box { border: 1.5px dashed var(--border); border-radius: 10px; padding: .8rem 1.1rem 1rem; margin-bottom: 1.6rem; }
.scanner-box summary { cursor: pointer; font-weight: 700; font-size: .95rem; color: #F5C242; }
.scanner-row { opacity: .9; }

/* ACCC register list */
.accc-box summary { color: #7FC7EA; }
.accc-filter { width: 100%; margin: .8rem 0 .4rem; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font-size: .9rem; }
.accc-row { grid-template-columns: 5.6rem 4.6rem minmax(0, 1fr) 12rem 11rem; }
.accc-kind { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.accc-status { font-size: .74rem; color: var(--muted); font-weight: 600; }
@media (max-width: 820px) { .accc-row { grid-template-columns: 4.8rem minmax(0, 1fr); } .accc-row .accc-kind, .accc-row .dr-sector, .accc-row .accc-status { display: none; } }
.dot-unknown { background: #6B7A90; }
