:root {
  --dp-ink: #161b2c;
  --dp-body: #3e4758;
  --dp-muted: #6b7280;
  --dp-soft: #f0f3f8;
  --dp-softer: #f7f9fc;
  --dp-line: #dce1e9;
  --dp-red: #ef2b1f;
  --dp-red-dark: #c9251a;
  --dp-red-soft: #fff3f0;
  --dp-green: #167d4d;
  --dp-green-dark: #0f5738;
  --dp-green-soft: #e5f2eb;
  --dp-white: #ffffff;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body.directpro-singular {
  min-width: 320px;
  margin: 0;
  background: var(--dp-white);
  color: var(--dp-ink);
  font-family: "Geologica", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.directpro-singular a {
  color: var(--dp-green-dark);
  text-decoration-color: rgb(15 87 56 / 38%);
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.directpro-singular a:hover {
  color: var(--dp-green);
  text-decoration-color: currentColor;
}

.directpro-singular a:focus-visible,
.directpro-singular button:focus-visible {
  outline: 3px solid rgb(22 125 77 / 28%);
  outline-offset: 4px;
}

.dp-skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--dp-ink);
  color: var(--dp-white) !important;
  transform: translateY(-160%);
}

.dp-skip-link:focus {
  transform: translateY(0);
}

.dp-header {
  position: sticky;
  z-index: 70;
  top: 0;
  padding: 6px 80px;
  background: transparent;
}

.dp-header__inner {
  display: flex;
  width: min(1240px, 100%);
  min-height: 74px;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 50px;
  padding: 5px 18px 5px 24px;
  background: rgb(237 237 237 / 78%);
  box-shadow: 0 7px 24px rgb(22 27 44 / 8%);
  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);
}

.dp-brand {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.dp-brand__logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: 230px;
}

.dp-header__menu {
  min-width: 0;
  flex: 1 1 auto;
}

.dp-menu,
.dp-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dp-menu {
  justify-content: flex-end;
}

.dp-menu li {
  position: relative;
}

.dp-menu a {
  display: flex;
  min-height: 38px;
  align-items: center;
  border-radius: 11px;
  padding: 8px 11px;
  color: var(--dp-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.dp-menu a:hover,
.dp-menu .current-menu-item > a {
  background: rgb(255 255 255 / 74%);
  color: var(--dp-green-dark);
}

.dp-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 210px;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--dp-line);
  border-radius: 14px;
  background: var(--dp-white);
  box-shadow: 0 16px 34px rgb(22 27 44 / 14%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dp-menu li:hover > .sub-menu,
.dp-menu li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dp-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.dp-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.dp-button--quiet {
  border-color: rgb(22 27 44 / 10%);
  background: var(--dp-white);
  color: var(--dp-ink) !important;
  box-shadow: 0 4px 12px rgb(22 27 44 / 7%);
}

.dp-button--accent {
  background: #006d40;
  color: var(--dp-white) !important;
  box-shadow: 0 6px 14px rgb(0 109 64 / 20%);
  transition: background-color 160ms ease, transform 160ms ease;
}

.dp-button--accent:hover {
  background: #089657;
}

.dp-button:hover {
  transform: translateY(-1px);
}

.dp-main {
  display: block;
}

.dp-hero {
  position: relative;
  width: min(1240px, calc(100% - 160px));
  overflow: hidden;
  margin: 0 auto;
  padding: 102px 0 70px;
}

.dp-hero__eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
  color: var(--dp-red-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dp-hero__eyebrow::before {
  width: 4px;
  height: 20px;
  flex: 0 0 4px;
  margin-right: 10px;
  background: var(--dp-red);
  content: "";
}

.dp-hero__title {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.dp-hero__subtitle {
  max-width: 820px;
  margin: 30px 0 0;
  color: var(--dp-body);
  font-size: 20px;
  line-height: 1.52;
}

.dp-content-card {
  display: grid;
  align-items: start;
  width: min(1240px, calc(100% - 160px));
  gap: 32px;
  margin: 0 auto 104px;
  border-radius: 24px;
  padding: 32px;
  background: var(--dp-soft);
}

.dp-content-card--with-toc {
  grid-template-columns: 250px minmax(0, 1fr);
}

.dp-content-card--no-toc {
  grid-template-columns: minmax(0, 1fr);
}

.dp-toc {
  position: sticky;
  top: 110px;
  border-radius: 16px;
  padding: 22px 18px;
  background: var(--dp-white);
}

.dp-toc[hidden] {
  visibility: hidden;
}

.dp-toc__title {
  display: block;
  margin-bottom: 8px;
  color: var(--dp-ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dp-toc__title::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--dp-red);
  content: "";
}

.dp-toc__links {
  display: grid;
  gap: 3px;
}

.dp-toc a {
  border-left: 2px solid var(--dp-line);
  padding: 6px 0 6px 12px;
  color: var(--dp-muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.dp-toc a[data-level="3"] {
  padding-left: 24px;
  font-size: 12px;
}

.dp-toc a[data-level="4"],
.dp-toc a[data-level="5"],
.dp-toc a[data-level="6"] {
  padding-left: 34px;
  font-size: 11px;
}

.dp-toc a:hover,
.dp-toc a[aria-current="location"] {
  border-color: var(--dp-red);
  color: var(--dp-ink);
}

.dp-document {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--dp-white);
}

.dp-entry-content {
  padding: 46px 52px;
  color: var(--dp-ink);
  font-size: 16px;
  line-height: 1.65;
}

.dp-entry-content > :first-child {
  margin-top: 0;
}

.dp-entry-content > :last-child {
  margin-bottom: 0;
}

.dp-entry-content h2,
.dp-entry-content h3,
.dp-entry-content h4,
.dp-entry-content h5,
.dp-entry-content h6 {
  scroll-margin-top: 110px;
  color: var(--dp-ink);
  text-wrap: balance;
}

.dp-entry-content h2 {
  margin: 48px 0 24px;
  font-size: 30px;
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.dp-entry-content h2:first-child {
  margin-top: 0;
}

.dp-entry-content h3 {
  margin: 30px 0 11px;
  font-size: 20px;
  line-height: 1.25;
}

.dp-entry-content h4,
.dp-entry-content h5,
.dp-entry-content h6 {
  margin: 26px 0 10px;
  line-height: 1.3;
}

.dp-entry-content p {
  margin: 0 0 17px;
}

.dp-entry-content ul,
.dp-entry-content ol {
  margin: 0 0 20px;
  padding-left: 25px;
}

.dp-entry-content li + li {
  margin-top: 8px;
}

.dp-entry-content li::marker {
  color: var(--dp-red);
  font-weight: 800;
}

.dp-entry-content blockquote {
  margin: 26px 0;
  border-left: 4px solid var(--dp-red);
  border-radius: 0 10px 10px 0;
  padding: 19px 22px;
  background: var(--dp-red-soft);
}

.dp-entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.dp-entry-content code {
  border-radius: 5px;
  padding: 2px 5px;
  background: var(--dp-softer);
  color: var(--dp-ink);
  font-size: 0.88em;
}

.dp-entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  padding: 20px;
  background: var(--dp-ink);
  color: var(--dp-white);
}

.dp-entry-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.dp-entry-content .wp-block-table {
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-radius: 10px;
}

.dp-entry-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.dp-entry-content th,
.dp-entry-content td {
  border: 1px solid var(--dp-line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}

.dp-entry-content th {
  border-color: #30364a;
  background: var(--dp-ink);
  color: var(--dp-white);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dp-entry-content tbody tr:nth-child(even) {
  background: var(--dp-softer);
}

.dp-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.dp-entry-content figure {
  max-width: 100%;
  margin: 28px 0;
}

.dp-entry-content figcaption {
  margin-top: 8px;
  color: var(--dp-muted);
  font-size: 12px;
  text-align: left;
}

.dp-entry-content .wp-block-button__link {
  border-radius: 13px;
  background: var(--dp-green-dark);
  color: var(--dp-white);
  font-weight: 700;
  text-decoration: none;
}

.dp-entry-content .alignwide,
.dp-entry-content .alignfull {
  width: 100%;
  max-width: 100%;
}

.dp-footer {
  background: var(--dp-ink);
  color: var(--dp-white);
}

.dp-footer__inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(330px, 1.3fr) minmax(250px, 1fr);
  width: min(1240px, calc(100% - 160px));
  min-height: 136px;
  align-items: start;
  gap: 36px;
  margin: 0 auto;
  padding: 30px 0;
  font-size: 12px;
  line-height: 1.5;
}

.dp-footer__brand,
.dp-footer__owner,
.dp-footer__links {
  display: grid;
  gap: 5px;
}

.dp-footer__brand {
  justify-self: start;
}

.dp-footer__logo {
  display: block;
  width: auto;
  height: 60px;
}

.dp-footer__label {
  color: #aeb7c7;
}

.dp-footer__owner > strong {
  color: var(--dp-white);
  font-size: 13px;
}

.dp-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.dp-footer__links {
  border-left: 1px solid rgb(255 255 255 / 16%);
  padding-left: 24px;
}

.dp-footer a {
  width: fit-content;
  color: var(--dp-white);
  text-decoration-color: rgb(255 255 255 / 38%);
}

.dp-footer a:hover {
  color: var(--dp-white);
  text-decoration-color: var(--dp-white);
}

@media (max-width: 1120px) {
  .dp-header {
    padding-right: 32px;
    padding-left: 32px;
  }

  .dp-header__inner {
    gap: 14px;
  }

  .dp-brand__logo {
    height: 52px;
  }

  .dp-menu a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }

  .dp-hero,
  .dp-content-card,
  .dp-footer__inner {
    width: min(100% - 64px, 960px);
  }

  .dp-content-card--with-toc {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .dp-entry-content {
    padding: 40px;
  }

  .dp-footer__inner {
    grid-template-columns: 0.8fr 1.35fr 1fr;
  }
}

@media (max-width: 820px) {
  .dp-header {
    padding: 6px 16px 2px;
  }

  .dp-header__inner {
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 5px 12px;
  }

  .dp-brand__logo {
    height: 48px;
    max-width: 190px;
  }

  .dp-header__actions {
    margin-left: auto;
  }

  .dp-button {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 11px;
    font-size: 12px;
  }

  .dp-header__menu {
    order: 3;
    flex: 1 0 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .dp-menu {
    width: max-content;
    min-width: 100%;
    justify-content: center;
  }

  .dp-menu .sub-menu {
    display: none;
  }

  .dp-hero,
  .dp-content-card,
  .dp-footer__inner {
    width: min(100% - 32px, 680px);
  }

  .dp-hero {
    padding: 66px 0 48px;
  }

  .dp-hero__title {
    font-size: clamp(40px, 9vw, 58px);
  }

  .dp-hero__subtitle {
    font-size: 18px;
  }

  .dp-content-card--with-toc {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 64px;
    padding: 18px;
  }

  .dp-toc {
    position: static;
    top: auto;
  }

  .dp-toc__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dp-entry-content {
    padding: 34px 28px;
  }

  .dp-entry-content h2 {
    font-size: 26px;
  }

  .dp-footer__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .dp-footer__links {
    border-top: 1px solid rgb(255 255 255 / 16%);
    border-left: 0;
    padding-top: 16px;
    padding-left: 0;
  }
}

@media screen and (min-width: 783px) {
  .admin-bar .dp-header {
    top: 32px;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .dp-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .dp-header {
    padding-right: 8px;
    padding-left: 8px;
  }

  .dp-header__inner {
    border-radius: 28px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .dp-brand__logo {
    height: 42px;
    max-width: 146px;
  }

  .dp-button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .dp-hero {
    padding-top: 54px;
  }

  .dp-hero__eyebrow {
    font-size: 11px;
  }

  .dp-hero__title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .dp-hero__subtitle {
    margin-top: 24px;
    font-size: 17px;
  }

  .dp-content-card {
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    padding: 16px;
  }

  .dp-toc__links {
    grid-template-columns: 1fr;
  }

  .dp-entry-content {
    padding: 30px 22px;
  }

  .dp-footer__inner {
    width: calc(100% - 32px);
  }
}

@media (max-width: 380px) {
  .dp-brand__logo {
    height: 38px;
    max-width: 124px;
  }

  .dp-header__actions {
    gap: 4px;
  }

  .dp-button {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 10px;
  }

  .dp-entry-content h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .directpro-singular *,
  .directpro-singular *::before,
  .directpro-singular *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .dp-header,
  .dp-toc,
  .dp-footer {
    display: none !important;
  }

  .dp-hero,
  .dp-content-card {
    width: 100%;
  }

  .dp-hero {
    padding: 20px 0 36px;
  }

  .dp-content-card {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .dp-document {
    overflow: visible;
  }
}
