/* A price's own page (prices/<key>.html): the home page's card, with the
   heading beside it on wide screens (where the tagline types on the home
   page) and the written part under it */

/* Heading and summary: beside the card on wide screens, under it on narrow */
.pp-intro { order: 2; max-width: 460px; width: 100%; margin-top: 28px; }
.price-page .page { flex-direction: column; }
@media (min-width: 1080px) {
  .price-page .page { flex-direction: row; }
  .pp-intro { position: absolute; top: 72px; left: calc(50% + 240px); right: 32px; width: auto; max-width: 420px; margin: 0; }
}
.pp-crumbs { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.pp-crumbs a { color: inherit; text-decoration: none; }
.pp-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pp-intro h1 { margin: 0 0 14px; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.pp-lead { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* The written part */
.pp-info { max-width: 760px; margin: 0 auto; padding: 8px 16px 64px; }
.pp-info section { margin-top: 40px; }
.pp-info h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.pp-info p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.pp-info a { color: var(--ink); text-underline-offset: 3px; }
.pp-note { margin-bottom: 14px !important; color: var(--muted) !important; font-size: 14px !important; }

/* Year by year: a ruled table with a dark heading bar, like the Glossary */
.pp-table-wrap { max-height: 520px; overflow: auto; border: 1px solid var(--ink); background: #F0F0EA var(--grain); }
.pp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-table thead th {
  position: sticky; top: 0; z-index: 1; padding: 0 14px; height: 32px; background: var(--ink); color: var(--bg);
  font: 700 11px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; text-align: right; white-space: nowrap;
}
.pp-table thead th:first-child { text-align: left; }
.pp-table tbody th, .pp-table td { padding: 10px 14px; border-top: 1px solid var(--ink); }
.pp-table tbody tr:first-child th, .pp-table tbody tr:first-child td { border-top: 0; }
.pp-table tbody th { text-align: left; font: 500 14px var(--mono); color: var(--ink); white-space: nowrap; }
.pp-table td { text-align: right; font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.pp-table .pp-up { color: var(--up); }
.pp-table .pp-down { color: var(--down); }
.pp-short { display: none; }
.pp-part { font-weight: 400; color: var(--muted); font-size: 12px; }

/* Key facts: a grid of figures */
.pp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 14px 0 0; border: 1px solid var(--ink); border-right: 0; border-bottom: 0; }
.pp-facts div { padding: 12px 14px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: #F0F0EA var(--grain); }
.pp-facts dt { font: 700 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pp-facts dd { margin: 4px 0 0; font: 500 20px var(--mono); color: var(--ink); }
.pp-facts dd span { display: block; margin-top: 2px; font: 400 12px var(--sans); color: var(--muted); }

/* Related pages */
.pp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pp-links a {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2);
}
.pp-links a:hover { border-color: var(--ink-2); color: var(--ink); }

@media (max-width: 560px) {
  .pp-intro h1 { font-size: 26px; }
  .pp-table tbody th, .pp-table td, .pp-table thead th { padding-left: 10px; padding-right: 10px; }
  .pp-table { font-size: 13px; }
  .pp-long { display: none; }
  .pp-short { display: inline; }
  .pp-part { display: block; }
  .pp-facts { grid-template-columns: 1fr 1fr; }
  .pp-facts dd { font-size: 17px; }
}

/* Embed This Chart: the box from the Share panel (embed-box.js) */
.eb-dim { position: fixed; inset: 0; z-index: 200; background: rgba(40, 40, 40, 0.35); }
.eb-box {
  position: fixed; z-index: 201; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px); overflow: auto; padding: 22px; border-radius: 16px; background: var(--bg) var(--grain);
  border: 1px solid var(--card-border); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; gap: 14px;
}
.eb-head { display: flex; justify-content: space-between; align-items: center; }
.eb-head h2 { margin: 0; font-size: 18px; }
.eb-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; cursor: pointer; color: var(--muted); }
.eb-sub { margin: -6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.eb-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.eb-preview { width: 100%; height: 380px; border: 0; }
.eb-code {
  width: 100%; height: 76px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; resize: none;
  font: 12px/1.5 var(--mono); color: var(--ink); background: var(--card);
}
.eb-row { display: flex; gap: 10px; align-items: center; }
.eb-copy { min-height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--ink); color: var(--bg); font: 500 14px var(--sans); cursor: pointer; }
.eb-status { font-size: 13px; color: var(--up); }
.eb-open { display: flex; align-items: center; gap: 10px; width: 100%; }
