:root {
  --dka-bg: #0f1115;
  --dka-card: rgba(20, 23, 28, 0.96);
  --dka-card-2: rgba(15, 17, 21, 0.98);
  --dka-border: rgba(210, 162, 76, 0.14);
  --dka-border-soft: rgba(255,255,255,0.065);
  --dka-text: #f4f1ea;
  --dka-muted: #bfb7a7;
  --dka-soft: #918976;
  --dka-accent: #d2a24c;
  --dka-accent-dark: #a8781f;
  --dka-radius: 16px;
  --dka-shadow: 0 10px 24px rgba(0,0,0,.17);
  --dka-shadow-soft: 0 6px 16px rgba(0,0,0,.12);
  --dka-gap: 16px;
}

.dka-mid-rail,
.dka-bottom-wrap {
  contain: layout style;
}

.dka-mid-rail {
  float: right;
  width: min(272px, 34%);
  margin: 4px 0 20px 22px;
  min-height: 0;
}

.dka-card {
  background: linear-gradient(180deg, var(--dka-card) 0%, var(--dka-card-2) 100%);
  border: 1px solid var(--dka-border-soft);
  color: var(--dka-text);
  border-radius: var(--dka-radius);
  box-shadow: var(--dka-shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(2px);
}

.dka-card--mid {
  min-height: 0;
}

.dka-card--bottom {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
}

.dka-cover-shell {
  width: 100%;
  aspect-ratio: 5 / 7;
  background: #0f1115;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dka-cover-shell--bottom {
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: auto;
  min-height: 0;
  padding: 10px 8px 10px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(0,0,0,0));
  border-right: 1px solid rgba(255,255,255,.05);
}

.dka-cover-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.dka-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dka-cover-shell--bottom .dka-cover {
  width: auto;
  height: auto;
  max-width: min(100%, 68px);
  max-height: 96px;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
}

.dka-cover--placeholder {
  background:
    linear-gradient(145deg, rgba(210,162,76,.12), rgba(255,255,255,.02)),
    #111;
}

.dka-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.dka-text-link {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  color: var(--dka-text) !important;
  text-decoration: none !important;
}

.dka-text-link:hover,
.dka-text-link:focus-visible {
  color: var(--dka-text) !important;
  text-decoration: none !important;
}

.dka-text-link .dka-series,
.dka-text-link .dka-title,
.dka-text-link .dka-hook,
.dka-text-link .dka-desc {
  display: block;
  max-width: 100%;
}

.dka-text-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dka-content-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dka-text-link:hover .dka-title,
.dka-cover-link:hover + .dka-card-body .dka-title,
.dka-text-link:focus-visible .dka-title {
  color: #f0c572;
}

.dka-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(210,162,76,.11);
  color: #f0c572;
  border: 1px solid rgba(210,162,76,.18);
}

.dka-series {
  margin: 0 0 5px;
  font-size: .72rem;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dka-soft);
}

.dka-series--bottom {
  font-size: .66rem;
}

.dka-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.18;
  font-weight: 700;
  color: var(--dka-text);
}

.dka-title--bottom {
  font-size: .93rem;
  line-height: 1.2;
}

.dka-hook {
  margin: 0;
  font-size: .89rem;
  line-height: 1.45;
  font-weight: 600;
  color: #ead7a8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.dka-hook--bottom {
  font-size: .79rem;
  line-height: 1.36;
  -webkit-line-clamp: 2;
}

.dka-desc {
  margin: 0;
  font-size: .84rem;
  line-height: 1.58;
  color: var(--dka-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.dka-desc--bottom {
  font-size: .77rem;
  line-height: 1.42;
  -webkit-line-clamp: 2;
}

.dka-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.dka-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .01em;
  transition: background-color .18s ease, border-color .18s ease, opacity .18s ease;
  border: 1px solid transparent;
}

.dka-btn:hover {
  opacity: .96;
}

.dka-btn--kindle {
  background: var(--dka-accent);
  color: #121212;
}

.dka-btn--paperback {
  background: rgba(255,255,255,.02);
  color: var(--dka-text);
  border-color: var(--dka-border-soft);
}

.dka-btn--primary {
  background: rgba(210,162,76,.08);
  color: var(--dka-text);
  border-color: rgba(210,162,76,.24);
}

.dka-bottom-wrap {
  clear: both;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.dka-bottom-header {
  margin: 0 0 12px;
}

.dka-bottom-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--dka-text);
}

.dka-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--dka-gap);
  align-items: stretch;
}

.dka-bottom-grid .dka-card {
  box-shadow: var(--dka-shadow-soft);
}

.dka-bottom-grid .dka-card-body {
  padding: 11px 12px 11px 10px;
  justify-content: flex-start;
}

.dka-bottom-grid .dka-actions {
  gap: 6px;
  padding-top: 3px;
}

.dka-bottom-grid .dka-btn {
  min-height: 31px;
  padding: 0 10px;
  font-size: .77rem;
  border-radius: 9px;
}

@media (max-width: 1180px) {
  .dka-mid-rail {
    width: min(252px, 36%);
    margin-left: 18px;
  }

  .dka-bottom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dka-cover-shell--bottom {
    flex-basis: 90px;
    width: 90px;
  }
}

@media (max-width: 900px) {
  .dka-mid-rail {
    float: none;
    width: 100%;
    max-width: 340px;
    margin: 18px auto 22px;
  }

  .dka-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dka-cover-shell--bottom {
    flex-basis: 88px;
    width: 88px;
  }

  .dka-cover-shell--bottom .dka-cover {
    max-width: min(100%, 62px);
    max-height: 88px;
  }
}

@media (max-width: 640px) {
  .dka-bottom-grid {
    grid-template-columns: 1fr;
  }

  .dka-card-body {
    padding: 13px;
  }

  .dka-cover-shell--bottom {
    flex-basis: 82px;
    width: 82px;
    padding: 10px 7px 10px 9px;
  }

  .dka-cover-shell--bottom .dka-cover {
    max-width: min(100%, 58px);
    max-height: 82px;
  }
}


/* Bottom ads rebuilt for simpler WordPress-safe rendering */
.dka-bottom-wrap {
  clear: both;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.dka-bottom-header {
  margin: 0 0 12px;
}

.dka-bottom-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--dka-text);
}

.dka-bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.dka-bottom-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(18, 21, 26, 0.96);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.dka-bottom-thumb {
  flex: 0 0 72px;
  width: 72px;
  min-width: 72px;
}

.dka-bottom-thumb-link {
  display: block;
  text-decoration: none !important;
}

.dka-bottom-cover {
  display: block;
  width: 100%;
  max-width: 72px;
  max-height: 102px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}

.dka-bottom-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.dka-bottom-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(210,162,76,.11);
  color: #f0c572;
  border: 1px solid rgba(210,162,76,.18);
}

.dka-bottom-series {
  margin: 0;
  font-size: .66rem;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dka-soft);
}

.dka-bottom-card-title {
  margin: 0;
  font-size: .96rem;
  line-height: 1.22;
  font-weight: 700;
  color: var(--dka-text);
}

.dka-bottom-title-link,
.dka-bottom-copy-link {
  color: inherit !important;
  text-decoration: none !important;
}

.dka-bottom-title-link:hover,
.dka-bottom-copy-link:hover,
.dka-bottom-title-link:focus-visible,
.dka-bottom-copy-link:focus-visible {
  color: #f0c572 !important;
  text-decoration: none !important;
}

.dka-bottom-hook,
.dka-bottom-desc-copy {
  margin: 0;
}

.dka-bottom-hook {
  font-size: .79rem;
  line-height: 1.4;
  color: #ead7a8;
}

.dka-bottom-desc-copy {
  font-size: .75rem;
  line-height: 1.45;
  color: var(--dka-muted);
}

.dka-bottom-body .dka-actions {
  margin-top: auto;
  padding-top: 6px;
  gap: 6px;
}

.dka-bottom-body .dka-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: .76rem;
  border-radius: 9px;
}

@media (max-width: 900px) {
  .dka-bottom-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 640px) {
  .dka-bottom-item {
    padding: 11px;
    gap: 10px;
  }

  .dka-bottom-thumb {
    flex-basis: 64px;
    width: 64px;
    min-width: 64px;
  }

  .dka-bottom-cover {
    max-width: 64px;
    max-height: 92px;
  }
}
