/* The postcard and expedition entry share a paper edge and tire postmark. */
[data-aemazon-christmas="2026"] {
  --xmas-paper: #fff4e7;
  --xmas-paper-edge: #e7dac6;
  --xmas-ink: #24352c;
  --xmas-note: #5e635c;
  --xmas-forest: #275943;
  --xmas-tag-fill: #285c35;
  --xmas-tag-ink: #fffef2;
  --xmas-postcard-forest: #1d3d29;
  --xmas-postcard-cream: #fff1cd;
}

.post-detail-v2[data-aemazon-christmas="2026"] .xmas-cafe-postcard,
.cf-app[data-aemazon-christmas="2026"] .cf-expedition {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  background-color: var(--xmas-paper);
  border: 1px solid var(--xmas-paper-edge);
  color: var(--xmas-ink) !important;
}

.cf-app[data-aemazon-christmas="2026"] .cf-expedition {
  min-height: 49px;
  padding: 5px 11px;
  gap: 8px;
}

.cf-app[data-aemazon-christmas="2026"] .cf-expedition[hidden] { display: none !important; }
.cf-app[data-aemazon-christmas="2026"] .cf-xmas-mascot {
  object-fit: contain;
  inline-size: 36px;
  block-size: 36px;
  flex: none;
}

.cf-app[data-aemazon-christmas="2026"] .cf-expedition > .ae-xmas-postmark {
  flex: none;
  margin: 0;
  color: var(--xmas-forest);
}

.cf-app[data-aemazon-christmas="2026"] .cf-expedition > .cf-icon:last-child { flex: none; }
.cf-app[data-aemazon-christmas="2026"] .cf-expedition p,
.cf-app[data-aemazon-christmas="2026"] #cfStampCount { color: var(--xmas-note); }
.cf-app[data-aemazon-christmas="2026"] .cf-christmas-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  vertical-align: middle;
}

.cf-card-copy > h3:has(+ .cf-christmas-tags),
.cf-map-preview h3:has(+ .cf-christmas-tags) { display: inline; margin-inline-end: 7px; }
.cf-detail-title .cf-christmas-tags { margin-block-start: 5px; }
.cf-app[data-aemazon-christmas="2026"] .cf-christmas-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--xmas-tag-ink);
  background-color: var(--xmas-tag-fill);
  border-radius: 5px;
  padding: 3px 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.cf-christmas-tag::before {
  content: "";
  width: 10px;
  height: 11px;
  flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 75% 38%, 64% 38%, 87% 63%, 74% 63%, 100% 84%, 59% 84%, 59% 100%, 41% 100%, 41% 84%, 0 84%, 26% 63%, 13% 63%, 36% 38%, 25% 38%);
}
.cf-christmas-tag[data-decoration="lights"]::before {
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}

.cf-app[data-aemazon-christmas="2026"] .cf-first-stamp h2 {
  position: relative;
  padding-inline-end: 54px;
}

.cf-app[data-aemazon-christmas="2026"] .cf-first-stamp h2::after {
  content: "";
  position: absolute;
  inset-inline-end: 3px;
  top: 50%;
  transform: translateY(-50%);
  inline-size: 46px;
  block-size: 46px;
  background: url("../img/christmas-2026/aemongi-scarf.webp?v=200") no-repeat center / contain;
  pointer-events: none;
}

.post-detail-v2[data-aemazon-christmas="2026"] .xmas-cafe-postcard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 3%, 22px);
  margin: 16px 0;
  padding: 10px 13px;
  min-height: 64px;
  border-radius: 8px;
  border-color: var(--xmas-postcard-cream);
  background-color: var(--xmas-postcard-cream);
  color: var(--xmas-postcard-cream) !important;
  text-decoration: none;
}

.xmas-cafe-postcard::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 0, var(--xmas-postcard-cream) 1.2px, transparent 1.5px) top / 6px 3px repeat-x,
    radial-gradient(circle at 50% 100%, var(--xmas-postcard-cream) 1.2px, transparent 1.5px) bottom / 6px 3px repeat-x,
    radial-gradient(circle at 0 50%, var(--xmas-postcard-cream) 1.2px, transparent 1.5px) left / 3px 6px repeat-y,
    radial-gradient(circle at 100% 50%, var(--xmas-postcard-cream) 1.2px, transparent 1.5px) right / 3px 6px repeat-y,
    var(--xmas-postcard-forest);
  pointer-events: none;
}

.xmas-cafe-postcard > .ae-xmas-postmark { color: var(--xmas-postcard-cream); }
.xmas-postcard-copy { min-width: 0; overflow-wrap: anywhere; color: inherit; font-size: 18px; font-weight: 750; line-height: 1.35; }
.xmas-postcard-action { border-inline-start: 1px solid #b2bb9e; padding: 5px 0 5px 10px; color: inherit; font-size: 12px; font-weight: 650; white-space: nowrap; }
.xmas-cafe-postcard:focus-visible,
.cf-app[data-aemazon-christmas="2026"] .cf-expedition:focus-visible { outline: 2px solid var(--xmas-forest); outline-offset: 2px; }

@media (max-width: 380px) {
  .post-detail-v2[data-aemazon-christmas="2026"] .xmas-cafe-postcard { gap: 8px; padding: 12px 10px 12px 15px; }
  .cf-app[data-aemazon-christmas="2026"] .cf-expedition { gap: 5px; padding-inline: 8px; }
  .cf-app[data-aemazon-christmas="2026"] .cf-detail-body .cf-expedition > .ae-xmas-postmark { display: none; }
}

@media (prefers-color-scheme: dark) {
  [data-aemazon-christmas="2026"] {
    --xmas-paper: #18231b;
    --xmas-paper-edge: #59665b;
    --xmas-ink: #f3eee5;
    --xmas-note: #babdb7;
    --xmas-forest: #a0caae;
    --xmas-tag-fill: #285b34;
  }
}
