/* DDS Friends — single blog post layout. Everything is scoped under .dfb so the theme is untouched. */
.dfb-single .content-inner { padding: 0 !important; }
.dfb-single #content { padding: 0 !important; }

.dfb {
  --ink: #0d1b33;
  --body: #3a4456;
  --muted: #6b7486;
  --line: #e6e9f0;
  --brand: #0b57e3;
  --brand-dark: #0841aa;
  --brand-soft: #eef3fe;
  --navy: #0a1a38;
  --paper: #f7f8fb;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--sans);
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.dfb *, .dfb *::before, .dfb *::after { box-sizing: border-box; }
.dfb-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* reading progress */
.dfb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000; pointer-events: none; }
.dfb-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #4f8bff); transition: width .1s linear; }

/* hero */
.dfb-hero {
  position: relative;
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(79, 139, 255, .35), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(11, 87, 227, .35), transparent 60%),
    var(--navy);
  color: #fff;
  padding: 72px 0 150px;
  overflow: hidden;
}
.dfb-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.dfb-hero__inner { position: relative; z-index: 1; max-width: 900px; text-align: center; }
.dfb-crumbs { display: flex; justify-content: center; gap: 10px; font-size: 13px; letter-spacing: .02em; color: rgba(255,255,255,.6); margin-bottom: 28px; }
.dfb-crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.dfb-crumbs a:hover { color: #fff; }
.dfb-eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #cfe0ff;
}
.dfb .dfb-title {
  font-family: var(--serif); font-weight: 600; color: #fff;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.12; letter-spacing: -.015em;
  margin: 0 auto 22px; max-width: 880px; text-wrap: balance;
}
.dfb-dek { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(255,255,255,.78); max-width: 720px; margin: 0 auto 30px; text-wrap: pretty; }
.dfb-meta { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; font-size: 14px; color: rgba(255,255,255,.75); }
.dfb-meta strong { color: #fff; font-weight: 600; }
.dfb-meta__avatar, .dfb-author__mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #4f8bff, var(--brand)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.dfb-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

/* cover image */
.dfb-cover { max-width: 1160px; margin: -110px auto 0; position: relative; z-index: 2; }
.dfb-cover img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover;
  border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(10, 26, 56, .35), 0 10px 20px -10px rgba(10, 26, 56, .2);
}

/* three-column layout */
.dfb-layout {
  display: grid; grid-template-columns: 230px minmax(0, 720px) 270px; justify-content: space-between; gap: 56px;
  padding-top: 64px; padding-bottom: 72px;
}
.dfb-toc-col, .dfb-rail { position: relative; }
.dfb-toc, .dfb-card { position: sticky; top: 120px; }

.dfb-toc summary {
  list-style: none; cursor: default; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.dfb-toc summary::-webkit-details-marker { display: none; }
.dfb-toc ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 200px); overflow: auto; scrollbar-width: none; }
.dfb-toc ol::-webkit-scrollbar { display: none; }
.dfb-toc li { margin: 0; padding: 0; }
.dfb-toc a {
  display: block; padding: 8px 0 8px 14px; border-left: 2px solid transparent; margin-left: -1px;
  font-size: 14px; line-height: 1.45; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s;
}
.dfb-toc a:hover { color: var(--ink); }
.dfb-toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }

/* article typography */
.dfb-body { font-size: 18.5px; line-height: 1.8; color: var(--body); }
.dfb-body > *:first-child { margin-top: 0; }
.dfb-body > p:first-of-type { font-size: 21px; line-height: 1.7; color: var(--ink); }
.dfb-body p { margin: 0 0 1.4em; }
.dfb-body a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(11,87,227,.35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.dfb-body a:hover { text-decoration-color: var(--brand); }
.dfb-body strong { color: var(--ink); font-weight: 600; }
.dfb .dfb-body h2 {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -.01em;
  margin: 2.4em 0 .8em; padding-top: 0; scroll-margin-top: 130px; text-wrap: balance;
}
.dfb .dfb-body h2::before { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--brand); margin-bottom: 18px; }
.dfb .dfb-body h3 {
  font-family: var(--sans); font-weight: 700; color: var(--ink);
  font-size: 21px; line-height: 1.4; margin: 1.9em 0 .6em; scroll-margin-top: 130px;
}
.dfb .dfb-body h4 { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 18px; margin: 1.6em 0 .5em; }
.dfb-body ul, .dfb-body ol { margin: 0 0 1.6em; padding-left: 0; list-style: none; }
.dfb-body li { position: relative; padding-left: 30px; margin: 0 0 .7em; }
.dfb-body ul > li::before {
  content: ""; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.dfb-body ol { counter-reset: dfb; }
.dfb-body ol > li { counter-increment: dfb; padding-left: 40px; }
.dfb-body ol > li::before {
  content: counter(dfb); position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; line-height: 1;
}
.dfb-body blockquote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--brand); font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.55; color: var(--ink); }
.dfb-body img { max-width: 100%; height: auto; border-radius: 14px; }
.dfb-body figure { margin: 2em 0; }
.dfb-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.dfb-body th, .dfb-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.dfb-body th { background: var(--paper); color: var(--ink); font-weight: 600; }

/* key takeaways */
.dfb-takeaways {
  margin: 2.2em 0 2.6em; padding: 30px 32px 14px; border-radius: 18px;
  background: linear-gradient(180deg, #f4f7ff, #fbfcff); border: 1px solid #dfe7fb; position: relative;
}
.dfb-takeaways::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.dfb-takeaways__label { font-size: 12px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand) !important; margin: 0 0 14px !important; line-height: 1.4 !important; }
.dfb-body .dfb-takeaways li { font-size: 17px; line-height: 1.65; padding-left: 34px; margin-bottom: 1em; }
.dfb-body .dfb-takeaways ul > li::before, .dfb-body .dfb-takeaways ol > li::before {
  content: ""; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; box-shadow: none;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* FAQ accordion */
.dfb-faq { margin: 1.4em 0 0; border-top: 1px solid var(--line); }
.dfb-faq__item { border-bottom: 1px solid var(--line); }
.dfb-faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--ink);
}
.dfb-faq__item summary::-webkit-details-marker { display: none; }
.dfb-faq__item summary:hover { color: var(--brand); }
.dfb-faq__icon { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); transition: background .2s, transform .25s; }
.dfb-faq__icon::before, .dfb-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--brand); border-radius: 2px; transition: transform .25s; }
.dfb-faq__icon::after { transform: rotate(90deg); }
.dfb-faq__item[open] .dfb-faq__icon { background: var(--brand); }
.dfb-faq__item[open] .dfb-faq__icon::before, .dfb-faq__item[open] .dfb-faq__icon::after { background: #fff; }
.dfb-faq__item[open] .dfb-faq__icon::after { transform: rotate(0deg); }
.dfb-faq__answer { padding: 0 50px 22px 0; font-size: 17px; line-height: 1.75; }
.dfb-faq__answer p:last-child { margin-bottom: 0; }

/* share + author */
.dfb-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 56px 0 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.dfb-share > span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-right: 8px; }
.dfb-share a, .dfb-share button {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s;
}
.dfb-share a:hover, .dfb-share button:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.dfb-share svg { width: 18px; height: 18px; fill: currentColor; }
.dfb-copy__done { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
.dfb-copy.is-done .dfb-copy__done { opacity: 1; }

.dfb-author { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; border-radius: 18px; background: var(--paper); }
.dfb-author .dfb-author__mark { width: 52px; height: 52px; font-size: 15px; flex: none; }
.dfb-author p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.dfb-author .dfb-author__name { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }

/* side card */
.dfb-card {
  padding: 30px 26px; border-radius: 20px; color: #fff; overflow: hidden;
  background: radial-gradient(260px 200px at 100% 0%, rgba(79,139,255,.5), transparent 70%), var(--navy);
  box-shadow: 0 24px 50px -24px rgba(10,26,56,.55);
}
.dfb-card p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.75); }
.dfb-card .dfb-card__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9dbdff; margin-bottom: 12px; }
.dfb-card .dfb-card__title { font-family: var(--serif); font-size: 25px; line-height: 1.25; color: #fff; margin-bottom: 12px; }

.dfb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 15px 22px; border-radius: 12px; background: var(--brand); color: #fff !important;
  font-size: 15px; font-weight: 600; text-decoration: none !important; transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 10px 24px -10px rgba(11,87,227,.8);
}
.dfb-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.dfb-btn--light { width: auto; background: #fff; color: var(--navy) !important; box-shadow: none; padding: 17px 30px; white-space: nowrap; }
.dfb-btn--light:hover { background: #eaf1ff; }

/* closing CTA */
.dfb-cta { padding: 0 0 80px; }
.dfb-cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 56px 60px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(79,139,255,.45), transparent 60%),
    linear-gradient(135deg, var(--navy), #0b2b6b);
}
.dfb-cta p { margin: 0; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.6; max-width: 560px; }
.dfb-cta .dfb-cta__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9dbdff; margin-bottom: 12px; }
.dfb .dfb-cta__title { font-family: var(--serif); font-weight: 600; color: #fff; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin: 0 0 14px; }

/* related */
.dfb-related { background: var(--paper); padding: 80px 0 96px; }
.dfb-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.dfb .dfb-related__head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3vw, 38px); color: var(--ink); margin: 0; }
.dfb-related__head a { color: var(--brand); font-weight: 600; text-decoration: none; font-size: 15px; }
.dfb-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dfb-rcard { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none !important; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.dfb-rcard:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(10,26,56,.35); }
.dfb-rcard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-soft); }
.dfb-rcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.dfb-rcard:hover .dfb-rcard__img img { transform: scale(1.04); }
.dfb-rcard__meta { display: block; padding: 22px 24px 0; font-size: 13px; color: var(--muted); }
.dfb-rcard__title { display: block; padding: 8px 24px 26px; font-family: var(--serif); font-size: 21px; line-height: 1.35; font-weight: 600; color: var(--ink); }

/* responsive */
@media (max-width: 1200px) {
  .dfb-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
  .dfb-rail { grid-column: 2; }
  .dfb-card { position: static; }
}
@media (max-width: 960px) {
  .dfb-hero { padding: 48px 0 110px; }
  .dfb-cover { margin-top: -80px; }
  .dfb-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; }
  .dfb-rail { grid-column: auto; margin-top: 40px; }
  .dfb-toc { position: static; margin-bottom: 36px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
  .dfb-toc summary { cursor: pointer; border: 0; padding: 0; margin: 0; display: flex; justify-content: space-between; }
  .dfb-toc summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--brand); }
  .dfb-toc[open] summary::after { content: "\2013"; }
  .dfb-toc[open] summary { margin-bottom: 10px; }
  .dfb-toc ol { max-height: none; }
  .dfb-related__grid { grid-template-columns: 1fr 1fr; }
  .dfb-cta__inner { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
@media (max-width: 640px) {
  .dfb-wrap { padding: 0 16px; }
  .dfb-hero { padding: 36px 0 90px; }
  .dfb-crumbs { margin-bottom: 20px; }
  .dfb-cover { margin-top: -64px; }
  .dfb-cover img { border-radius: 16px; aspect-ratio: 3 / 2; }
  .dfb-body { font-size: 17.5px; }
  .dfb-body > p:first-of-type { font-size: 19px; }
  .dfb-takeaways { padding: 24px 20px 8px; }
  .dfb-faq__answer { padding-right: 0; }
  .dfb-related__grid { grid-template-columns: 1fr; }
  .dfb-cta__inner { border-radius: 20px; padding: 34px 24px; }
  .dfb-btn--light { width: 100%; }
  .dfb-author { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .dfb *, .dfb *::before, .dfb *::after { transition: none !important; }
}
