/* Investor Day Announcements (CC-2; IR-ANNOUNCEMENTS-DESIGN.md; the design chat's review, CC-5): the page and the index
   reuse the recap pages' classes (recap-public.css: .ra head, .ra-glance card, .ra-panel, .rl list, cards and month
   headings) and the calendar's Add to calendar (calendar-public.css: .addcal). This file holds only what those do not.
   Loaded by these pages only, after the two. */

.ia .ra-grid {
  grid-template-columns: minmax(0, 680px);
  /* round 3: the head ends at the dek; the event card starts 32 px under it (24 px on a phone, below) */
  margin-top: 32px;
}

.ia .ra-main {
  grid-column: 1;
}

/* ---- links: rust, underlined 3 px below (the event card's links, the called-off band's, the member line's, the end's) */
.ia a.ia-link,
.ia .ra-main a.ia-link {
  color: var(--sellier);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

/* ---- round 4 (IA-R17): the meta line under the dek, on every state: 13 px, ink2, 16 px under the dek, centred with
   the head on a desktop and left on a phone; the editor underlined in the line's own colour */
.ia-meta {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.ia-meta a.ia-meta__editor {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

/* ---- the label above the title: the ticker in rust */
.ia-ticker {
  color: var(--sellier);
  font-weight: 500;
}

/* ---- the state bands */
.ia-band {
  max-width: 680px;
  margin: 0 auto 28px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-size: 14px;
}

.ia-band--past {
  border-left: 3px solid var(--sellier);
}

/* called off (CC-3 A): the past band's shape with an ink rule */
.ia-band--called-off {
  border-left: 3px solid var(--ink);
}

/* a recap published: the line and the recap's headline on the left, the filled box on the right */
.ia-band--recap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 3px solid var(--sellier);
}

.ia-band__headline {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.3;
}

/* the calendar's filled rust "Read the recap" box */
.ia-recap-btn,
.ia .ra-main a.ia-recap-btn {
  display: inline-block;
  flex: none;
  padding: 6px 11px;
  background: var(--sellier);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.ia-recap-btn:hover,
.ia .ra-main a.ia-recap-btn:hover {
  background: var(--sellier-deep);
  color: var(--paper);
}

/* ---- the event card; each link never breaks inside its label (CC-11 item 1) */
.ia .ra-main .ia-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.ia .ra-main .ia-card__links a,
.ia .ra-main .ia-end__links a {
  white-space: nowrap;
}

.ia .ra-glance .addcal a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--sellier);
  text-decoration: none;
}

/* while upcoming, the countdown in rust capitals 10 px after the date */
.ia-countdown {
  margin-left: 10px;
  color: var(--sellier);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ia-muted {
  color: var(--ink-3);
  font-size: 0.92em;
}

/* ---- the sections: the recap story headings' face and accent line */
.ia-sec {
  margin: 52px 0 0;
}

.ia-sec h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 18px;
}

.ia-sec h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--sellier);
  margin-bottom: 16px;
}

/* Latest quarter's date line: small capitals, the quarter's name darker */
.ia-dateline {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ia .ra-main .ia-dateline b {
  color: var(--ink);
  font-weight: 500;
}

/* each figure links to its filing: a 1 px rust underline 3 px below, lining figures, never broken across lines */
.ia .ra-main .ia-quarter p a:not(.btn),
.ia .ra-main .ia-story > p a:not(.btn) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--sellier);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

/* round 4: a web link sits on a phrase, in the same style, and wraps like the words around it (a filing figure never
   breaks); the table's figures link in the figure style too */
.ia .ra-main .ia-story > p a:not(.btn):not([href*="sec.gov"]) {
  white-space: normal;
}

.ia .ra-main .ia-qtable td a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--sellier);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---- the story (round 2): "The road to <event type>" keeps the section heading's face and rust line; the body 17 px at
   1.72; the writer's subheadings in the display face, 500, 23 px, 38 px above, no rust line. Only the story's own
   paragraphs (direct children): the panel inside it keeps its own type sizes. Share prices are plain text. */
.ia .ra-main .ia-story > p:not(.ia-dateline) {
  font-size: 17px;
  line-height: 1.72;
}

.ia .ra-main .ia-story .ia-dateline {
  margin: 0 0 22px;
}

/* over the recap pages' small-capitals h3 (.ra-main h3) */
.ia .ra-main .ia-story h3.ia-story__sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  margin: 38px 0 12px;
}

.ia-story__sub::before {
  content: none;
}

/* a slide: the column's full width, 26 px above and 30 px below, the caption (14 px, ink2) and the credit (12 px, muted) */
.ia .ra-main .ia-story .ia-slide {
  margin: 26px 0 30px;
}

.ia .ra-main .ia-story .ra-panel,
.ia .ra-main .ia-story .ia-member {
  margin-top: 36px;
  margin-bottom: 8px;
}

.ia .ra-main p.ia-sources--story {
  margin-top: 36px;
}

/* the Sources line: a hairline, the label, each filing a link */
.ia .ra-main p.ia-sources {
  margin: 18px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule-light);
  font-size: 13px;
  color: var(--ink-2);
}

.ia-sources__label {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* round 4: Sources in two runs (Company, Reporting), each a line of its own with a small-capitals key; an entry wraps
   only at its spaces, the " ·" kept on the entry before the break */
.ia .ra-main div.ia-sources--runs {
  margin: 18px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule-light);
  font-size: 13px;
  color: var(--ink-2);
}

.ia .ra-main .ia-sources--runs p.ia-sources__run {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.ia-sources__key {
  margin-right: 8px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ia-sources__entry {
  white-space: normal;
}

.ia .ra-main .ia-sources a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
}

/* ---- the member line: text left, link right, between hairlines */
.ia-member {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 44px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.ia .ra-main .ia-member p {
  margin: 0;
}

/* the end block straight after the member line: one rule between them, the line's own (CC-6 item 1) */
.ia-member + .ia-end {
  border-top: 0;
}

.ia-member__link {
  flex: none;
}

/* ---- the recap card at the end */
.ia-recap-card {
  margin: 44px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.ia .ra-main .ia-recap-card__headline {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.3;
}

/* ---- the end: a hairline, the closing line, then the two links on their own line */
.ia-end {
  margin: 44px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.ia .ra-main .ia-end .ra-closing {
  margin: 0;
}

.ia .ra-main p.ia-end__links {
  margin: 14px 0 0;
  font-size: 14px;
}

/* ---- the index: the group headings are the recaps list's month headings; the meta line; the filled recap box */
.ia-meta__ticker,
.ia-meta__countdown {
  color: var(--sellier);
}

.ia-tag {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.rl-sum .ia-recap-btn {
  margin-top: 8px;
}

/* ---- round 4 (design section 15): the "Quarter by quarter" table, in the recaps' sideways-scrolling box (.ra-table,
   the quarter column fixed); its title in the display face, not a part; headers 10.5 px capitals over a 1 px ink rule,
   hairlines between rows, tabular lining numerals right-aligned; the latest quarter semibold; the marks 10 px, raised */
.ia .ra-main .ia-story > p.ia-qtable__title.ia-qtable__title {
  margin: 24px 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}

.ia .ia-qtable {
  margin: 0 0 8px;
  border-top: 0;
  border-bottom: 1px solid var(--rule);
}

.ia .ia-qtable table {
  font-size: 14.5px;
  font-variant-numeric: tabular-nums lining-nums;
}

.ia .ia-qtable th,
.ia .ia-qtable td {
  min-width: 0;
  padding: 9px 12px;
  white-space: nowrap;
  text-align: right;
}

.ia .ia-qtable thead th {
  padding: 8px 12px 8px;
}

.ia .ia-qtable tr > :first-child {
  text-align: left;
  min-width: 0;
  padding-left: 0;
  font-weight: 400;
}

.ia .ia-qtable tr > :last-child {
  padding-right: 0;
}

.ia .ia-qtable tbody tr:last-child > * {
  border-bottom: 0;
}

.ia .ia-qtable tr.ia-qtable__latest > * {
  font-weight: 600;
}

/* CC-23 (design note 1): the marks 12 px, ink, raised, 1 px after the label or figure, in the table and its note */
.ia .ia-qtable__mark {
  font-size: 12px;
  color: var(--ink);
  margin-left: 1px;
  font-weight: 400;
  line-height: 0;
}

/* "$ millions" stays together when the header wraps */
.ia .ia-qtable__nowrap {
  white-space: nowrap;
}

/* the note's mark sentences each kept whole (fix C): lines break only between sentences; CC-24: the marks a block of
   their own under the opening sentences (on one line on a desktop) */
.ia .ia-qtable__noteline {
  white-space: nowrap;
}

.ia .ia-qtable__marks {
  display: block;
}

/* only when a company's figures overflow (announcement-table.js): a fade at the box's right edge, and the line */
.ia .ia-qtable.ia-qtable--overflow {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}

.ia .ra-main .ia-story > p.ia-qtable__hint.ia-qtable__hint {
  margin: -16px 0 22px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

.ia .ra-main .ia-story > p.ia-qtable__hint[hidden] {
  display: none;
}

.ia .ra-main .ia-story > p.ia-qtable__note.ia-qtable__note {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .ia .ra-grid {
    margin-top: 24px;
  }

  .ia-sec {
    margin-top: 42px;
  }

  .ia .ra-main .ia-story > p:not(.ia-dateline) {
    font-size: 16px;
  }

  .ia .ra-main .ia-story h3.ia-story__sub {
    font-size: 20px;
    margin-top: 32px;
  }

  /* a slide runs edge to edge on a phone */
  .ia .ra-main .ia-story .ia-slide {
    margin: 26px -16px 30px;
  }

  .ia-sec h2 {
    font-size: 26px;
  }

  .ia-countdown {
    display: block;
    margin-left: 0;
  }

  .ia-band--recap {
    flex-direction: column;
    align-items: flex-start;
  }

  .ia-member {
    flex-wrap: wrap;
  }

  /* the meta line's halves stack: Published (and Updated) on one line, the credit on the next, the dot between hidden */
  .ia-meta__credit {
    display: block;
  }

  .ia-meta__dot--split {
    display: none;
  }

  /* the table at 390: 13 px, 8 px between columns, the headers 9.5 px and wrapping */
  .ia .ra-main .ia-story > p.ia-qtable__title.ia-qtable__title {
    font-size: 18px;
  }

  .ia .ia-qtable table {
    font-size: 13px;
  }

  .ia .ia-qtable th,
  .ia .ia-qtable td {
    padding: 8px 4px;
  }

  .ia .ia-qtable tr > :first-child {
    padding-left: 0;
  }

  .ia .ia-qtable tr > :last-child {
    padding-right: 0;
  }

  .ia .ia-qtable thead th {
    font-size: 9.5px;
    white-space: normal;
    vertical-align: bottom;
    padding: 8px 4px;
    /* CC-24 (IAD-R18): 0.08em on a phone; the desktop keeps the recaps' 0.14em */
    letter-spacing: 0.08em;
  }

  /* CC-24: on a phone one mark a line, "— Not reported." last */
  .ia .ia-qtable__noteline {
    display: block;
  }

  /* CC-24: the gap before Growth 14 px (the column before it ends in 4 px), every other gap 8 px */
  .ia .ia-qtable tr > :nth-child(3) {
    padding-left: 10px;
  }
}

/* ---- CC-25 (IAD-R19): the plans page's block for a signed-out visitor (partials/home/plans-block.ejs), after the story
   (before Sources), or with no story before the closing line. The table, its buttons and the refund line keep home.css's
   own rules; this sets only what the page differs in: the home page's three colours (set on .hp there) and its body type
   (15 px, 1.6, lining figures), the heading (40 px, 32 px under 640 px; no rust line), the spacing, and the reading
   column's paragraph and link rules undone inside the block (.ra-main p, .ra-main a:not(.btn)). Wider than 900 px the
   block is 804 px, centred on the 680 px column, as on the plans page; 900 px and under, the plans page's phone layout
   (home.css's rules under 600 px, here to 900 px) with the white table running to the screen's edges. */
.ia .ra-main .ia-plans {
  --hp-panel: #fbf8f1;
  --hp-body: #4a433a;
  --hp-rule-2: #e8dfd0;
  margin: 56px 0 44px;
  font-size: 15px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  color: var(--ink);
}

.ia .ra-main .ia-plans .hp-plans__head {
  max-width: none;
}

.ia .ra-main .ia-plans .hp-plans__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  text-align: center;
}

.ia .ra-main .ia-plans .hp-pt-wrap {
  margin-top: 22px;
}

.ia .ra-main .ia-plans p.hp-plans__under {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.ia .ra-main .ia-plans .hp-pt tbody th a {
  color: var(--ink);
}

.ia .ra-main .ia-plans a.hp-pt__btn,
.ia .ra-main .ia-plans a.hp-pt__btn:hover {
  color: #fbf8f1;
}

/* the main column clips at the screen's edges, so the full-width table never scrolls the page sideways */
.ia:has(.ia-plans) {
  overflow-x: clip;
}

@media (min-width: 901px) {
  .ia .ra-main .ia-plans {
    width: 804px;
    margin-left: calc((100% - 804px) / 2);
  }
}

@media (max-width: 900px) {
  .ia .ra-main .ia-plans .hp-pt-wrap {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;
    padding: 0 16px;
  }

  .ia-plans .hp-pt,
  .ia-plans .hp-pt thead,
  .ia-plans .hp-pt tbody,
  .ia-plans .hp-pt tfoot {
    display: block;
  }

  .ia-plans .hp-pt tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--hp-rule-2);
  }

  .ia-plans .hp-pt[data-plans="2"] tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ia-plans .hp-pt[data-plans="4"] tr {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ia-plans .hp-pt th,
  .ia-plans .hp-pt td {
    border-bottom: none;
    padding: 10px 4px;
  }

  .ia-plans .hp-pt thead tr {
    border-bottom: 1px solid var(--ink);
  }

  .ia-plans .hp-pt thead th {
    width: auto;
    padding: 12px 4px 16px;
    text-align: center;
  }

  .ia-plans .hp-pt thead th.hp-pt__corner {
    width: auto;
    grid-column: 1 / -1;
    padding: 22px 0 0;
    text-align: left;
  }

  .ia-plans .hp-pt__name {
    font-size: 24px;
  }

  .ia-plans .hp-pt tbody th[scope="row"] {
    grid-column: 1 / -1;
    padding: 14px 0 0;
  }

  .ia-plans .hp-pt__soon {
    display: block;
    margin: 4px 0 0;
    font-size: 9px;
  }

  .ia-plans .hp-pt tfoot tr {
    border-bottom: none;
    gap: 8px;
  }

  .ia-plans .hp-pt tfoot td.hp-pt__corner {
    display: none;
  }

  .ia-plans .hp-pt tfoot td {
    padding: 20px 0 24px;
  }

  .ia-plans .hp-pt__choose {
    display: none;
  }
}

@media (max-width: 640px) {
  .ia .ra-main .ia-plans {
    margin-top: 44px;
  }

  .ia .ra-main .ia-plans .hp-plans__title {
    font-size: 32px;
  }
}
