/* Deal pages (/deals/, /deals/<slug>/, and the day, month and buyer lists), rendered by the preambient-deals Worker (tools/deals/pages.js) inside the shared
   head, header and footer. Plain reading pages in the homepage system (DESIGN.md): the silver stage, Newsreader Text 300 for
   headings and the opening, Archivo for text, --surface for the one raised block, --line for rules. No images, no logos.
   Loaded after home.css, before footer.css. Contrast: --ink is 15:1 or more and --muted 6.5:1 or more on the stage and on
   --surface (tokens.css). The text of a page comes from a press release, so every box wraps a long unbroken string. */
.deal { min-height: calc(100svh - 140px); padding: calc(var(--nav-h) + 88px) 0 112px; color: var(--ink); overflow-wrap: anywhere;
  background: linear-gradient(180deg, var(--stage-top), var(--stage-mid) 360px, var(--stage-bot) 760px); }
.deal__col { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.deal :focus-visible { outline-color: var(--violet); }
.deal ::selection { background: rgba(72, 40, 115, .85); color: #fff; }
.deal a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.deal__crumb { margin-bottom: 28px; font-size: 14px; line-height: 22px; color: var(--muted); }
.deal__crumb a { display: inline-block; padding-block: 11px; }
.deal__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -0.022em; color: var(--headline); text-wrap: balance; }
.deal__byline { margin-top: 20px; font-size: 14px; line-height: 22px; color: var(--muted); }
.deal__col > p, .deal__panel > p { margin-top: 16px; font-size: 17px; line-height: 28px; }
.deal__col > .deal__byline { margin-top: 20px; font-size: 14px; line-height: 22px; }
.deal__col > .deal__lead { margin-top: 36px; font-family: var(--font-display); font-weight: 300; font-size: clamp(21px, 2.3vw, 25px); line-height: 1.4; letter-spacing: -0.01em; }
.deal__col > h2 { margin: 56px 0 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.014em; color: var(--headline); text-wrap: balance; }
.deal strong { font-weight: 600; }

/* [1]: a jump to the source list. Quiet, but a link: underlined on hover and focus, never by colour alone. */
.deal a.deal__ref { padding: 6px 2px; font-size: .8em; color: var(--muted); text-decoration: none; white-space: nowrap; }
.deal a.deal__ref:hover, .deal a.deal__ref:focus-visible { color: var(--ink); text-decoration: underline; }

/* Key facts. Four columns from 641px; below that each fact is its own short block, so nothing scrolls sideways. */
.deal__facts { width: 100%; margin-top: 32px; border-collapse: collapse; font-size: 15px; line-height: 22px; text-align: left; }
.deal__facts th, .deal__facts td { padding: 12px 16px 12px 0; border-top: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.deal__facts tr > :last-child { padding-right: 0; }
.deal__facts thead th { border-top: 0; padding-top: 0; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.deal__facts tbody th { width: 24%; font-weight: 500; }
.deal__facts tbody td:nth-child(3) { color: var(--muted); }
.deal__facts tbody tr:last-child > * { border-bottom: 1px solid var(--line); }

.deal__col > ul, .deal__panel > ul { margin: 16px 0 0; padding-left: 22px; font-size: 17px; line-height: 28px; }
.deal__col > ul > li + li { margin-top: 8px; }
/* Sentences quoted from the announcement. */
.deal__col > ul.deal__quotes { list-style: none; padding-left: 0; }
.deal__quotes > li { padding-left: 18px; border-left: 2px solid rgba(23, 24, 26, .32); font-family: var(--font-display); font-weight: 300; font-size: 19px; line-height: 1.45; }
.deal__quotes > li + li { margin-top: 16px; }
.deal__quotes .deal__ref { font-family: var(--font-body); }

/* The block about Preambient: the one raised surface on the page. */
.deal__panel { margin-top: 56px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.deal__panel > h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.8vw, 28px); line-height: 1.15; letter-spacing: -0.012em; color: var(--headline); text-wrap: balance; }
.deal__panel > .deal__cta { margin-top: 28px; }
.deal__cta .btn { height: 48px; padding: 0 28px; font-size: 15px; }

.deal__sources { margin: 16px 0 0; padding-left: 24px; font-size: 15px; line-height: 24px; color: var(--muted); }
.deal__sources > li + li { margin-top: 12px; }
.deal__sources a { color: var(--ink); }
.deal__sources > li:target { color: var(--ink); }
.deal__sources ~ p { font-size: 15px; line-height: 24px; color: var(--muted); }
/* The contact link has no address until site.js writes it: until then it reads as text. */
.deal a[data-mail]:not([href]) { text-decoration: none; }

/* The list of deals. */
.deal__list { margin: 40px 0 0; padding: 0; list-style: none; }
.deal__list > li { padding: 24px 0; border-top: 1px solid var(--line); }
.deal__list > li:last-child { border-bottom: 1px solid var(--line); }
.deal .deal__list a.deal__item { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.6vw, 27px); line-height: 1.2; letter-spacing: -0.012em; color: var(--headline); text-decoration: none; }
.deal .deal__list a.deal__item:hover, .deal .deal__list a.deal__item:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.deal__list p { margin-top: 8px; font-size: 16px; line-height: 25px; color: var(--muted); }
.deal__list .deal__when { margin-top: 6px; font-size: 14px; line-height: 22px; }
.deal__pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; font-size: 15px; color: var(--muted); }
.deal__pager a { padding-block: 11px; color: var(--ink); }

/* The trail above the headline: each step a link, the slashes between them quiet. */
.deal__crumb > span { margin-inline: 6px; color: var(--muted); }
/* The call to action: one dark button, and the booking link as text beside it (DESIGN.md: text links for supporting detail). */
.deal__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.deal .deal__book { padding-block: 11px; font-size: 15px; line-height: 22px; }
/* The way on from a deal (its day, its month, its buyer) and from the list (its months): a quiet row of links under a rule. */
.deal__more { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.deal__more > h2 { margin: 0; font-family: var(--font-body); font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: .02em; color: var(--muted); }
.deal__more > ul { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 16px; line-height: 22px; }
.deal__more a { display: inline-block; padding-block: 11px; }
/* On the list the block follows the list's own closing rule, so it draws none. */
.deal--index .deal__more { margin-top: 40px; padding-top: 0; border-top: 0; }
/* A month: each day is a heading that links to the day's page, with the titles of its deals under it. */
.deal--index .deal__col > h2 { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: clamp(22px, 2.6vw, 27px); }
.deal--index .deal__col > h2 > a { display: inline-block; padding-block: 8px; text-decoration: none; }
.deal--index .deal__col > h2 > a:hover, .deal--index .deal__col > h2 > a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.deal__col > ul.deal__titles { margin-top: 8px; padding-left: 0; list-style: none; }
.deal__col > ul.deal__titles > li + li { margin-top: 0; }
.deal__titles a { display: inline-block; padding-block: 8px; }
/* The one link to the valuation page at the foot of a list. */
.deal__col > .deal__ask { margin-top: 40px; font-size: 16px; line-height: 22px; }
.deal__ask a { display: inline-block; padding-block: 11px; }

@media (max-width: 809px) {
  .deal { padding: calc(var(--nav-h) + 48px) 0 80px; }
  .deal__col > h2 { margin-top: 44px; }
  .deal__panel { margin-top: 44px; padding: 24px 20px; }
}
@media (max-width: 640px) {
  .deal__col > p, .deal__panel > p, .deal__col > ul, .deal__panel > ul { font-size: 16px; line-height: 26px; }
  /* The column heads leave the layout but stay in the table for screen readers; each cell is on its own line. */
  .deal__facts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .deal__facts, .deal__facts tbody { display: block; }
  .deal__facts tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
  .deal__facts tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .deal__facts tbody th, .deal__facts tbody td { display: block; width: auto; padding: 0; border: 0; }
  .deal__facts tbody tr:last-child > * { border-bottom: 0; }
  .deal__facts tbody th { grid-column: 1 / -1; font-size: 13px; letter-spacing: .02em; color: var(--muted); }
  .deal__facts tbody td:nth-child(2) { grid-column: 1 / -1; margin-top: 2px; font-size: 16px; line-height: 24px; }
  .deal__facts tbody td:nth-child(3), .deal__facts tbody td:nth-child(4) { margin-top: 4px; font-size: 13px; }
  .deal__facts tbody td:nth-child(4) { justify-self: end; }
}
@media (forced-colors: active) {
  .deal__panel { border-color: CanvasText; }
  .deal__quotes > li { border-left-color: CanvasText; }
}
@media print {
  .deal { padding: 0; background: none; }
  .deal__cta { display: none; }
}
