/* ═══════════════════════════════════════════════
   Market Data & SENS Announcements Templates
   ═══════════════════════════════════════════════ */

.bell-md-page {
  background: #f4f4f4;
  min-height: 60vh;
}

.bell-md-page--white {
  background: #fff;
}

/* ── Heading band — matches careers exactly, pulled flush under nav ── */
.bell-md-heading-row {
  background: #EBEBEB;
  border-top: 5px solid var(--color-primary, #FFC200);
  padding: 1.25rem 0;
  text-align: center;
  margin-top: -30px;
}

.bell-md-heading-row h1 {
  font-family: var(--font-heading, sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  margin: 0;
}

/* ── Section headers — full-width grey band, matches careers section headers ── */
.bell-md-section-header {
  background: #EBEBEB;
  border-top: 5px solid var(--color-primary, #FFC200);
  padding: 1.25rem 0;
  margin-bottom: 0;
}

.bell-md-section-header h2 {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

/* ── Page body ── */
.bell-md-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ── Card ── */
.bell-md-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  margin-bottom: 0;
}

/* ── Today's Trading — horizontal layout ── */
.bell-md-card--trading {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
}

.bell-md-trading-price {
  flex-shrink: 0;
  border-right: 2px solid var(--color-primary, #FFC200);
  padding-right: 2rem;
}

.bell-md-trading-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.2rem;
}

.bell-md-trading-label-sub {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #aaa;
}

.bell-md-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary, #FFC200);
  line-height: 1;
}

.bell-md-direction {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.bell-md-up   { color: #2e7d32; }
.bell-md-down { color: #c62828; }
.bell-md-flat { color: #777; }

/* ── Stat pills in trading card ── */
.bell-md-trading-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bell-md-trading-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bell-md-trading-stat span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.bell-md-trading-stat strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* ── ProfileData logo in trading card ── */
.bell-md-trading-logo {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bell-md-trading-logo img {
  max-height: 80px;
  max-width: 260px;
  width: auto;
  opacity: 0.85;
}

@media (max-width: 560px) {
  .bell-md-card--trading { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .bell-md-trading-price { border-right: none; border-bottom: 2px solid var(--color-primary, #FFC200); padding-right: 0; padding-bottom: 0.75rem; }
  .bell-md-trading-logo { margin-left: 0; }
}

/* ── Two-column stat rows ── */
.bell-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 0.25rem;
  line-height: 1.3;
}

.bell-md-table tr:nth-child(even) td {
  background: #f9f9f9;
}

.bell-md-table td {
  padding: 0.2rem 0.5rem;
  color: #333;
}

.bell-md-table td:first-child {
  color: #666;
  width: 55%;
}

.bell-md-table td:last-child {
  font-weight: 600;
  text-align: right;
}

/* ── Historical period label ── */
.bell-md-period-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  padding: 0.4rem 0.5rem 0.1rem;
  border-top: 1px solid #eee;
  margin-top: 0.25rem;
}

.bell-md-period-label:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ── Statistics table ── */
.bell-md-stats-wrap {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow-x: auto;
}

.bell-md-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  min-width: 540px;
}

.bell-md-stats-table thead th {
  background: var(--color-primary, #FFC200);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 0.75rem;
  text-align: right;
  white-space: nowrap;
}

.bell-md-stats-table thead th:first-child {
  text-align: left;
}

.bell-md-stats-table tbody tr:nth-child(even) td {
  background: #f9f9f9;
}

.bell-md-stats-table tbody td {
  padding: 0.45rem 0.75rem;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  text-align: right;
  white-space: nowrap;
}

.bell-md-stats-table tbody td:first-child {
  text-align: left;
  color: #555;
  white-space: normal;
}

.bell-md-stats-table .bell-md-col-latest {
  background: #fffde7;
  font-weight: 600;
}

/* ── Section body wrapper (inner padding under each section header) ── */
.bell-md-section-body {
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bell-md-section-body--white {
  background: #fff;
  max-width: 100%;
  padding: 0;
}

.bell-md-section-body--white > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem;
}

/* ── Iframe wrappers ── */
/* Bordered iframe wrapper — chart, calculator */
.bell-md-iframe-wrap {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}

.bell-md-iframe-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

/* Borderless iframe wrapper — SENS (appears as part of the page) */
.bell-md-sens-iframe {
  background: #fff;
  overflow: hidden;
}

.bell-md-sens-iframe iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ── Fallback / notice ── */
.bell-md-notice {
  background: #fff8e1;
  border-left: 3px solid var(--color-primary, #FFC200);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #555;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.5rem;
}

.bell-md-unavailable {
  color: #999;
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
}

/* ── Group site: deeper pull-up so content sits behind the large Bell logo ── */
.site-group .bell-md-heading-row { margin-top: -90px; }
