/*
Theme Name: Digtora Tools
Theme URI: https://tool.digtora.store
Author: AI Tech
Author URI: https://digtora.store
Description: Child theme for the DIGTORA TOOLS online tools platform. Hand-built templates reproducing the approved design system (see DESIGN-SYSTEM.md). Parent: Hello Elementor.
Template: hello-elementor
Version: 0.10.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digtora-tools
Tags: custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   FONT PLAN (self-hosted Nunito — no Google Fonts CDN)
   ------------------------------------------------------------
   Production build will ship subset WOFF2 files in
   assets/fonts/ and enable the @font-face rules below.
   Until those files land, the stack falls back cleanly to
   system rounded sans faces, so layout metrics stay close.

   @font-face {
     font-family: 'Nunito';
     src: url('assets/fonts/nunito-400.woff2') format('woff2');
     font-weight: 400; font-style: normal; font-display: swap;
   }
   @font-face {
     font-family: 'Nunito';
     src: url('assets/fonts/nunito-600.woff2') format('woff2');
     font-weight: 600; font-style: normal; font-display: swap;
   }
   @font-face {
     font-family: 'Nunito';
     src: url('assets/fonts/nunito-700.woff2') format('woff2');
     font-weight: 700; font-style: normal; font-display: swap;
   }
   @font-face {
     font-family: 'Nunito';
     src: url('assets/fonts/nunito-800.woff2') format('woff2');
     font-weight: 800; font-style: normal; font-display: swap;
   }
   @font-face {
     font-family: 'Nunito';
     src: url('assets/fonts/nunito-900.woff2') format('woff2');
     font-weight: 900; font-style: normal; font-display: swap;
   }
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS (DESIGN-SYSTEM.md)
   ============================================================ */
:root {
  /* Colour */
  --navy: #0B1B3F;
  --ink: #1E2A4A;
  --muted: #5A6B8C;
  --blue: #2563EB;
  --violet: #7C3AED;
  --sky: #38BDF8;
  --green: #22C55E;
  --green-dark: #16A34A;
  --cream: #FFF7E0;
  --card-border: #E3EAF7;
  --wash-1: #EEF4FF;
  --wash-2: #F7F3FF;
  --white: #FFFFFF;

  /* Gradients */
  --grad: linear-gradient(90deg, #2563EB, #7C3AED);
  --grad-green: linear-gradient(90deg, #22C55E, #16A34A);
  --grad-wash: linear-gradient(180deg, #EEF4FF 0%, #F7F3FF 100%);

  /* Stat-tile icon tints */
  --tint-blue: #E3EDFF;
  --tint-green: #E2F7E9;
  --tint-purple: #F0E7FF;
  --tint-orange: #FFF1DE;
  --tint-cyan: #E0F6FF;
  --tint-pink: #FFE9F1;

  /* Shape & elevation */
  --radius-card: 18px;
  --radius-pill: 999px;
  --radius-input: 12px;
  --radius-tile: 14px;
  --shadow: 0 10px 30px rgba(37, 99, 235, .10);
  --shadow-btn: 0 8px 20px rgba(124, 58, 237, .35);
  --shadow-header: 0 6px 24px rgba(11, 27, 63, .08);

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --section-space: 56px;
  --header-h: 72px;
  --topbar-h: 36px;

  /* Type */
  --font: 'Nunito', 'Segoe UI', 'Helvetica Neue', Arial, system-ui, sans-serif;
}

/* ============================================================
   2. BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 .5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--violet);
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--violet);
  color: var(--white);
}

/* Accessible skip link */
.dt-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.dt-skip-link:focus {
  left: 0;
  color: var(--white);
}

/* Layout container: 1200px max, 24px gutters */
.dt-container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Gradient text (heading keywords, logo "Tools") */
.dt-grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   3. BUTTONS, PILLS, CARDS
   ============================================================ */
.dt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.dt-btn:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(124, 58, 237, .40);
}
.dt-btn:active {
  transform: translateY(0);
}

.dt-btn--green {
  background: var(--grad-green);
  box-shadow: 0 8px 20px rgba(22, 163, 74, .35);
}
.dt-btn--green:hover {
  box-shadow: 0 12px 26px rgba(22, 163, 74, .40);
}

.dt-btn--white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
}
.dt-btn--white:hover {
  color: var(--violet);
}

.dt-btn--sm {
  padding: 9px 20px;
  font-size: 14px;
}

/* Hero badge pill (light wash pill with blue text) */
.dt-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: #DCE9FF;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
}

/* Filter chips */
.dt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--card-border);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dt-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.dt-chip.is-active {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
}

/* Generic white card */
.dt-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

/* Card header strip (gradient banner used on tool/info cards) */
.dt-card-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--grad);
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
}

/* Green circle-check feature list */
.dt-checks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dt-checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  font-weight: 600;
}
.dt-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   4. TOP BAR (36px gradient strip)
   ============================================================ */
.dt-topbar {
  background: var(--grad);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.dt-topbar-inner {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.dt-topbar-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dt-topbar-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.dt-topbar-links a {
  color: var(--white);
  padding: 2px 12px;
  font-weight: 700;
}
.dt-topbar-links a:hover {
  color: var(--white);
  text-decoration: underline;
}
.dt-topbar-links a + a {
  border-left: 1px solid rgba(255, 255, 255, .35);
}

/* ============================================================
   5. HEADER (72px, white, sticky, shadow on scroll)
   ============================================================ */
.dt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow .2s ease;
}
.dt-header.is-scrolled {
  box-shadow: var(--shadow-header);
}
.dt-header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo: gradient play-triangle + wordmark */
.dt-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 1;
}
.dt-logo:hover {
  color: inherit;
}
.dt-logo-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.dt-logo-text {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--navy);
  white-space: nowrap;
}
.dt-logo-text .dt-logo-tools {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Primary navigation */
.dt-nav {
  margin-left: auto;
}
.dt-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dt-nav li {
  position: relative;
}
.dt-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease;
}
.dt-nav a:hover {
  color: var(--violet);
  background: var(--wash-1);
}
/* Active item = gradient pill (reference: Home) */
.dt-nav .current-menu-item > a,
.dt-nav .current_page_item > a,
.dt-nav .current-menu-ancestor > a {
  background: var(--grad);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.dt-nav .current-menu-item > a:hover,
.dt-nav .current_page_item > a:hover,
.dt-nav .current-menu-ancestor > a:hover {
  color: var(--white);
}

/* Caret on items with children */
.dt-nav .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .75;
}

/* Dropdown panel */
.dt-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.dt-nav li:hover > .sub-menu,
.dt-nav li:focus-within > .sub-menu {
  display: flex;
}
.dt-nav .sub-menu a {
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 14.5px;
}
.dt-nav .sub-menu .current-menu-item > a {
  background: var(--grad);
  color: var(--white);
}

/* Header actions: Contact pill + search icon */
.dt-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.dt-header-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.dt-header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--navy);
  transition: background .15s ease, color .15s ease;
}
.dt-header-search:hover {
  background: var(--wash-1);
  color: var(--violet);
}
.dt-header-search svg {
  width: 21px;
  height: 21px;
}

/* Hamburger (mobile only) */
.dt-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.dt-burger-box {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.dt-burger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.dt-burger-line:nth-child(1) { top: 0; }
.dt-burger-line:nth-child(2) { top: 6px; }
.dt-burger-line:nth-child(3) { top: 12px; }
.dt-burger[aria-expanded="true"] .dt-burger-line:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.dt-burger[aria-expanded="true"] .dt-burger-line:nth-child(2) {
  opacity: 0;
}
.dt-burger[aria-expanded="true"] .dt-burger-line:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.dt-drawer {
  display: none;
  border-top: 1px solid var(--card-border);
  background: var(--white);
  box-shadow: var(--shadow-header);
}
.dt-drawer.is-open {
  display: block;
}
.dt-drawer nav ul {
  list-style: none;
  margin: 0;
  padding: 12px var(--gutter) 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dt-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15.5px;
}
.dt-drawer a:hover {
  background: var(--wash-1);
  color: var(--violet);
}
.dt-drawer .current-menu-item > a,
.dt-drawer .current_page_item > a {
  background: var(--grad);
  color: var(--white);
}
.dt-drawer .sub-menu {
  list-style: none;
  margin: 2px 0 6px;
  padding: 0 0 0 16px;
}
.dt-drawer .sub-menu a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.dt-drawer-contact {
  margin: 0 var(--gutter) 20px;
  width: calc(100% - (var(--gutter) * 2));
}

/* ============================================================
   6. HERO BAND (light wash, cloud blobs, breadcrumb pill)
   ============================================================ */
.dt-hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-wash);
  padding: 44px 0 64px;
}
/* Soft white cloud blobs */
.dt-hero::before,
.dt-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  filter: blur(2px);
  pointer-events: none;
}
.dt-hero::before {
  width: 420px;
  height: 150px;
  top: -70px;
  right: 12%;
}
.dt-hero::after {
  width: 520px;
  height: 180px;
  bottom: -110px;
  left: -120px;
}
.dt-hero-inner {
  position: relative;
  z-index: 1;
}
.dt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center;
}
.dt-hero h1,
.dt-hero-title {
  font-size: clamp(2.1rem, 5vw, 3.5rem); /* ~56px desktop */
  font-weight: 900;
  letter-spacing: -.015em;
  margin: 18px 0 14px;
}
.dt-hero-sub {
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
  max-width: 34em;
  margin: 0;
}
.dt-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-hero-art img {
  max-height: 320px;
  width: auto;
}

/* Purple brush-stroke underline accent under hero headings */
.dt-brush {
  display: block;
  width: 190px;
  height: 14px;
  margin-top: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 40 3, 80 12, 120 6 C 145 2.5, 170 5, 187 4' fill='none' stroke='%237C3AED' stroke-width='5' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Breadcrumb pill */
.dt-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .07);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}
.dt-breadcrumb a {
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dt-breadcrumb a:hover {
  color: var(--violet);
}
.dt-breadcrumb .dt-crumb-sep {
  color: #B7C4DE;
  font-weight: 800;
}
.dt-breadcrumb .dt-crumb-current {
  color: var(--navy);
}

/* Trust row (hero checkmarks) */
.dt-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.dt-trust li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
}
.dt-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Section heading with side rules (homepage) */
.dt-section-head {
  text-align: center;
  margin-bottom: 30px;
}
.dt-section-head h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: clamp(1.6rem, 3.4vw, 2.05rem);
  margin-bottom: 6px;
}
.dt-section-head h2::before,
.dt-section-head h2::after {
  content: "";
  height: 2px;
  width: 64px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue));
}
.dt-section-head h2::after {
  background: linear-gradient(90deg, var(--violet), transparent);
}
.dt-section-head p {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

/* ============================================================
   7. FOOTER (gradient, wave top edge, 4 columns)
   ============================================================ */
.dt-footer {
  position: relative;
  margin-top: 40px;
  color: var(--white);
}
/* Wave: SVG filled with the same horizontal gradient, sitting
   directly above the footer body so the edge reads as one shape */
.dt-footer-wave {
  display: block;
  width: 100%;
  height: 46px;
  margin-bottom: -1px;
}
.dt-footer-body {
  background: var(--grad);
}
.dt-footer .dt-footer-body a {
  color: rgba(255, 255, 255, .88);
}
.dt-footer .dt-footer-body a:hover {
  color: var(--white);
  text-decoration: underline;
}
.dt-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
  padding-top: 10px;
  padding-bottom: 28px;
}

/* Brand column */
.dt-footer-logo .dt-logo-text {
  color: var(--white);
}
.dt-footer-logo .dt-logo-text .dt-logo-tools {
  background: none;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}
.dt-footer-tagline {
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
  max-width: 24em;
}

/* Contact block inside the brand column */
.dt-footer-contact {
  margin-top: 20px;
}
.dt-footer-contact .dt-footer-col-title {
  margin-bottom: 8px;
}

/* Link columns */
.dt-footer h3,
.dt-footer-col-title {
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  margin: 2px 0 12px;
}
.dt-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dt-footer nav li {
  margin-bottom: 7px;
}
.dt-footer nav a {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  font-size: 14.5px;
  font-weight: 600;
}
.dt-footer nav a::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: rgba(255, 255, 255, .65);
}

/* Contact column: email only (master brief §3) */
.dt-footer-email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  word-break: break-all;
}
.dt-footer-email svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Bottom bar */
.dt-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .25);
}
.dt-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}
.dt-footer-bottom p {
  margin: 0;
}

/* ============================================================
   8. GENERIC CONTENT (index.php fallback loop)
   ============================================================ */
.dt-main {
  padding: 48px 0 8px;
}
.dt-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.dt-post-list .dt-card {
  padding: 22px 26px;
}
.dt-post-list h2 {
  font-size: 20px;
  margin-bottom: 4px;
}
.dt-post-list h2 a {
  color: var(--navy);
}
.dt-post-list h2 a:hover {
  color: var(--violet);
}

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .dt-nav a {
    padding: 9px 12px;
    font-size: 14.5px;
  }
  .dt-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  /* Header nav collapses to the hamburger drawer (kept above the owner's ~980px phone view, which must show the full nav like the reference) */
  .dt-nav,
  .dt-header-contact {
    display: none;
  }
  .dt-header-actions {
    margin-left: auto;
  }
  .dt-burger {
    display: inline-flex;
    margin-left: 0;
  }
  .dt-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .dt-hero-art {
    order: 2;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 18px;
    --section-space: 40px;
  }
  .dt-topbar-msg {
    font-size: 12px;
  }
  .dt-topbar-links a {
    padding: 2px 8px;
  }
  .dt-logo-text {
    font-size: 22px;
  }
  .dt-logo-mark {
    width: 29px;
    height: 29px;
  }
  .dt-hero {
    padding: 32px 0 46px;
  }
  .dt-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 26px;
  }
  .dt-footer-brand {
    grid-column: 1 / -1;
  }
  /* Legal links run in two columns across the full width so the
     last row is filled evenly instead of leaving an empty cell */
  .dt-footer-col--legal {
    grid-column: 1 / -1;
  }
  .dt-footer-col--legal nav ul {
    columns: 2;
    column-gap: 26px;
  }
  .dt-footer-col--legal nav li {
    break-inside: avoid;
  }
  .dt-footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .dt-footer-grid {
    grid-template-columns: 1fr;
  }
  .dt-footer-col--legal nav ul {
    columns: 1;
  }
  .dt-topbar-links a:last-child {
    padding-right: 0;
  }
}

/* ============================================================
   10. PHASE 5 — HOMEPAGE (front-page.php)
   ============================================================ */
.dt-sec {
  padding: var(--section-space) 0 0;
}

/* --- Hero (homepage variant) --- */
.dt-home-hero {
  padding-bottom: 56px;
}
.dt-home-search {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 560px;
  margin-top: 26px;
  padding: 6px 6px 6px 20px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}
.dt-home-search-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--muted);
}
.dt-home-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.dt-home-search-input::placeholder {
  color: var(--muted);
}
.dt-home-search-btn {
  flex-shrink: 0;
}
.dt-home-hero-art img {
  max-height: 340px;
}

/* --- Section heading row with a right-aligned action button --- */
.dt-home-popular-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.dt-home-popular-head .dt-btn {
  flex-shrink: 0;
  margin-bottom: 4px;
}
.dt-home-popular-title {
  text-align: left;
  margin-bottom: 0;
}
.dt-home-popular-title h2 {
  justify-content: flex-start;
}
.dt-home-popular-title h2::before {
  display: none;
}

/* --- Browse Categories --- */
.dt-home-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.dt-home-cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dt-home-cat-card:hover {
  color: var(--ink);
  transform: translateY(-2px);
  border-color: #C9D9F8;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .14);
}
.dt-home-cat-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-tile);
  color: var(--white);
  background: var(--dt-cat-color, var(--blue));
  box-shadow: 0 8px 18px rgba(11, 27, 63, .16);
}
.dt-home-cat-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dt-home-cat-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}
.dt-home-cat-count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.dt-home-cat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-left: auto;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  color: var(--blue);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dt-home-cat-card:hover .dt-home-cat-arrow {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
}

/* --- Popular Tools --- */
.dt-home-tool-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.dt-home-tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 18px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dt-home-tool-card:hover {
  transform: translateY(-2px);
  border-color: #C9D9F8;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .14);
}
.dt-home-tool-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: var(--radius-tile);
  background: var(--grad);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.dt-home-tool-name {
  font-size: 16.5px;
  margin-bottom: 6px;
}
.dt-home-tool-desc {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 16px;
}
.dt-home-tool-btn {
  margin-top: auto;
}

/* --- Why Choose + How It Works --- */
.dt-home-whyhow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.dt-home-why,
.dt-home-how {
  padding: 28px 30px;
}
.dt-home-why {
  display: flex;
  gap: 20px;
  align-items: center;
}
.dt-home-why-text {
  flex: 1 1 auto;
  min-width: 0;
}
.dt-home-why-art {
  flex: 0 0 34%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-home-why-art img {
  max-height: 210px;
  width: auto;
}
.dt-home-card-title {
  font-size: 23px;
  margin-bottom: 2px;
}
.dt-home-card-sub {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}
.dt-home-why-list li {
  margin-bottom: 12px;
}
/* Reference: Why Choose checks are blue gradient circles (the shared .dt-checks default is green) */
.dt-home-why-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E"), var(--grad);
  background-size: 12px 12px, cover;
}
.dt-home-why-list li strong {
  color: var(--navy);
}

.dt-home-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.dt-home-step {
  flex: 1 1 0;
  position: relative;
  text-align: center;
  padding-top: 6px;
}
.dt-home-step-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-26px, -4px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 900;
  box-shadow: var(--shadow-btn);
}
.dt-home-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--wash-1);
  border: 1px solid var(--card-border);
  color: var(--blue);
}
.dt-home-step h3 {
  font-size: 15.5px;
  margin-bottom: 4px;
}
.dt-home-step p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.dt-home-step-arrow {
  align-self: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 900;
  color: #B7C4DE;
}

/* --- Helpful Articles & Tips --- */
.dt-home-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dt-home-article-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dt-home-article-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--grad-wash);
}
.dt-home-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dt-home-article-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: var(--white);
  font-size: 56px;
  font-weight: 900;
}
.dt-home-article-date {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
}
.dt-home-article-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.dt-home-article-title {
  font-size: 17.5px;
  margin: 0;
}
.dt-home-article-title a {
  color: var(--navy);
}
.dt-home-article-title a:hover {
  color: var(--violet);
}
.dt-home-article-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}
.dt-home-article-more:hover {
  color: var(--violet);
}

/* --- Phase 5 responsive --- */
@media (max-width: 1180px) {
  .dt-home-tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .dt-home-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  /* Why/How cards stack only below the owner's ~980px view (reference shows them side by side) */
  .dt-home-whyhow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .dt-home-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dt-home-article-grid {
    grid-template-columns: 1fr;
  }
  .dt-home-popular-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .dt-home-why {
    flex-direction: column;
    align-items: flex-start;
  }
  .dt-home-why-art {
    flex: none;
    align-self: center;
  }
  .dt-home-search {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 12px;
    gap: 10px;
  }
  .dt-home-search-btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .dt-home-cat-grid {
    grid-template-columns: 1fr;
  }
  .dt-home-tool-grid {
    grid-template-columns: 1fr;
  }
  .dt-home-steps {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .dt-home-step-arrow {
    transform: rotate(90deg);
  }
}

/* ============================================================
   11. PHASE 6 — ALL TOOLS DIRECTORY (dt-all-tools.php)
   ============================================================ */
.dt-dir-hero {
  padding-bottom: 52px;
}
.dt-dir-search {
  margin-top: 24px;
}

/* Two-column body: sidebar + main */
.dt-dir {
  padding: 36px 0 8px;
}
.dt-dir-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* Sidebar */
.dt-dir-cats {
  padding: 20px 16px;
}
.dt-dir-side-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17.5px;
  margin: 2px 6px 14px;
  color: var(--navy);
}
.dt-dir-side-title svg {
  color: var(--blue);
}
.dt-dir-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dt-dir-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.dt-dir-cat:hover {
  background: var(--wash-1);
  color: var(--blue);
}
.dt-dir-cat.is-active {
  background: var(--grad);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.dt-dir-cat-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--dt-cat-color, var(--blue));
}
.dt-dir-cat.is-active .dt-dir-cat-tile {
  background: rgba(255, 255, 255, .22);
}
.dt-dir-cat-name {
  flex: 1 1 auto;
  min-width: 0;
}
.dt-dir-cat-count {
  flex-shrink: 0;
  min-width: 30px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--wash-1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.dt-dir-cat.is-active .dt-dir-cat-count {
  background: rgba(255, 255, 255, .22);
  color: var(--white);
}

/* Sidebar gradient help card */
.dt-dir-help {
  margin-top: 20px;
  padding: 26px 24px;
  border-radius: var(--radius-card);
  background: var(--grad);
  color: var(--white);
  box-shadow: var(--shadow);
}
.dt-dir-help h2 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 8px;
}
.dt-dir-help p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 16px;
}

/* Main column */
.dt-dir-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.dt-dir-crumb a {
  color: var(--blue);
}
.dt-dir-crumb .dt-crumb-current {
  color: var(--navy);
}
.dt-dir-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.dt-dir-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 4px;
}
.dt-dir-title svg {
  color: var(--blue);
  flex-shrink: 0;
}
.dt-dir-sub {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

/* Grid / List toggle */
.dt-dir-view {
  display: inline-flex;
  flex-shrink: 0;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow);
}
.dt-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.dt-view-btn:hover {
  color: var(--blue);
}
.dt-view-btn.is-active {
  background: var(--grad);
  color: var(--white);
}

/* Filter chips row (reuses .dt-chip; active = gradient) */
.dt-dir-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.dt-dir-count {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 16px;
}

/* Tool grid */
.dt-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.dt-tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 22px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dt-tool-card:hover {
  transform: translateY(-2px);
  border-color: #C9D9F8;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .14);
}
.dt-tool-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: var(--radius-tile);
  color: var(--white);
  background: var(--dt-cat-color, var(--blue));
  box-shadow: 0 8px 18px rgba(11, 27, 63, .16);
}
.dt-tool-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}
.dt-tool-name {
  font-size: 17.5px;
  margin-bottom: 6px;
}
.dt-tool-desc {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 10px;
}
.dt-tool-cat {
  margin-top: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
}
.dt-tool-btn {
  margin-top: 16px;
}

/* List view: cards become horizontal rows */
.dt-tool-grid.is-list {
  grid-template-columns: 1fr;
}
.dt-tool-grid.is-list .dt-tool-card {
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.dt-tool-grid.is-list .dt-tool-tile {
  margin-bottom: 0;
}
.dt-tool-grid.is-list .dt-tool-btn {
  margin-top: 0;
  margin-left: auto;
  flex-shrink: 0;
}

/* Empty state */
.dt-dir-empty {
  padding: 34px 30px;
  text-align: center;
}
.dt-dir-empty h3 {
  font-size: 20px;
}
.dt-dir-empty p {
  color: var(--muted);
  font-weight: 600;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

/* Bottom gradient CTA banner */
.dt-dir-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 34px;
  padding: 30px 34px;
  border-radius: var(--radius-card);
  background: var(--grad);
  color: var(--white);
  box-shadow: var(--shadow);
}
.dt-dir-cta h2 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin-bottom: 4px;
}
.dt-dir-cta p {
  margin: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}
.dt-dir-cta .dt-btn {
  flex-shrink: 0;
}

/* ============================================================
   12. PHASE 6 — SINGLE TOOL PAGE (dt-tool.php)
   ============================================================ */
.dt-tool-hero {
  padding-bottom: 48px;
}
.dt-tool-hero-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
}
.dt-tool-hero-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 20px;
  color: var(--white);
  background: var(--dt-cat-color, var(--blue));
  box-shadow: 0 12px 26px rgba(11, 27, 63, .20);
}
.dt-tool-title {
  margin: 0 0 8px;
}
.dt-tool-trust {
  margin-top: 20px;
}

/* Body + workspace card */
.dt-tool-body {
  padding-top: 34px;
}
.dt-tool-work {
  overflow: hidden;
  margin-bottom: 26px;
}
.dt-tool-app {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 22px;
  padding: 30px 24px;
  border: 2px dashed #C9D9F8;
  border-radius: 14px;
  background: var(--wash-1);
  text-align: center;
}
.dt-tool-app-note {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

/* Two-column content */
.dt-tool-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.dt-tool-maincol {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.dt-tool-how,
.dt-tool-about {
  padding: 26px 30px;
}
.dt-tool-how h2,
.dt-tool-about h2 {
  font-size: 21px;
  margin-bottom: 14px;
}
.dt-tool-about p {
  margin: 0;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
}

/* Numbered steps */
.dt-tool-steps {
  list-style: none;
  counter-reset: dt-step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dt-tool-steps li {
  counter-increment: dt-step;
  position: relative;
  padding-left: 46px;
  font-weight: 600;
  line-height: 1.6;
}
.dt-tool-steps li::before {
  content: counter(dt-step);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 900;
  box-shadow: var(--shadow-btn);
}

/* Right rail */
.dt-tool-rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.dt-tool-tips {
  padding: 24px 26px;
  border-radius: var(--radius-card);
  background: var(--cream);
  border: 1px solid #F3E3B3;
}
.dt-tool-tips h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  margin-bottom: 14px;
}
.dt-tool-tips .dt-checks li {
  font-size: 14.5px;
  line-height: 1.6;
}
.dt-tool-related {
  padding: 24px 26px;
}
.dt-tool-related h2 {
  font-size: 19px;
  margin-bottom: 12px;
}
.dt-tool-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.dt-tool-related-list li + li {
  border-top: 1px solid var(--card-border);
}
.dt-tool-related-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}
.dt-tool-related-list a:hover {
  color: var(--violet);
}
.dt-tool-related-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--wash-1);
  color: var(--blue);
}
.dt-tool-related-arrow {
  margin-left: auto;
  color: #B7C4DE;
  font-weight: 900;
}

/* FAQ accordion (native details/summary) */
.dt-tool-faq {
  margin-top: 38px;
}
.dt-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.dt-faq-item {
  padding: 0;
  overflow: hidden;
}
.dt-faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 22px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.dt-faq-item summary::-webkit-details-marker {
  display: none;
}
.dt-faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  flex-shrink: 0;
  border-right: 2.2px solid var(--blue);
  border-bottom: 2.2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.dt-faq-item[open ] summary::after {
  transform: rotate(225deg);
}
.dt-faq-item summary:hover {
  color: var(--violet);
}
.dt-faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--muted);
}

/* --- Phase 6 responsive --- */
@media (max-width: 991px) {
  .dt-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dt-dir-layout {
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .dt-tool-cols {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 767px) {
  .dt-dir-layout {
    grid-template-columns: 1fr;
  }
  .dt-dir-cat-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dt-dir-cat-list li {
    flex: 1 1 46%;
  }
  .dt-tool-cols {
    grid-template-columns: 1fr;
  }
  .dt-dir-head {
    flex-direction: column;
  }
  .dt-dir-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .dt-tool-hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .dt-tool-app {
    margin: 16px;
    min-height: 170px;
  }
}

@media (max-width: 560px) {
  .dt-tool-grid {
    grid-template-columns: 1fr;
  }
  .dt-tool-grid.is-list .dt-tool-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .dt-tool-grid.is-list .dt-tool-btn {
    margin-left: 0;
    margin-top: 16px;
  }
  .dt-dir-cat-list li {
    flex: 1 1 100%;
  }
}

/* ============================================================
   13. CUSTOM 404 (Phase 6 fix)
   ============================================================ */
.dt-404-inner {
  text-align: center;
  align-items: center;
}
.dt-404-code {
  font-size: clamp(90px, 18vw, 170px);
  font-weight: 900;
  line-height: 1;
  margin: 6px 0 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dt-404-title {
  font-size: clamp(28px, 4.6vw, 42px);
}
.dt-404-search {
  margin: 22px auto 6px;
  max-width: 560px;
  width: 100%;
}
.dt-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.dt-btn--ghost {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--card-border);
  box-shadow: none;
}
.dt-btn--ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
}

/* ============================================================
   14. PHASE 7 — TOOL WORKSPACES (tool-app.js + tools/*.js)
   ------------------------------------------------------------
   Shared UI for the client-side tool engines. Modules add the
   'is-live' class to #dt-tool-app when they take over the mount,
   which neutralises the Phase 6 dashed placeholder look.
   ============================================================ */
.dt-tool-app.is-live {
  display: block;
  border: none;
  background: none;
  padding: 0;
  min-height: 0;
  text-align: left;
}

.dt-tool-ui {
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Fields */
.dt-field-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: -6px;
}
.dt-tool-ui textarea,
.dt-tool-ui input[type="text"],
.dt-tool-ui input[type="number"],
.dt-tool-ui select,
.dt-textarea,
.dt-input,
.dt-select,
.dt-output {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dt-tool-ui textarea {
  resize: vertical;
  min-height: 120px;
}
.dt-tool-ui textarea:focus,
.dt-tool-ui input[type="text"]:focus,
.dt-tool-ui input[type="number"]:focus,
.dt-tool-ui select:focus,
.dt-textarea:focus,
.dt-input:focus,
.dt-select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .16);
}
.dt-tool-ui textarea::placeholder,
.dt-tool-ui input::placeholder {
  color: var(--muted);
  font-weight: 600;
}
.dt-input--narrow {
  width: 96px;
  flex-shrink: 0;
}
.dt-tool-ui select,
.dt-select {
  width: auto;
  cursor: pointer;
}

/* Readonly result box (mono for code-ish output) */
.dt-output {
  background: var(--wash-1);
  resize: vertical;
  min-height: 120px;
}
.dt-output--mono,
.dt-tool-ui textarea.dt-output--mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
}

/* Stat tiles */
.dt-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.dt-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 10px 13px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}
.dt-stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dt-stat-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

/* Action rows */
.dt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Notes / status lines */
.dt-note {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}
.dt-note--error {
  color: #B91C1C;
}
.dt-note--success {
  color: var(--green-dark);
}

/* Dropzone (file tools) */
.dt-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 34px 20px;
  border: 2px dashed #C9D9F8;
  border-radius: 14px;
  background: var(--wash-1);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dt-drop:hover {
  border-color: var(--blue);
}
.dt-drop.is-dragover {
  border-color: var(--violet);
  background: var(--wash-2);
  color: var(--violet);
}

/* File list rows */
.dt-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dt-file-list li,
.dt-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-input);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.dt-file-row .dt-file-size {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
}

/* Progress bar */
.dt-progress {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--wash-1);
  border: 1px solid var(--card-border);
  overflow: hidden;
}
.dt-progress-bar {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--grad);
  transition: width .2s ease;
}

/* Range slider */
.dt-tool-ui input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--wash-1);
  border: 1px solid var(--card-border);
  outline: none;
  cursor: pointer;
}
.dt-tool-ui input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
}
.dt-tool-ui input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--violet);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
}

/* Inline options: checkbox/radio pills row */
.dt-inline-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.dt-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dt-check-pill:hover {
  border-color: var(--blue);
}
.dt-check-pill:has(input:checked) {
  border-color: var(--violet);
  background: var(--wash-2);
  color: var(--navy);
}
.dt-check-pill input[type="checkbox"],
.dt-check-pill input[type="radio"] {
  accent-color: var(--violet);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

/* Side-by-side textareas */
.dt-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.dt-two-col > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

@media (max-width: 767px) {
  .dt-two-col {
    grid-template-columns: 1fr;
  }
  .dt-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  }
  .dt-stat-value {
    font-size: 22px;
  }
}

/* ============================================================
   15. PHASE 7B — CALCULATORS, GENERATORS & UTILITIES
   ------------------------------------------------------------
   Small additions used by the Phase 7B modules: inline field
   rows, big time readouts, the BMI scale, QR canvas, lap list.
   ============================================================ */

/* Inline sentence-style field rows (percentage calc, EMI tenure…) */
.dt-inline-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}

/* Inline result value next to a mini-form */
.dt-result-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Monospace text (passwords) */
.dt-mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: .5px;
}

/* Big stopwatch / timer readout */
.dt-time-display {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  padding: 8px 0;
}

/* BMI scale: segments for BMI 14–40 (under / normal / over / obese) */
.dt-bmi-scale {
  position: relative;
  height: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg,
    #3B82F6 0%, #3B82F6 17.31%,
    #22C55E 17.31%, #22C55E 42.31%,
    #F59E0B 42.31%, #F59E0B 61.54%,
    #EF4444 61.54%, #EF4444 100%);
}
.dt-bmi-marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  box-shadow: var(--shadow);
  transition: left .2s ease;
}
.dt-bmi-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}

/* QR code canvas */
.dt-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.dt-qr-wrap canvas {
  max-width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-tile);
}

/* Stopwatch lap list */
.dt-lap-list {
  max-height: 264px;
  overflow-y: auto;
}

/* ============================================================
   16. PHASE 7C — SEO & DEVELOPER TOOLS
   ------------------------------------------------------------
   Additions for the Phase 7C modules: keyword-density result
   tables, robots.txt rule rows, the colour field and the
   palette swatch grid.
   ============================================================ */

/* Keyword density result tables */
.dt-table-block {
  margin-top: 4px;
}
.dt-table-heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}
.dt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-tile);
  background: var(--white);
}
.dt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dt-table th,
.dt-table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.dt-table th {
  font-weight: 800;
  color: var(--navy);
  background: var(--wash-1);
}
.dt-table tbody tr:last-child td {
  border-bottom: none;
}
.dt-table td:first-child {
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

/* robots.txt rule rows */
.dt-rule-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dt-rule-row {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto;
  gap: 10px;
  align-items: center;
}
.dt-rule-row .dt-rule-remove {
  padding-left: 12px;
  padding-right: 12px;
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 767px) {
  .dt-rule-row {
    grid-template-columns: 1fr 1fr auto;
  }
  .dt-rule-row .dt-rule-path {
    grid-column: 1 / 3;
  }
}

/* Colour field (picker + HEX input) */
.dt-color-field {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.dt-color-field .dt-input {
  flex: 1;
}
.dt-color-input {
  width: 58px;
  min-height: 48px;
  padding: 4px;
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-input);
  cursor: pointer;
  flex-shrink: 0;
}

/* Palette swatches */
.dt-swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.dt-swatch {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.dt-swatch-color {
  display: block;
  height: 84px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.dt-swatch:hover .dt-swatch-color,
.dt-swatch:focus-visible .dt-swatch-color {
  transform: translateY(-3px);
}
.dt-swatch-hex {
  display: block;
  margin-top: 7px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 767px) {
  .dt-swatch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dt-swatch-color {
    height: 64px;
  }
}

/* ============================================================
   17. PHASE 7D — IMAGE TOOLS
   ------------------------------------------------------------
   Additions for the Phase 7D modules: image previews, the
   before/after compare layout, preview captions and file-list
   thumbnails.
   ============================================================ */

/* Single image preview (compressor / resizer / converter) */
.dt-preview-img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
}

/* Caption under a preview (name, dimensions, size) */
.dt-img-meta {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  word-break: break-word;
}

/* Before / after compare layout */
.dt-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.dt-compare-item {
  margin: 0;
  min-width: 0;
}

@media (max-width: 767px) {
  .dt-compare {
    grid-template-columns: 1fr;
  }
  .dt-preview-img {
    max-height: 240px;
  }
}

/* File-list thumbnail (Image to PDF rows) */
.dt-file-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
  background: var(--wash-1);
}
.dt-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   18. PHASE 7E — PDF TOOLS
   ------------------------------------------------------------
   File-row extras for the PDF modules: the page-count label and
   the reorder/remove button group in PDF Merger rows, and the
   per-page download rows in PDF Splitter results.
   ============================================================ */

/* Page-count label inside a file row */
.dt-file-pages {
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Button group (move up / move down / remove) inside a file row */
.dt-file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.dt-file-actions .dt-btn {
  padding-left: 10px;
  padding-right: 10px;
}

/* ============================================================
   19. PHASE 8 — BLOG
   ------------------------------------------------------------
   Blog listing + category archives, single post (head band,
   TOC card, article typography, share row, related articles,
   prev/next), the shared right rail (Popular Articles +
   Newsletter), pagination and native comments.
   ============================================================ */

/* --- Listing: filter/search bar --- */
.dt-blog-bar {
  padding: 26px 0 4px;
}
.dt-blog-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
.dt-blog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.dt-blog-chips .dt-chip {
  text-decoration: none;
}

/* Compact pill search (blog bar, search page) */
.dt-blog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  padding: 5px 5px 5px 16px;
}
.dt-blog-search-icon {
  display: inline-flex;
  color: var(--muted);
  flex-shrink: 0;
}
.dt-blog-search-input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  width: 170px;
  padding: 6px 0;
}
.dt-blog-search-input::placeholder {
  color: var(--muted);
}

/* --- Listing layout --- */
.dt-blog {
  padding: 30px 0 8px;
}
.dt-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.dt-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.dt-search-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Post card --- */
.dt-post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dt-post-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--grad-wash);
}
.dt-post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dt-post-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: var(--white);
  font-size: 56px;
  font-weight: 900;
}
.dt-post-card-date {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--grad);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: var(--shadow-btn);
}
.dt-post-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.dt-cat-chip {
  align-self: flex-start;
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--tint-purple);
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.dt-cat-chip:hover {
  background: var(--grad);
  color: var(--white);
}
.dt-post-card-title {
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
}
.dt-post-card-title a {
  color: var(--navy);
  text-decoration: none;
}
.dt-post-card-title a:hover {
  color: var(--violet);
}
.dt-post-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
}
.dt-post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.dt-post-card-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dt-post-card-author img {
  border-radius: 50%;
  display: block;
}
.dt-post-card-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* --- Right rail --- */
.dt-blog-rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: calc(var(--header-h) + var(--topbar-h) + 16px);
}
.dt-rail-card {
  padding: 20px;
}
.dt-rail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  margin: 0 0 14px;
  color: var(--navy);
}
.dt-rail-title svg {
  color: var(--violet);
  flex-shrink: 0;
}
.dt-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.dt-popular-list li + li {
  border-top: 1px solid var(--card-border);
}
.dt-popular-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  align-items: center;
}
.dt-popular-list li:first-child .dt-popular-item {
  padding-top: 2px;
}
.dt-popular-list li:last-child .dt-popular-item {
  padding-bottom: 2px;
}
.dt-popular-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-tile);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grad-wash);
}
.dt-popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dt-popular-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}
.dt-popular-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.dt-popular-title {
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
}
.dt-popular-item:hover .dt-popular-title {
  color: var(--violet);
}
.dt-popular-date {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

/* Newsletter gradient card */
.dt-newsletter {
  border-radius: var(--radius-card);
  background: var(--grad);
  color: var(--white);
  padding: 24px 22px;
  box-shadow: var(--shadow-btn);
}
.dt-newsletter-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--white);
}
.dt-newsletter p {
  margin: 0 0 16px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
}
.dt-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dt-newsletter-input {
  width: 100%;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  outline: 0;
}
.dt-newsletter-input::placeholder {
  color: var(--muted);
}
.dt-newsletter-btn {
  justify-content: center;
  box-shadow: var(--shadow);
}
.dt-newsletter-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.dt-newsletter-success {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  margin: 0;
}
.dt-newsletter-error {
  background: #FEE2E2;
  color: #991B1B;
  border-radius: var(--radius-input);
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 14px;
}

/* Bottom gradient banner */
.dt-blog-cta {
  margin: 34px 0 8px;
  border-radius: var(--radius-card);
  background: var(--grad);
  color: var(--white);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-btn);
}
.dt-blog-cta h2 {
  margin: 0 0 5px;
  font-size: 24px;
  color: var(--white);
}
.dt-blog-cta p {
  margin: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

/* Empty state */
.dt-blog-empty {
  padding: 34px 30px;
  text-align: center;
}
.dt-blog-empty h2 {
  margin-top: 0;
}
.dt-blog-empty p {
  color: var(--muted);
  font-weight: 600;
}

/* Pagination (the_posts_pagination / the_comments_pagination) */
.dt-pagination-nav {
  margin-top: 30px;
}
.dt-pagination-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.dt-pagination-nav .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--card-border);
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
}
.dt-pagination-nav .page-numbers:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.dt-pagination-nav .page-numbers.current {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
}
.dt-pagination-nav .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* --- Single post: head band --- */
.dt-single-head {
  background: var(--grad-wash);
  padding: 30px 0 36px;
}
.dt-single-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--navy);
  margin: 22px 0 10px;
  max-width: 22em;
}
.dt-single-standfirst {
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  max-width: 44em;
  margin: 0 0 18px;
}
.dt-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.dt-post-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
}
.dt-post-meta-author img {
  border-radius: 50%;
  display: block;
}
.dt-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dt-post-meta-item svg {
  color: var(--blue);
}

/* --- Single post: body --- */
.dt-single-featured {
  margin: 0 0 24px;
}
.dt-single-featured img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

/* Table of Contents card (list built by blog.js) */
.dt-toc {
  padding: 20px 24px;
  margin-bottom: 26px;
}
.dt-toc-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17.5px;
  margin: 0 0 12px;
  color: var(--navy);
}
.dt-toc-title svg {
  color: var(--violet);
}
.dt-toc-list {
  list-style: none;
  counter-reset: dt-toc;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dt-toc-list li {
  counter-increment: dt-toc;
  display: flex;
  align-items: baseline;
  gap: 11px;
}
.dt-toc-list li::before {
  content: counter(dt-toc);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 800;
  transform: translateY(5px);
}
.dt-toc-list a {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.dt-toc-list a:hover {
  color: var(--violet);
}

/* Article typography */
.dt-article {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
}
.dt-article h2 {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--navy);
  margin: 36px 0 12px;
  scroll-margin-top: 130px;
}
.dt-article h2:first-child {
  margin-top: 0;
}
.dt-article h3 {
  font-size: 19.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 26px 0 8px;
}
.dt-article p {
  margin: 0 0 16px;
}
.dt-article ul,
.dt-article ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.dt-article li {
  margin-bottom: 7px;
}
.dt-article a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dt-article a:hover {
  color: var(--violet);
}
.dt-article strong {
  color: var(--navy);
}
.dt-article blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--wash-1);
  border-left: 4px solid var(--violet);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  font-weight: 600;
}
.dt-article blockquote p:last-child {
  margin-bottom: 0;
}
.dt-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-input);
}
.dt-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
}
.dt-article th,
.dt-article td {
  border: 1px solid var(--card-border);
  padding: 9px 12px;
  text-align: left;
}

/* Green Pro Tip callout (used inside article content) */
.dt-pro-tip {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--tint-green);
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-card);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.dt-pro-tip::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-position: center;
  background-repeat: no-repeat;
}
.dt-pro-tip strong {
  color: var(--green-dark);
}

/* Tags + share row */
.dt-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}
.dt-post-tags-label {
  font-weight: 800;
  color: var(--navy);
  font-size: 14.5px;
}
.dt-post-tags a {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--card-border);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.dt-post-tags a:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.dt-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--card-border);
}
.dt-share-label {
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
  margin-right: 2px;
}
.dt-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--card-border);
  color: var(--navy);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.dt-share-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
}
.dt-share-btn.is-copied {
  border-color: var(--green);
  color: var(--green-dark);
}

/* Related articles */
.dt-related {
  margin-top: 36px;
}
.dt-related-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  color: var(--navy);
  margin: 0 0 18px;
}
.dt-related-title svg {
  color: var(--violet);
}
.dt-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.dt-related-grid .dt-post-card-title {
  font-size: 16.5px;
}
.dt-related-grid .dt-post-card-excerpt {
  display: none;
}

/* Prev / next */
.dt-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.dt-prevnext-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  text-decoration: none;
}
.dt-prevnext-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dt-prevnext-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}
.dt-prevnext-card:hover .dt-prevnext-title {
  color: var(--violet);
}
.dt-prevnext-next {
  text-align: right;
  align-items: flex-end;
}

/* --- Comments --- */
.dt-comments {
  margin-top: 36px;
}
.dt-comments-card {
  padding: 24px 26px;
}
.dt-comments-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 6px;
}
.dt-comments-title svg {
  color: var(--violet);
  flex-shrink: 0;
}
.dt-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dt-comment-list .children {
  list-style: none;
  margin: 0 0 0 26px;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--card-border);
}
.dt-comment {
  padding: 18px 0 4px;
}
.dt-comment + .dt-comment {
  border-top: 1px solid var(--card-border);
  margin-top: 14px;
}
.dt-comment-inner {
  display: flex;
  gap: 14px;
}
.dt-comment-avatar img {
  border-radius: 50%;
  display: block;
}
.dt-comment-body {
  flex: 1 1 auto;
  min-width: 0;
}
.dt-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.dt-comment-author {
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
}
.dt-comment-author a {
  color: var(--navy);
  text-decoration: none;
}
.dt-comment-author a:hover {
  color: var(--violet);
}
.dt-comment-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.dt-comment-edit a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.dt-comment-awaiting {
  margin: 8px 0 0;
  padding: 8px 13px;
  background: var(--cream);
  border-radius: var(--radius-input);
  font-size: 13.5px;
  font-weight: 700;
  color: #92600A;
}
.dt-comment-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
.dt-comment-text p {
  margin: 8px 0;
}
.dt-comment-actions {
  margin-top: 4px;
}
.dt-comment-actions .comment-reply-link {
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
}
.dt-comment-actions .comment-reply-link:hover {
  color: var(--violet);
}
.dt-comments-none,
.dt-comments-closed {
  color: var(--muted);
  font-weight: 600;
  margin: 10px 0 4px;
}

/* Comment form (WP .comment-respond wrapper) */
.dt-comments .comment-respond {
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.dt-respond-title {
  margin-bottom: 12px;
}
.dt-respond-title small {
  font-size: 13px;
  margin-left: 10px;
}
.dt-respond-title small a {
  color: var(--blue);
}
.dt-comment-notes {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 16px;
}
.dt-comment-form .dt-comment-field {
  margin: 0 0 14px;
}
.dt-comment-form .dt-input {
  width: 100%;
}
.dt-comment-form textarea.dt-input {
  resize: vertical;
  min-height: 120px;
}
.dt-comment-form .form-submit {
  margin: 4px 0 0;
}
.dt-comment-form .dt-comment-submit {
  justify-content: center;
}
.dt-comments .comment-respond .logged-in-as {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
}
.dt-comments .comment-respond .logged-in-as a {
  color: var(--blue);
  font-weight: 700;
}

/* Search hero tweak */
.dt-search-again {
  margin-top: 22px;
  max-width: 480px;
}
.dt-search-again .dt-blog-search-input {
  flex: 1 1 auto;
  width: auto;
}

/* Smooth anchor scrolling for the TOC (header offset handled by
   scroll-margin-top on article H2s above) */
html {
  scroll-behavior: smooth;
}

/* --- Phase 8 responsive --- */
@media (max-width: 1023px) {
  .dt-blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .dt-blog-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .dt-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .dt-post-grid,
  .dt-search-grid,
  .dt-related-grid,
  .dt-prevnext,
  .dt-blog-rail {
    grid-template-columns: minmax(0, 1fr);
  }
  .dt-blog-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .dt-blog-search {
    width: 100%;
  }
  .dt-blog-search-input {
    flex: 1 1 auto;
    width: auto;
  }
  .dt-blog-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px;
  }
  .dt-prevnext-next {
    text-align: left;
    align-items: flex-start;
  }
  .dt-comments-card,
  .dt-comments .comment-respond {
    padding: 20px 18px;
  }
  .dt-comment-list .children {
    margin-left: 10px;
    padding-left: 12px;
  }
}

/* Author initials badge (bylines — replaces Gravatar) */
.dt-author-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  flex: none;
  vertical-align: middle;
}

/* ============================================================
   20. PHASE 9 — STATIC PAGES
   ------------------------------------------------------------
   Generic/legal pages (prose card + related strip), About
   (steps, promises), Contact (email card + message form), FAQ
   (seeded accordion) and the generated Sitemap. All on the
   existing tokens; form fields reuse the global .dt-input look.
   ============================================================ */

/* Shared page rhythm */
.dt-page-body {
  padding: 30px 0 8px;
}
.dt-page-section {
  padding: 26px 0 8px;
}
.dt-page-hero .dt-breadcrumb {
  margin-bottom: 26px;
}

/* Prose card (legal pages, About intro) */
.dt-prose-card {
  padding: 34px 38px;
}
.dt-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.dt-last-updated svg {
  color: var(--blue);
  flex-shrink: 0;
}

/* Related legal pages strip */
.dt-legal-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}
.dt-legal-strip-label {
  font-weight: 800;
  color: var(--navy);
  font-size: 14.5px;
  margin-right: 2px;
}
.dt-legal-link {
  display: inline-flex;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--card-border);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.dt-legal-link:hover {
  border-color: var(--violet);
  color: var(--violet);
}

/* Gradient CTA banner (About / FAQ) — mirrors the blog banner */
.dt-page-cta {
  margin: 34px 0 8px;
  border-radius: var(--radius-card);
  background: var(--grad);
  color: var(--white);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-btn);
}
.dt-page-cta h2 {
  margin: 0 0 5px;
  font-size: 24px;
  color: var(--white);
}
.dt-page-cta p {
  margin: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

/* --- About: steps + promises --- */
.dt-page-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: dt-page-step;
}
.dt-page-step {
  counter-increment: dt-page-step;
  padding: 24px 24px 20px;
}
.dt-page-step::before {
  content: counter(dt-page-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  box-shadow: var(--shadow-btn);
}
.dt-page-step h3 {
  font-size: 17.5px;
  margin: 0 0 7px;
}
.dt-page-step p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
}
.dt-promise-card {
  padding: 28px 32px;
}
.dt-promise-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  color: var(--navy);
  margin: 0 0 18px;
}
.dt-promise-title svg {
  color: var(--violet);
  flex-shrink: 0;
}
.dt-promise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 34px;
}
.dt-promise-list li {
  margin-bottom: 12px;
  line-height: 1.6;
}
.dt-promise-list strong {
  color: var(--navy);
}

/* --- Contact --- */
.dt-contact-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.dt-contact-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.dt-contact-card {
  padding: 26px 28px;
}
.dt-contact-card h2 {
  font-size: 19px;
  margin: 0 0 10px;
}
.dt-contact-card p {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--muted);
}
.dt-contact-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: var(--radius-tile);
  background: var(--grad);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.dt-contact-email {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}
.dt-contact-email:hover {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dt-contact-note {
  margin-top: 10px;
  font-size: 14px;
}
.dt-contact-card .dt-checks li {
  font-size: 14.5px;
  line-height: 1.6;
}
.dt-contact-card .dt-checks a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact form */
.dt-contact-form-card {
  padding: 28px 32px;
}
.dt-contact-form-card h2 {
  font-size: 21px;
  margin: 0 0 16px;
}
.dt-alert {
  margin: 0 0 18px;
  padding: 13px 18px;
  border-radius: var(--radius-input);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
}
.dt-alert--success {
  background: var(--tint-green);
  border: 1px solid #BBF7D0;
  color: var(--green-dark);
}
.dt-alert--error {
  background: #FDECEC;
  border: 1px solid #F5C2C2;
  color: #B91C1C;
}
.dt-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.dt-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dt-form-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}
.dt-required {
  color: #DC2626;
}
.dt-form-textarea {
  resize: vertical;
  min-height: 130px;
}
.dt-form-submit {
  align-self: flex-start;
  justify-content: center;
  margin-top: 2px;
}
/* Honeypot: visually removed, still in the tab order of no human. */
.dt-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- FAQ (seeded accordion content) --- */
.dt-page-faq {
  margin-left: auto;
  margin-right: auto;
}
.dt-page-faq .dt-faq-item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.dt-faq-a {
  padding: 0 22px 18px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--muted);
}
.dt-faq-a p {
  margin: 0 0 10px;
}
.dt-faq-a p:last-child {
  margin-bottom: 0;
}
.dt-faq-a a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dt-faq-a a:hover {
  color: var(--violet);
}

/* --- Sitemap --- */
.dt-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.dt-sitemap-card {
  padding: 24px 28px;
}
.dt-sitemap-card--wide {
  grid-column: 1 / -1;
}
.dt-sitemap-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 14px;
}
.dt-sitemap-title svg {
  color: var(--violet);
  flex-shrink: 0;
}
.dt-sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dt-sitemap-list li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-weight: 600;
  line-height: 1.5;
}
.dt-sitemap-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.dt-sitemap-list a {
  color: var(--ink);
  text-decoration: none;
}
.dt-sitemap-list a:hover {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dt-sitemap-list--cols {
  columns: 2;
  column-gap: 40px;
}
.dt-sitemap-list--cols li {
  break-inside: avoid;
}
.dt-sitemap-date {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.dt-sitemap-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 30px;
}
.dt-sitemap-cat h3 {
  font-size: 15.5px;
  margin: 12px 0 6px;
}
.dt-sitemap-cat h3 a {
  color: var(--blue);
  text-decoration: none;
}
.dt-sitemap-cat h3 a:hover {
  color: var(--violet);
}

/* --- Phase 9 responsive --- */
@media (max-width: 1023px) {
  .dt-sitemap-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .dt-contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .dt-page-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .dt-sitemap-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dt-sitemap-list--cols {
    columns: 1;
  }
}
@media (max-width: 767px) {
  .dt-prose-card {
    padding: 24px 20px;
  }
  .dt-promise-card,
  .dt-contact-form-card {
    padding: 22px 20px;
  }
  .dt-promise-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .dt-sitemap-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  .dt-page-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px;
  }
  .dt-form-submit {
    align-self: stretch;
  }
}
