/*
Theme Name: David Alzamendi
Theme URI: https://davidalzamendi.com/
Description: David Alzamendi's personal blog: practical guides to Microsoft Fabric and the Azure data platform. Source: knowledge/brands/davidalzamendi/website/ in the Architecture Repository.
Author: David Alzamendi
Version: 1.0.5
Requires PHP: 8.1
License: Proprietary
Text Domain: davidalzamendi
*/

/* Fonts (SIL Open Font License), self-hosted: no Google Fonts requests. */
@font-face { font-family: "Inter"; src: url(assets/inter.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(assets/jakarta.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(assets/jbmono.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --blue: #1e73be;
  --blue-ink: #155b98;
  --blue-soft: #e8f1fa;
  --navy: #073257;
  --navy-deep: #04213b;
  --orange: #be691e;
  --orange-ink: #9c5414;
  --orange-soft: #fbefe3;
  --tint: #f5f9fd;
  --ink: #13212f;
  --text: #2c3a48;
  --muted: #5a6877;
  --line: #e2e8f0;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(7, 50, 87, .06), 0 8px 24px -12px rgba(7, 50, 87, .18);
  --shadow-lg: 0 2px 4px rgba(7, 50, 87, .06), 0 24px 48px -20px rgba(7, 50, 87, .32);
  --head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", Consolas, "SFMono-Regular", monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font: 400 17px/1.7 var(--body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--blue-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.da-ico { flex: none; vertical-align: middle; }
.da-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.da-wrap--post { max-width: calc(760px + 2 * var(--gutter)); }
.da-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.da-skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.da-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--body); padding: 11px 18px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.da-btn--lg { padding: 15px 24px; font-size: 16px; }
.da-btn--primary { background: var(--blue); color: #fff; }
.da-btn--primary:hover { background: var(--navy); color: #fff; }
.da-btn--accent { background: var(--orange); color: #fff; }
.da-btn--accent:hover { background: #d27a2c; color: #fff; transform: translateY(-1px); }
.da-btn--light { background: #fff; color: var(--navy); }
.da-btn--light:hover { background: var(--blue-soft); color: var(--navy); }
.da-btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .4); }
.da-btn--ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.da-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; color: var(--ink); cursor: pointer; list-style: none; }
.da-icon-btn:hover { background: var(--blue-soft); }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }

/* Header */
.da-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .da-header { top: 32px; }
.da-header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.da-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.da-brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #fff; font: 800 15px/1 var(--head); letter-spacing: .02em; position: relative; }
.da-brand__mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 4px; background: var(--orange); border: 2px solid #fff; }
.da-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.da-brand__name { font: 800 18px/1.15 var(--head); letter-spacing: -.01em; }
.da-brand__tag { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; margin-top: 2px; }
.da-brand:hover { color: var(--ink); }
.da-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.da-nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; font: 500 15px/1.2 var(--body); color: var(--text); text-decoration: none; cursor: pointer; }
.da-nav__link:hover, .da-drop[open] > .da-nav__link { background: var(--blue-soft); color: var(--navy); }
.da-nav__link[aria-current="page"] { color: var(--blue-ink); background: var(--blue-soft); font-weight: 600; }
.da-drop { position: relative; }
.da-drop[open] .da-nav__link .da-ico { transform: rotate(180deg); }
.da-drop__panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.da-drop__panel a { display: block; padding: 12px 14px; border-radius: var(--radius-sm); text-decoration: none; }
.da-drop__panel a:hover { background: var(--tint); }
.da-drop__name { display: flex; align-items: center; gap: 8px; font: 700 15px/1.3 var(--head); color: var(--ink); }
.da-drop__count { font: 600 12px/1 var(--body); color: var(--blue-ink); background: var(--blue-soft); padding: 3px 7px; border-radius: 999px; }
.da-drop__desc { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.da-header__tools { display: flex; align-items: center; gap: 6px; }
.da-searchbox { position: relative; }
.da-searchbox__panel { position: absolute; right: 0; top: calc(100% + 14px); width: min(460px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg); color: var(--muted); }
.da-searchbox__panel input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 16px var(--body); color: var(--ink); background: transparent; }
.da-menu__panel { position: absolute; right: var(--gutter); left: var(--gutter); top: 64px; display: flex; flex-direction: column; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: calc(100vh - 90px); overflow: auto; }
.da-menu__panel a:not(.da-btn) { padding: 12px 14px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
.da-menu__panel a.da-menu__sub { font-weight: 400; padding: 9px 14px 9px 28px; color: var(--text); font-size: 15px; }
.da-menu__panel a:hover { background: var(--tint); }
.da-menu__panel .da-btn { margin-top: 8px; }
.da-mobile-only { display: none; }

/* Shared bits */
.da-eyebrow { font: 700 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #ffc48f; margin: 0 0 14px; }
.da-eyebrow--dark { color: var(--orange-ink); margin-bottom: 8px; }
.da-kicker { display: inline-block; font: 700 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); text-decoration: none; margin-bottom: 8px; }
a.da-kicker:hover { color: var(--navy); }
.da-meta { font-size: 14px; color: var(--muted); margin: 0; }
.da-dot { margin: 0 4px; }
.da-h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.da-h3 { font-size: 21px; }
.da-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--blue-ink); white-space: nowrap; }
.da-more:hover { gap: 10px; color: var(--navy); }
.da-section { padding: clamp(56px, 7vw, 88px) var(--gutter); }
.da-wrap.da-section { padding-left: var(--gutter); padding-right: var(--gutter); }
.da-section--tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
.da-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.da-badge { display: inline-block; font: 700 11px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-ink); background: var(--blue-soft); padding: 4px 7px; border-radius: 6px; vertical-align: 2px; }

/* Home: hero */
.da-hero { position: relative; overflow: hidden; color: #dbe8f5; background: radial-gradient(1100px 500px at 85% -10%, rgba(30, 115, 190, .55), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(190, 105, 30, .25), transparent 60%), var(--navy-deep); }
.da-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); pointer-events: none; }
.da-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.da-hero__title { color: #fff; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; margin-bottom: 22px; }
.da-hero__title span { background: linear-gradient(90deg, #7cc0ff, #ffc48f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.da-hero__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #c4d6e8; max-width: 640px; margin-bottom: 32px; }
.da-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.da-hero__stats { display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.da-hero__stats li { display: flex; flex-direction: column; }
.da-hero__stats strong { font: 800 28px/1.1 var(--head); color: #fff; }
.da-hero__stats span { font-size: 14px; color: #9fb7cf; }
.da-hero__card { justify-self: center; position: relative; width: 100%; max-width: 360px; padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }
.da-hero__card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: var(--blue); }
.da-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.da-chips li { font: 600 13px/1 var(--body); color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); padding: 8px 11px; border-radius: 999px; }

/* Cards */
.da-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.da-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.da-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfdbe8; }
.da-card__img { display: block; aspect-ratio: 16 / 9; background: var(--blue-soft); overflow: hidden; border-bottom: 1px solid var(--line); }
.da-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.da-card:hover .da-card__img img { transform: scale(1.03); }
.da-card__ph { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center; font: 800 22px/1.2 var(--head); color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); }
.da-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.da-card__title { font-size: 19px; line-height: 1.3; margin: 0 0 10px; }
.da-card__title a { color: var(--ink); text-decoration: none; }
.da-card__title a::after { content: ""; position: absolute; inset: 0; }
.da-card { position: relative; }
.da-card .da-kicker { position: relative; z-index: 1; }
.da-card__title a:hover { color: var(--blue-ink); }
.da-card__text { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.da-card .da-meta { margin-top: auto; font-size: 13.5px; }
.da-card--lg .da-card__title { font-size: clamp(22px, 2.4vw, 28px); }
.da-card--lg .da-card__text { -webkit-line-clamp: 4; font-size: 16px; }

/* Home: latest */
.da-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.da-feature__list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.da-row { position: relative; padding: 22px 24px; border-bottom: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; justify-content: center; transition: background .15s; }
.da-row:last-child { border-bottom: 0; }
.da-row:hover { background: var(--tint); }
.da-row__title { font-size: 18px; line-height: 1.35; margin: 0 0 6px; }
.da-row__title a { color: var(--ink); text-decoration: none; }
.da-row__title a::after { content: ""; position: absolute; inset: 0; }
.da-row:hover .da-row__title a { color: var(--blue-ink); }

/* Home: most read */
.da-popular { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; list-style: none; margin: 0; padding: 0; }
.da-popular li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; transition: box-shadow .2s, border-color .2s; }
.da-popular li:hover { box-shadow: var(--shadow); border-color: #cfdbe8; }
.da-popular__n { font: 800 28px/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px var(--blue); min-width: 40px; }
.da-popular .da-kicker { display: block; margin-bottom: 4px; }
.da-popular__title { font: 700 17px/1.35 var(--head); color: var(--ink); text-decoration: none; }
.da-popular__title::after { content: ""; position: absolute; inset: 0; }
.da-popular li:hover .da-popular__title { color: var(--blue-ink); }

/* Home: topics */
.da-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.da-topic { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 56px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.da-topic::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.da-topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfdbe8; }
.da-topic__count { font: 700 12.5px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.da-topic__name { font: 800 21px/1.25 var(--head); color: var(--ink); }
.da-topic__desc { font-size: 15px; line-height: 1.55; color: var(--muted); }
.da-topic__go { position: absolute; right: 22px; bottom: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); transition: background .2s, color .2s; }
.da-topic:hover .da-topic__go { background: var(--blue); color: #fff; }
.da-topic--hot { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); border-color: var(--navy); }
.da-topic--hot::before { background: var(--orange); }
.da-topic--hot .da-topic__name { color: #fff; }
.da-topic--hot .da-topic__desc { color: #b9cde1; }
.da-topic--hot .da-topic__count { color: #ffc48f; }
.da-topic--hot .da-topic__go { background: var(--orange); color: #fff; }

/* Home: community */
.da-community { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: var(--orange-soft); border: 1px solid #f1dcc6; }
.da-community p { font-size: 17px; color: var(--text); max-width: 560px; }
.da-community .da-h2 { margin-bottom: 14px; }
.da-community__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.da-community__facts li { display: flex; flex-direction: column; padding: 16px 20px; background: #fff; border-radius: var(--radius-sm); border: 1px solid #f1dcc6; }
.da-community__facts strong { font: 700 16px/1.3 var(--head); color: var(--ink); }
.da-community__facts span { font-size: 14.5px; color: var(--muted); }

/* Follow band */
.da-follow { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 140%); color: #d4e3f2; }
.da-follow__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.da-follow__title { color: #fff; font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 8px; }
.da-follow__text { margin: 0; max-width: 620px; }
.da-follow__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.da-footer { background: var(--navy-deep); color: #a9bdd1; font-size: 15px; padding: 64px 0 28px; }
.da-footer a { color: #d6e3f0; text-decoration: none; }
.da-footer a:hover { color: #fff; text-decoration: underline; }
.da-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.1fr; gap: 40px; }
.da-brand--light, .da-brand--light:hover { color: #fff; }
.da-brand--light .da-brand__tag { color: #8ea6bd; }
.da-brand--light .da-brand__mark::after { border-color: var(--navy-deep); }
.da-footer__about p { margin: 18px 0 20px; max-width: 360px; line-height: 1.6; }
.da-footer__title { font: 700 13px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 8px 0 16px; }
.da-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.da-footer__note { line-height: 1.6; margin-bottom: 12px; }
.da-footer__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.da-footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #8ea6bd; }
.da-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.da-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); transition: background .15s, color .15s; }
.da-social a:hover { background: var(--blue); color: #fff; }
.da-social--light a { background: rgba(255, 255, 255, .08); color: #fff; }
.da-social--light a:hover { background: var(--orange); color: #fff; text-decoration: none; }

/* Page and archive headers */
.da-page-head { background: linear-gradient(180deg, var(--tint), #fff); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.da-page-title { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; font-weight: 800; margin: 0 0 12px; }
.da-page-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 720px; margin: 0; }
.da-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.da-crumbs a { color: var(--muted); text-decoration: none; }
.da-crumbs a:hover { color: var(--blue-ink); text-decoration: underline; }
.da-field { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 24px; padding: 0 16px; height: 50px; background: #fff; border: 1px solid #cfdae6; border-radius: 999px; color: var(--muted); box-shadow: var(--shadow); }
.da-field:focus-within { border-color: var(--blue); }
.da-field input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 16px var(--body); color: var(--ink); background: transparent; }
.da-chipnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.da-chipnav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--text); text-decoration: none; }
.da-chipnav a span { font-size: 12px; color: var(--muted); }
.da-chipnav a:hover { border-color: var(--blue); color: var(--blue-ink); }
.da-chipnav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.da-chipnav a[aria-current="page"] span { color: #b9cde1; }
.da-pagination { margin-top: 48px; }
.da-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.da-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.da-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.da-pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue-ink); }
.da-empty { max-width: 620px; margin: 0 auto; text-align: center; padding: 40px 0; }
.da-empty .da-field { margin: 24px auto; }

/* Post */
.da-post-head { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 3vw, 40px); background: linear-gradient(180deg, var(--tint), #fff); }
.da-post-title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 0 0 24px; }
.da-byline { display: flex; align-items: center; gap: 12px; }
.da-byline img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; background: var(--blue); }
.da-byline__name { font-weight: 700; color: var(--ink); text-decoration: none; }
.da-article { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 56px; padding-bottom: 72px; }
.da-article--toc { grid-template-columns: minmax(0, 760px) 260px; }
.da-toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding: 4px 0 4px 20px; border-left: 1px solid var(--line); font-size: 14px; }
.admin-bar .da-toc { top: 132px; }
.da-toc__title { font: 700 12.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.da-toc ol { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.da-toc a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.da-toc a:hover { background: var(--tint); color: var(--blue-ink); }
.da-toc__top { font-weight: 600; color: var(--blue-ink) !important; }
.da-article--toc .ez-toc-container, .da-article--toc #ez-toc-container { display: none !important; }
.da-hero-fig { margin: 0 0 32px; }

/* Long-form text (posts and plain pages) */
.da-prose { min-width: 0; font-size: 18px; line-height: 1.75; color: var(--text); }
.da-prose > *:first-child { margin-top: 0; }
.da-prose h2 { font-size: clamp(25px, 2.6vw, 30px); margin: 2em 0 .6em; padding-top: 8px; }
.da-prose h3 { font-size: clamp(20px, 2vw, 23px); margin: 1.8em 0 .5em; }
.da-prose h4 { font-size: 18px; margin: 1.6em 0 .5em; }
.da-prose h2 *, .da-prose h3 *, .da-prose h4 * { color: inherit !important; font: inherit !important; }
.da-prose p, .da-prose ul, .da-prose ol { margin: 0 0 1.2em; }
.da-prose ul, .da-prose ol { padding-left: 1.4em; }
.da-prose li { margin: .35em 0; }
.da-prose li::marker { color: var(--blue); }
.da-prose a { color: var(--blue-ink); text-decoration: underline; text-decoration-color: rgba(21, 91, 152, .35); }
.da-prose a:hover { color: var(--navy); text-decoration-color: currentColor; }
.da-prose strong { color: var(--ink); font-weight: 650; }
.da-prose img { border-radius: var(--radius-sm); }
.da-prose figure, .da-prose .wp-block-image { margin: 1.8em 0; }
.da-prose figure img, .da-prose p > img, .da-prose .wp-block-image img, .da-hero-fig img { display: block; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.da-prose figcaption, .da-prose .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.da-prose .aligncenter { margin-left: auto; margin-right: auto; }
.da-prose .alignleft { float: left; margin: .4em 1.5em 1em 0; }
.da-prose .alignright { float: right; margin: .4em 0 1em 1.5em; }
.da-prose .wp-caption { max-width: 100%; }
.da-prose blockquote, .da-prose .wp-block-quote { margin: 1.8em 0; padding: 18px 24px; border-left: 4px solid var(--orange); background: var(--orange-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-style: normal !important; font-family: var(--body) !important; }
.da-prose blockquote p:last-child { margin-bottom: 0; }
.da-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.da-prose code, .da-prose kbd { font: 500 .86em/1.5 var(--mono); background: var(--blue-soft); color: var(--navy); padding: .15em .4em; border-radius: 6px; }
.da-prose pre { font: 400 14.5px/1.65 var(--mono); background: #0b1b2b; color: #dbe7f3; padding: 20px 22px; border-radius: var(--radius-sm); overflow: auto; margin: 1.8em 0; border: 1px solid #13293f; tab-size: 4; }
.da-prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.da-prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.da-prose th, .da-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.da-prose th, .da-prose thead td { background: var(--tint); color: var(--ink); font-weight: 650; }
.da-prose .wp-block-table { margin: 1.8em 0; }
.da-prose .wp-block-table table { display: table; margin: 0; }
.da-prose .wp-block-table td, .da-prose .wp-block-table th { border: 0; border-bottom: 1px solid var(--line); }
.da-prose iframe { border-radius: var(--radius-sm); }
.da-prose .wp-block-embed__wrapper iframe { width: 100%; }
.da-prose .wp-block-button__link { background: var(--blue); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; }
.da-prose--builder { font-size: 17px; }
.da-builder { padding-top: 40px; padding-bottom: 72px; }
.da-wrap--post > .da-prose { padding-top: 40px; padding-bottom: 72px; }

/* Easy Table of Contents box (kept on phones; the side list replaces it on wide screens) */
.da-prose #ez-toc-container { width: 100%; box-sizing: border-box; margin: 0 0 2em; padding: 18px 22px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: none; font-family: var(--body); }
.da-prose #ez-toc-container .ez-toc-title { font: 700 14px/1.2 var(--body) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.da-prose #ez-toc-container ul { padding-left: 1.1em; margin: 10px 0 0; }
.da-prose #ez-toc-container a { color: var(--blue-ink); text-decoration: none; font-size: 15.5px; }

/* Tags, author, comments */
.da-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; }
.da-tags a { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); text-decoration: none !important; color: var(--text) !important; }
.da-author { display: flex; gap: 22px; align-items: flex-start; margin: 48px 0 0; padding: 28px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.da-author__photo { flex: none; width: 88px; height: 88px; border-radius: 999px; object-fit: cover; background: var(--blue); border: 0 !important; box-shadow: none !important; }
.da-author__label { font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); margin: 4px 0 6px; }
.da-author__name { font: 800 21px/1.2 var(--head); margin: 0 0 8px; }
.da-author__name a { color: var(--ink) !important; text-decoration: none !important; }
.da-author__bio { color: var(--text); margin-bottom: 14px; }
.da-author .da-social a { text-decoration: none; }
.da-comments { padding: 64px 0 80px; }
.da-comments > .da-h2 { margin-bottom: 28px; }
.da-comment-list, .da-comment-list .children { list-style: none; margin: 0; padding: 0; }
.da-comment-list .children { margin-left: clamp(16px, 4vw, 48px); padding-left: 20px; border-left: 2px solid var(--line); }
.da-comment__body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.da-comment__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.da-comment__avatar { border-radius: 999px; }
.da-comment__name { margin: 0; font-weight: 700; color: var(--ink); }
.da-comment__name a { color: var(--ink); text-decoration: none; }
.da-comment__date { margin: 0; font-size: 13.5px; }
.da-comment__date a { color: var(--muted); text-decoration: none; }
.da-comment__text { font-size: 16px; line-height: 1.65; }
.da-comment__text p:last-child { margin-bottom: 0; }
.da-comment__reply { margin: 8px 0 0; font-size: 14px; }
.da-comment__reply a { font-weight: 600; text-decoration: none; }
.da-comment__wait { font-size: 14px; color: var(--orange-ink); }
.comment-respond { margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.comment-respond .da-h3 { margin-top: 0; }
.comment-respond small a { font-size: 14px; margin-left: 8px; }
.comment-form p { margin: 0 0 16px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; font: 400 16px/1.5 var(--body); color: var(--ink); border: 1px solid #cfdae6; border-radius: var(--radius-sm); background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; color: var(--muted); }
.da-comment-note, .comment-notes { font-size: 14px; color: var(--muted); }

/* Elementor pages: keep their layout, take our type */
.da-builder .elementor-widget-heading .elementor-heading-title { font-family: var(--head) !important; letter-spacing: -.01em; color: var(--ink) !important; text-transform: none !important; font-weight: 700 !important; }
.da-builder .elementor-widget-text-editor, .da-builder .elementor-icon-list-text { color: var(--text) !important; }
.da-builder .elementor-widget-text-editor, .da-builder .elementor-icon-list-text { font-family: var(--body) !important; }

.da-article--head { padding-bottom: 0; }
.da-prose .da-social, .da-author .da-social { padding: 0; margin: 0; }
.da-prose .da-social li { margin: 0; }
.da-hero__card img, .da-author__photo, .da-byline img { border-radius: 999px; }

/* Elementor-built posts: the site's Elementor kit still has the stock pale blue and grey; posts take the theme's type */
.da-article, .page #main {
  --e-global-color-primary: var(--ink); --e-global-color-secondary: var(--text); --e-global-color-text: var(--text); --e-global-color-accent: var(--blue);
  --e-global-typography-primary-font-family: "Plus Jakarta Sans"; --e-global-typography-secondary-font-family: "Plus Jakarta Sans";
  --e-global-typography-text-font-family: "Inter"; --e-global-typography-accent-font-family: "Inter";
}
.da-article .elementor-heading-title { font-family: var(--head) !important; color: var(--ink) !important; letter-spacing: -.015em !important; line-height: 1.25 !important; }
.da-article h2.elementor-heading-title { font-size: clamp(25px, 2.6vw, 30px) !important; font-weight: 700 !important; }
.da-article h3.elementor-heading-title { font-size: clamp(20px, 2vw, 23px) !important; font-weight: 700 !important; }
.da-article .elementor-widget-text-editor, .da-article .elementor-widget-text-editor p, .da-article .elementor-icon-list-text { font-family: var(--body) !important; color: var(--text) !important; font-size: 18px !important; line-height: 1.75 !important; }
.da-article .elementor-widget-text-editor strong { color: var(--ink) !important; }
.da-article .elementor-widget-text-editor a { color: var(--blue-ink) !important; }
.da-article .elementor-section .elementor-container, .da-article .e-con { max-width: 100% !important; }
.da-article .e-con, .da-article .elementor-section { --padding-left: 0px; --padding-right: 0px; padding-left: 0 !important; padding-right: 0 !important; }

/* Scoped to main, not .da-builder: some Elementor pages (About) close a div early, so later sections fall outside the wrapper */
.page #main h1:not(.da-page-title), .page #main .elementor h2, .page #main .elementor h3, .page #main .elementor h4, .page #main .elementor h5 { color: var(--ink) !important; font-family: var(--head) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: -.01em !important; }
.page #main .elementor li, .page #main .elementor p, .page #main .elementor-widget-text-editor { color: var(--text); font-family: var(--body); }
.page #main > .elementor, .page #main > section.elementor-section { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 1180px) {
  .da-article--toc { grid-template-columns: minmax(0, 760px); }
  .da-toc { display: none; }
  .da-article--toc .ez-toc-container, .da-article--toc #ez-toc-container { display: block !important; }
  .da-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1060px) {
  .da-nav, .da-desktop-only { display: none; }
  .da-mobile-only { display: block; }
  .da-header__tools { margin-left: auto; }
  .da-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .da-hero__card { justify-self: start; display: flex; align-items: center; gap: 20px; max-width: 560px; padding: 18px; }
  .da-hero__card img { width: 96px; flex: none; border-radius: 999px; }
  .da-chips { margin: 0; }
  .da-feature { grid-template-columns: 1fr; }
  .da-grid, .da-popular, .da-topics { grid-template-columns: 1fr 1fr; }
  .da-community { grid-template-columns: 1fr; gap: 28px; }
  .da-follow__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 782px) { .admin-bar .da-header { top: 46px; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .da-header__inner { height: 64px; }
  .da-brand__tag { display: none; }
  .da-brand__name { font-size: 17px; }
  .da-brand__mark { width: 36px; height: 36px; font-size: 14px; }
  .da-grid, .da-popular, .da-topics { grid-template-columns: 1fr; }
  .da-hero__card { flex-direction: column; align-items: flex-start; }
  .da-hero__stats { gap: 16px 28px; }
  .da-hero__stats strong { font-size: 24px; }
  .da-hero__actions .da-btn { width: 100%; }
  .da-section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .da-prose { font-size: 17px; }
  .da-prose .alignleft, .da-prose .alignright { float: none; margin: 1em 0; }
  .da-author { flex-direction: column; padding: 22px; }
  .da-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .da-footer__base { flex-direction: column; }
  .da-drop__panel { width: calc(100vw - 32px); grid-template-columns: 1fr; }
  .da-searchbox__panel { position: fixed; top: 72px; left: 16px; right: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
