:root {
  --dn-red: #c9151e;
  --dn-red-dark: #9e1017;
  --dn-ink: #171717;
  --dn-muted: #666;
  --dn-line: #e7e7e7;
  --dn-soft: #f6f6f6;
  --dn-white: #fff;
  --dn-radius: 2px;
  --dn-container: 1240px;
  --dn-font-sans: "Roboto", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body.dn-editorial-site {
  color: var(--dn-ink);
  background: #fff;
  font-family: var(--dn-font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.dn-editorial-site p,
body.dn-editorial-site li,
body.dn-editorial-site a,
body.dn-editorial-site input,
body.dn-editorial-site textarea,
body.dn-editorial-site select,
body.dn-editorial-site button,
body.dn-editorial-site h1,
body.dn-editorial-site h2,
body.dn-editorial-site h3,
body.dn-editorial-site h4,
body.dn-editorial-site h5,
body.dn-editorial-site h6 {
  font-family: var(--dn-font-sans) !important;
}

body.dn-editorial-site h1,
body.dn-editorial-site h2,
body.dn-editorial-site h3,
body.dn-editorial-site h4,
body.dn-editorial-site h5,
body.dn-editorial-site h6 { color: var(--dn-ink); letter-spacing: -0.015em; }

body.dn-editorial-site a { color: inherit; }
body.dn-editorial-site a:hover { color: var(--dn-red); }
body.dn-editorial-site img { display: block; width: 100%; height: auto; }

/* Flatsome chrome */
body.dn-editorial-site .header-main { background: #fff; }
body.dn-editorial-site .header-bottom { background: var(--dn-red) !important; }
body.dn-editorial-site .header-bottom .nav > li > a,
body.dn-editorial-site .header-bottom .nav > li > a:hover,
body.dn-editorial-site .header-bottom .nav > li.active > a { color: #fff !important; font-weight: 700; text-transform: uppercase; }
body.dn-editorial-site .header-bottom .nav > li > a { font-size: 14px; letter-spacing: .01em; }
body.dn-editorial-site .header-bottom .nav > li.current-menu-item > a { background: rgba(0,0,0,.08); }
body.dn-editorial-site .header-wrapper.stuck .header-bottom { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
body.dn-editorial-site .logo a { font-weight: 700; }
body.dn-editorial-site .footer-wrapper { border-top: 4px solid var(--dn-red); }

.dn-main { padding: 24px 0 56px; }
.dn-container { width: min(calc(100% - 32px), var(--dn-container)); margin: 0 auto; }

.dn-topline { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--dn-line); border-bottom: 1px solid var(--dn-line); padding: 10px 0; margin: 0 0 24px; min-height: 44px; }
.dn-topline-label { flex: 0 0 auto; color: var(--dn-red); font-size: 12px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.dn-topline-items { display: flex; align-items: center; gap: 20px; overflow: hidden; }
.dn-topline-items a { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.dn-topline-items a + a { position: relative; }
.dn-topline-items a + a:before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: #bbb; position: absolute; left: -12px; top: 8px; }

.dn-kicker,
.dn-eyebrow { display: inline-block; color: var(--dn-red) !important; font-size: 12px; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

.dn-image-placeholder { min-height: 100%; width: 100%; display: grid; place-items: center; background: linear-gradient(135deg,#f2f2f2,#e4e4e4); color: #aaa; font-size: 12px; font-weight: 700; letter-spacing: .08em; }

/* Hero */
.dn-hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--dn-line); }
.dn-hero-main { min-width: 0; }
.dn-hero-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--dn-soft); margin-bottom: 15px; }
.dn-hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.dn-hero-image:hover img { transform: scale(1.015); }
.dn-hero-main h1 { font-size: clamp(30px, 3vw, 44px); line-height: 1.11; margin: 9px 0 10px; font-weight: 700; }
.dn-hero-main p { color: var(--dn-muted); font-size: 17px; line-height: 1.55; margin: 0; }
.dn-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.dn-hero-side-item + .dn-hero-side-item { padding-top: 20px; border-top: 1px solid var(--dn-line); }
.dn-hero-side-image { display: block; aspect-ratio: 16/8.7; overflow: hidden; background: var(--dn-soft); margin-bottom: 10px; }
.dn-hero-side-image img { height: 100%; object-fit: cover; }
.dn-hero-side-item h2 { font-size: 21px; line-height: 1.32; margin: 0; font-weight: 700; }
.dn-hero-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--dn-line); padding-top: 18px; }
.dn-hero-compact { min-width: 0; }
.dn-hero-compact + .dn-hero-compact { border-left: 1px solid var(--dn-line); padding-left: 20px; }
.dn-hero-compact h3 { font-size: 17px; line-height: 1.38; margin: 0 0 7px; }
.dn-hero-compact time { color: #8a8a8a; font-size: 12px; }

/* Generic cards */
.dn-grid { display: grid; gap: 24px; }
.dn-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dn-card { min-width: 0; }
.dn-card-image { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--dn-soft); margin-bottom: 12px; }
.dn-card-image img { height: 100%; object-fit: cover; transition: transform .25s ease; }
.dn-card-image:hover img { transform: scale(1.02); }
.dn-card-title { font-size: 20px; line-height: 1.35; font-weight: 700; margin: 7px 0 8px; }
.dn-card-excerpt { color: var(--dn-muted); font-size: 14px; line-height: 1.55; margin: 0 0 8px; }
.dn-card-date { color: #909090; font-size: 12px; }

/* Homepage sections */
.dn-home-section { padding: 34px 0 10px; border-bottom: 1px solid var(--dn-line); }
.dn-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; position: relative; padding-top: 12px; border-top: 3px solid var(--dn-red); }
.dn-section-heading h2 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 700; text-transform: uppercase; }
.dn-section-heading p { margin: 5px 0 0; color: var(--dn-muted); font-size: 14px; }
.dn-section-more { color: var(--dn-red) !important; font-size: 13px; font-weight: 700; white-space: nowrap; }
.dn-section-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 28px; }
.dn-section-lead-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--dn-soft); margin-bottom: 12px; }
.dn-section-lead-image img { height: 100%; object-fit: cover; }
.dn-section-lead h3 { margin: 0 0 8px; font-size: 25px; line-height: 1.25; }
.dn-section-lead p { margin: 0; color: var(--dn-muted); line-height: 1.55; }
.dn-section-list { display: grid; align-content: start; }
.dn-mini-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--dn-line); }
.dn-mini-card:last-child { margin-bottom: 0; }
.dn-mini-image { aspect-ratio: 16/10; overflow: hidden; background: var(--dn-soft); }
.dn-mini-image img { height: 100%; object-fit: cover; }
.dn-mini-card h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.35; }
.dn-mini-card time { color: #999; font-size: 11px; }

/* Archive */
.dn-archive-header { max-width: 860px; padding: 16px 0 22px; border-bottom: 3px solid var(--dn-red); margin-bottom: 28px; }
.dn-archive-header h1 { font-size: clamp(34px, 4vw, 52px); margin: 6px 0 6px; font-weight: 700; }
.dn-archive-description { color: var(--dn-muted); font-size: 16px; line-height: 1.6; }
.dn-archive-description p:last-child { margin-bottom: 0; }
.dn-archive-grid { row-gap: 34px; }
.dn-pagination { margin-top: 38px; }
.dn-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.dn-pagination .page-numbers { min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--dn-line); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; }
.dn-pagination .page-numbers.current,
.dn-pagination .page-numbers:hover { background: var(--dn-red); border-color: var(--dn-red); color: #fff !important; }

/* Single article */
.dn-article-shell { display: grid; grid-template-columns: minmax(0, 820px) 320px; justify-content: space-between; gap: 56px; align-items: start; }
.dn-article-header { border-bottom: 1px solid var(--dn-line); padding: 8px 0 20px; margin-bottom: 24px; }
.dn-article-header h1 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.12; margin: 10px 0 14px; font-weight: 700; }
.dn-sapo { font-size: 19px; line-height: 1.55; color: #454545; margin: 0 0 16px; font-weight: 500; }
.dn-post-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #858585; font-size: 13px; }
.dn-post-author { color: var(--dn-ink); font-weight: 700; }
.dn-featured-image { margin: 0 0 26px; }
.dn-featured-image img { width: 100%; }
.dn-featured-image figcaption { color: #8a8a8a; font-size: 12px; line-height: 1.45; padding-top: 7px; }
.dn-entry-content { font-size: 18px; line-height: 1.78; color: #252525; }
.dn-entry-content > p:first-child { font-size: 19px; }
.dn-entry-content h2 { font-size: 29px; line-height: 1.28; margin: 36px 0 14px; }
.dn-entry-content h3 { font-size: 23px; line-height: 1.3; margin: 30px 0 12px; }
.dn-entry-content blockquote { border-left: 4px solid var(--dn-red); margin: 28px 0; padding: 8px 0 8px 22px; font-size: 21px; line-height: 1.6; color: #444; font-style: italic; }
.dn-entry-content img { margin: 8px auto; }
.dn-entry-content a { color: var(--dn-red); text-decoration: underline; text-underline-offset: 2px; }
.dn-tags { border-top: 1px solid var(--dn-line); padding-top: 18px; margin-top: 30px; font-size: 13px; }
.dn-tags a { display: inline-block; padding: 6px 9px; background: var(--dn-soft); margin: 3px; }
.dn-author-box { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 18px; padding: 22px; margin: 32px 0; background: #fafafa; border-top: 3px solid var(--dn-red); }
.dn-author-avatar img { border-radius: 50%; }
.dn-author-box h3 { margin: 4px 0 6px; font-size: 20px; }
.dn-author-box p { margin: 0; color: var(--dn-muted); line-height: 1.55; }
.dn-related { margin-top: 36px; }

/* Sidebar */
.dn-sidebar { position: sticky; top: 110px; }
.dn-widget { border-top: 3px solid var(--dn-red); padding-top: 12px; margin-bottom: 30px; }
.dn-widget-title { font-size: 18px; text-transform: uppercase; margin: 0 0 12px; font-weight: 700; }
.dn-sidebar-news { display: grid; }
.dn-sidebar-news a { font-size: 15px; line-height: 1.4; font-weight: 700; padding: 11px 0; border-bottom: 1px solid var(--dn-line); }

/* Author */
.dn-author-profile { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 24px; align-items: center; padding: 24px; background: var(--dn-soft); border-top: 4px solid var(--dn-red); margin-bottom: 34px; }
.dn-author-profile-avatar img { border-radius: 50%; }
.dn-author-profile h1 { margin: 4px 0 7px; font-size: 38px; }
.dn-author-profile p { margin: 0; color: var(--dn-muted); line-height: 1.6; }

.dn-empty-state { text-align: center; padding: 70px 24px; background: var(--dn-soft); }
.dn-empty-state h1 { font-size: 38px; margin: 8px 0; }
.dn-empty-state p { color: var(--dn-muted); }
.dn-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; background: var(--dn-red); color: #fff !important; font-weight: 700; padding: 0 18px; margin-top: 12px; }

@media (max-width: 1024px) {
  .dn-hero-grid { grid-template-columns: 1.35fr .85fr; }
  .dn-article-shell { grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; }
  .dn-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 849px) {
  .admin-bar .dn-site-header { top: 46px; }
  .dn-main { padding-top: 16px; }
  .dn-hero-grid { grid-template-columns: 1fr; }
  .dn-hero-side { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: auto; }
  .dn-hero-side-item + .dn-hero-side-item { padding-top: 0; border-top: 0; }
  .dn-section-layout { grid-template-columns: 1fr; }
  .dn-section-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .dn-mini-card { grid-template-columns: 112px minmax(0,1fr); }
  .dn-article-shell { grid-template-columns: 1fr; }
  .dn-sidebar { position: static; }
  .dn-entry-content { font-size: 17px; }
}

@media (max-width: 640px) {
  .dn-container { width: min(calc(100% - 24px), var(--dn-container)); }
  .dn-topline { align-items: flex-start; }
  .dn-topline-items { display: block; }
  .dn-topline-items a { display: none; max-width: 100%; }
  .dn-topline-items a:first-child { display: block; white-space: normal; }
  .dn-hero-main h1 { font-size: 30px; }
  .dn-hero-side { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dn-hero-side-item h2 { font-size: 16px; }
  .dn-hero-bottom { grid-template-columns: 1fr; gap: 12px; }
  .dn-hero-compact + .dn-hero-compact { border-left: 0; padding-left: 0; border-top: 1px solid var(--dn-line); padding-top: 12px; }
  .dn-section-heading { align-items: flex-start; }
  .dn-section-heading h2 { font-size: 22px; }
  .dn-section-heading p { display: none; }
  .dn-section-list { grid-template-columns: 1fr; gap: 0; }
  .dn-mini-card { grid-template-columns: 105px minmax(0,1fr); }
  .dn-grid-3 { grid-template-columns: 1fr; }
  .dn-card { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--dn-line); }
  .dn-card-image { margin: 0; aspect-ratio: 4/3; }
  .dn-card-title { font-size: 16px; margin-top: 5px; }
  .dn-card-excerpt { display: none; }
  .dn-card-date { font-size: 11px; }
  .dn-archive-header h1 { font-size: 34px; }
  .dn-article-header h1 { font-size: 34px; }
  .dn-sapo { font-size: 17px; }
  .dn-entry-content { font-size: 17px; line-height: 1.72; }
  .dn-entry-content h2 { font-size: 25px; }
  .dn-author-box { grid-template-columns: 64px minmax(0,1fr); padding: 16px; }
  .dn-author-profile { grid-template-columns: 80px minmax(0,1fr); padding: 18px; }
  .dn-author-profile h1 { font-size: 28px; }
}

/* =========================================================
   Doanh Nhân custom editorial header/footer (v1.1)
   ========================================================= */
body.dn-editorial-site { margin: 0; }
body.dn-editorial-site #wrapper,
body.dn-editorial-site #main { background: #fff; }

.dn-site-header { background: #fff; position: sticky; top: 0; z-index: 999; border-bottom: 1px solid var(--dn-line); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.admin-bar .dn-site-header { top: 32px; }
.dn-utility-bar { background: #f4f4f4; border-bottom: 1px solid #e9e9e9; font-size: 12px; color: #616161; }
.dn-utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dn-utility-left { display: flex; align-items: center; gap: 12px; }
.dn-utility-left a { color: #616161; }
.dn-utility-left a:hover { color: var(--dn-red); }
.dn-utility-sep { color: #b9b9b9; }
.dn-utility-right { color: #777; font-weight: 600; }

.dn-masthead { background: #fff; }
.dn-masthead-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.dn-brand-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.dn-brand { display: inline-flex; align-items: baseline; gap: 5px; text-decoration: none !important; font-family: var(--dn-font-sans); font-size: clamp(36px, 4.1vw, 58px); font-weight: 700; letter-spacing: -0.055em; line-height: 1; }
.dn-brand span { color: #181818; }
.dn-brand strong { color: var(--dn-red); font-weight: 700; }
.dn-brand .dn-brand-logo { display: block; width: auto; height: auto; max-height: 72px; object-fit: contain; }
.dn-brand-subtitle { margin-top: 7px; color: #777; font-size: 12px; text-transform: uppercase; letter-spacing: .085em; font-weight: 700; }
.dn-header-search { width: min(340px, 34vw); display: grid; grid-template-columns: minmax(0,1fr) auto; border: 1px solid #ddd; background: #fff; }
.dn-header-search input { border: 0 !important; box-shadow: none !important; margin: 0 !important; height: 42px !important; padding: 0 13px !important; font-size: 13px; background: transparent !important; }
.dn-header-search button { border: 0; background: #202020; color: #fff; min-width: 58px; padding: 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.dn-header-search button:hover { background: var(--dn-red); }

.dn-primary-nav { background: var(--dn-red); border-top: 1px solid rgba(0,0,0,.06); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset; }
.dn-nav-inner { min-height: 48px; display: flex; align-items: stretch; }
.dn-primary-menu-wrap { width: 100%; }
.dn-primary-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; width: 100%; }
.dn-primary-menu > li { margin: 0; position: relative; }
.dn-primary-menu > li > a { min-height: 48px; display: flex; align-items: center; padding: 0 15px; color: #fff !important; font-size: 13px; line-height: 1.2; font-weight: 700; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.dn-primary-menu > li:first-child > a { padding-left: 0; }
.dn-primary-menu > li > a:hover,
.dn-primary-menu > li.current-menu-item > a,
.dn-primary-menu > li.current-menu-ancestor > a { background: rgba(0,0,0,.10); }
.dn-primary-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 7px 0; background: #fff; border: 1px solid var(--dn-line); box-shadow: 0 12px 30px rgba(0,0,0,.12); display: none; }
.dn-primary-menu li:hover > .sub-menu { display: block; }
.dn-primary-menu .sub-menu a { display: block; padding: 9px 14px; font-size: 13px; font-weight: 700; color: #222; }
.dn-menu-toggle { display: none; }

.dn-site-footer { margin-top: 56px; background: #181818; color: #cfcfcf; border-top: 5px solid var(--dn-red); }
.dn-footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 46px; padding: 48px 0 38px; }
.dn-footer-brand { display: inline-flex; align-items: baseline; gap: 4px; font-size: 31px; line-height: 1; font-weight: 700; letter-spacing: -0.05em; }
.dn-footer-brand span { color: #fff; }
.dn-footer-brand strong { color: #ef303a; }
.dn-footer-brand-col p { max-width: 470px; margin: 15px 0 0; color: #a9a9a9; font-size: 14px; line-height: 1.65; }
.dn-footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dn-footer-col h3 { color: #fff !important; font-size: 14px; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em; margin: 3px 0 8px; }
.dn-footer-col a { color: #c8c8c8 !important; font-size: 13px; }
.dn-footer-col a:hover { color: #fff !important; }
.dn-footer-bottom { min-height: 62px; border-top: 1px solid #333; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #888; font-size: 12px; }

@media (min-width: 850px) {
  .dn-primary-nav { position: relative; top: auto; z-index: auto; }
}

@media (max-width: 1080px) {
  .dn-primary-menu > li > a { padding: 0 10px; font-size: 12px; }
  .dn-footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .dn-footer-col:last-child { display: none; }
}

@media (max-width: 849px) {
  .dn-utility-right { display: none; }
  .dn-masthead-inner { min-height: 88px; }
  .dn-brand { font-size: 39px; }
  .dn-brand .dn-brand-logo { max-height: 60px; max-width: 250px !important; }
  .dn-brand-subtitle { font-size: 10px; }
  .dn-header-search { width: 240px; }
  .dn-nav-inner { min-height: 46px; display: block; }
  .dn-menu-toggle { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 9px; background: transparent; border: 0; padding: 0; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
  .dn-menu-bars { font-size: 18px; }
  .dn-primary-menu-wrap { display: none; padding-bottom: 8px; }
  .dn-menu-open .dn-primary-menu-wrap { display: block; }
  .dn-primary-menu { display: block; border-top: 1px solid rgba(255,255,255,.18); }
  .dn-primary-menu > li > a { min-height: 42px; padding: 0 !important; border-bottom: 1px solid rgba(255,255,255,.12); }
  .dn-primary-menu .sub-menu { position: static; display: block; background: rgba(0,0,0,.06); border: 0; box-shadow: none; padding: 0 0 0 14px; }
  .dn-primary-menu .sub-menu a { color: #fff !important; }
  .dn-footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .dn-utility-inner { min-height: 31px; }
  .dn-utility-left a { display: none; }
  .dn-utility-sep { display: none; }
  .dn-masthead-inner { min-height: 78px; }
  .dn-brand { font-size: 34px; }
  .dn-brand .dn-brand-logo { max-height: 50px; max-width: 205px !important; }
  .dn-brand-subtitle { display: none; }
  .dn-header-search { width: auto; flex: 1 1 auto; max-width: 180px; }
  .dn-header-search input { height: 38px !important; }
  .dn-header-search button { min-width: 48px; padding: 0 9px; }
  .dn-footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 34px; }
  .dn-footer-brand-col { grid-column: 1 / -1; }
  .dn-footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding: 16px 0; }
}

/* =========================================================
   V1.7 - Compact sticky header: keep logo only while scrolling
   ========================================================= */
.dn-site-header,
.dn-masthead,
.dn-masthead-inner,
.dn-brand .dn-brand-logo {
  transition: min-height .2s ease, max-height .2s ease, padding .2s ease, box-shadow .2s ease;
}

/* Once the page is scrolled, keep only a slim logo bar. */
.dn-site-header.dn-is-compact .dn-utility-bar,
.dn-site-header.dn-is-compact .dn-primary-nav,
.dn-site-header.dn-is-compact .dn-brand-subtitle,
.dn-site-header.dn-is-compact .dn-header-search {
  display: none !important;
}

.dn-site-header.dn-is-compact {
  border-bottom: 3px solid var(--dn-red);
  box-shadow: 0 4px 18px rgba(0,0,0,.10);
}

.dn-site-header.dn-is-compact .dn-masthead-inner {
  min-height: 62px;
  justify-content: flex-start;
}

.dn-site-header.dn-is-compact .dn-brand-wrap {
  width: auto;
}

.dn-site-header.dn-is-compact .dn-brand {
  font-size: 34px;
  line-height: 1;
}

.dn-site-header.dn-is-compact .dn-brand .dn-brand-logo {
  max-height: 43px;
  max-width: 210px !important;
  width: auto;
}

@media (max-width: 849px) {
  .dn-site-header.dn-is-compact .dn-masthead-inner {
    min-height: 58px;
  }
  .dn-site-header.dn-is-compact .dn-brand .dn-brand-logo {
    max-height: 39px;
    max-width: 190px !important;
  }
}

@media (max-width: 640px) {
  .dn-site-header.dn-is-compact .dn-masthead-inner {
    min-height: 54px;
  }
  .dn-site-header.dn-is-compact .dn-brand {
    font-size: 30px;
  }
  .dn-site-header.dn-is-compact .dn-brand .dn-brand-logo {
    max-height: 36px;
    max-width: 175px !important;
  }
}


/* =========================================================
   V1.8 - Floating back-to-top button
   ========================================================= */
.dn-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dn-red);
  color: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background .18s ease;
}

.dn-back-to-top::before {
  content: '';
  width: 11px;
  height: 11px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}

.dn-back-to-top:hover,
.dn-back-to-top:focus-visible {
  background: #a90f17;
  color: #fff;
  outline: none;
}

.dn-back-to-top:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 0 0 6px rgba(205,18,27,.28), 0 5px 18px rgba(0,0,0,.18);
}

.dn-back-to-top.dn-is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .dn-back-to-top {
    right: 15px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }
}
