/* "Did you know?" book, home-page strip, platform badges. Brand: #F63304 on #0C0C0C */

/* ---------- Shared: updated pill, active-on, badges ---------- */

.dyk-updated {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: center;
  margin: 0;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(246, 51, 4, 0.4);
  border-radius: 999px;
  background: rgba(246, 51, 4, 0.08);
  color: var(--ink);
  font-size: 0.9rem;
}
.dyk-updated::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--glow);
}
.dyk-updated strong { color: var(--white); font-weight: 600; }

.dyk-hero { padding: 2.4rem 0 1rem; }
.dyk-hero .lede { margin-bottom: 1rem; }
.dyk-hero .dyk-updated { margin-bottom: 1rem; }

.dyk-active-on {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0 0 1.4rem;
}
.dyk-active-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-l);
}
.dyk-active-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dyk-active-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem 0.32rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.7);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
}
.dyk-active-link svg { width: 15px; height: 15px; flex: none; }
.dyk-active-link:hover,
.dyk-active-link:focus-visible {
  color: var(--white);
  box-shadow: 0 0 0 1px currentColor inset;
}
.dyk-active-linkedin { color: #0A66C2; border-color: rgba(10, 102, 194, 0.45); }
.dyk-active-facebook { color: #1877F2; border-color: rgba(24, 119, 242, 0.45); }
.dyk-active-instagram { color: #E4405F; border-color: rgba(228, 64, 95, 0.45); }
.dyk-active-google { color: #e8eaed; border-color: rgba(66, 133, 244, 0.5); }

/* Fact-card badges (home strip + archive list) */
.dyk-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.dyk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.7);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
}
.dyk-chip svg { width: 15px; height: 15px; flex: none; }
a.dyk-chip:hover, a.dyk-chip:focus-visible {
  color: var(--white);
  box-shadow: 0 0 0 1px currentColor inset;
}
.dyk-chip-linkedin { color: #7bb3f0; border-color: rgba(10, 102, 194, 0.55); }
.dyk-chip-facebook { color: #8ab4f8; border-color: rgba(24, 119, 242, 0.55); }
.dyk-chip-instagram { color: #f08aa0; border-color: rgba(228, 64, 95, 0.55); }
.dyk-chip-google { color: #e8eaed; border-color: rgba(66, 133, 244, 0.55); }

.dyk-posted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.dyk-posted-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-l);
}
.dyk-pending { font-size: 0.82rem; color: var(--grey-l); font-style: italic; }

/* Primary-platform accent on cards */
.dyk-card {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
  scroll-margin-top: calc(var(--header-h) + 14px);
  border-top: 3px solid var(--orange);
}
.dyk-card[data-primary="linkedin"] { border-top-color: #0A66C2; }
.dyk-card[data-primary="facebook"] { border-top-color: #1877F2; }
.dyk-card[data-primary="instagram"] { border-top-color: #E4405F; }
.dyk-card[data-primary="google"] { border-top-color: #4285F4; }
.dyk-card:hover, .dyk-card:focus-within { transform: none; }
.dyk-card figure { margin: 0; }
.dyk-card figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #100808;
}
.dyk-card.no-image { grid-template-columns: minmax(0, 1fr); }
.dyk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin: 0 0 0.7rem;
}
.dyk-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
.dyk-topic {
  padding: 0.18rem 0.65rem;
  border: 1px solid var(--orange);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.dyk-card[data-primary="linkedin"] .dyk-topic { color: #7bb3f0; border-color: #0A66C2; }
.dyk-card[data-primary="facebook"] .dyk-topic { color: #8ab4f8; border-color: #1877F2; }
.dyk-card[data-primary="instagram"] .dyk-topic { color: #f08aa0; border-color: #E4405F; }
.dyk-card[data-primary="google"] .dyk-topic { color: #8ab4f8; border-color: #4285F4; }
.dyk-card p.dyk-en { font-size: 1.08rem; line-height: 1.5; color: var(--ink); margin: 0 0 0.7rem; }
.dyk-card p.dyk-en::before {
  content: "Did you know? ";
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
}
.dyk-card p.dyk-af { font-size: 0.95rem; color: var(--grey-l); font-style: italic; margin: 0 0 0.8rem; }
.dyk-card p.dyk-af::before {
  content: "Het jy geweet? ";
  font-style: normal;
  font-weight: 600;
  color: var(--orange);
}
.dyk-source { font-size: 0.82rem; color: var(--grey-l); margin: 0 0 0.9rem; }
.dyk-source a { color: var(--grey-l); text-decoration: underline; text-decoration-color: rgba(246, 51, 4, 0.55); text-underline-offset: 3px; }
.dyk-source a:hover, .dyk-source a:focus-visible { color: var(--white); }
.dyk-empty { color: var(--muted); }

/* ---------- Home-page strip ---------- */

.dyk-strip { padding: 3.2rem 0; }
.dyk-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin-bottom: 0.7rem;
}
.dyk-strip-head h2 { margin-bottom: 0.2rem; }
.dyk-strip-head .dyk-updated { margin-top: 0.4rem; font-size: 0.82rem; padding: 0.3rem 0.8rem; }
.dyk-strip-head .dyk-active-on { margin: 0.7rem 0 0; }
.dyk-strip-head .dyk-active-link span.t { /* keep names on desktop */ }
.dyk-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.1rem;
}
.dyk-strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dyk-strip-grid .dyk-card {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem;
}
.dyk-strip-grid .dyk-card figure img { border-radius: 10px; }
.dyk-strip-grid .dyk-meta { margin-bottom: 0.45rem; }
.dyk-strip-grid .dyk-card p.dyk-en {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dyk-strip-grid .dyk-card p.dyk-af,
.dyk-strip-grid .dyk-source { display: none; }
.dyk-strip-grid .dyk-posted { padding-top: 0.55rem; }
.dyk-strip-grid .dyk-chip { padding: 0.22rem 0.5rem; font-size: 0.74rem; }
.dyk-strip-grid .dyk-chip span.t { display: none; }
.dyk-strip-grid .dyk-posted-label { font-size: 0.66rem; }

/* Mini closed-book teaser */
.dyk-book-teaser {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.dyk-book-teaser:hover, .dyk-book-teaser:focus-visible { color: var(--white); }
.dyk-book-teaser-cover {
  position: relative;
  width: 52px;
  height: 72px;
  flex: none;
  border-radius: 2px 5px 5px 2px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.45) 0 5px, transparent 10px),
    url("../img/did-you-know/leather.jpg") center / cover no-repeat #201510;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.45),
    3px 0 0 #cbb892,
    4px 0 0 #efe6d2,
    5px 0 0 #bba875;
  overflow: hidden;
}
.dyk-book-teaser-cover::before {
  content: "";
  position: absolute;
  inset: 14% 12%;
  background: none;
  opacity: 0.55;
  filter:
    brightness(0.7) contrast(1.3)
    drop-shadow(1px 1px 0.4px rgba(255, 230, 190, 0.22))
    drop-shadow(-1px -1px 0.5px rgba(0, 0, 0, 0.55));
  mix-blend-mode: soft-light;
}
.dyk-book-teaser-cover::after {
  content: "Did you\A know?";
  white-space: pre;
  position: absolute;
  left: 0; right: 0; top: 38%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.42rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #e8c547;
  text-shadow: 0 1px 1px rgba(0,0,0,0.6);
}
.dyk-book-teaser-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- The book ---------- */

.dyk-book-section { padding: 3.2rem 0 2.4rem; overflow-x: clip; }

.dyk-book-stage {
  --dyk-page-w: 340px;
  --dyk-page-h: 500px;
  --dyk-paper: #f3ead6;
  --dyk-paper-2: #efe4cc;
  --dyk-ink: #1c1612;
  --dyk-ink-soft: #4a4038;
  --dyk-gold: #e8c547;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.dyk-book-viewport {
  width: var(--dyk-page-w);
  height: var(--dyk-page-h);
  margin: 0 auto;
  perspective: 2200px;
  transition: width 0.9s ease;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
}
.dyk-book.is-open .dyk-book-viewport {
  width: calc(var(--dyk-page-w) * 2);
}

.dyk-book-scene {
  position: relative;
  width: calc(var(--dyk-page-w) * 2);
  height: var(--dyk-page-h);
  transform-style: preserve-3d;
  transform: translateX(calc(var(--dyk-page-w) * -1));
  transition: transform 0.9s ease;
}
.dyk-book.is-open .dyk-book-scene {
  transform: translateX(0);
}

/* Right-hand page stack (always in the right half) */
.dyk-page-stack,
.dyk-endleaf,
.dyk-right-page {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
}
.dyk-page-stack {
  z-index: 1;
  background: var(--dyk-paper);
  border-radius: 0 8px 8px 0;
  box-shadow:
    inset 10px 0 16px -12px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(90, 60, 20, 0.08);
  overflow: hidden;
}
.dyk-right-page {
  position: absolute;
  inset: 0;
  left: 0;
  width: 100%;
  overflow: auto;
}

/* Left-hand page (inside of the cover when open, or image plate) */
.dyk-cover-leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 1s cubic-bezier(0.45, 0.05, 0.3, 1);
  z-index: 6;
  cursor: pointer;
}
.dyk-book.is-open .dyk-cover-leaf { transform: rotateY(-180deg); }

.dyk-cover-front,
.dyk-cover-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border-radius: 3px 10px 10px 3px;
}
.dyk-cover-back {
  transform: rotateY(180deg);
  background: var(--dyk-paper);
  border-radius: 10px 3px 3px 10px;
  box-shadow:
    inset -10px 0 16px -12px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(90, 60, 20, 0.08);
}

/* Closed-book page thickness on the right */
.dyk-book-thickness {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: calc(50% + var(--dyk-page-w) - 1px);
  width: 8px;
  background:
    repeating-linear-gradient(90deg,
      #d9cba8 0 1px,
      #f4ead6 1px 2px,
      #c9b889 2px 3px);
  border-radius: 0 3px 3px 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.dyk-book.is-open .dyk-book-thickness { opacity: 0; }

/* Spine shadow in the gutter when open */
.dyk-book-gutter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 0, 0, 0.18) 40%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.16) 62%,
    transparent);
  transition: opacity 0.6s ease 0.3s;
}
.dyk-book.is-open .dyk-book-gutter { opacity: 1; }

/* ----- Leather cover ----- */

.dyk-cover-leather {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0, rgba(0, 0, 0, 0.12) 10px, transparent 22px),
    url("../img/did-you-know/leather.jpg") center / cover no-repeat #201510;
}
.dyk-cover-front {
  background: #201510;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 8px 0 14px -8px rgba(0, 0, 0, 0.65);
}

/* Tooled gold fillet */
.dyk-cover-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 2px;
  box-shadow:
    0 0 0 4px rgba(18, 10, 6, 0.45),
    inset 0 0 0 1px rgba(80, 50, 20, 0.35);
  pointer-events: none;
  z-index: 3;
}
.dyk-cover-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  pointer-events: none;
}

/* Blind-embossed / debossed logo stamp (no colour, leather tone, 3D depth) */
.dyk-cover-stamp {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 16%;
  bottom: 16%;
  z-index: 1;
  pointer-events: none;
}
.dyk-cover-stamp svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.dyk-stamp-darken {
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  filter: brightness(0.35);
  pointer-events: none;
}

.dyk-cover-copy {
  position: absolute;
  inset: 28px 22px 36px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}
.dyk-cover-eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e6c96a;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.65);
}
.dyk-cover-title {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.05rem, 7.2vw, 2.85rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  /* Cracked gold foil */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.9 0.35' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 2.4 -1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"),
    linear-gradient(185deg,
      #fff6c8 0%,
      #f0d57a 14%,
      #c9a227 34%,
      #6a5010 48%,
      #e8c547 58%,
      #fff1b0 66%,
      #a67c1d 82%,
      #5a4310 100%);
  background-size: 140px 140px, 100% 140%;
  background-blend-mode: multiply, normal;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(40, 24, 4, 0.85)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}
.dyk-cover-tagline {
  margin: 1.15rem 0 0;
  padding-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e6c96a;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
  position: relative;
}
.dyk-cover-tagline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4.5rem;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #e8c547, transparent);
}
.dyk-cover-brand {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9b16a;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}
.dyk-cover-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230, 201, 106, 0.75);
  pointer-events: none;
}
.dyk-book.is-open .dyk-cover-hint { display: none; }

/* Paper pages */
.dyk-paper {
  height: 100%;
  padding: 1.25rem 1.3rem 1.2rem 1.45rem;
  color: var(--dyk-ink);
  background-color: var(--dyk-paper);
  background-image:
    linear-gradient(90deg, rgba(90, 50, 20, 0.04), transparent 18px),
    radial-gradient(ellipse at 0 0, rgba(255, 255, 255, 0.35), transparent 50%);
  overflow: auto;
}
.dyk-cover-back .dyk-paper { padding: 1rem; }
.dyk-plate {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.05rem 1rem 1.15rem;
  background: var(--dyk-paper);
}
.dyk-plate img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  border-radius: 2px;
  background: #2a2018;
  box-shadow: 0 0 0 1px rgba(80, 55, 25, 0.18);
}
.dyk-plate-cap {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dyk-ink-soft);
}

.dyk-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin: 0 0 0.75rem;
}
.dyk-paper .dyk-date { color: var(--dyk-ink); }
.dyk-paper .dyk-topic {
  color: #8a2a10;
  border-color: #c45a2e;
  background: transparent;
}
.dyk-paper[data-primary="linkedin"] .dyk-topic,
.dyk-page-accent-linkedin .dyk-topic { color: #0A66C2; border-color: #0A66C2; }
.dyk-paper[data-primary="facebook"] .dyk-topic,
.dyk-page-accent-facebook .dyk-topic { color: #1877F2; border-color: #1877F2; }
.dyk-paper[data-primary="instagram"] .dyk-topic,
.dyk-page-accent-instagram .dyk-topic { color: #C13584; border-color: #C13584; }
.dyk-paper[data-primary="google"] .dyk-topic,
.dyk-page-accent-google .dyk-topic { color: #1a73e8; border-color: #1a73e8; }

.dyk-paper .dyk-en {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--dyk-ink);
  margin: 0 0 0.7rem;
}
.dyk-paper .dyk-en::before {
  content: "Did you know? ";
  font-family: var(--font-display);
  font-weight: 700;
  color: #b8320e;
}
.dyk-paper .dyk-af {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--dyk-ink-soft);
  margin: 0 0 0.75rem;
}
.dyk-paper .dyk-af::before {
  content: "Het jy geweet? ";
  font-style: normal;
  font-weight: 600;
  color: #b8320e;
}
.dyk-paper .dyk-source {
  font-size: 0.75rem;
  color: var(--dyk-ink-soft);
  margin: 0 0 0.8rem;
}
.dyk-paper .dyk-source a { color: #6a3a18; text-decoration-color: rgba(184, 50, 14, 0.45); }
.dyk-paper .dyk-source a:hover, .dyk-paper .dyk-source a:focus-visible { color: #b8320e; }

.dyk-paper .dyk-posted {
  border-top-color: rgba(80, 55, 25, 0.2);
  margin-top: auto;
}
.dyk-paper .dyk-posted-label { color: var(--dyk-ink-soft); }
.dyk-paper .dyk-pending { color: var(--dyk-ink-soft); }
.dyk-paper .dyk-chip {
  background: rgba(255, 255, 255, 0.55);
  color: var(--dyk-ink);
}
.dyk-paper .dyk-chip-linkedin { color: #0A66C2; border-color: rgba(10, 102, 194, 0.4); }
.dyk-paper .dyk-chip-facebook { color: #1877F2; border-color: rgba(24, 119, 242, 0.4); }
.dyk-paper .dyk-chip-instagram { color: #C13584; border-color: rgba(193, 53, 132, 0.4); }
.dyk-paper .dyk-chip-google { color: #1a73e8; border-color: rgba(26, 115, 232, 0.4); }
.dyk-paper a.dyk-chip:hover, .dyk-paper a.dyk-chip:focus-visible {
  color: var(--dyk-ink);
  box-shadow: 0 0 0 1px currentColor inset;
  background: #fff;
}

/* Endleaf */
.dyk-endleaf {
  z-index: 2;
  display: none;
  background: var(--dyk-paper);
  border-radius: 0 8px 8px 0;
  box-shadow: inset 10px 0 16px -12px rgba(0, 0, 0, 0.28);
}
.dyk-book.is-end .dyk-endleaf { display: block; }
.dyk-book.is-end .dyk-page-stack { visibility: hidden; }
.dyk-endleaf-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.6rem;
  color: var(--dyk-ink);
  background: var(--dyk-paper);
}
.dyk-endleaf-inner h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--dyk-ink);
}
.dyk-endleaf-inner p { margin: 0 0 1.1rem; color: var(--dyk-ink-soft); max-width: 16rem; }
.dyk-endleaf-inner .btn { pointer-events: auto; }

/* Flip leaf (the turning page) */
.dyk-flip {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  z-index: 8;
  pointer-events: none;
  display: none;
}
.dyk-book.is-flipping .dyk-flip { display: block; }
.dyk-flip-front,
.dyk-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: var(--dyk-paper);
  border-radius: 0 8px 8px 0;
}
.dyk-flip-back {
  transform: rotateY(180deg);
  border-radius: 8px 0 0 8px;
}
.dyk-flip-front::after,
.dyk-flip-back::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.18), transparent 14%, transparent 86%, rgba(0,0,0,0.08));
}
.dyk-book.is-flipping .dyk-flip {
  transition: transform 0.85s cubic-bezier(0.4, 0.05, 0.3, 1);
}
.dyk-flip.is-turned { transform: rotateY(-180deg); }
.dyk-flip.is-midshot { transform: rotateY(-128deg); transition: none; }

/* Toolbar */
.dyk-book-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 2.4rem;
}
.dyk-book-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.8);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.dyk-book-btn svg { width: 20px; height: 20px; }
.dyk-book-btn:hover, .dyk-book-btn:focus-visible {
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--orange) inset;
}
.dyk-book-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
  border-color: var(--line);
  color: var(--grey-l);
}
.dyk-book-counter {
  margin: 0;
  min-width: 7rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.dyk-book-help {
  margin: 0;
  font-size: 0.82rem;
  color: var(--grey-l);
  text-align: center;
}

/* Single-page (mobile) layout: one leaf, image + text stacked */
@media (max-width: 720px) {
  .dyk-book-stage {
    --dyk-page-w: min(360px, calc(100vw - 2rem));
    --dyk-page-h: min(640px, calc(100vw * 1.55), 72vh);
  }
  .dyk-book.is-open .dyk-book-viewport {
    width: var(--dyk-page-w);
  }
  .dyk-book-scene {
    width: var(--dyk-page-w);
    transform: translateX(0);
  }
  .dyk-book.is-open .dyk-book-scene { transform: translateX(0); }

  /* In single mode the cover still sits over the one page and swings away to the left */
  .dyk-cover-leaf,
  .dyk-page-stack,
  .dyk-endleaf,
  .dyk-flip {
    left: 0;
    width: 100%;
  }
  .dyk-book.is-open .dyk-cover-leaf {
    /* Swing the cover away, then fade it so it does not sit in the left overflow */
    transform: rotateY(-180deg);
    pointer-events: none;
    opacity: 0;
    transition: transform 1s cubic-bezier(0.45, 0.05, 0.3, 1), opacity 0.25s ease 0.75s;
  }
  .dyk-book-gutter,
  .dyk-book-thickness { display: none; }

  .dyk-page-stack { border-radius: 8px; }
  .dyk-cover-front, .dyk-cover-back { border-radius: 8px; }

  /* Show image + text on the single visible page */
  .dyk-single-plate { display: block; }
  .dyk-single-plate img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 0.8rem;
  }
  .dyk-cover-title { font-size: clamp(1.85rem, 9vw, 2.4rem); }
}

@media (min-width: 721px) {
  .dyk-single-plate { display: none; }
}

/* Archive list (details) */
.dyk-archive {
  margin-top: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.45);
  padding: 0.4rem 1rem 0.8rem;
}
.dyk-archive > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.7rem 0;
  color: var(--ink);
}
.dyk-archive .dyk-month {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.4rem 0 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.dyk-archive .dyk-month::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(246, 51, 4, 0.45), transparent);
}
.dyk-archive .dyk-month span { color: var(--grey-l); font-size: 0.78rem; letter-spacing: 0.1em; font-weight: 500; }
.dyk-list { display: grid; gap: 1.1rem; }

/* Reduced motion: fade instead of a 3D flip.
   styles.css zeroes all transitions with !important, so we re-enable a short fade here. */
@media (prefers-reduced-motion: reduce) {
  .dyk-book *,
  .dyk-book *::before,
  .dyk-book *::after,
  .dyk-book-viewport,
  .dyk-book-scene {
    animation: none !important;
    transition: none !important;
  }
  .dyk-book.reduce-motion.is-fading .dyk-page-stack,
  .dyk-book.reduce-motion.is-fading .dyk-cover-leaf,
  .dyk-book.reduce-motion.is-fading .dyk-endleaf {
    transition: opacity 0.35s ease !important;
  }
  .dyk-book.reduce-motion .dyk-flip { display: none !important; }
  .dyk-book.reduce-motion.is-open .dyk-cover-leaf {
    transform: rotateY(-180deg);
  }
}

@media (max-width: 960px) {
  .dyk-strip-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dyk-card { grid-template-columns: 1fr; }
  .dyk-card figure { max-width: 360px; }
  .dyk-strip-grid .dyk-card { grid-template-columns: 78px minmax(0, 1fr); }
  .dyk-hero { padding-top: 1.6rem; }
  .dyk-strip-head .dyk-active-link span.t { display: none; }
}

/* ============================================================
   Medieval luxury tome + aged parchment pages
   ============================================================ */

@font-face {
  font-family: "Unifraktur Maguntia";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/unifraktur-maguntia-400.woff2") format("woff2");
}

.dyk-book-stage {
  --dyk-paper: #e6d3a4;
  --dyk-paper-2: #dcc594;
  --dyk-ink: #3a2414;
  --dyk-ink-soft: #5c3d28;
  --dyk-gold: #e8c547;
  --dyk-brass-shine: #f6e7a0;
  --dyk-brass: #c9a227;
  --dyk-brass-dark: #6a5010;
}

/* Gilt page edges */
.dyk-book-thickness {
  width: 9px;
  background:
    repeating-linear-gradient(90deg,
      #8a6a18 0 1px,
      #e8c547 1px 2px,
      #f6e7a0 2px 3px,
      #c9a227 3px 4px);
  box-shadow: 1px 0 5px rgba(232, 197, 71, 0.35);
}

/* ----- Wooden boards, leather inset, metal furniture ----- */
.dyk-cover-front {
  overflow: visible;
  background: #1a0c08;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.7),
    2px 0 0 rgba(232, 197, 71, 0.18);
}
.dyk-cover-wood {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #2a160c 0, #3a2214 8px, #1e100a 14px),
    linear-gradient(#3a2214, #1a0c08);
  box-shadow: inset 0 0 0 6px #2a160c, inset 0 0 0 7px #120804;
}
.dyk-cover-leather {
  inset: 6px;
  z-index: 1;
  border-radius: 1px 4px 4px 1px;
}
.dyk-cover-stamp { z-index: 2; }
.dyk-cover-frame {
  inset: 16px;
  z-index: 3;
  border-color: rgba(232, 197, 71, 0.42);
  box-shadow:
    0 0 0 3px rgba(18, 10, 6, 0.5),
    inset 0 0 0 1px rgba(232, 197, 71, 0.22);
}
.dyk-filigree {
  position: absolute;
  inset: 22px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(232, 197, 71, 0.5);
  box-shadow:
    inset 0 0 0 3px rgba(18, 10, 6, 0.35),
    inset 0 0 0 4px rgba(232, 197, 71, 0.28);
}
.dyk-filigree::before,
.dyk-filigree::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(232, 197, 71, 0.7);
  box-shadow: 0 0 0 2px rgba(18, 10, 6, 0.4);
  transform: rotate(45deg);
  background: radial-gradient(circle, rgba(232, 197, 71, 0.45) 20%, transparent 55%);
}
.dyk-filigree::before { top: -10px; left: -10px; }
.dyk-filigree::after { bottom: -10px; right: -10px; }

.dyk-spine-cords {
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 24px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  pointer-events: none;
}
.dyk-spine-cords span {
  display: block;
  height: 13px;
  border-radius: 0 5px 5px 0;
  background:
    linear-gradient(180deg,
      #5a2818 0%,
      #2a100c 38%,
      #7a3a22 50%,
      #1a0a08 100%);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(232, 197, 71, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.dyk-corner {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 7;
  pointer-events: none;
  background:
    linear-gradient(135deg,
      #f8e9b0 0%,
      #e8c547 22%,
      #8a6a18 48%,
      #f0d57a 62%,
      #5a4010 100%);
  clip-path: polygon(0 0, 100% 0, 100% 24%, 30% 24%, 24% 30%, 24% 100%, 0 100%);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}
.dyk-corner::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #8a6a18 60%, #3a2a08);
  box-shadow: 0 0 0 1px rgba(40, 24, 4, 0.45);
}
.dyk-corner-tl { top: 3px; left: 3px; }
.dyk-corner-tr { top: 3px; right: 3px; transform: rotate(90deg); }
.dyk-corner-br { bottom: 3px; right: 3px; transform: rotate(180deg); }
.dyk-corner-bl { bottom: 3px; left: 3px; transform: rotate(270deg); }

.dyk-boss {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  z-index: 6;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff1b0, #e8c547 34%, #8a6a18 70%, #3a2a08);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 240, 180, 0.65),
    inset 0 -1px 1px rgba(40, 24, 4, 0.5);
}
.dyk-boss::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #c9a227, #4a3408);
  box-shadow: inset 0 0 0 1px rgba(246, 231, 160, 0.35);
}
.dyk-boss-top { top: 20px; }
.dyk-boss-bottom { bottom: 20px; }

.dyk-clasp {
  position: absolute;
  right: -7px;
  width: 56px;
  height: 22px;
  z-index: 10;
  transform-origin: 100% 50%;
  transition: transform 0.7s cubic-bezier(0.45, 0.05, 0.3, 1);
  pointer-events: none;
}
.dyk-clasp-1 { top: 21%; }
.dyk-clasp-2 { bottom: 21%; top: auto; }
.dyk-clasp-strap {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  right: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f0d57a, #8a6a18 40%, #f6e7a0 55%, #5a4010);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 240, 180, 0.45);
}
.dyk-clasp-hasp {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  border-radius: 2px 5px 5px 2px;
  background: radial-gradient(circle at 40% 35%, #f6e7a0, #c9a227 50%, #6a5010);
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 150, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.6);
}
.dyk-clasp-hasp::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #6a5010);
  box-shadow: 0 0 0 1px rgba(40, 24, 4, 0.45);
}
.dyk-book.is-open .dyk-clasp {
  transform: rotate(-78deg) translate(2px, 6px);
}

.dyk-ribbon {
  position: absolute;
  top: -2px;
  left: 66%;
  width: 14px;
  height: 86px;
  z-index: 9;
  pointer-events: none;
  background: linear-gradient(90deg, #6a1210, #c41e18 38%, #8a1810 58%, #4a0c0c);
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px));
}

/* Blackletter cover typography — cracked gold title stays */
.dyk-cover-eyebrow,
.dyk-cover-title,
.dyk-cover-tagline {
  font-family: "Unifraktur Maguntia", var(--font-display), serif;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.dyk-cover-eyebrow {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #e6c96a;
}
.dyk-cover-title {
  font-size: clamp(2.15rem, 7.6vw, 3.05rem);
  line-height: 1.05;
}
.dyk-cover-tagline {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(0, 0, 0, 0.7),
    0 0 2px rgba(0, 0, 0, 0.8);
}
.dyk-cover-copy {
  z-index: 5;
}

/* ----- Aged medieval parchment pages ----- */
.dyk-page-stack,
.dyk-cover-back,
.dyk-endleaf,
.dyk-endleaf-inner,
.dyk-paper,
.dyk-plate,
.dyk-flip-front,
.dyk-flip-back {
  background-color: var(--dyk-paper);
  background-image: url("../img/did-you-know/parchment.jpg");
  background-size: cover;
  background-position: center;
  color: var(--dyk-ink);
}

/* Uneven deckled edge on the leaves (not the wooden cover) */
.dyk-page-stack,
.dyk-endleaf,
.dyk-flip-front,
.dyk-flip-back {
  border-radius: 0;
  -webkit-mask-image: url("../img/did-you-know/deckle.svg");
  mask-image: url("../img/did-you-know/deckle.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Foxed / burnt corners, faint water stains and creases */
.dyk-page-stack,
.dyk-plate,
.dyk-paper,
.dyk-endleaf,
.dyk-cover-back,
.dyk-flip-front,
.dyk-flip-back {
  box-shadow:
    inset 0 0 28px 8px rgba(90, 40, 10, 0.2),
    inset 0 0 70px 22px rgba(70, 25, 8, 0.12),
    inset 0 0 0 1px rgba(80, 45, 15, 0.16);
}
.dyk-page-stack::after,
.dyk-endleaf::after,
.dyk-cover-back::after,
.dyk-flip-front::before,
.dyk-flip-back::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(ellipse 48% 30% at 0% 0%, rgba(90, 40, 10, 0.3), transparent 70%),
    radial-gradient(ellipse 48% 30% at 100% 0%, rgba(80, 32, 8, 0.34), transparent 70%),
    radial-gradient(ellipse 52% 34% at 100% 100%, rgba(60, 22, 6, 0.42), transparent 72%),
    radial-gradient(ellipse 50% 32% at 0% 100%, rgba(75, 28, 8, 0.32), transparent 70%),
    radial-gradient(ellipse 36% 28% at 72% 20%, rgba(90, 55, 20, 0.1), transparent 70%),
    radial-gradient(ellipse 30% 22% at 30% 78%, rgba(80, 50, 20, 0.08), transparent 70%),
    linear-gradient(108deg, transparent 42%, rgba(80, 50, 20, 0.07) 50%, transparent 53%),
    linear-gradient(8deg, transparent 61%, rgba(60, 40, 20, 0.06) 63.5%, transparent 66%);
}

/* Ink-brown text, still readable */
.dyk-paper {
  position: relative;
  color: var(--dyk-ink);
  background-image:
    linear-gradient(90deg, rgba(90, 50, 20, 0.05), transparent 16px),
    url("../img/did-you-know/parchment.jpg");
  background-size: auto, cover;
}
.dyk-paper .dyk-en {
  position: relative;
  color: #3a2414;
}
.dyk-paper .dyk-en::before { content: none; }
.dyk-paper .dyk-date,
.dyk-paper .dyk-af,
.dyk-endleaf-inner,
.dyk-endleaf-inner h2,
.dyk-endleaf-inner p,
.dyk-plate-cap {
  color: var(--dyk-ink);
}
.dyk-paper .dyk-af,
.dyk-endleaf-inner p,
.dyk-plate-cap,
.dyk-paper .dyk-source,
.dyk-paper .dyk-posted-label,
.dyk-paper .dyk-pending {
  color: var(--dyk-ink-soft);
}

/* Illuminated manuscript drop cap */
.dyk-lead { }
.dyk-drop {
  float: left;
  font-family: "Unifraktur Maguntia", var(--font-display), serif;
  font-size: 4rem;
  line-height: 1.4em;
  width: 1.5em;
  height: 1.5em;
  margin: 0.05rem 0.55rem 0.25rem 0;
  display: block;
  text-align: center;
  color: #f8e9b0;
  background: radial-gradient(circle at 32% 28%, #c41e18, #7a1210 70%, #4a0c0a 100%);
  border: 3px solid #c9a227;
  box-shadow:
    inset 0 0 0 2px #5a0c0a,
    0 1px 2px rgba(60, 30, 8, 0.4);
  text-shadow: 0 1px 0 rgba(40, 10, 4, 0.55);
  overflow: visible;
}
.dyk-lead {
  font-family: "Unifraktur Maguntia", var(--font-display), serif;
  font-size: 1.08em;
  color: #7a1610;
}
.dyk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dyk-paper .dyk-af::before {
  font-family: "Unifraktur Maguntia", var(--font-display), serif;
  font-style: normal;
  font-weight: 400;
  color: #7a1610;
}

/* Fact images as aged sepia prints with a worn border */
.dyk-plate img,
.dyk-single-plate img {
  filter: sepia(1) contrast(1.1) brightness(0.9) saturate(0.35);
  border: 7px solid #d4c197;
  outline: 1px dashed rgba(90, 60, 25, 0.35);
  outline-offset: -5px;
  border-radius: 1px;
  background: #5a4030;
  box-shadow:
    0 0 0 1px #7a5a30,
    0 0 0 8px #e6d4a8,
    inset 0 0 28px rgba(70, 40, 10, 0.32),
    2px 3px 8px rgba(40, 20, 8, 0.35);
}
.dyk-single-plate { position: relative; }
.dyk-plate { position: relative; }

@media (max-width: 720px) {
  .dyk-cover-title { font-size: clamp(1.95rem, 9vw, 2.55rem); }
  .dyk-page-stack { border-radius: 0; }
  .dyk-single-plate img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-bottom: 0.8rem;
  }
  /* Keep clasps inside the single-page frame so they are not clipped by the viewport */
  .dyk-clasp { right: 2px; }
}

.dyk-book-stage { padding: 14px 18px 8px; }

/* Worn sepia print mount */
.dyk-print {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px;
  background:
    linear-gradient(180deg, #efe0b8, #d9c492);
  box-shadow:
    0 0 0 1px #7a5a30,
    2px 3px 8px rgba(40, 20, 8, 0.35);
}
.dyk-print img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) sepia(1) contrast(1.12) brightness(0.88) saturate(0.32) hue-rotate(-15deg);
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0;
  background: #4a3020;
}
.dyk-print::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  box-shadow:
    inset 0 0 28px rgba(70, 40, 10, 0.38),
    inset 0 0 0 1px rgba(90, 60, 25, 0.25);
  background: rgba(90, 55, 20, 0.1);
  mix-blend-mode: multiply;
  /* slightly worn, uneven corners */
  clip-path: polygon(
    0.6% 0.8%, 99.2% 0.4%, 99.6% 99.3%, 0.5% 99.1%
  );
}
.dyk-plate .dyk-print { min-height: 0; }
.dyk-single-plate .dyk-print {
  margin-bottom: 0.8rem;
}
.dyk-single-plate .dyk-print img {
  aspect-ratio: 16 / 10;
  height: auto;
}

@media (max-width: 720px) {
  .dyk-book-section { padding-bottom: 5.5rem; }
}


/* ============================================================
   Blind-debossed logo stamp — leather only, logo used as a mask
   ============================================================ */
.dyk-cover-copy {
  inset: 46px 22px 40px;
  z-index: 5;
  justify-content: flex-start;
}
.dyk-cover-eyebrow { margin: 0 0 0.4rem; }
.dyk-cover-title { margin: 0; }
.dyk-cover-tagline { margin: 0.5rem 0 0; }

.dyk-cover-stamp {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 50%;
  max-width: 50%;
  aspect-ratio: 1;
  margin: auto 0 0.55rem;
  z-index: 2;
  flex: 0 0 auto;
  pointer-events: none;
}
.dyk-cover-stamp svg { display: none; }
.dyk-stamp-darken { display: none; }

.dyk-stamp-fill,
.dyk-stamp-shade,
.dyk-stamp-light {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url("../img/did-you-know/logo-mask.webp");
  mask-image: url("../img/did-you-know/logo-mask.webp");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

/* Recessed leather: same cover grain, slightly darker */
.dyk-stamp-fill {
  z-index: 2;
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
  mix-blend-mode: multiply;
  filter: none;
}

/* Thin dark inner shadow on the top/left */
.dyk-stamp-shade {
  z-index: 1;
  background: #0c0604;
  opacity: 0.5;
  transform: translate(-1.5px, -1.5px);
}

/* Faint light edge on the bottom/right */
.dyk-stamp-light {
  z-index: 1;
  background: #edd9b0;
  opacity: 0.32;
  transform: translate(1.5px, 1.5px);
}

.dyk-cover-brand {
  margin-top: 0;
  margin-bottom: 0.3rem;
}
.dyk-cover-hint {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  z-index: auto;
}
.dyk-book.is-open .dyk-cover-hint { display: none; }

/* Tuck bosses into the filigree, clear of the eyebrow and the hint */
.dyk-boss-top { top: 7px; }
.dyk-boss-bottom { bottom: 7px; }

@media (max-width: 720px) {
  .dyk-cover-copy { inset: 46px 20px 40px; }
  .dyk-cover-stamp { width: 48%; max-width: 48%; }
}
