/* ==========================================================
   Holidays page (.hdx-*), driven by js/holidays-page.js.
   The page's own idea is post: a deck of postcards in the hero,
   postcards for the regions, postage stamps for the travel
   styles, the back of a postcard for "tailor-made", postmarks
   for "why us". The featured journeys keep the approved
   .pkg-card and gain a where / who / budget matcher.
   Text never sits on a photograph: captions are on the card's
   white margin, so there is no veil anywhere on the page.
   ========================================================== */
.hdx-hero,
.hdx-sec,
.hdx-trend {
  --hdx-serif: var(--font-display);
  --hdx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hdx-paper: #FFFDF8;
}

/* ---------- hero ---------- */
.hdx-hero {
  overflow: hidden;
  padding: 26px 0 70px;
  background:
    radial-gradient(46% 70% at 100% 0%, rgba(var(--t-acc-l-rgb), 0.2) 0%, rgba(var(--t-acc-l-rgb), 0) 70%),
    var(--t-bg);
}
.hdx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: 56px;
  align-items: center;
}
.hdx-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  font-size: 12.5px;
  color: var(--t-ink);
}
.hdx-crumb a {
  color: var(--t-tx-2);
}
.hdx-crumb a:hover {
  color: var(--t-acc);
}
.hdx-crumb i {
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--t-tx-3);
  border-right: 1.5px solid var(--t-tx-3);
  transform: rotate(45deg);
}
.hdx-title {
  margin: 0 0 16px;
  font-size: var(--fs-hero);
  line-height: 1.12;
  color: var(--t-ink);
}
.hdx-title i {
  font-style: italic;
  color: var(--t-acc);
}
.hdx-lead {
  max-width: 44ch;
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--t-tx);
}
.hdx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.hdx-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--t-line);
  list-style: none;
}
.hdx-kinds li {
  display: block;
}
.hdx-kinds a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--t-line);
  border-radius: 100px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t-ink);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.hdx-kinds a:hover {
  border-color: var(--t-ink);
  background: var(--t-ink);
  color: #fff;
}
.hdx-kinds i {
  font-size: 13px;
  color: var(--t-acc);
}

/* the deck: five postcards, the top one moves to the back */
.hdx-deck {
  position: relative;
  height: 520px;
}
.hdx-post {
  position: absolute;
  top: 34px;
  left: 50%;
  display: block;
  width: 400px;
  margin-left: -200px;
  padding: 14px 14px 0;
  border-radius: 6px;
  background: var(--hdx-paper);
  color: var(--t-ink);
  text-decoration: none !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 30px 44px -26px rgba(var(--t-ink-d-rgb), 0.55), 0 2px 6px rgba(var(--t-ink-d-rgb), 0.12);
  transition: transform 0.7s var(--hdx-ease), box-shadow 0.5s ease;
  will-change: transform;
}
.hdx-post:hover {
  color: var(--t-ink);
}
.hdx-post-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--t-sand);
}
.hdx-post-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hdx-post-cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 14px;
  align-items: center;
  padding: 15px 4px 17px;
}
.hdx-post-cap b {
  font-family: var(--hdx-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
}
.hdx-post-cap span {
  grid-column: 1;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--t-tx);
}
/* the duration, set like a postmark */
.hdx-post-cap em {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1.5px dashed var(--t-acc);
  border-radius: 50%;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--t-acc-d);
  transform: rotate(-10deg);
}
.hdx-pos-0 { z-index: 5; transform: rotate(-2.5deg); }
.hdx-pos-1 { z-index: 4; transform: translate(44px, 16px) rotate(4deg); }
.hdx-pos-2 { z-index: 3; transform: translate(-50px, 22px) rotate(-8deg); }
.hdx-pos-3 { z-index: 2; transform: translate(84px, 30px) rotate(9deg); }
.hdx-pos-4 { z-index: 1; transform: translate(-88px, 36px) rotate(-13deg); }
.hdx-pos-0:hover {
  transform: rotate(-1deg) translateY(-8px);
}
.hdx-post.is-out {
  z-index: 6;
  transform: translate(74%, -24px) rotate(16deg);
}
.hdx-deck-next {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid var(--t-line);
  border-radius: 100px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--t-ink);
  cursor: pointer;
  transform: translateX(-50%);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.hdx-deck.is-live .hdx-deck-next {
  display: inline-flex;
}
.hdx-deck-next:hover {
  border-color: var(--t-btn);
  background: var(--t-btn);
  color: var(--t-on-btn);
}
.hdx-deck-next i {
  font-size: 12px;
}

/* ---------- shared frame ---------- */
.hdx-sec {
  padding: 80px 0;
  background: #fff;
}
.hdx-sec.hdx-tint {
  background: var(--t-bg);
}
.hdx-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}
.hdx-head .hl-sub {
  max-width: 64ch;
  margin: 0 auto;
}
.hdx-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* ---------- the matcher ---------- */
.hdx-match {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 34px;
  align-items: end;
  padding: 22px 26px 24px;
  border: 1px solid var(--t-line);
  border-radius: 20px;
  background: var(--t-bg-2);
}
/* without the script there is nothing to operate */
.hdx-match:not(.is-live) {
  display: none;
}
.hdx-match-label {
  display: block;
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-tx-2);
}
.hdx-match-label b {
  margin-left: 4px;
  font-family: var(--hdx-serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--t-acc-d);
}
.hdx-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--t-line);
  border-radius: 100px;
  background: #fff;
}
.hdx-seg button {
  padding: 9px 15px;
  border: 0;
  border-radius: 100px;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--t-ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.hdx-seg button:hover {
  background: var(--t-bg);
}
.hdx-seg button.is-on {
  background: var(--t-ink);
  color: #fff;
}
.hdx-range {
  --hdx-fill: 100%;
  display: block;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.hdx-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--t-btn) 0, var(--t-btn) var(--hdx-fill), var(--t-sand) var(--hdx-fill), var(--t-sand) 100%);
}
.hdx-range::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--t-btn) 0, var(--t-btn) var(--hdx-fill), var(--t-sand) var(--hdx-fill), var(--t-sand) 100%);
}
.hdx-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--t-ink);
  box-shadow: 0 0 0 1px var(--t-btn), 0 6px 12px -6px rgba(var(--t-ink-rgb), 0.8);
  -webkit-appearance: none;
  appearance: none;
}
.hdx-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--t-ink);
  box-shadow: 0 0 0 1px var(--t-btn);
}
.hdx-result {
  margin: 20px 2px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--t-ink);
}
.hdx-sec .pkg-card[hidden] {
  display: none;
}
/* one, two or three matches sit in the middle instead of leaving a ragged row */
.hdx-sec .pkg-grid.is-few {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.hdx-sec .pkg-grid.is-few .pkg-card {
  flex: 0 0 calc((100% - 66px) / 4);
  min-width: 250px;
}
.hdx-none {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 24px;
  border: 1px dashed var(--t-line);
  border-radius: 18px;
  text-align: center;
  color: var(--t-tx);
}
.hdx-none[hidden] {
  display: none;
}
.hdx-none b {
  font-size: 17px;
  color: var(--t-ink);
}
.hdx-none-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.hdx-sec .pkg-note {
  margin-top: 26px;
  text-align: center;
}

/* ---------- trending: two rails drifting opposite ways ---------- */
.hdx-trend {
  overflow: hidden;
  padding: 72px 0 78px;
  border-top: 1px solid var(--t-line);
  border-bottom: 1px solid var(--t-line);
  background: var(--t-bg);
}
.hdx-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hdx-rail-track {
  display: flex;
  gap: 16px;
  padding: 2px 16px;
  overflow-x: auto;
}
.hdx-rail-track.is-loop {
  width: max-content;
  padding: 2px 0;
  overflow: visible;
  animation: hdx-rail 46s linear infinite;
}
.hdx-rail-back.is-loop {
  animation-direction: reverse;
  animation-duration: 54s;
}
.hdx-rail:hover .hdx-rail-track {
  animation-play-state: paused;
}
@keyframes hdx-rail {
  to { transform: translateX(calc(-50% - 8px)); }
}
.hdx-chip {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  padding: 8px 26px 8px 8px;
  border: 1px solid var(--t-line);
  border-radius: 100px;
  background: #fff;
  color: var(--t-tx);
  text-decoration: none !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--hdx-ease);
}
.hdx-chip:hover {
  border-color: var(--t-acc-l);
  color: var(--t-tx);
  transform: translateY(-3px);
  box-shadow: 0 18px 26px -20px rgba(var(--t-ink-rgb), 0.6);
}
.hdx-chip img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.hdx-chip span {
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
.hdx-chip b {
  display: block;
  font-family: var(--hdx-serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--t-ink);
}

/* ---------- India / the world ---------- */
.hdx-switch {
  display: none;
}
.is-switched .hdx-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 34px;
  padding: 6px;
  border: 1px solid var(--t-line);
  border-radius: 100px;
  background: #fff;
}
.hdx-switch button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: 100px;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--t-ink);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.hdx-switch button i {
  color: var(--t-acc);
}
.hdx-switch button.is-on {
  background: var(--t-ink);
  color: #fff;
}
.hdx-switch button.is-on i {
  color: var(--t-acc-l);
}
.hdx-panel + .hdx-panel {
  margin-top: 64px;
}
.is-switched .hdx-panel {
  display: none;
  margin-top: 0;
}
.is-switched .hdx-panel.is-on {
  display: block;
  animation: hdx-panel-in 0.6s var(--hdx-ease) both;
}
@keyframes hdx-panel-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hdx-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 26px;
}
/* a postcard: photograph in a paper margin, caption underneath, set down slightly askew */
.hdx-card {
  display: block;
  padding: 12px 12px 0;
  border-radius: 6px;
  background: var(--hdx-paper);
  color: var(--t-ink);
  text-decoration: none !important;
  box-shadow: 0 22px 34px -24px rgba(var(--t-ink-d-rgb), 0.5), 0 2px 5px rgba(var(--t-ink-d-rgb), 0.1);
  transform: rotate(-1.4deg);
  transition: transform 0.5s var(--hdx-ease), box-shadow 0.5s ease;
}
.hdx-card:nth-child(even) {
  transform: rotate(1.2deg);
}
.hdx-card:nth-child(3n) {
  transform: rotate(-0.6deg);
}
.hdx-card:hover,
.hdx-card:focus-visible {
  color: var(--t-ink);
  transform: rotate(0) translateY(-8px);
  box-shadow: 0 34px 44px -26px rgba(var(--t-ink-d-rgb), 0.6), 0 2px 5px rgba(var(--t-ink-d-rgb), 0.1);
}
.hdx-card-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  background: var(--t-sand);
}
.hdx-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--hdx-ease);
}
.hdx-card:hover .hdx-card-photo img {
  transform: scale(1.06);
}
.hdx-card-cap {
  display: block;
  padding: 14px 4px 18px;
}
.hdx-card-cap em {
  display: block;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-acc);
}
.hdx-card-cap b {
  display: block;
  margin: 4px 0 3px;
  font-family: var(--hdx-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}
.hdx-card-cap span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--t-tx);
}

/* ---------- travel styles: a sheet of stamps ---------- */
.hdx-stamps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
/* the perforated edge: a dotted background shows through around a solid middle */
.hdx-stamp {
  display: block;
  padding: 9px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 5px, var(--hdx-paper) 5.5px) -9px -9px / 18px 18px round;
  color: var(--t-ink);
  text-decoration: none !important;
  filter: drop-shadow(0 16px 16px rgba(var(--t-ink-d-rgb), 0.2));
  transition: transform 0.5s var(--hdx-ease);
}
.hdx-stamp:hover,
.hdx-stamp:focus-visible {
  color: var(--t-ink);
  transform: translateY(-7px) rotate(-1.5deg);
}
.hdx-stamp-in {
  display: block;
  height: 100%;
  padding: 10px 10px 16px;
  background: var(--hdx-paper);
  text-align: center;
}
.hdx-stamp-in img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.82;
  margin-bottom: 14px;
  border: 1px solid var(--t-line);
  object-fit: cover;
}
.hdx-stamp-in b {
  display: block;
  font-family: var(--hdx-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}
.hdx-stamp-in span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--t-tx);
}

/* ---------- tailor-made: the back of a postcard ---------- */
.hdx-letter {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 8px;
  background: var(--hdx-paper);
  box-shadow: 0 40px 60px -40px rgba(var(--t-ink-d-rgb), 0.6), 0 2px 6px rgba(var(--t-ink-d-rgb), 0.1);
}
.hdx-letter-msg {
  padding: 46px 48px 44px;
}
.hdx-letter-intro {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--t-tx);
}
.hdx-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hdx-lines li {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--t-line);
}
.hdx-lines em {
  flex: 0 0 auto;
  width: 30px;
  font-family: var(--hdx-serif);
  font-size: 28px;
  font-style: italic;
  line-height: 1;
  color: var(--t-acc);
}
.hdx-lines span {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--t-tx);
}
.hdx-lines b {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--t-ink);
}
.hdx-letter-addr {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 170px 44px 44px;
  border-left: 2px solid var(--t-line);
}
.hdx-letter-stamp {
  position: absolute;
  top: 34px;
  right: 38px;
  width: 124px;
  padding: 7px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 4px, #fff 4.5px) -7px -7px / 14px 14px round;
  filter: drop-shadow(0 8px 10px rgba(var(--t-ink-d-rgb), 0.25));
  transform: rotate(4deg);
}
.hdx-letter-stamp span {
  display: block;
  padding: 6px;
  background: #fff;
}
.hdx-letter-stamp img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.16;
  object-fit: cover;
}
/* the wavy cancellation lines beside the stamp */
.hdx-letter-mark {
  position: absolute;
  top: 66px;
  right: 150px;
  display: block;
  width: 110px;
  transform: rotate(-6deg);
}
.hdx-letter-mark i {
  display: block;
  height: 8px;
  margin-bottom: 5px;
  border-top: 1.5px solid rgba(var(--t-ink-rgb), 0.28);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hdx-letter-to {
  margin-bottom: 4px;
  font-family: var(--hdx-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--t-tx-2);
}
.hdx-letter-row {
  display: block;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--t-tx-3);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--t-ink);
}
.hdx-letter-addr .hl-btn {
  align-self: flex-start;
  margin-top: 28px;
}

/* ---------- why us: four postmarks ----------
   Each reason is franked like a letter: a round double-ring mark with
   the icon in it and the wavy cancellation lines running off to the side. */
.hdx-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.hdx-tag {
  position: relative;
  padding: 0 6px;
  text-align: left;
}
.hdx-tag-ico {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: 0 0 22px;
  border: 2px solid var(--t-acc);
  border-radius: 50%;
  font-size: 26px;
  color: var(--t-ink);
  transform: rotate(-8deg);
  transition: transform 0.6s var(--hdx-ease);
}
/* the inner ring */
.hdx-tag-ico::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed var(--t-acc);
  border-radius: 50%;
}
/* the cancellation lines */
.hdx-tag-ico::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 96px;
  height: 34px;
  margin: -17px 0 0 6px;
  background:
    repeating-linear-gradient(180deg, rgba(var(--t-acc-rgb), 0.55) 0, rgba(var(--t-acc-rgb), 0.55) 1.5px, rgba(var(--t-acc-rgb), 0) 1.5px, rgba(var(--t-acc-rgb), 0) 8px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}
.hdx-tag:hover .hdx-tag-ico {
  transform: rotate(6deg);
}
.hdx-tag b {
  display: block;
  margin-bottom: 7px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--t-ink);
}
.hdx-tag > span:last-child {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--t-line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--t-tx);
}

/* ---------- narrower screens ---------- */
@media (max-width: 1199px) {
  .hdx-hero-grid {
    gap: 30px;
  }
  .hdx-deck {
    height: 470px;
  }
  .hdx-post {
    width: 340px;
    margin-left: -170px;
  }
  .hdx-match {
    grid-template-columns: 1fr 1fr;
  }
  .hdx-match-budget {
    grid-column: 1 / -1;
  }
  .hdx-cards,
  .hdx-stamps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hdx-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 30px;
  }
}
@media (max-width: 991px) {
  .hdx-hero {
    padding: 18px 0 54px;
  }
  .hdx-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hdx-crumb {
    margin-bottom: 22px;
  }
  .hdx-sec {
    padding: 62px 0;
  }
  .hdx-match {
    grid-template-columns: 1fr;
  }
  .hdx-letter {
    grid-template-columns: 1fr;
  }
  .hdx-letter-addr {
    padding: 34px 48px 44px;
    border-top: 2px solid var(--t-line);
    border-left: 0;
  }
  .hdx-letter-stamp,
  .hdx-letter-mark {
    display: none;
  }
  .hdx-cards,
  .hdx-stamps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .hdx-actions .hl-btn,
  .hdx-actions .hl-btn-ghost {
    flex: 1 1 100%;
    justify-content: center;
  }
  .hdx-deck {
    height: 380px;
  }
  .hdx-post {
    top: 16px;
    width: 270px;
    margin-left: -135px;
    padding: 10px 10px 0;
  }
  .hdx-post-cap b {
    font-size: 20px;
  }
  .hdx-post-cap em {
    width: 52px;
    height: 52px;
    font-size: 9.5px;
  }
  .hdx-pos-1 { transform: translate(18px, 12px) rotate(4deg); }
  .hdx-pos-2 { transform: translate(-20px, 16px) rotate(-7deg); }
  .hdx-pos-3 { transform: translate(30px, 22px) rotate(8deg); }
  .hdx-pos-4 { transform: translate(-32px, 26px) rotate(-11deg); }
  .hdx-post.is-out {
    transform: translate(46%, -16px) rotate(14deg);
  }
  .hdx-match {
    padding: 18px 16px 20px;
  }
  .hdx-seg {
    border-radius: 20px;
  }
  .hdx-is-switched .hdx-switch,
  .is-switched .hdx-switch {
    width: 100%;
  }
  .hdx-switch button {
    flex: 1 1 0;
    justify-content: center;
    padding: 13px 10px;
    font-size: 12px;
  }
  .hdx-switch button i {
    display: none;
  }
  .hdx-cards {
    gap: 22px 14px;
  }
  .hdx-card {
    padding: 8px 8px 0;
  }
  .hdx-card-cap {
    padding: 10px 2px 14px;
  }
  .hdx-card-cap b {
    font-size: 17px;
  }
  .hdx-card-cap span {
    font-size: 12px;
  }
  .hdx-stamps {
    gap: 16px 12px;
  }
  .hdx-stamp-in b {
    font-size: 15.5px;
  }
  .hdx-letter-msg {
    padding: 30px 22px 26px;
  }
  .hdx-letter-addr {
    padding: 24px 22px 30px;
  }
  .hdx-letter-addr .hl-btn {
    align-self: stretch;
    justify-content: center;
  }
  .hdx-tags {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hdx-tag-ico {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
    font-size: 22px;
  }
  .hdx-chip img {
    width: 52px;
    height: 52px;
  }
  .hdx-chip b {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hdx-post,
  .hdx-card,
  .hdx-stamp,
  .hdx-tag,
  .hdx-chip,
  .hdx-card-photo img {
    transition: none;
  }
  .is-switched .hdx-panel.is-on {
    animation: none;
  }
}

/* ---------- closing: three postcards, the invitation, the desk ---------- */
.hdx-end {
  padding: 84px 0 92px;
  border-top: 1px solid var(--t-line);
  background: var(--t-bg);
  --hdx-serif: var(--font-display);
  --hdx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hdx-paper: #FFFDF8;
}
.hdx-end-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
}
.hdx-end-pile {
  position: relative;
  height: 330px;
}
.hdx-end-post {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 232px;
  padding: 10px 10px 34px;
  border-radius: 5px;
  background: var(--hdx-paper);
  box-shadow: 0 24px 34px -24px rgba(var(--t-ink-d-rgb), 0.55), 0 2px 5px rgba(var(--t-ink-d-rgb), 0.12);
  transition: transform 0.6s var(--hdx-ease);
}
.hdx-end-post img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
}
.hdx-end-post:nth-child(1) {
  transform: translate(-30px, 20px) rotate(-11deg);
}
.hdx-end-post:nth-child(2) {
  transform: translate(34px, 34px) rotate(8deg);
}
.hdx-end-post:nth-child(3) {
  transform: rotate(-2deg);
}
.hdx-end-grid:hover .hdx-end-post:nth-child(1) {
  transform: translate(-46px, 16px) rotate(-15deg);
}
.hdx-end-grid:hover .hdx-end-post:nth-child(2) {
  transform: translate(52px, 30px) rotate(12deg);
}
.hdx-end-copy .hl-sub {
  margin-bottom: 26px;
}
.hdx-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hdx-end-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hdx-end-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
  font-size: 13px;
  color: var(--t-tx-2);
}
.hdx-end-points i {
  font-size: 11px;
  color: var(--t-acc);
}
.hdx-end-desk {
  padding: 24px 24px 12px;
  border: 1px solid var(--t-line);
  border-radius: 20px;
  background: #fff;
}
.hdx-end-desk-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-acc);
}
.hdx-end-desk-note {
  margin: 6px 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--t-tx);
}
.hdx-end-desk a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--t-line-s);
  color: var(--t-ink);
  text-decoration: none !important;
}
.hdx-end-desk a > i {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--t-bg);
  font-size: 15px;
  color: var(--t-acc);
  transition: background 0.3s ease, color 0.3s ease;
}
.hdx-end-desk a:hover > i {
  background: var(--t-btn);
  color: var(--t-on-btn);
}
.hdx-end-desk em {
  display: block;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-tx-3);
}
.hdx-end-desk b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
@media (max-width: 1199px) {
  .hdx-end-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .hdx-end-pile {
    display: none;
  }
}
@media (max-width: 991px) {
  .hdx-end {
    padding: 62px 0 68px;
  }
  .hdx-end-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}
@media (max-width: 575px) {
  .hdx-end-actions .hl-btn,
  .hdx-end-actions .hl-btn-ghost {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* three postcards: the same card size as a row of four, centred */
@media (min-width: 1200px) {
  .hdx-cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 830px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* ---------- review pass, 2026-10-24 ----------
   hero chips on one row, the closing CTA's two buttons on one row with the
   WhatsApp disc restored, and the tailor-made column as a plain summary. */
.hdx-kinds a {
  padding: 8px 13px;
  font-size: 11.5px;
  white-space: nowrap;
}
@media (min-width: 992px) {
  .hdx-kinds {
    flex-wrap: nowrap;
    gap: 8px;
  }
}
@media (min-width: 1200px) {
  .hdx-end-grid {
    grid-template-columns: 250px minmax(0, 1fr) 340px;
    gap: 44px;
  }
}
@media (min-width: 768px) {
  .hdx-end-actions {
    flex-wrap: nowrap;
  }
  .hdx-end-actions .hl-btn,
  .hdx-end-actions .hl-btn-ghost {
    padding-left: 22px;
    padding-right: 22px;
    white-space: nowrap;
  }
}
.hdx-end-desk a > svg {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--t-bg);
  color: var(--t-acc);
}
.hdx-end-desk a:hover > svg {
  background: var(--t-btn);
  color: var(--t-on-btn);
}
/* tailor-made: the airmail stamp, cancellation lines and "To" address lines are
   gone (the owner found the column odd); a photo, three promises and the button. */
.hdx-letter-addr {
  justify-content: flex-start;
  padding: 26px 30px 32px;
}
.hdx-letter-photo {
  display: block;
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: hidden;
}
.hdx-letter-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hdx-letter-to {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-tx-3);
}
.hdx-letter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--t-line);
  font-size: 14px;
}
.hdx-letter-row i {
  flex: 0 0 auto;
  margin-top: 3px;
  font-size: 13px;
  color: var(--t-acc);
}
.hdx-letter-addr .hl-btn {
  margin-top: 22px;
}
@media (max-width: 767px) {
  .hdx-letter-addr {
    padding: 22px 22px 26px;
  }
}
/* the photo pile spilled into the copy at 250px; back to a 300px column, the
   copy keeps 430px which is still enough for the two buttons on one row */
@media (min-width: 1200px) {
  .hdx-end-grid {
    grid-template-columns: 300px minmax(0, 1fr) 330px;
    gap: 40px;
  }
}
