/*
Theme Name: Danara Life
Template: generatepress
Description: GeneratePress child theme for danara.vn / life.danara.vn ("Sống ở Đà Nẵng"): Danara Living Editorial design (Stitch "Danara Website Redesign", docs/plan/danara-redesign.md).
Version: 2.0.0
Text Domain: danara-life
*/

/* Danara Living Editorial tokens — keep in sync with danara-vn/dana.rentals/rentals.danara.vn/app/globals.css */
:root {
  --linen: #FBF9F6;          /* page canvas */
  --surface: #FFFFFF;        /* cards */
  --subtle: #F5F1EB;         /* bone bands, chips */
  --ink: #242220;            /* text, outline buttons */
  --muted: #6E6862;
  --dark: #1C1A17;           /* editorial banners */
  --terracotta: #A86B4C;     /* fills: buttons, dots, badges */
  --terracotta-hover: #8F583B;
  --terracotta-text: #854E31; /* ≤17px text on linen: 6.4:1 (#A86B4C is 4.1:1) */
  --sand: #D4A373;           /* accent on dark */
  --border: #EAE4DC;
  --border-strong: #D5CCC0;
  --container: 72.5rem;      /* 1160px */
  --measure: 46rem;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-float: 0 8px 24px rgba(36, 34, 32, 0.06);
  --ease: 0.2s ease;
  --font: 'Be Vietnam Pro', system-ui, sans-serif;
}

/* ---------- Base / GeneratePress reset ---------- */
body, button, input, select, textarea { font-family: var(--font); color: var(--ink); }
body { background: var(--linen); font-size: 15px; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
a { color: var(--terracotta-text); transition: color var(--ease); }
a:hover, a:focus { color: var(--ink); }
.site.grid-container, .site-content, .container.grid-container { max-width: none; padding: 0; }
.site-content { display: block; }
.separate-containers .site-main, .site-main { margin: 0; }
.dn-wrap { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.dn-icon { flex: none; vertical-align: -0.15em; }
.screen-reader-text { position: absolute; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Primitives ---------- */
.dn-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta-text); }
.dn-eyebrow--sand { color: var(--sand); }
.dn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }
.dn-eyebrow--sand .dn-dot { background: var(--sand); }
.dn-meta { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-size: 12px; color: var(--muted); }
.dn-lede { font-size: 17px; line-height: 28px; color: var(--muted); max-width: 40rem; margin: .75rem 0 0; }
.dn-badge { display: inline-block; padding: .25rem .625rem; border-radius: 999px; background: var(--subtle); color: var(--terracotta-text); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.dn-tag { display: inline-block; padding: .2rem .5rem; border-radius: var(--radius); background: var(--subtle); color: var(--muted); font-size: 11px; }
.dn-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.dn-btn--primary, .dn-btn--primary:visited { background: var(--terracotta); color: #fff; }
.dn-btn--primary:hover, .dn-btn--primary:focus { background: var(--terracotta-hover); color: #fff; }
.dn-btn--outline, .dn-btn--outline:visited { border-color: var(--ink); color: var(--ink); background: transparent; }
.dn-btn--outline:hover { background: var(--subtle); color: var(--ink); }
.dn-btn--lg { padding: 1rem 1.5rem; font-size: 16px; }
.dn-ghost { display: inline-flex; align-items: center; gap: .35rem; font-size: 13px; font-weight: 600; color: var(--terracotta-text); text-decoration: none; }
.dn-ghost .dn-icon { transition: transform var(--ease); }
.dn-ghost:hover .dn-icon { transform: translateX(2px); }
.dn-band { padding: 4rem 0; }
.dn-band--subtle { background: var(--subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dn-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2rem; }
.dn-section-head h2 { font-size: 26px; line-height: 34px; margin: 0; }
.dn-section-head > p { max-width: 22rem; margin: 0; font-size: 13px; color: var(--muted); text-align: right; }
.dn-h-xl { font-size: 36px !important; line-height: 44px !important; letter-spacing: -0.02em; }

/* Legacy shortcodes kept for posts */
.danara-note { border-left: 3px solid var(--terracotta); background: var(--subtle); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Header ---------- */
.dn-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 246, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.admin-bar .dn-header { top: 32px; }
.dn-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.dn-brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; flex: none; }
.dn-brand img { width: 36px; height: 36px; border-radius: var(--radius-lg); }
.dn-brand strong { display: block; font-size: 17px; line-height: 1.1; font-weight: 600; }
.dn-brand small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dn-nav { flex: 1; min-width: 0; }
.dn-nav__list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.dn-nav__list a { font-size: 14px; color: var(--ink); text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; }
.dn-nav__list a:hover, .dn-nav__list .current-menu-item > a, .dn-nav__list .current-post-ancestor > a, .dn-nav__list .current-menu-parent > a { color: var(--terracotta-text); border-bottom-color: var(--terracotta); }
.dn-header__actions { display: flex; align-items: center; gap: .75rem; }
.dn-header details > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); color: var(--ink); }
.dn-header details > summary::-webkit-details-marker { display: none; }
.dn-header details > summary:hover { background: var(--subtle); }
.dn-search { position: relative; }
.dn-search__panel { position: absolute; right: 0; top: calc(100% + .5rem); display: flex; gap: .5rem; width: min(26rem, 90vw); padding: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); }
.dn-search__panel input { flex: 1; }
.dn-pill-cta, .dn-pill-cta:visited { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem 1rem; border-radius: 999px; background: var(--terracotta); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dn-pill-cta:hover { background: var(--terracotta-hover); color: #fff; }
.dn-mnav { display: none; position: relative; }
.dn-mnav__panel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(20rem, 90vw); padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); }
.dn-mnav__panel .dn-nav__list { flex-direction: column; gap: 0; margin-bottom: 1rem; }
.dn-mnav__panel .dn-nav__list a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.dn-mnav__panel .dn-btn { display: flex; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); padding: .7rem .9rem; font-size: 14px;
}
input:focus, textarea:focus, select:focus { border-color: var(--terracotta); outline: 0; }
::placeholder { color: var(--muted); opacity: 1; }
button, input[type="submit"] { background: var(--terracotta); color: #fff; border-radius: var(--radius); }
button:hover, input[type="submit"]:hover { background: var(--terracotta-hover); color: #fff; }

/* ---------- Home hero ---------- */
.dn-hero { padding: 3.5rem 0 3rem; }
.dn-hero h1 { font-size: 48px; line-height: 58px; letter-spacing: -0.025em; margin: 0; }
.dn-hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.dn-hero__stat { display: flex; align-items: center; gap: .75rem; margin: 0; padding: 1rem 1.25rem; background: var(--subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 13px; color: var(--muted); flex: none; }
.dn-hero__stat strong { display: block; color: var(--ink); font-size: 15px; }
.dn-hero__stat .dn-icon { color: var(--terracotta); }
.dn-hero__search { display: flex; align-items: center; gap: .75rem; margin-top: 2rem; padding: .5rem .5rem .5rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); }
.dn-hero__search > .dn-icon { color: var(--muted); }
.dn-hero__search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: .6rem 0; font-size: 15px; background: transparent; }
.dn-hero__chips { display: flex; align-items: center; gap: .4rem; }
.dn-hero__hint { font-size: 11px; color: var(--muted); }
.dn-hero__chips a { padding: .3rem .6rem; border-radius: var(--radius); background: var(--subtle); font-size: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.dn-hero__chips a:hover { color: var(--terracotta-text); }
.dn-hero__search--compact { max-width: 40rem; box-shadow: none; }

/* ---------- Category hubs ---------- */
.dn-hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dn-hub { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: border-color var(--ease); }
.dn-hub:hover { border-color: var(--border-strong); color: var(--ink); }
.dn-hub__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.dn-hub__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--subtle); color: var(--terracotta); }
.dn-hub__go { display: inline-flex; align-items: center; gap: .25rem; font-size: 12px; color: var(--muted); }
.dn-hub:hover .dn-hub__go { color: var(--terracotta-text); }
.dn-hub strong { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.dn-hub__desc { font-size: 13px; line-height: 20px; color: var(--muted); min-height: 40px; }
.dn-hub__foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); font-size: 12px; font-weight: 600; }

/* ---------- Rentals banner ---------- */
.dn-rent { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin: 4rem 0 0; padding: 2.5rem 2rem; background: var(--dark); border-radius: var(--radius-lg); color: var(--linen); }
.dn-home .dn-rent { margin: 4rem 0; }
.dn-rent h2 { color: var(--linen); font-size: 26px; line-height: 34px; margin: 0 0 .5rem; }
.dn-rent p { margin: 0; color: rgba(251, 249, 246, .75); max-width: 34rem; }
.dn-rent .dn-eyebrow { margin-bottom: .75rem; }
.dn-rent .dn-btn { flex: none; }

/* ---------- Tabs / chips ---------- */
.dn-tabs { display: flex; flex-wrap: wrap; gap: .25rem; }
.dn-tabs a, .dn-chips a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--ink); text-decoration: none; }
.dn-tabs a:hover, .dn-chips a:hover { border-color: var(--border-strong); color: var(--ink); }
.dn-tabs a.is-active, .dn-chips a.is-active { background: var(--ink); border-color: var(--ink); color: var(--linen); }
.dn-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.dn-chips .dn-icon { color: var(--terracotta); }
.dn-chips a.is-active .dn-icon { color: var(--sand); }

/* ---------- Cards ---------- */
.dn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.dn-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--ease); }
.dn-card:hover { border-color: var(--border-strong); }
.dn-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--subtle); }
.dn-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: var(--terracotta);
  background: radial-gradient(circle at 80% 20%, rgba(212, 163, 115, .25), transparent 55%), linear-gradient(135deg, #F5F1EB, #EDE5DA); }
.dn-cover__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta-text); }
.dn-card__cat { position: absolute; top: .75rem; left: .75rem; padding: .2rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 11px; font-weight: 600; color: var(--ink); }
.dn-card__time { position: absolute; bottom: .75rem; right: .75rem; padding: .2rem .55rem; border-radius: var(--radius); background: rgba(28, 26, 23, .75); font-size: 11px; color: #fff; }
.dn-card__body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.25rem 1.25rem 1.25rem; }
.dn-card__title { margin: 0; font-size: 18px; line-height: 26px; }
.dn-card__title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dn-card__title a:hover { color: var(--terracotta-text); }
.dn-card__excerpt { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dn-card .dn-ghost { margin-top: auto; padding-top: .5rem; }
.dn-lead { margin-bottom: 1.5rem; }
.dn-card--lead { display: grid; grid-template-columns: 1.3fr 1fr; }
.dn-card--lead .dn-card__media { aspect-ratio: auto; min-height: 300px; }
.dn-card--lead .dn-card__body { padding: 2rem; justify-content: center; }
.dn-card--lead .dn-card__title { font-size: 26px; line-height: 34px; }
.dn-card--lead .dn-card__excerpt { -webkit-line-clamp: 4; font-size: 15px; line-height: 24px; }
.dn-card--lead .dn-card__title a { -webkit-line-clamp: 3; }

/* ---------- Contribute ---------- */
.dn-contribute { display: flex; align-items: center; gap: 1.25rem; margin: 3rem 0 4rem; padding: 1.5rem; background: var(--subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.dn-home .dn-contribute { margin-top: 0; }
.dn-contribute__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--surface); color: var(--terracotta); flex: none; }
.dn-contribute h3 { font-size: 17px; margin: 0 0 .2rem; }
.dn-contribute p { margin: 0; font-size: 13px; color: var(--muted); }
.dn-contribute > div:nth-child(2) { flex: 1; }
.dn-contribute__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.dn-contribute .dn-btn { padding: .6rem 1rem; font-size: 13px; }
.dn-contribute .dn-btn--outline { background: var(--surface); border-color: var(--border); }

/* ---------- Page / archive heads ---------- */
.dn-page-head { padding: 2rem 0 2.5rem; background: var(--subtle); border-bottom: 1px solid var(--border); }
.dn-page-head h1 { font-size: 36px; line-height: 44px; letter-spacing: -0.02em; margin: 0; }
.dn-page-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.dn-stat { display: flex; flex-direction: column; align-items: flex-end; margin: 0; padding: 1rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); flex: none; }
.dn-stat strong { font-size: 28px; line-height: 1.1; color: var(--terracotta-text); }
.dn-stat span { font-size: 12px; color: var(--muted); }
.dn-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; font-size: 12px; color: var(--muted); }
.dn-crumbs a { color: var(--muted); text-decoration: none; }
.dn-crumbs a:hover { color: var(--terracotta-text); }
.dn-crumbs [aria-current] { color: var(--ink); font-weight: 500; max-width: 32rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-page-head .dn-hero__search { margin-top: 1.5rem; }
.dn-pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2.5rem; }
.dn-pager .page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13px; }
.dn-pager .page-numbers.current { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.dn-empty { padding: 3rem; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* ---------- Prose ---------- */
.dn-prose { font-size: 17px; line-height: 1.75; color: var(--ink); }
.dn-prose > * + * { margin-top: 1.1em; }
.dn-prose p, .dn-prose ul, .dn-prose ol { margin-bottom: 0; }
.dn-prose h2 { font-size: 26px; line-height: 34px; margin: 2.2em 0 .6em; scroll-margin-top: 96px; }
.dn-prose h3 { font-size: 20px; line-height: 28px; margin: 1.8em 0 .4em; }
.dn-prose ul, .dn-prose ol { padding-left: 1.25rem; margin-left: 0; }
.dn-prose li + li { margin-top: .35em; }
.dn-prose li::marker { color: var(--terracotta); }
.dn-prose a { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.dn-prose a:hover { text-decoration-color: var(--terracotta); }
.dn-prose blockquote { margin-left: 0; padding: 1rem 1.25rem; border-left: 3px solid var(--terracotta); background: var(--subtle); font-style: normal; border-radius: 0 var(--radius) var(--radius) 0; }
.dn-prose table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--border); }
.dn-prose th, .dn-prose td { padding: .65rem .8rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.dn-prose th { background: var(--subtle); font-weight: 600; }
.dn-prose img { border-radius: var(--radius-lg); }
.dn-prose--page { max-width: var(--measure); padding: 3rem 0 0; }
.dn-prose--page > h2:first-child { margin-top: 0; }
.dn-prose .dn-rent { margin: 2.5rem 0; flex-direction: column; align-items: flex-start; }

/* ---------- Article ---------- */
.dn-article__head { padding-top: 2rem; max-width: calc(var(--measure) + 22rem); margin-left: auto; margin-right: auto; }
.dn-article__head > *, .dn-article__body, .dn-article__foot, .dn-article__hero { max-width: 64rem; }
.dn-article__eyebrow { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; }
.dn-article h1 { font-size: 44px; line-height: 54px; letter-spacing: -0.025em; margin: 0; max-width: 52rem; }
.dn-article__lede { margin: 1.5rem 0 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--terracotta); background: var(--subtle); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; font-size: 17px; line-height: 28px; color: #4A4541; max-width: 52rem; }
.dn-byline { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dn-byline img { border-radius: var(--radius-lg); }
.dn-byline strong { display: block; font-size: 14px; }
.dn-byline .dn-meta { gap: .3rem; }
.dn-article__hero { margin: 2rem auto 0; }
.dn-article__hero img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.dn-article__hero figcaption { margin-top: .5rem; font-size: 12px; color: var(--muted); text-align: right; }
.dn-article__body { display: grid; grid-template-columns: minmax(0, 1fr) 18.5rem; gap: 3.5rem; margin: 2.5rem auto 0; }
.dn-prose--article { counter-reset: dn-h2; }
.dn-prose--article > h2 { counter-increment: dn-h2; display: flex; align-items: baseline; gap: .75rem; }
.dn-prose--article > h2::before { content: counter(dn-h2); display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--radius-lg); background: var(--terracotta); color: #fff; font-size: 15px; transform: translateY(-3px); }
.dn-article__aside { display: flex; flex-direction: column; gap: 1rem; align-self: start; position: sticky; top: 96px; }
.dn-toc { padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.dn-toc ol { list-style: none; margin: .5rem 0 0; padding: 0; }
.dn-toc li { margin: 0; border-top: 1px solid var(--border); }
.dn-toc a { display: flex; gap: .6rem; padding: .55rem 0; font-size: 13px; line-height: 19px; color: var(--ink); text-decoration: none; }
.dn-toc a span { color: var(--terracotta-text); font-size: 12px; font-weight: 600; }
.dn-toc a:hover { color: var(--terracotta-text); }
.dn-aside-rent { padding: 1.5rem 1.25rem; background: var(--dark); border-radius: var(--radius-lg); color: rgba(251, 249, 246, .75); font-size: 13px; }
.dn-aside-rent p { margin: 0 0 .75rem; }
.dn-aside-rent__title { color: var(--linen); font-size: 18px !important; line-height: 26px; font-weight: 600; }
.dn-aside-rent .dn-btn { width: 100%; margin-top: .25rem; }
.dn-aside-note { padding: 1.25rem; background: var(--subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 13px; color: var(--muted); }
.dn-aside-note p { margin: 0; }
.dn-aside-note__title { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem !important; font-weight: 600; color: var(--ink); }
.dn-aside-note__title .dn-icon { color: var(--terracotta); }
.dn-article__foot { margin: 3rem auto 4rem; }
.dn-author { display: flex; gap: 1.25rem; max-width: calc(100% - 22rem); padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.dn-author img { border-radius: var(--radius-lg); flex: none; }
.dn-author p { margin: 0 0 .5rem; font-size: 13px; color: var(--muted); }
.dn-author__name { font-size: 16px !important; font-weight: 600; color: var(--ink) !important; }
.dn-author__links { display: flex; gap: 1.25rem; margin: 0 !important; }
.dn-author__links a { font-size: 13px; font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.dn-footer { margin-top: 0; background: var(--subtle); border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.dn-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.dn-footer__name { font-size: 20px; font-weight: 600; color: var(--ink); margin: 0 0 .75rem; }
.dn-footer__name span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta-text); margin-left: .35rem; }
.dn-footer__brand p { margin: 0 0 1rem; max-width: 24rem; }
.dn-footer__label { margin: 0 0 .9rem; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.dn-footer__brand .dn-footer__label { margin-bottom: .25rem; }
.dn-footer ul { list-style: none; margin: 0; padding: 0; }
.dn-footer li { margin: 0 0 .55rem; }
.dn-footer a { color: var(--muted); text-decoration: none; }
.dn-footer a:hover { color: var(--terracotta-text); }
.dn-footer .dn-footer__mail { font-size: 15px; font-weight: 600; color: var(--terracotta-text); }
.dn-footer .dn-footer__accent { color: var(--terracotta-text); font-weight: 600; }
.dn-footer__bar { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid var(--border); font-size: 12px; }
.dn-footer__bar span:last-child { display: flex; gap: 1.25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dn-nav { display: none; }
  .dn-mnav { display: block; }
  .dn-header__inner { justify-content: space-between; }
  .dn-hero__chips { display: none; }
}
@media (max-width: 1024px) {
  .dn-hubs, .dn-grid { grid-template-columns: repeat(2, 1fr); }
  .dn-article__body { grid-template-columns: 1fr; }
  .dn-article__aside { display: contents; }
  .dn-toc { order: -1; }
  .dn-aside-rent, .dn-aside-note { order: 1; }
  .dn-author { max-width: none; }
  .dn-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .dn-wrap { padding: 0 1rem; }
  .dn-header__inner { min-height: 60px; gap: .5rem; }
  .dn-pill-cta { display: none; }
  .dn-hero { padding: 2rem 0; }
  .dn-hero h1 { font-size: 34px; line-height: 42px; }
  .dn-hero__row, .dn-page-head__row, .dn-section-head, .dn-rent, .dn-contribute { flex-direction: column; align-items: flex-start; }
  .dn-section-head > p { text-align: left; }
  .dn-hero__stat { display: none; }
  .dn-hero__search .dn-btn { padding: .65rem .9rem; }
  .dn-hubs, .dn-grid { grid-template-columns: 1fr; }
  .dn-band { padding: 2.5rem 0; }
  .dn-h-xl, .dn-page-head h1 { font-size: 28px !important; line-height: 36px !important; }
  .dn-article h1 { font-size: 30px; line-height: 38px; }
  .dn-card__media--cover { aspect-ratio: 16 / 6; }
  .dn-card__media--cover .dn-cover__label { display: none; }
  .dn-card--lead { grid-template-columns: 1fr; }
  .dn-card--lead .dn-card__media { min-height: 0; }
  .dn-card--lead .dn-card__body { padding: 1.25rem; }
  .dn-card--lead .dn-card__title { font-size: 20px; line-height: 28px; }
  .dn-rent { padding: 1.75rem 1.25rem; }
  .dn-rent .dn-btn { width: 100%; white-space: normal; text-align: center; }
  .dn-stat { display: none; }
  .dn-prose { font-size: 16px; }
  .dn-prose h2 { font-size: 22px; line-height: 30px; }
  .dn-prose table { display: block; overflow-x: auto; }
  .dn-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .dn-footer__bar { flex-direction: column; }
}
