/* The site's other pages (about, FAQ, support, privacy, terms, account
 * deletion, press kit, the app's bounce pages, the shared wishlist, the
 * handover links), in the
 * 2.0 design language. Loaded after home.css, which carries the tokens, both
 * themes, the type, the header, the menu, the buttons and the footer; this
 * adds the reading layout.
 *
 * Not boxed: the page starts at the gutter like the homepage's sections. A
 * long page gets its sections as a numbered index on the left, sticky while
 * you read, and the text in a column held to a readable measure by the text
 * itself (ch), which grows with the type on big screens. The header and the
 * footer are stamped in by tools/genchrome.mjs.
 */

.doc {
  padding: calc(var(--nav) + clamp(40px, 9vh, 140px)) var(--gutter) var(--sec);
  counter-reset: sec;
}

/* ---------------------------------------------------------------- head */
.doc-head { display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 32px); max-width: 1500px; margin-bottom: clamp(40px, 8vh, 120px); }
.doc-head .h1 { font-size: clamp(40px, min(6.4vw, 11vh), 150px); line-height: .92; max-width: 16ch; overflow-wrap: break-word; }
:lang(uk) .doc-head .h1 { max-width: 18ch; }
.doc-head .lede { margin: 0; max-width: 48ch; color: var(--text2); font-size: clamp(18px, .5vw + 13px, 27px); line-height: 1.5; }
.doc-head .lede a { color: var(--text); }

/* -------------------------------------------------------------- layout */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(40px, 6vw, 180px); align-items: start; }
.doc-toc { display: none; }
@media (min-width: 1100px) {
  .doc-grid.has-toc { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); }
  .doc-toc { display: block; position: sticky; top: calc(var(--nav) + 6vh); max-height: calc(100vh - var(--nav) - 12vh); overflow-y: auto; scrollbar-width: none; }
}
@media (min-width: 2200px) { .doc-grid.has-toc { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); } }

.doc-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.doc-toc a {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--hair);
  font: 600 clamp(12px, .16vw + 10px, 16px)/1.3 var(--display);
  font-stretch: 78%;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  transition: color .2s;
}
:lang(uk) .doc-toc a { letter-spacing: .06em; }
.doc-toc a .n { flex: none; width: 2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-toc a:hover, .doc-toc a[aria-current='true'] { color: var(--text); }
.doc-toc a[aria-current='true'] .n { color: var(--accent-line); }
.doc-toc a[aria-current='true']::before { content: ''; position: absolute; inset-inline-start: -16px; top: 50%; width: 6px; height: 20px; margin-top: -10px; background: var(--accent-line); transform: skewX(-24deg); }

/* ---------------------------------------------------------------- text */
.doc-body { min-width: 0; max-width: 68ch; font-size: clamp(16px, .28vw + 12.6px, 21px); line-height: 1.65; color: var(--text); }
.doc-body > :first-child { margin-top: 0; }
.doc-body p { margin: 0 0 1.05em; }
.doc-body h2 {
  counter-increment: sec;
  margin: 2.6em 0 .7em;
  font: 800 clamp(26px, 1.6vw + 14px, 54px)/1 var(--display);
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: .01em;
  scroll-margin-top: calc(var(--nav) + 24px);
}
.doc-body h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: .7em;
  font: 600 clamp(12px, .16vw + 10px, 15px)/1 var(--display);
  font-stretch: 78%;
  letter-spacing: .14em;
  color: var(--accent-line);
}
.doc-body h3 { margin: 1.9em 0 .5em; font: 700 clamp(18px, .4vw + 13px, 26px)/1.25 var(--sans); }
.doc-body h2 + h3 { margin-top: 1em; }
:lang(ar) .doc-body h2, :lang(ja) .doc-body h2, :lang(ko) .doc-body h2, :lang(zh) .doc-body h2 { letter-spacing: 0; line-height: 1.15; }

.doc-body a { overflow-wrap: anywhere; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: .2em; transition: color .2s; }
.doc-body a:hover { color: var(--accent-line); }
.doc-body strong { color: var(--text); font-weight: 700; }
.doc-body .muted, .doc-body p.muted { color: var(--text2); font-size: .9em; }
.doc-body .lede { color: var(--text2); font-size: 1.12em; }

.doc-body ul, .doc-body ol { margin: 0 0 1.2em; padding: 0; list-style: none; }
.doc-body li { position: relative; margin: 0 0 .55em; padding-inline-start: 1.6em; }
.doc-body ul > li::before { content: ''; position: absolute; inset-inline-start: .15em; top: .72em; width: .7em; height: .17em; background: var(--accent-line); transform: skewX(-24deg); }
.doc-body ol { counter-reset: li; }
.doc-body ol > li { counter-increment: li; }
.doc-body ol > li::before { content: counter(li) '.'; position: absolute; inset-inline-start: 0; font: 700 .9em/1.8 var(--display); font-stretch: 78%; color: var(--accent-line); }

/* steps you follow in order (deleting an account) */
.doc-body .step-list { counter-reset: step; border-top: 1px solid var(--hair); }
.doc-body .step-list > li { counter-increment: step; margin: 0; padding: 14px 0 14px 3em; border-bottom: 1px solid var(--hair); }
.doc-body .step-list > li::before { content: counter(step, decimal-leading-zero); top: 14px; inset-inline-start: 0; width: auto; height: auto; background: none; transform: none; font: 700 .85em/1.9 var(--display); font-stretch: 78%; letter-spacing: .1em; color: var(--accent-line); }

/* a set-apart note: hairline plate, top-left corner cut */
.doc-body .card {
  margin: 1.4em 0;
  padding: 18px 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}
.doc-body .card > :last-child { margin-bottom: 0; }
.doc-body .card.accent { box-shadow: inset 0 0 0 1px var(--hair), inset 3px 0 0 var(--accent); }
[dir='rtl'] .doc-body .card.accent { box-shadow: inset 0 0 0 1px var(--hair), inset -3px 0 0 var(--accent); }

.doc-body table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .92em; }
/* (the press kit's table is .facts, like the homepage's facts band: not that) */
.doc-body table.facts { display: table; position: static; padding: 0; gap: 0; border-top: 0; background: none; }
.doc-body td, .doc-body th { overflow-wrap: anywhere; padding: 11px 0; border-bottom: 1px solid var(--hair); vertical-align: top; text-align: start; }
.doc-body td:first-child { width: 36%; padding-inline-end: 18px; color: var(--text2); }

.doc-body .btn { text-decoration: none; color: var(--on-gold); }
.doc-body .btn-line { color: var(--text); }

/* ---------------------------------------------- short pages, no index */
.doc-plain .doc-body { max-width: 60ch; }

/* -------------------------------------------------------- big screens */
@media (min-width: 3000px) and (min-height: 1300px) {
  .doc-body { font-size: 24px; }
  .doc-toc a { font-size: 18px; }
}

/* ------------------------------------------------------------ header */
/* (no language menu here: this pushes the switches to the end) */
.top-gap { margin-inline-start: auto; }
a.lang-btn { text-decoration: none; }
.menu nav a[aria-current] .n { color: var(--accent-line); }

/* ---------------------------------------------------- shared wishlist */
/* (tools/genwishlist.mjs, assets/wishlist.js; the app's board Wish-Guest) */
.wl [hidden] { display: none !important; }
.wl .wl-msg { margin: 0 0 32px; color: var(--text2); font-size: 1.1em; }
.wl .wl-msg p { margin: 0 0 12px; }
.wl .wl-msg .wl-msg-title { margin: 0 0 16px; color: var(--text); font: italic 800 clamp(34px, 4.4vw, 84px)/.95 var(--display); font-stretch: 78%; text-transform: uppercase; overflow-wrap: anywhere; }
.wl .wl-msg .wl-retry { margin-top: 22px; }
.wl .wl-eyebrow { margin: 0 0 12px; font: 600 13px/1.3 var(--display); font-stretch: 78%; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-line); overflow-wrap: anywhere; }
.wl .wl-heading { margin: 0 0 14px; font: italic 800 clamp(40px, 5vw, 96px)/.92 var(--display); font-stretch: 78%; text-transform: uppercase; overflow-wrap: anywhere; }
.wl .wl-hint { margin: 0; color: var(--text2); }
/* the name a booking goes with, its note under it */
.wl .wl-you { margin: 28px 0 0; }
.wl .wl-label { display: block; margin: 0 0 8px; font: 600 12px/1.3 var(--display); font-stretch: 78%; letter-spacing: .14em; text-transform: uppercase; color: var(--text2); }
.wl .wl-input {
  display: block;
  width: 100%;
  max-width: 26em;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--edge);
  color: var(--text);
  font: 400 1em/1.2 var(--sans);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  -webkit-appearance: none;
  appearance: none;
}
.wl .wl-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-line); }
.wl .wl-note { margin: 8px 0 0; max-width: 40em; color: var(--text2); font-size: .85em; line-height: 1.45; }
/* the wishes: picture, what and where, then Book it or what it is */
.doc-body .wl-list { margin: 32px 0 0; border-top: 1px solid var(--hair); }
.doc-body .wl-list > li { margin: 0; padding: 14px 0; }
.doc-body .wl-list > li::before { content: none; }
.wl .wl-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; border-bottom: 1px solid var(--hair); }
.wl .wl-item:focus { outline: none; }
.wl .wl-item:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.wl .wl-thumb { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; background: var(--card); clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); }
.wl .wl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wl .wl-thumb svg, .wl .wl-title svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.wl .wl-thumb svg { width: 24px; height: 24px; color: var(--muted); }
.wl .wl-body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.doc-body .wl-title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; color: var(--text); text-decoration: none; }
.doc-body a.wl-title:hover { color: var(--accent-line); text-decoration: underline; text-decoration-color: var(--accent-line); }
.wl .wl-title svg { display: inline-block; width: .8em; height: .8em; margin-inline-start: .35em; vertical-align: -.05em; color: var(--text2); }
[dir='rtl'] .wl .wl-title svg { transform: scaleX(-1); }
.wl .wl-line { font-size: .85em; line-height: 1.4; color: var(--text2); font-variant-numeric: tabular-nums; }
.wl .wl-act { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.wl .wl-state { max-width: 10em; font: 600 12px/1.3 var(--display); font-stretch: 78%; letter-spacing: .14em; text-transform: uppercase; text-align: end; color: var(--text2); }
.wl .wl-state.wl-mine { color: var(--accent-line); }
.wl .wl-state.wl-gone { color: var(--amber); letter-spacing: .06em; }
.wl .wl-item.is-gone .wl-thumb, .wl .wl-item.is-gone .wl-body { opacity: .5; }
.doc-body .wl-book { --h: 44px; background: var(--accent-line); color: var(--accent-line); }
.doc-body .wl-book:hover { background: var(--gold-hi); color: var(--accent-line); }
.wl .wl-book[disabled] { cursor: progress; opacity: .55; }
.wl .wl-release { display: inline-flex; align-items: center; min-height: 44px; font: 600 .85em/1.3 var(--sans); text-align: end; text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.wl .wl-release:hover { color: var(--accent-line); }
.wl .wl-release[disabled] { cursor: progress; opacity: .55; }
.wl .wl-snap { margin: 22px 0 0; color: var(--text2); font-size: .9em; }
.wl .wl-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--hair); }
/* what a tap came to, for a moment, over the page's foot */
.wl .wl-toast {
  position: fixed;
  z-index: 95;
  inset-inline: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 30em;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  font-size: .95em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease);
}
.wl .wl-toast.in { opacity: 1; transform: none; }
.wl .wl-toast-title { font-weight: 600; }
.wl .wl-toast-detail { overflow-wrap: anywhere; color: var(--text2); font-size: .9em; }
@media (prefers-reduced-motion: reduce) { .wl .wl-toast { transform: none; transition: opacity .2s; } }
/* a phone: Book it goes under the wish, so its name keeps the width */
@media (max-width: 519px) {
  .wl .wl-item { grid-template-columns: 56px minmax(0, 1fr); row-gap: 8px; align-items: start; }
  .wl .wl-act { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 18px; }
  .wl .wl-act:empty { display: none; }
  .wl .wl-state { max-width: none; text-align: start; }
  .wl .wl-release { text-align: start; }
}
:lang(ar) .wl .wl-eyebrow, :lang(ar) .wl .wl-label, :lang(ar) .wl .wl-state, :lang(ja) .wl .wl-eyebrow, :lang(ja) .wl .wl-label, :lang(ja) .wl .wl-state, :lang(ko) .wl .wl-eyebrow, :lang(ko) .wl .wl-label, :lang(ko) .wl .wl-state, :lang(zh) .wl .wl-eyebrow, :lang(zh) .wl .wl-label, :lang(zh) .wl .wl-state { letter-spacing: 0; }
:lang(ar) .wl .wl-heading, :lang(ja) .wl .wl-heading, :lang(ko) .wl .wl-heading, :lang(zh) .wl .wl-heading, :lang(ar) .wl .wl-msg-title, :lang(ja) .wl .wl-msg-title, :lang(ko) .wl .wl-msg-title, :lang(zh) .wl .wl-msg-title { font-style: normal; line-height: 1.1; }
/* --------------------------------------- the handover links, /k/ and /t/ */
/* (tools/genhandover.mjs, assets/handover.js; the app's boards Transfer-Buyer and Web-Transfer) */
.ho [hidden] { display: none !important; }
.ho .ho-msg { color: var(--text2); margin: 0 0 32px; font-size: 1.1em; }
.ho .ho-eyebrow { margin: 0 0 12px; font: 600 13px/1.3 var(--display); font-stretch: 78%; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-line); }
.ho .ho-title { margin: 0 0 10px; font: italic 800 clamp(40px, 5vw, 96px)/.92 var(--display); font-stretch: 78%; text-transform: uppercase; overflow-wrap: anywhere; }
.ho .ho-sub { margin: 0 0 8px; color: var(--text2); }
.ho .ho-fact { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 44px; margin: 18px 0 0; border-block: 1px solid var(--hair); }
.ho .ho-fact-label, .ho .ho-label { font: 600 12px/1.3 var(--display); font-stretch: 78%; letter-spacing: .14em; text-transform: uppercase; color: var(--text2); }
.ho .ho-fact-value { font-weight: 500; font-variant-numeric: tabular-nums; }
.ho .ho-label { margin: 32px 0 6px; }
.ho .ho-rows { border-top: 1px solid var(--hair); }
.ho .ho-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 60px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.ho .ho-row-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ho .ho-row-title { font-weight: 500; }
.ho .ho-row-sub { font-size: .85em; line-height: 1.35; color: var(--text2); }
.ho .ho-row-value { font: 700 1.15em/1 var(--display); font-stretch: 78%; font-variant-numeric: tabular-nums; color: var(--text2); white-space: nowrap; }
.ho .ho-row-value.ho-amber { color: var(--amber); }
.ho .ho-ico { display: flex; justify-content: center; }
.ho .ho-ico svg { width: 18px; height: 18px; fill: none; stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter; }
.ho .ho-ok svg { stroke: var(--green); }
.ho .ho-lock svg { stroke: var(--muted); stroke-width: 1.9; }
.ho .ho-lock + .ho-row-body .ho-row-title { color: var(--text2); }
.ho .ho-oct { width: 12px; height: 12px; background: var(--amber); clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%); }
.ho .ho-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.ho .ho-chip { padding: 6px 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-size: .9em; }
.ho .ho-until { margin: 22px 0 0; color: var(--text2); font-size: .9em; }
.ho .ho-cta { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--hair); }
.ho .ho-cta-title { margin: 0 0 8px; font: italic 800 clamp(28px, 3vw, 48px)/.95 var(--display); font-stretch: 78%; text-transform: uppercase; }
.ho .ho-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.ho .ho-fine { margin: 36px 0 0; color: var(--text2); font-size: .85em; line-height: 1.5; }
:lang(ar) .ho .ho-eyebrow, :lang(ar) .ho .ho-label, :lang(ar) .ho .ho-fact-label, :lang(ja) .ho .ho-eyebrow, :lang(ja) .ho .ho-label, :lang(ko) .ho .ho-eyebrow, :lang(ko) .ho .ho-label, :lang(zh) .ho .ho-eyebrow, :lang(zh) .ho .ho-label { letter-spacing: 0; }
:lang(ar) .ho .ho-title, :lang(ja) .ho .ho-title, :lang(ko) .ho .ho-title, :lang(zh) .ho .ho-title { font-style: normal; line-height: 1.1; }
