/* Podcast page — layered on top of dpsolutionsv2.webflow.css */

.pod {
  --pod-radius: 20px;
  --pod-radius-sm: 12px;
  --pod-muted: #6b6b6b;
  --pod-shadow: 0 1px 2px #0000000d, 0 12px 32px -12px #0000001f;
  font-family: Rubik, sans-serif;
  color: var(--black);
}

.pod *, .pod *::before, .pod *::after { box-sizing: border-box; }

.pod-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

.pod-eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 12px;
}

.pod-h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 400;
  margin: 0;
}

.pod-muted { color: var(--pod-muted); }

/* ---------- Buttons ---------- */
.pod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--pod-radius-sm);
  font: 500 16px/1 Rubik, sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.pod-btn:hover { transform: translateY(-1px); }
.pod-btn svg { width: 18px; height: 18px; flex: none; }
.pod-btn--dark { color: #fff; background-image: linear-gradient(#111, #3d3d3d); box-shadow: 0 6px 16px -6px #0000004d; }
.pod-btn--light { color: var(--black); background: #fff; border-color: var(--border); }
.pod-btn--light:hover { border-color: #d6d6d6; }
.pod-btn--orange { color: #fff; background: var(--orange); }

.pod :focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.pod-hero {
  padding: 152px 0 72px;
  background:
    radial-gradient(900px 420px at 85% 0%, #f76c1414, transparent 70%),
    var(--bg-grey);
  border-bottom: 1px solid var(--border);
}

.pod-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.pod-hero .hero-label { display: inline-flex; width: auto; margin-bottom: 20px; }

.pod section[id] { scroll-margin-top: 72px; }

.pod-hero-title {
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 400;
  margin: 0 0 20px;
}

.pod-hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-black-2);
  margin: 0 0 28px;
  max-width: 520px;
}

.pod-hosts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.pod-host {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.pod-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #111, #4a4a4a);
  flex: none;
}
.pod-avatar--orange { background: linear-gradient(135deg, #f76c14, #c4500a); }

.pod-host-name { font-size: 14px; font-weight: 500; line-height: 1.2; }
.pod-host-role { font-size: 12px; color: var(--pod-muted); line-height: 1.3; }

.pod-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pod-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--pod-muted);
}
.pod-stats strong { color: var(--black); font-weight: 500; }

/* ---------- Player (facade) ---------- */
.pod-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--pod-radius);
  overflow: hidden;
  background: #111;
  box-shadow: var(--pod-shadow);
}

.pod-player iframe,
.pod-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pod-facade {
  display: block;
  padding: 0;
  cursor: pointer;
  background: #111;
}
.pod-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .2s ease;
}
.pod-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, #0000008c);
}
.pod-facade:hover img { transform: scale(1.03); }

.pod-play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: #fffffff2;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px #00000040;
  transition: transform .2s ease, background-color .2s ease;
}
.pod-play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--black); }
.pod-facade:hover .pod-play { transform: scale(1.08); background: var(--orange); }
.pod-facade:hover .pod-play svg { fill: #fff; }

.pod-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  background: #fff;
  color: var(--black);
}
.pod-badge--new { background: var(--orange); color: #fff; }
.pod-badge--new::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pod-pulse 1.6s ease-in-out infinite;
}

.pod-player .pod-badge {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  left: 16px;
  top: 16px;
}

.pod-duration {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #000000b3;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}

.pod-feature-caption { margin-top: 20px; }
.pod-feature-caption .pod-meta { margin-bottom: 8px; }
.pod-feature-title {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-weight: 400;
  margin: 0;
}

.pod-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--pod-muted);
}
.pod-meta > * + *::before {
  content: "·";
  margin-right: 10px;
  color: #b5b5b5;
}
.pod-meta .pod-ep { color: var(--orange); font-weight: 500; }

/* ---------- Latest episode detail ---------- */
.pod-latest { padding: 88px 0; }

.pod-latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.pod-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-black-2);
  margin: 0 0 16px;
}

.pod-topics {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.pod-topics li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-black-2);
}
.pod-topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f76c141f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f76c14' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.pod-chapters {
  background: var(--bg-grey);
  border: 1px solid var(--border);
  border-radius: var(--pod-radius);
  padding: 24px;
}
.pod-chapters-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.pod-chapters-head h3 { font-size: 18px; font-weight: 500; margin: 0; }
.pod-chapters-head span { font-size: 13px; color: var(--pod-muted); }

.pod-chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 460px;
  overflow-y: auto;
}
.pod-chapter {
  display: flex;
  gap: 14px;
  align-items: baseline;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  font: 400 14px/1.4 Rubik, sans-serif;
  color: var(--black);
  cursor: pointer;
}
.pod-chapter:hover { background: #fff; }
.pod-chapter time {
  flex: none;
  min-width: 44px;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
  font-weight: 500;
}

.pod-guide {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: var(--pod-radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--black);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color .15s ease;
}
.pod-guide:hover { border-color: var(--orange); }
.pod-guide strong { display: block; font-weight: 500; }
.pod-guide svg { width: 20px; height: 20px; flex: none; stroke: var(--orange); }

/* ---------- Archive ---------- */
.pod-archive {
  padding: 88px 0 104px;
  background: var(--bg-grey);
  border-top: 1px solid var(--border);
}

.pod-archive-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.pod-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pod-chips { display: flex; gap: 8px; }
.pod-chip {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font: 400 14px/1 Rubik, sans-serif;
  color: var(--black);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.pod-chip:hover { border-color: #d6d6d6; }
.pod-chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.pod-chip span { opacity: .6; margin-left: 4px; }

.pod-search {
  position: relative;
  width: 260px;
}
.pod-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  stroke: var(--pod-muted);
  pointer-events: none;
}
.pod-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font: 400 14px/1 Rubik, sans-serif;
  color: var(--black);
}
.pod-search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px #f76c1426; }

.pod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pod-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--pod-radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.pod-card:hover { box-shadow: var(--pod-shadow); transform: translateY(-2px); }
.pod-card[hidden] { display: none; }

.pod-card .pod-player { border-radius: 0; box-shadow: none; }
.pod-card .pod-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.pod-card .pod-play svg { width: 20px; height: 20px; }

.pod-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 16px;
  flex: 1;
}

.pod-card-title {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.01em;
  font-weight: 500;
  margin: 0;
}
.pod-card-title button {
  all: unset;
  cursor: pointer;
}
.pod-card-title button:hover { color: var(--orange); }
.pod-card-title button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.pod-card-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-black-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pod-card details {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.pod-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.pod-card summary::-webkit-details-marker { display: none; }
.pod-card summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  transition: transform .2s ease;
}
.pod-card details[open] summary::after { transform: rotate(45deg); }
.pod-card .pod-topics { margin-top: 12px; gap: 8px; }
.pod-card .pod-topics li { font-size: 13px; padding-left: 24px; }
.pod-card .pod-topics li::before { width: 16px; height: 16px; top: 1px; background-size: 9px; }

.pod-empty {
  display: none;
  text-align: center;
  padding: 48px 16px;
  color: var(--pod-muted);
}
.pod-empty.is-visible { display: block; }

/* ---------- Subscribe band ---------- */
.pod-subscribe { padding: 0 0 104px; background: var(--bg-grey); }
.pod-subscribe-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, #f76c1433, transparent 70%),
    linear-gradient(135deg, #111, #2a2a2a);
}
.pod-subscribe-card .pod-h2 { color: #fff; margin-bottom: 12px; }
.pod-subscribe-card p { margin: 0; color: #ffffffb3; font-size: 16px; line-height: 1.6; }

.pod-form { margin: 0; }
.pod-form form {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: #ffffff14;
  border: 1px solid #ffffff26;
}
.pod-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font: 400 16px/1 Rubik, sans-serif;
}
.pod-form input[type="email"]::placeholder { color: #ffffff80; }
.pod-form input[type="email"]:focus { outline: none; }
.pod-form form:focus-within { border-color: var(--orange); }
.pod-form input[type="submit"] {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font: 500 16px/1 Rubik, sans-serif;
  cursor: pointer;
}
.pod-form input[type="submit"]:hover { background: #e55f0d; }
.pod-form .w-form-done,
.pod-form .w-form-fail {
  border-radius: 12px;
  padding: 16px;
  margin-top: 0;
  text-align: left;
}
.pod-form .w-form-done { background: #ffffff1a; color: #fff; }
.pod-form-alt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: #ffffffb3;
}
.pod-form-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Modal ---------- */
.pod-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--pod-radius);
  background: #fff;
  color: var(--black);
  overflow: hidden;
  box-shadow: 0 24px 64px #00000059;
}
.pod-dialog::backdrop { background: #000000b3; backdrop-filter: blur(4px); }
.pod-dialog[open] { display: flex; flex-direction: column; animation: pod-in .2s ease; }
.pod-dialog .pod-player { border-radius: 0; box-shadow: none; flex: none; }
.pod-dialog-body { padding: 24px 28px 28px; overflow-y: auto; }
.pod-dialog-body h3 { font-size: 24px; line-height: 1.3; font-weight: 400; letter-spacing: -.02em; margin: 8px 0 16px; }
.pod-dialog-body p { font-size: 15px; line-height: 1.6; color: var(--text-black-2); margin: 0 0 12px; }
.pod-dialog-body .pod-topics { margin-top: 8px; }
.pod-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pod-dialog-actions .pod-btn { height: 40px; font-size: 14px; padding: 0 16px; }
.pod-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #000000a6;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.pod-close:hover { background: var(--orange); }

/* Hidden full notes inside each card (fed into the modal) */
.pod-notes[hidden] { display: none; }

@keyframes pod-pulse { 50% { opacity: .35; } }
@keyframes pod-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  .pod *, .pod-dialog { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  .pod-container { padding: 0 32px; }
  .pod-hero { padding: 128px 0 56px; }
  .pod-hero-grid, .pod-latest-grid { grid-template-columns: 1fr; gap: 40px; }
  .pod-hero-title { font-size: 48px; }
  .pod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pod-subscribe-card { grid-template-columns: 1fr; padding: 40px 32px; }
  .pod-h2 { font-size: 32px; }
}

@media screen and (max-width: 767px) {
  .pod-container { padding: 0 16px; }
  .pod-hero { padding: 112px 0 48px; }
  .pod-hero-title { font-size: 40px; }
  .pod-hero-lead { font-size: 16px; }
  .pod-latest, .pod-archive { padding: 64px 0; }
  .pod-subscribe { padding-bottom: 64px; }
  .pod-grid { grid-template-columns: 1fr; }
  .pod-toolbar { width: 100%; }
  .pod-chips { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .pod-chips::-webkit-scrollbar { display: none; }
  .pod-search { width: 100%; }
  .pod-actions .pod-btn { flex: 1 1 100%; }
  .pod-subscribe-card { padding: 32px 20px; border-radius: 20px; }
  .pod-form form { flex-direction: column; }
  .pod-form input[type="submit"] { width: 100%; }
  .pod-feature-title { font-size: 20px; }
  .pod-dialog { max-height: calc(100vh - 24px); width: calc(100vw - 16px); }
  .pod-dialog-body { padding: 20px; }
}
