/* US-only additions on top of India's news.css */

/* if the nav ever overflows, "safe" keeps the first items reachable */
.nav__list { justify-content: safe center; }

.us-search { margin-bottom: 18px; }

/* multi-period results table: .facts gives row headers 42% width, which
   pushes the first period column far from the rest */
.facts--wide thead th, .facts--wide td { width: auto; padding-left: 14px; }


/* Our guide cards have no images (India's do), so give the text a little more room */
.guide-card__body { padding: 16px 16px 18px; }
.us-guide-excerpt { color: #c9cde0; font-size: 13.5px; line-height: 1.45; margin-top: 8px; }

/* 3-month share-price chart (blog/charts.py) — styled like India's .facts captions */
.us-chart { margin: 6px 0 28px; font-family: var(--sans); }
.us-chart__title { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink); border-bottom: 2px solid var(--ink-strong); padding-bottom: 7px; margin-bottom: 10px; }
.us-chart img { display: block; width: 100%; height: auto; }
.us-chart__note { margin-top: 6px; }
.us-chart__data summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.us-chart__data .facts { margin-top: 8px; }

/* "Get Alerts" coming-soon popup (base.html). Buttons reuse India's .btn-cta / .btn-ink */
button.btn-cta, button.btn-ink { border: 0; cursor: pointer; font-family: inherit; }  /* keep India's weight/size */
.us-soon { max-width: 440px; width: calc(100% - 32px); border: 0; border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 26px 26px 22px; color: var(--ink); background: var(--paper);
  box-shadow: 0 20px 60px rgba(0,0,0,.25); font-family: var(--sans); }
.us-soon::backdrop { background: rgba(1,4,13,.55); }
.us-soon h2 { font-family: var(--serif); margin: 2px 0 10px; }
.us-soon p:not(.kicker) { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0 0 10px; }
.us-soon .btn-ink { margin-top: 8px; }

/* /learn/ cards: hand-written guides have no photo — a navy tile with the topic instead */
.us-guide-thumb { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px 14px;
  background: radial-gradient(60% 160% at 30% 40%, var(--island-2) 0%, var(--island) 100%);
  color: #ffd166; font: 700 12px/1.2 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; }
@media (max-width: 882px) { .us-guide-thumb { font-size: 9px; letter-spacing: .6px; padding: 6px 7px; } }

/* Author pages — India's news.css (newer than our copy) */
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink-strong); color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 0.5px; object-fit: cover; }
.avatar--lg { width: 96px; height: 96px; font-size: 34px; }
.list-item--author { justify-content: flex-start; align-items: flex-start; }
.list-item--author > .avatar { flex: none; min-width: 64px; }
.list-item--author > div { flex: 1; min-width: 0; }
.author-head { display: flex; align-items: center; gap: 20px; }

/* "Get Alerts" form inside the popup (signups app) */
.us-soon { max-height: calc(100vh - 32px); overflow-y: auto; }
.us-signup { display: grid; gap: 12px; margin-top: 6px; }
.us-signup__field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.us-signup input, .us-signup select { height: 42px; padding: 0 12px; border: 1px solid #aaa; border-radius: 4px;
  background: var(--paper); color: var(--ink); font: 16px var(--sans); width: 100%; min-width: 0; }
.us-signup input:focus, .us-signup select:focus { outline: none; border-color: var(--ink-strong); box-shadow: 0 0 0 1px var(--ink-strong); }
.us-signup__phone { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
.us-signup__err { font-size: 12.5px; font-weight: 600; color: var(--accent); min-height: 0; margin: 0; }
.us-signup__err:empty { display: none; }
.us-soon p.us-signup__consent { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); margin: 0; }
.us-signup .btn-ink { margin-top: 2px; width: 100%; border: 0; cursor: pointer; }
.us-signup .btn-ink:disabled { opacity: .6; cursor: wait; }
.us-signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* "Earlier announcements" table with source links (India's newer news.css) */
.facts.track th, .facts.track thead th { width: auto; white-space: nowrap; padding-right: 14px; }
.facts.track thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.facts.track td { font-weight: 400; }
.facts.track td:nth-child(3) { font-weight: 700; white-space: nowrap; padding-right: 14px; }
.facts.track td small a { color: var(--ink-2); text-decoration: underline; }

/* The other site's button beside "Get Alerts": blog -> SEC Filings, filings -> News. */
.btn-alt { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--ink-strong); color: var(--ink-strong); font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.btn-alt:hover { background: var(--cta); border-color: var(--cta); text-decoration: none; }
/* No room beside the logo on a phone: the nav row carries the link there. */
@media (max-width: 767px) { .btn-alt { display: none; } }
@media (min-width: 768px) { .nav__alt { display: none; } }

/* Morning brief (morning_*.html): India's _morning_style.html */
.mb-gift { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 16px; margin: 0 0 22px; font-family: var(--sans); }
.mb-gift__label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.mb-gift__value { font-size: 28px; font-weight: 700; color: var(--ink-strong); }
.mb-gift__chg { font-size: 16px; }
.mb-gift__time { font-size: 13px; color: var(--ink-2); flex-basis: 100%; }
.mb-gift .up, .mb-table td.up { color: var(--up); }
.mb-gift .down, .mb-table td.down { color: var(--down); }
.mb-table-wrap { overflow-x: auto; margin: 6px 0 26px; }
.mb-table { width: 100%; min-width: 520px; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.mb-table caption { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-bottom: 2px solid var(--ink-strong); padding-bottom: 7px; }
.mb-table th, .mb-table td { padding: 8px 6px; border-bottom: var(--rule); text-align: right; white-space: nowrap; }
.mb-table th:first-child, .mb-table td:first-child { text-align: left; white-space: normal; }
.mb-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); }
.mb-table tr.mb-group td { text-align: left; font-weight: 700; background: var(--paper-warm); font-size: 13px; }
.mb-table small { display: block; font-size: 11px; color: var(--ink-2); font-weight: 400; }
.mb-co { margin: 0 0 20px; }
.mb-co h3 { margin: 0 0 6px; font-size: 19px; }
.mb-co ul { margin: 0; padding-left: 18px; }
.mb-co .mb-meta { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); margin: 4px 0 0; }
.mb-badge { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--paper); background: var(--accent); padding: 1px 6px; border-radius: 3px; vertical-align: 2px; margin-left: 6px; }
.mb-type { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.mb-calls td:last-child a { font-weight: 600; }
.mb-pager { display: flex; justify-content: space-between; gap: 12px; font-family: var(--sans); font-size: 14px; margin: 26px 0; }
.mb-note { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); border-top: var(--rule); padding-top: 12px; margin-top: 26px; }
.mb-also { border: 1px solid var(--line); padding: 12px 14px; font-family: var(--sans); font-size: 15px; margin: 22px 0; }

/* Home: "Before the bell", the latest morning brief (views._home_brief) */
.bell__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.bell__item { padding: 4px 24px 6px 0; }
.bell__item + .bell__item { border-left: var(--rule); padding-left: 24px; padding-right: 0; }
.bell__item h3 { margin: 6px 0 8px; }
.bell__num { font-family: var(--sans); font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.bell__num b { font-size: 20px; color: var(--ink-strong); margin: 0 2px; }
.bell__num .up { color: var(--up); font-weight: 700; }
.bell__num .down { color: var(--down); font-weight: 700; }
@media (max-width: 767px) {
  .bell__grid { grid-template-columns: 1fr; }
  .bell__item + .bell__item { border-left: 0; border-top: var(--rule); padding: 14px 0 0; margin-top: 10px; }
}

/* ── Get Alerts presence, after India's ALFA Finder promo (7 Nov) ─────────
   .alfa-strip  top of every page of both sites.
   .promo-m     phones only: a short card inside the content, because below
                882px the rail (and its promo) drops to the page bottom.
   .alfa-bar    phones only: bottom bar, built by alerts-promo.js.
   All three open the Get Alerts sign-up dialog (data-alerts-soon). */
.alfa-strip { display: block; width: 100%; padding: 0; border: 0; background: var(--footer); color: #c9cad3; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.alfa-strip__in { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 36px; }
.alfa-strip__brand { display: inline-flex; align-items: center; gap: 8px; flex: none; color: #fff; font-weight: 700; letter-spacing: .2px; }
.alfa-strip__brand img { height: 20px; width: auto; }
.alfa-strip__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alfa-strip__text--short { display: none; }
.alfa-strip__go { flex: none; color: var(--cta); font-weight: 700; white-space: nowrap; }
.alfa-strip:hover .alfa-strip__go { text-decoration: underline; }
.promo-m, .alfa-bar { display: none; }
@media (max-width: 882px) {
  .promo-m { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: start; margin: 20px 0; padding: 16px 14px; background: var(--paper-warm); border-top: 3px solid var(--accent); border-radius: 6px; font-family: var(--sans); }
  .promo-m img { grid-row: span 2; width: 44px; height: auto; }
  .promo-m .promo-m__title { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink-strong); }
  .promo-m .promo-m__lead { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
  .promo-m .promo-m__btn { grid-column: 1 / -1; height: 42px; margin-top: 10px; font-size: 13px; color: var(--ink-strong); }
  .alfa-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 10px; padding: 9px 6px calc(9px + env(safe-area-inset-bottom)) 12px; background: var(--footer); border-top: 2px solid var(--cta); color: #fff; transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .alfa-bar.is-on { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .alfa-bar img { flex: none; height: 30px; width: auto; }
  .alfa-bar__text { flex: 1; min-width: 0; color: #c9cad3; font-size: 12.5px; line-height: 1.3; }
  .alfa-bar__text b { display: block; color: #fff; font-size: 14px; }
  .alfa-bar__go { flex: none; height: 34px; padding: 0 16px; font-size: 12px; }
  .alfa-bar__x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #9a9caa; font-size: 22px; line-height: 1; cursor: pointer; }
  body.has-alfa-bar .foot { padding-bottom: 64px; }
}
@media (max-width: 767px) {
  .alfa-strip { font-size: 12.5px; }
  .alfa-strip__in { justify-content: space-between; gap: 10px; min-height: 34px; }
  .alfa-strip__text--long { display: none; }
  .alfa-strip__text--short { display: block; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .alfa-bar, .alfa-bar.is-on { transition: none; } }
