/* The collection uses the same printed-page palette for the schedule and logbook. */
:is(#departures, #journal, #partners, body[data-page="home"] > footer) {
  --collection-ink: #142e2d;
  --collection-muted: #52605b;
  --collection-rule: #c8c6b9;
  --collection-bronze: #765b3a;
  --collection-paper: #f7f5ef;
  --collection-serif: "Baskervville", "Iowan Old Style", "AppleMyungjo", "Batang", Georgia, "Times New Roman", serif;
}

#departures { padding-block: clamp(56px, 6.7vw, 104px) clamp(62px, 7.2vw, 114px); color: var(--collection-ink); }
#departures .section-top { align-items: end; column-gap: 36px; row-gap: 17px; }
#departures .section-copy { flex: 1 1 480px; max-width: 790px; }
:is(#departures, #journal, #partners) .kicker {
  color: var(--collection-bronze);
  font-weight: 600;
  font-size: .8rem;
  line-height: 1.45;
  letter-spacing: .12em;
  margin-block: 0 13px;
}
:is(#departures, #journal, #partners) h2,
#departures .card-body h3 {
  font-family: var(--collection-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
:is(#departures, #journal, #partners) h2 { font-size: clamp(2.25rem, 4.4vw, 4.2rem); }
:is(#departures, #journal, #partners) .intro {
  color: var(--collection-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 61ch;
}
#departures .sample-badge {
  padding: 1px 0 1px 11px;
  padding-inline: 11px 0;
  border: 0;
  border-inline-start: 2px solid #a48b66;
  border-radius: 0;
  background: transparent;
  color: #535c51;
  font-weight: 500;
  font-size: .84rem;
  line-height: 1.45;
}
#departures .sample-badge i { display: none; }
#departures .mode-tabs {
  align-items: stretch;
  gap: 0 clamp(14px, 2.5vw, 38px);
  margin-block: clamp(24px, 3vw, 43px) clamp(19px, 2.3vw, 35px);
  border-bottom: 1px solid var(--collection-rule);
}
#departures .mode-tabs button {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 0;
  margin-bottom: -1px;
  background: transparent;
  color: #485650;
  font-size: .92rem;
  font-weight: 500;
  min-height: 46px;
  text-align: start;
  overflow-wrap: anywhere;
}
#departures .mode-tabs button:hover { color: var(--collection-bronze); border-bottom-color: #a38a69; }
#departures .mode-tabs button[aria-pressed="true"] { color: var(--collection-ink); border-bottom-color: var(--collection-ink); font-weight: 700; }
#departures .trip-grid { align-items: stretch; gap: clamp(26px, 3.1vw, 54px); }
#departures .trip-card {
  border: 0;
  border-bottom: 1px solid var(--collection-rule);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
#departures .trip-image {
  aspect-ratio: 1.83;
  align-items: end;
  padding: clamp(14px, 1.7vw, 24px);
}
#departures .trip-image::before {
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: 200% auto;
  background-position: left center;
}
#departures .photo-request::before { background-position: right center; }
#departures .trip-image::after {
  background: linear-gradient(0deg, rgb(5 27 32 / .84), rgb(5 27 32 / .35) 18%, transparent 44%);
}
#departures .time-tag,
#departures .mode-tag {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff;
  box-shadow: none;
}
#departures .time-tag {
  flex: none;
  font-family: var(--collection-serif);
  font-size: clamp(1.65rem, 2.7vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
#departures .mode-tag {
  font-size: .87rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: end;
  text-shadow: 0 1px 4px #052124;
}
#departures .card-body { padding: clamp(18px, 2.2vw, 31px) 0 clamp(16px, 2vw, 25px); }
#departures .card-body h3 { font-size: clamp(1.65rem, 2.7vw, 2.65rem); }
#departures .card-note { color: var(--collection-muted); margin-top: 9px; line-height: 1.65; font-size: 1rem; }
#departures .card-facts { color: #45544d; line-height: 1.5; margin-block: 15px 19px; font-size: .9rem; }
#departures .card-facts > span + span { border-color: var(--collection-rule); }
#departures .card-bottom { padding-top: 18px; border-color: var(--collection-rule); gap: 14px; }
#departures .card-price { color: var(--collection-ink); }
#departures .card-price bdi {
  font-family: var(--collection-serif);
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.025em;
}
#departures .card-price small, #departures .card-deposit { font-size: .83rem; color: var(--collection-muted); }
#departures .trip-link, #departures .empty button {
  color: var(--collection-ink);
  background: transparent;
  border: 1px solid #78847b;
  min-height: 44px;
  border-radius: 0;
  padding: 10px 19px;
  font-size: .91rem;
  font-weight: 600;
}
#departures .trip-link:hover, #departures .empty button:hover { color: #fff; background: var(--collection-ink); border-color: var(--collection-ink); }
#departures .meta-line { color: #59645b; gap: 6px 16px; margin-top: 15px; font-size: .81rem; line-height: 1.6; }
#departures .empty { color: var(--collection-ink); padding: clamp(22px, 4vw, 56px); background: #f1efe6; border: 1px solid var(--collection-rule); border-radius: 0; }

#journal { padding-block: clamp(58px, 7.3vw, 112px); color: var(--collection-ink); background: #eeece3; border: 0; }
#journal .journal-layout { grid-template-columns: minmax(0,.76fr) minmax(0,1.18fr); gap: clamp(38px, 8vw, 132px); align-items: start; }
#journal .journal-intro { padding-top: 5px; max-width: 480px; }
#journal .journal-intro .intro { max-width: 36ch; }
#journal .hdj-app {
  --hdj-ink: var(--collection-ink);
  --hdj-line: #c9c8bb;
  --hdj-action: #193b37;
  --hdj-muted: var(--collection-muted);
  --hdj-paper: #fbfaf4;
  border-radius: 0;
  border: 1px solid var(--hdj-line);
}
#journal .hdj-toolbar { padding-block: 15px; }
#journal .hdj-count { border: 0; padding: 0; min-width: auto; border-radius: 0; font-family: var(--collection-serif); font-size: 1.55rem; font-weight: 500; }
#journal .hdj-summary { gap: 7px; }
#journal .hdj-empty {
  border-radius: 0;
  min-height: 150px;
  background: transparent;
}
#journal .hdj-book { background: #dfd8c9; border-color: #84755e; box-shadow: 2px 3px 0 #d5cdbd; }
#journal .hdj-book > i, #journal .hdj-book > i::after { border-color: #99876d; }
#journal .hdj-form { background: #f2f0e8; }
#journal .hdj-depth { background: #e4e8dd; color: #304c40; }
#journal .hdj-button, #journal .hdj-sort select, #journal .hdj-field :is(input, textarea) {
  border-radius: 0;
  min-height: 44px;
}
#journal .hdj-sort select { padding-inline-end: 1.7em; }
#journal .hdj-notice:not(:empty) { line-height: 1.5; }

#partners { padding-block: clamp(54px, 6.1vw, 94px); background: #193b37; color: #faf8ef; }
#partners .partner-layout { gap: clamp(23px, 5vw, 80px); grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); }
#partners .kicker { color: #dcc5a2; }
#partners h2 { font-size: clamp(2rem, 3.8vw, 3.55rem); }
#partners .intro { color: #d5dfd7; }
#partners .partner-rate { color: #ead9be; font-weight: 500; }
#partners .partner-links { gap: 12px; justify-content: flex-end; }
#partners .partner-links a {
  padding: 12px 18px;
  min-height: 46px;
  border: 1px solid #e3decd;
  border-radius: 0;
  background: #f6f2e7;
  color: #18352f;
  font-size: .95rem;
  font-weight: 600;
}
#partners .partner-links a + a { background: transparent; color: #faf8ef; border-color: #a4b0a3; }
#partners .partner-links a:hover { background: #e7dfcb; border-color: #e7dfcb; color: #18352f; filter: none; }
#partners .partner-links svg { display: none; }
body[data-page="home"] > footer { background: #112c29; color: #dce5dc; padding-block: 26px; }
body[data-page="home"] > footer .foot-grid { gap: 14px 26px; }
body[data-page="home"] > footer small { color: #c5d0c5; }
body[data-page="home"] > footer #hd-downloads :is(a, button) { min-height: 44px; color: #e1e8dd; }

[dir="rtl"] :is(#departures, #journal, #partners) :is(h2, h3, .kicker) { letter-spacing: normal; }
@media (max-width: 880px) {
  #journal .journal-layout { gap: 28px; grid-template-columns: minmax(0,.67fr) minmax(0,1fr); }
  #partners .partner-layout { grid-template-columns: minmax(0,1.1fr) minmax(0,.8fr); }
}
@media (max-width: 720px) {
  #departures .section-copy { flex-basis: 100%; }
  #departures .mode-tabs { column-gap: 18px; }
  #departures .trip-grid { gap: 30px; }
  #journal .journal-layout, #partners .partner-layout { grid-template-columns: minmax(0,1fr); }
  #journal .journal-intro .intro { max-width: 55ch; }
  #partners .partner-links { justify-content: flex-start; }
  #journal .hdj-toolbar { padding-block: 12px; }
}
@media (max-width: 590px) {
  #departures .trip-grid { grid-template-columns: minmax(0,1fr); }
  #departures .section-top { gap: 14px; }
  #departures .mode-tabs { gap: 0 13px; }
  #departures .mode-tabs button { font-size: .875rem; }
  #departures .trip-image { aspect-ratio: 1.69; }
  #departures .card-body { padding-block: 19px; }
  #departures .card-bottom { padding-top: 15px; }
  #departures .card-facts { margin-block: 13px 15px; }
  #departures .meta-line { gap: 4px 12px; }
  body[data-page="home"] > footer .foot-grid { align-items: flex-start; flex-direction: column; }
  body[data-page="home"] > footer #hd-downloads:empty { display: none; }
}
