/* The World guide's take-home tools (the user, 2026-11-16; src/js/world-trip.js): Add to calendar on the events, your
   dates as a calendar, My Trip's days and its print view, the Bureau's invitation to follow along, and the press room.
   Linked from the pages that use it; main.css is untouched. All on the site's tokens. */

/* Add to calendar: a pill like Save, shown only once world-trip.js runs on the page (it marks .brochure[data-ics-ready]) */
.brochure__ics {
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}
.brochure__ics[hidden] { display: none; }
.brochure[data-ics-ready] .brochure__ics[hidden] { display: inline-flex; }
.brochure__ics:hover { border-color: var(--accent-teal); }
.brochure__ics:disabled { opacity: 0.6; cursor: default; }
.brochure__ics::before { content: "+"; font-size: 16px; line-height: 1; color: var(--accent-teal); }
/* beside Save, in the same cell: Save at the start, the calendar at the end */
.whats-on__item > .brochure__ics { grid-column: 3; grid-row: 2; }
/* a day the calendar has called off has nothing to add */
[data-ics-date] .whats-on__item:has(.whats-on__status--off) .brochure__ics { display: none; }
@media (max-width: 700px) {
  .whats-on__item > .brochure__ics { grid-column: 1 / -1; grid-row: auto; justify-self: start; order: 2; margin-top: 8px; }
}

/* Your dates (Events) and Take it with you (My Trip) */
.trip-dates__row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-bottom: 8px; }
.trip-dates__row label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.trip-dates__row input { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg-raised); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; color-scheme: dark; }
.trip-dates__note { margin: 8px 0; font-size: 14px; color: var(--status-done-ink); }
.trip-dates__note[hidden] { display: none; }
.trip-dates__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trip-days { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.trip-days:empty { display: none; }
.trip-days > li { padding: 10px 16px; border-top: 1px solid var(--border); }
.trip-days > li:first-child { border-top: 0; }
.trip-days h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--brand-text); }
.trip-days ul { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--ink-soft); }
.trip-days ul li { padding: 2px 0; }
.trip-days strong { display: inline-block; min-width: 5.5em; color: var(--ink); }
.trip-print-foot { display: none; }

/* The Bureau's invitation to follow along: small, quiet, and gone on No thanks */
.bureau-letter { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 20px; padding: 16px 20px; border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, var(--border)); border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 6%, var(--bg-raised)); }
.bureau-letter[hidden] { display: none; }
.bureau-letter__mark { flex: none; width: 56px; height: 56px; }
.bureau-letter__title { margin: 0 0 4px; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--brand-text); }
.bureau-letter p { margin: 0 0 10px; font-size: 15px; color: var(--ink-soft); }
.bureau-letter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 0 !important; }
.bureau-letter .button { background: var(--brand); color: var(--brand-ink); padding: 7px 18px; }
.bureau-letter__close { font: inherit; font-size: 14px; color: var(--ink-soft); background: none; border: 0; padding: 4px 0; text-decoration: underline; cursor: pointer; }
.bureau-letter__close:hover { color: var(--ink); }
@media (max-width: 700px) {
  .bureau-letter { padding: 14px; gap: 12px; }
  .bureau-letter__mark { width: 40px; height: 40px; }
}

/* The press room (/world/press/) */
.press-fiction { margin: 0 0 16px; padding: 10px 14px; font-size: 14px; color: var(--ink-soft); border-left: 3px solid var(--accent-teal); background: var(--bg-raised); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.press-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.press-facts > div { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-sunken); }
.press-facts dt { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-teal); }
.press-facts dd { margin: 0; font-size: 15px; color: var(--ink-soft); }
.press-facts strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--brand-text); }
.press-release { padding: 16px 0; border-top: 1px solid var(--border); }
.press-release h3 { margin: 2px 0 8px; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.press-release p { margin: 0 0 8px; }
.press-release__date { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-teal); }
.press-release__place { font-weight: 700; color: var(--ink); }
.press-release__end { margin: 0; text-align: center; color: var(--ink-soft); letter-spacing: 0.3em; }
.press-archive__title { margin: 20px 0 6px; }
.press-archive .press-release { padding: 10px 0; }
.press-release--old summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.press-release--old summary .press-release__date { display: inline; margin-right: 8px; }
.press-release--old[open] summary { margin-bottom: 8px; }
.press-gallery__groups { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.press-gallery__title { margin: 24px 0 10px; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.press-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.press-gallery__item figure { margin: 0; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-sunken); overflow: clip; }
.press-gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-raised); }
.press-gallery__item figcaption { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; font-size: 14px; color: var(--ink-soft); }
.press-gallery__item figcaption strong { color: var(--ink); font-size: 15px; }
.press-gallery__alt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.press-gallery__credit { font-size: 12px; letter-spacing: 0.04em; color: var(--accent-teal); }
.press-gallery__download { margin-top: auto; padding-top: 6px; font-weight: 700; }
.press-gallery__meta { font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.press-sigil__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.press-sigil__mark { display: block; width: 100%; height: auto; padding: 16px; border-radius: var(--radius); background: radial-gradient(circle, color-mix(in srgb, var(--brand) 12%, var(--bg-sunken)) 0, var(--bg-sunken) 70%); box-sizing: border-box; }
@media (max-width: 700px) {
  .press-facts { grid-template-columns: minmax(0, 1fr); }
  .press-sigil__body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .press-sigil__mark { max-width: 200px; margin: 0 auto; }
}

/* My Trip on paper: the Bureau's masthead, the page title, what you saved and your days; no frame, no buttons */
@media print {
  @page { margin: 0.6in; }
  :root, .brochure { --bg: #fff; --bg-raised: #fff; --bg-sunken: #fff; --ink: #000; --ink-soft: #333; --border: #bbb; --brand-text: #8a5a00; --accent-teal: #136f72; --status-done-ink: #1d6b35; --status-progress-ink: #8a5a00; --accent-red: #a3231c; }
  html, body { background: var(--bg) !important; color: var(--ink); }
  .pillar, .pillar-body, .sky-seam, .page-header--art, .brochure__nav, .brochure__weather, .bureau-letter, .brochure__save, .brochure__ics,
  #trip-clear, .trip-dates__actions, .trip-dates__note, .brochure__availability-note, .brochure__line, noscript { display: none !important; }
  .brochure .page-header { display: block !important; padding-top: 12px; }
  .brochure .page-header__lead { color: var(--ink-soft); }
  .brochure { box-shadow: none; border: 0; margin: 0; padding: 0; max-width: none; background: var(--bg); }
  .brochure::before { display: none; }
  .brochure__section { break-inside: auto; border: 0; padding: 0; margin: 0 0 18px; }
  .whats-on__item, .trip-days > li { break-inside: avoid; }
  .whats-on__item { grid-template-columns: 9rem 1fr 14rem; }
  a { color: var(--ink); text-decoration: none; }
  .trip-dates__row input { border: 0; padding: 0; color-scheme: light; }
  .trip-print-foot { display: block; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
}
