/*
Theme Name: Digital Picks Lab for Themify Ultra
Theme URI: https://yourdomain.com/
Description: Lightweight child theme for the Digital Picks Lab affiliate blog. Requires Themify Ultra.
Author: Digital Picks Lab
Template: themify-ultra
Version: 0.1.12
Text Domain: digital-picks-lab
*/

:root {
  --dpl-ink: #0b0b0b;
  --dpl-text: #111;
  --dpl-muted: #111;
  --dpl-line: #d9dedf;
  --dpl-panel: #f6f7f4;
  --dpl-panel-strong: #ebf0ed;
  --dpl-accent: #0b6f70;
  --dpl-accent-dark: #074f51;
  --dpl-warm: #e0a23a;
}

body {
  color: var(--dpl-text);
}

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

body,
p,
li,
td,
th,
figcaption,
.dpl-card p,
.dpl-lede {
  color: #111;
}

h1,
h2,
h3 {
  color: var(--dpl-ink);
  letter-spacing: 0;
}

.single-post .entry-title,
.single-post h1,
body.single h1 {
  max-width: 820px;
  margin-right: auto;
  margin-left: 0;
  color: var(--dpl-ink);
  font-size: clamp(2.2rem, 4.4vw, 3.15rem);
  line-height: 1.1;
}

.single-post .post-meta,
.single-post .entry-meta,
.single-post .post-date,
.single-post .post-author,
.single-post .post-comment,
.single-post .post-category,
body.single .post-meta,
body.single .entry-meta {
  display: none;
}

#site-logo,
#site-logo a {
  color: var(--dpl-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.custom-logo {
  max-width: 132px;
  height: auto;
}

#site-logo {
  max-width: 150px;
}

#main-nav a {
  color: #111;
  letter-spacing: 0;
}

a,
a:visited {
  color: #111;
}

#main-nav .current-menu-item > a,
#main-nav a:hover {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dpl-hero,
.dpl-section,
.dpl-latest,
.dpl-note {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
}

.dpl-hero-block {
  padding: 86px 0 48px;
  border-bottom: 1px solid var(--dpl-line);
}

.dpl-home-hero {
  min-height: clamp(520px, 68vw, 760px);
  display: flex;
  align-items: center;
  margin: 0 calc(50% - 50vw);
  padding: 88px max(24px, calc((100vw - 1080px) / 2)) 76px;
  background-image: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 38%, rgba(255,255,255,.18) 68%, rgba(255,255,255,.03) 100%), var(--dpl-hero-bg);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--dpl-line);
}

.dpl-home-hero-inner {
  max-width: 620px;
}

.dpl-home-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1.02;
}

.dpl-hero-subtitle {
  max-width: 590px;
  margin-bottom: 14px;
  color: #111;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.dpl-hero-story {
  max-width: 560px;
  margin-bottom: 0;
  color: #111;
  font-size: 1rem;
  line-height: 1.65;
}

.dpl-hero-block h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.12;
}

.dpl-lede {
  max-width: 760px;
  font-size: 1.12rem;
  line-height: 1.75;
}

.dpl-eyebrow {
  margin-bottom: 12px;
  color: #111;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dpl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.dpl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #111;
  border-radius: 6px;
  background: var(--dpl-warm);
  color: #111;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.dpl-button:hover {
  background: #f0bc58;
  border-color: #111;
  color: #111;
}

.dpl-button-secondary {
  background: #fff;
  color: #111;
}

.dpl-button-secondary:hover {
  background: var(--dpl-panel-strong);
  color: #111;
}

.dpl-section-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--dpl-line);
}

.dpl-section-block > h2 {
  margin-bottom: 22px;
  font-size: 2rem;
  line-height: 1.25;
}

.dpl-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dpl-card {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--dpl-line);
  border-radius: 8px;
  background: #fff;
}

.dpl-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.dpl-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

.dpl-latest-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--dpl-line);
  border-radius: 8px;
  background: var(--dpl-panel);
}

.dpl-latest-card h2 {
  margin-bottom: 12px;
  font-size: 1.72rem;
}

.dpl-latest-card img,
.dpl-figure img {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.dpl-latest-card img {
  aspect-ratio: 16 / 9;
}

.dpl-figure {
  margin: 18px 0 0;
}

.dpl-figure figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.dpl-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-left: 1.2em;
}

.dpl-checklist li {
  margin-bottom: 8px;
}

.dpl-checklist li::marker {
  color: #111;
}

.dpl-note-box {
  padding: 20px;
  border-left: 4px solid var(--dpl-warm);
  border-radius: 8px;
  background: #fff8eb;
}

.dpl-note-box p:last-child {
  margin-bottom: 0;
}

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

.dpl-contact-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--dpl-line);
  border-radius: 8px;
  background: #fff;
}

.dpl-contact-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dpl-contact-card div {
  padding: 18px;
}

.dpl-contact-card h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
}

.dpl-contact-card p {
  margin-bottom: 0;
  color: #111;
  line-height: 1.65;
}

.dpl-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 22px 0;
  border: 1px solid var(--dpl-line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.dpl-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

.dpl-table th,
.dpl-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--dpl-line);
  color: #111;
  text-align: left;
  vertical-align: top;
}

.dpl-table th {
  background: var(--dpl-panel);
  font-weight: 800;
}

.dpl-code {
  overflow-x: auto;
  overflow-wrap: normal;
  padding: 16px;
  border-radius: 8px;
  background: #f1f2ef;
  color: #111;
  white-space: pre;
}

.dpl-article-body {
  max-width: 760px;
  margin: 0 auto 0 0;
  color: #111;
  font-size: 1.04rem;
  line-height: 1.78;
  overflow-wrap: break-word;
  text-align: left;
  text-wrap: pretty;
  word-break: normal;
}

.dpl-article-body a,
.dpl-article-body code {
  overflow-wrap: anywhere;
}

.dpl-article-body > *:first-child {
  margin-top: 0;
}

.dpl-article-body p {
  margin: 0 0 19px;
  text-align: left;
  text-indent: 0;
}

.dpl-article-body p,
.dpl-article-body li,
.dpl-article-body h2,
.dpl-article-body h3,
.dpl-step-card,
.dpl-step-card *,
.dpl-article-body .dpl-table td {
  word-break: normal;
  overflow-wrap: break-word;
  text-align: left;
  writing-mode: horizontal-tb;
}

.dpl-article-body h2[id],
.dpl-article-body h3[id] {
  scroll-margin-top: 96px;
}

.dpl-article-body h2 {
  margin: 50px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--dpl-line);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  line-height: 1.24;
}

.dpl-article-body h3 {
  margin: 28px 0 10px;
  font-size: 1.16rem;
  line-height: 1.32;
}

.dpl-article-body ul,
.dpl-article-body ol {
  margin: 0 0 24px 1.25rem;
  padding-left: 1rem;
}

.dpl-article-body li {
  margin-bottom: 8px;
}

.dpl-article-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  color: #111;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dpl-article-kicker span {
  display: inline-flex;
  align-items: center;
}

.dpl-article-kicker span + span::before {
  width: 5px;
  height: 5px;
  margin-right: 16px;
  border-radius: 50%;
  background: var(--dpl-warm);
  content: "";
}

.dpl-article-lede {
  font-size: clamp(1.13rem, 1.8vw, 1.32rem);
  line-height: 1.68;
}

.dpl-answer-box {
  margin: 22px 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--dpl-line);
  border-left: 4px solid var(--dpl-accent);
  border-radius: 8px;
  background: #f4f8f7;
  font-size: 1rem;
  line-height: 1.62;
}

.dpl-answer-box p:last-child {
  margin-bottom: 0;
}

.dpl-article-body a[data-placeholder]:not(.dpl-button) {
  display: inline;
  padding: 2px 3px;
  background: #fff4d9;
  color: #111;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.dpl-disclosure-box,
.dpl-cta-panel {
  padding: 18px 20px;
  border: 1px solid var(--dpl-line);
  border-left: 4px solid var(--dpl-warm);
  border-radius: 8px;
  background: #fff9eb;
}

.dpl-internal-links {
  padding: 16px 18px;
  border: 1px solid var(--dpl-line);
  border-radius: 8px;
  background: #f8faf7;
  font-size: 0.96rem;
  line-height: 1.62;
}

.dpl-internal-links a {
  font-weight: 800;
}

.dpl-disclosure-box {
  margin: 26px 0 30px;
  font-size: 0.96rem;
  line-height: 1.62;
}

.dpl-toc {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--dpl-line);
  border-radius: 8px;
  background: #f7fbff;
}

.dpl-toc-title {
  margin: 0 0 12px;
  color: #174ea6;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dpl-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.dpl-toc li {
  margin: 0;
  padding-left: 0;
  line-height: 1.35;
}

.dpl-toc a {
  color: #174ea6;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.dpl-toc a:hover {
  color: #0b3d91;
}

.dpl-last-checked {
  color: #111;
  font-size: 0.95rem;
}

.dpl-article-body .dpl-figure {
  margin: 32px 0 36px;
}

.dpl-article-body .dpl-figure figcaption {
  max-width: 720px;
  margin: 11px auto 0;
  color: #111;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.dpl-article-body .dpl-table-wrap {
  margin: 26px 0 32px;
  background: #fff;
}

.dpl-article-body .dpl-table {
  font-size: 0.96rem;
  line-height: 1.55;
}

.dpl-cta-panel {
  margin: 28px 0 34px;
}

.dpl-cta-panel p:last-child {
  margin-bottom: 0;
}

.dpl-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  margin: 26px 0 34px;
}

.dpl-step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--dpl-line);
  border-radius: 8px;
  background: #fff;
}

.dpl-step-card > div {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.dpl-step-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #111;
  border-radius: 50%;
  background: var(--dpl-warm);
  color: #111;
  font-weight: 800;
}

.dpl-step-card h3 {
  margin-top: 0;
  max-width: none;
  word-break: normal;
  overflow-wrap: normal;
}

.dpl-step-card ul {
  margin: 8px 0 0;
  margin-bottom: 0;
  padding-left: 1.05rem;
}

.dpl-step-card li {
  padding-left: 0;
}

.dpl-step-card li:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .dpl-card-grid,
  .dpl-checklist,
  .dpl-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dpl-latest-card {
    grid-template-columns: 1fr;
  }

  .dpl-home-hero {
    min-height: 620px;
    background-image: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.88) 48%, rgba(255,255,255,.18) 100%), var(--dpl-hero-bg);
    background-position: 58% center;
  }

  .dpl-article-body {
    max-width: 100%;
    margin-right: 0;
  }

  .dpl-step-grid {
    grid-template-columns: 1fr;
  }

  .dpl-article-kicker {
    display: block;
  }

  .dpl-article-kicker span {
    display: block;
  }

  .dpl-article-kicker span + span::before {
    display: none;
  }
}

@media (max-width: 680px) {
  .single-post h1,
  .single-post .entry-title,
  body.single h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 1.12;
  }

  .custom-logo {
    max-width: 104px;
  }

  .dpl-home-hero {
    min-height: 560px;
    padding: 58px 20px 44px;
    background-position: 64% center;
  }

  .dpl-hero-block {
    padding: 56px 0 34px;
  }

  .dpl-hero-block h1 {
    font-size: 2.1rem;
  }

  .dpl-card-grid,
  .dpl-checklist,
  .dpl-contact-grid {
    grid-template-columns: 1fr;
  }

  .dpl-latest-card {
    padding: 20px;
  }

  .dpl-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dpl-button {
    width: 100%;
  }

  .dpl-article-body {
    font-size: 1rem;
    line-height: 1.72;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .dpl-article-body h2 {
    margin-top: 38px;
    font-size: 1.42rem;
  }

  .dpl-disclosure-box,
  .dpl-cta-panel,
  .dpl-step-card {
    padding: 15px 16px;
  }

  .dpl-step-card {
    gap: 12px;
  }

  .dpl-step-number {
    width: 38px;
    height: 38px;
  }

  .dpl-step-card h3 {
    font-size: 1.08rem;
    line-height: 1.22;
  }

  .dpl-article-body .dpl-table,
  .dpl-article-body .dpl-table thead,
  .dpl-article-body .dpl-table tbody,
  .dpl-article-body .dpl-table tr,
  .dpl-article-body .dpl-table th,
  .dpl-article-body .dpl-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .dpl-article-body .dpl-table {
    min-width: 0;
    font-size: 0.96rem;
  }

  .dpl-article-body .dpl-table thead {
    display: none;
  }

  .dpl-article-body .dpl-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--dpl-line);
  }

  .dpl-article-body .dpl-table tr:last-child {
    border-bottom: 0;
  }

  .dpl-article-body .dpl-table td {
    padding: 0;
    border-bottom: 0;
  }

  .dpl-article-body .dpl-table td + td {
    margin-top: 9px;
  }

  .dpl-article-body .dpl-table td:first-child {
    font-size: 1.01rem;
    font-weight: 750;
    line-height: 1.42;
  }

  .dpl-article-body .dpl-table td:not(:first-child)::before {
    display: block;
    margin-bottom: 3px;
    color: #111;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .dpl-article-body .dpl-table td:nth-child(2)::before {
    content: "Start here";
  }

  .dpl-article-body .dpl-table td:nth-child(3)::before {
    content: "Why";
  }

  .dpl-article-kicker {
    margin-bottom: 14px;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .dpl-article-lede {
    font-size: 1.08rem;
    line-height: 1.6;
  }

  .dpl-answer-box,
  .dpl-toc,
  .dpl-internal-links {
    padding: 15px 16px;
  }

  .dpl-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .dpl-article-body .dpl-figure {
    margin-right: 0;
    margin-left: 0;
  }

  .dpl-article-body .dpl-figure img {
    border-radius: 8px;
  }

  .dpl-article-body .dpl-figure figcaption {
    padding: 0;
  }

  .dpl-article-body .dpl-table-wrap {
    margin-right: 0;
    margin-left: 0;
    border-right: 1px solid var(--dpl-line);
    border-left: 1px solid var(--dpl-line);
    border-radius: 8px;
  }
}
