/*
Theme Name: Durleigh
Theme URI: https://durleigh.com
Author: Durleigh Displays
Description: Block theme for durleigh.com, built from the signed-off prototype. Colours, type scale, spacing and radii live in theme.json; this file holds the component styles that use them.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: durleigh
*/

/* ------------------------------------------------------------------
   1. Tokens that change with viewport (theme.json presets point here)
   ------------------------------------------------------------------ */
:root {
  --dl-r: 28px;
  --dl-r2: 22px;
  --dl-pad: 46px;
  --dl-s40: 40px;
  --dl-s48: 48px;
  --dl-s56: 56px;
  --dl-s64: 64px;
  --dl-s72: 72px;
  --dl-s80: 80px;
  --dl-navy: var(--wp--preset--color--navy);
  --dl-blue: var(--wp--preset--color--blue);
  --dl-chalk: var(--wp--preset--color--chalk);
  --dl-graphite: var(--wp--preset--color--graphite);
  --dl-mute: var(--wp--preset--color--mute);
  --dl-meta: var(--wp--preset--color--meta);
  --dl-alum: var(--wp--preset--color--alum);
  --dl-line: var(--wp--preset--color--line);
  --dl-green: var(--wp--preset--color--green);
  --dl-navy-muted: var(--wp--preset--color--navy-muted);
  --dl-navy-link: var(--wp--preset--color--navy-link);
  --dl-navy-meta: var(--wp--preset--color--navy-meta);
  --dl-border-soft: #D8DDDA;
  --dl-on-blue: #04324a;
  --dl-chalk-hover: #EDEFEC;
  --dl-rule-on-navy: rgba(244, 245, 243, .14);
}
@media (max-width: 760px) {
  :root {
    --dl-r: 22px;
    --dl-r2: 18px;
    --dl-pad: 34px;
    --dl-s40: 24px;
    --dl-s48: 28px;
    --dl-s56: 32px;
    --dl-s64: 36px;
    --dl-s72: 40px;
    --dl-s80: 44px;
  }
}

/* ------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--dl-blue); color: var(--dl-on-blue); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, button { font: inherit; color: inherit; }
main.wp-block-group { flex: 1; }
.wp-site-blocks > main { flex: 1; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }

/* Keep the rendered page free of default block margins; gaps are set per group. */
.is-layout-flow > * + *, .is-layout-constrained > * + * { margin-block-start: 0; }

/* The dot: after the wordmark and every h1 */
.dl-dot::after, .dl-wordmark a::after, .dl-news-fallback__mark::after {
  content: "";
  display: inline-block;
  width: .17em;
  height: .17em;
  border-radius: 50%;
  background: var(--dl-blue);
  margin-left: .055em;
  vertical-align: baseline;
}

/* Text sizes and roles used across components */
.dl-standfirst { font-size: var(--wp--preset--font-size--standfirst); line-height: 1.35; color: var(--dl-navy); max-width: 640px; }
.dl-standfirst--loose { line-height: 1.4; }
.dl-lede { font-size: var(--wp--preset--font-size--lede); line-height: 1.55; color: var(--dl-navy); }
.dl-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dl-meta); }
.dl-eyebrow a { color: var(--dl-meta); }
.dl-eyebrow a:hover { color: var(--dl-blue); }
.dl-label { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dl-blue); }
.dl-meta { font-size: 14px; color: var(--dl-meta); }
.dl-h2 { font-size: var(--wp--preset--font-size--heading); line-height: 1.05; }
.dl-h2-section { font-size: var(--wp--preset--font-size--section); }
.dl-h2-band { font-size: var(--wp--preset--font-size--band); letter-spacing: -0.02em; }
.dl-h2-group { font-size: var(--wp--preset--font-size--group); }
.dl-h2-panel { font-size: var(--wp--preset--font-size--panel); }
.dl-h3 { font-size: var(--wp--preset--font-size--subheading); letter-spacing: -0.02em; }
.dl-display { font-size: var(--wp--preset--font-size--display); line-height: 1.03; text-wrap: pretty; }
.dl-narrow { max-width: 720px; }
.dl-narrow-560 { max-width: 560px; }
.dl-max-680 { max-width: 680px; }
.dl-max-640 { max-width: 640px; }

/* "More" links: text plus a chevron that eases outward on hover */
.dl-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--dl-navy);
  transition: gap .25s ease;
}
.dl-more a::after { content: "\203A"; }
.dl-more a:hover { gap: 16px; color: var(--dl-blue); }
.dl-more--small a { font-size: 15px; gap: 8px; margin-top: 4px; }
.dl-more--small a:hover { gap: 12px; }

/* Buttons */
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  background: var(--dl-navy);
  color: #fff;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.wp-block-button__link:hover { background: var(--dl-blue); color: var(--dl-on-blue); }
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-dl-secondary .wp-block-button__link {
  background: transparent;
  color: var(--dl-navy);
  font-weight: 400;
  border-color: var(--dl-border-soft);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-dl-secondary .wp-block-button__link:hover { border-color: var(--dl-navy); background: transparent; color: var(--dl-navy); }
.wp-block-button.is-style-dl-blue .wp-block-button__link { background: var(--dl-blue); color: var(--dl-on-blue); padding: 0 32px; }
.wp-block-button.is-style-dl-blue .wp-block-button__link:hover { background: #fff; color: var(--dl-navy); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------
   3. Header
   ------------------------------------------------------------------ */
.dl-header { border-bottom: 1px solid var(--dl-line); background: #fff; }
.dl-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.dl-wordmark { white-space: nowrap; }
.dl-wordmark a { text-decoration: none; }
.dl-nav { display: flex; align-items: center; gap: 26px; }
.dl-nav .wp-block-navigation { --dl-nav-gap: 26px; }
.dl-nav .wp-block-navigation .wp-block-navigation__container { gap: 26px; align-items: center; }
.dl-nav .wp-block-navigation-item__content { padding: 8px 0; font-size: 17px; color: var(--dl-graphite); text-decoration: none; }
.dl-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.dl-nav .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
.dl-nav .wp-block-navigation-item.current-menu-parent > .wp-block-navigation-item__content { color: var(--dl-navy); font-weight: 600; }
.dl-nav .wp-block-navigation-item__content:hover,
.dl-nav .wp-block-navigation-item__content:focus-visible {
  color: var(--dl-navy);
  text-shadow: .34px 0 0 currentColor, -.34px 0 0 currentColor; /* weight without reflow: the row never shifts */
}
/* The dot arrives after the item on hover, on keyboard focus and on the current page.
   It always holds its space in the line, so only the dot changes, never the layout. */
.dl-nav .wp-block-navigation-item__content::after {
  content: "";
  display: inline-block;
  width: .17em; height: .17em; margin-left: .055em;
  border-radius: 50%; background: var(--dl-blue);
  vertical-align: baseline;
  opacity: 0; transform: scale(0);
  text-shadow: none;
  transition: opacity .18s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.dl-nav .wp-block-navigation-item__content:hover::after,
.dl-nav .wp-block-navigation-item__content:focus-visible::after,
.dl-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::after,
.dl-nav .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content::after,
.dl-nav .wp-block-navigation-item.current-menu-parent > .wp-block-navigation-item__content::after { opacity: 1; transform: scale(1); }
/* The submenu items keep the plain hover, no dot: the dot marks the top level only. */
.dl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.dl-nav .wp-block-navigation__submenu-icon { display: none; }
.dl-nav .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  left: -16px;
  top: 100%;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(10, 37, 64, .28);
  padding: 10px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.dl-nav .wp-block-navigation .has-child .wp-block-navigation__submenu-container::before {
  /* keeps the menu open while the pointer crosses the 8px gap */
  content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px;
}
.dl-nav .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--dl-graphite);
  white-space: nowrap;
  transition: background .15s ease;
}
.dl-nav .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--dl-chalk); color: var(--dl-navy); }
.dl-nav .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content { font-weight: 600; color: var(--dl-navy); }
.dl-header__quote .wp-block-button__link { padding: 0 28px; }

/* Collapse at 920px, not the core default of 600px */
@media (min-width: 920px) {
  .dl-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none; }
  .dl-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: block; position: relative; width: 100%; z-index: auto; background-color: inherit; }
  .dl-nav .wp-block-navigation__responsive-container.is-menu-open { display: block; position: static; }
  .dl-nav .wp-block-navigation__responsive-container-close { display: none; }
  .dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { display: flex; flex-direction: row; align-items: center; padding: 0; }
}
@media (max-width: 919.98px) {
  .dl-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .dl-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .dl-header .dl-header__quote { display: none; }
  .dl-header .dl-header__inner { gap: 16px; }
}
/* Menu button: three navy bars, 48px square */
.dl-nav .wp-block-navigation__responsive-container-open {
  width: 48px; height: 48px; border: none; border-radius: 14px; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.dl-nav .wp-block-navigation__responsive-container-open svg { display: none; }
.dl-nav .wp-block-navigation__responsive-container-open::before,
.dl-nav .wp-block-navigation__responsive-container-open::after,
.dl-nav .wp-block-navigation__responsive-container-open .dl-bar { content: ""; display: block; width: 20px; height: 2px; background: var(--dl-navy); }
/* Open mobile menu: full-width list beneath the header */
.dl-nav .wp-block-navigation__responsive-container.is-menu-open {
  position: fixed; inset: 0; background: #fff; padding: 0; z-index: 100000; overflow: auto;
}
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close { display: block; width: 100%; max-width: none; }
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { padding-top: 0; }
.dl-nav .wp-block-navigation__responsive-container-close {
  position: absolute; top: 24px; right: clamp(24px, 5vw, 90px); width: 48px; height: 48px; background: none; border: none; cursor: pointer; padding: 0; color: var(--dl-navy);
}
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding: 92px 0 24px; display: flex; flex-direction: column; align-items: stretch; width: 100%; border-top: 1px solid var(--dl-line);
}
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--dl-line); width: 100%; }
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: flex; align-items: center; min-height: 48px; padding: 0 clamp(24px, 5vw, 90px); font-size: 17px; font-weight: 600; color: var(--dl-navy); width: 100%;
}
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  position: static; border: none; box-shadow: none; padding: 0 0 10px; min-width: 0; background: none; margin: 0;
}
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border: none; }
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-weight: 400; color: var(--dl-graphite); font-size: 16px; padding-left: calc(clamp(24px, 5vw, 90px) + 20px);
}
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .dl-mobile-quote { display: block; padding: 16px clamp(24px, 5vw, 90px) 20px; border-bottom: none; }
.dl-nav .wp-block-navigation__responsive-container.is-menu-open .dl-mobile-quote .wp-block-navigation-item__content {
  display: flex; align-items: center; justify-content: center; height: 48px; min-height: 0; padding: 0; background: var(--dl-navy); color: #fff; border-radius: 999px; font-size: 17px; font-weight: 600;
}
.dl-nav .wp-block-navigation .dl-mobile-quote { display: none; }

/* ------------------------------------------------------------------
   4. Sections and layout primitives
   ------------------------------------------------------------------ */
.dl-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 24px;
  align-items: stretch;
}
.dl-split__text { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.dl-split__text p { max-width: 560px; }
.dl-split__text.dl-gap-18 { gap: 18px; }
.dl-split__text.dl-gap-22 { gap: 22px; }
.dl-split__text.dl-gap-24 { gap: 24px; }
.dl-split__text.dl-max-540 p { max-width: 540px; }
.dl-split__text.dl-max-480 p { max-width: 480px; }
.dl-split__text.dl-max-520 .dl-standfirst { max-width: 520px; }
.dl-split__text .wp-block-buttons { margin-top: 0; }

.dl-media { border-radius: var(--dl-r); overflow: hidden; position: relative; min-height: clamp(230px, 44vw, 460px); background: var(--dl-chalk); }
.dl-media--hero { min-height: clamp(260px, 50vw, 540px); }
.dl-media--ea { min-height: clamp(250px, 48vw, 500px); }
.dl-media--r2 { border-radius: var(--dl-r2); min-height: 300px; }
.dl-media:empty { background: var(--dl-chalk-hover); }
.dl-media .wp-block-image, .dl-media figure, .dl-media img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.dl-media img { object-fit: cover; }
.dl-media .wp-block-image.size-large, .dl-media .wp-block-image.size-full { max-width: none; }

.dl-wide { border-radius: var(--dl-r); overflow: hidden; position: relative; aspect-ratio: 16 / 9; background: var(--dl-chalk); }
.dl-wide--900 { max-width: 900px; }
.dl-wide .wp-block-image, .dl-wide figure, .dl-wide img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; }

.dl-hero-card {
  background: var(--dl-chalk);
  border-radius: var(--dl-r);
  padding: clamp(36px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: clamp(260px, 50vw, 540px);
}
.dl-hero-card p { max-width: 480px; line-height: 1.6; }

.dl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }

.dl-cards { display: grid; gap: 16px; }
.dl-cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(max(280px, 40%), 100%), 1fr)); }
.dl-cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.dl-cards--260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.dl-card { background: var(--dl-chalk); border-radius: var(--dl-r2); padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.dl-card--roomy { padding: 30px 32px; }
.dl-card > p:first-child, .dl-card__title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--dl-navy); }
.dl-card > p:not(:first-child), .dl-card__text { font-size: 16px; line-height: 1.5; color: var(--dl-mute); }
.dl-card--roomy > p:not(:first-child) { line-height: 1.55; }
.dl-card > .dl-more { font-size: 15px; }
.dl-card > .dl-more a { font-size: 15px; gap: 8px; margin-top: 4px; color: var(--dl-navy); }

.dl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.dl-step { border: 1px solid var(--dl-line); border-radius: var(--dl-r2); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.dl-step__head { display: flex; align-items: center; gap: 12px; }
.dl-step__num { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--dl-alum); }
.dl-step__title { font-size: 19px; font-weight: 600; color: var(--dl-navy); }
.dl-step--approved .dl-step__title::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dl-green); margin-left: 12px; vertical-align: middle; }
.dl-step > p:last-child { font-size: 16px; line-height: 1.55; color: var(--dl-mute); }

.dl-band { border-top: 1px solid var(--dl-line); border-bottom: 1px solid var(--dl-line); padding: 40px 0; display: flex; flex-direction: column; gap: 22px; }
.dl-band p { line-height: 1.6; }
.dl-rail { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; row-gap: 12px; }
.dl-rail li { display: flex; align-items: center; gap: 18px; font-size: var(--wp--preset--font-size--rail); white-space: nowrap; }
.dl-rail li a { color: var(--dl-graphite); }
.dl-rail li a:hover { color: var(--dl-blue); }
.dl-rail li:not(:last-child)::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dl-blue); }

.dl-panel { background: var(--dl-chalk); border-radius: var(--dl-r); padding: var(--dl-pad); display: flex; flex-direction: column; gap: 16px; }
.dl-panel--split { padding: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.dl-panel--split > div { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.dl-panel--where { padding: clamp(36px, 4.5vw, 60px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.dl-panel--where > div:first-child { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.dl-address { font-size: 18px; line-height: 1.7; color: var(--dl-graphite); }
.dl-contact-lines { font-size: 17px; line-height: 1.7; }
.dl-contact-lines a { font-weight: 600; }

.dl-choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.dl-choose p { border-top: 2px solid var(--dl-alum); padding-top: 18px; }

.dl-stack { display: flex; flex-direction: column; gap: 18px; }
.dl-stack--14 { gap: 14px; }
.dl-stack--16 { gap: 16px; }
.dl-stack--10 { gap: 10px; }

.dl-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.dl-bullets li { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.55; color: var(--dl-graphite); }
.dl-bullets li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dl-blue); flex: none; margin-top: .55em; }
.dl-list-intro { font-weight: 600; color: var(--dl-navy); }

.dl-note { border: 1px solid var(--dl-alum); border-radius: var(--dl-r2); padding: 26px 30px; max-width: 760px; display: flex; gap: 16px; align-items: flex-start; }
.dl-note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dl-alum); flex: none; margin-top: .5em; }
.dl-note p { font-size: 15px; line-height: 1.6; color: var(--dl-graphite); }

/* Product page */
.dl-product { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.dl-product__text { display: flex; flex-direction: column; gap: 16px; }
.dl-product__text h2 + p, .dl-product__text p + p { margin: 0; }
.dl-product__text h2:not(:first-child) { margin-top: 24px; }
.dl-spec { margin-top: 20px; border-collapse: collapse; width: 100%; border-top: 1px solid var(--dl-line); }
.dl-spec table { border-collapse: collapse; width: 100%; }
.dl-spec td { padding: 15px 0; border: none; border-bottom: 1px solid var(--dl-line); vertical-align: top; }
.dl-spec td:first-child { font-size: 15px; font-weight: 600; color: var(--dl-navy); width: 27.5%; min-width: 104px; padding-right: 20px; }
.dl-spec td:last-child { font-size: 16px; line-height: 1.5; color: var(--dl-graphite); }
.dl-spec.wp-block-table { margin: 20px 0 0; }
.dl-spec.wp-block-table table { border-top: 1px solid var(--dl-line); }

/* Quotes */
.dl-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.dl-quotes .wp-block-quote { border: none; border-top: 2px solid var(--dl-alum); padding: 22px 0 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.dl-quotes .wp-block-quote p { font-size: 18px; line-height: 1.6; color: var(--dl-graphite); font-style: normal; }
.dl-quotes .wp-block-quote cite { font-size: 16px; font-weight: 600; font-style: normal; color: var(--dl-navy); display: block; }
.dl-quotes--cards { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.dl-quotes--cards .wp-block-quote { border: none; background: var(--dl-chalk); border-radius: var(--dl-r); padding: var(--dl-pad); gap: 18px; }
.dl-quotes--cards .wp-block-quote p { font-size: 19px; }

/* Who else: jump list and sector sections */
.dl-jump { border-top: 1px solid var(--dl-line); display: flex; flex-direction: column; }
.dl-jump__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--dl-line); }
.dl-jump__row > p:first-child { font-size: 22px; letter-spacing: -0.01em; color: var(--dl-navy); }
.dl-jump__row > p:first-child a { color: var(--dl-navy); }
.dl-jump__row > p:first-child a:hover { color: var(--dl-blue); }
.dl-jump__row > p:last-child { font-size: 17px; line-height: 1.5; color: var(--dl-mute); }
.dl-sector { scroll-margin-top: 24px; }
.dl-sector .dl-standfirst { line-height: 1.4; max-width: 720px; }

/* Index cards (What we make) */
.dl-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.dl-index__card {
  position: relative; background: var(--dl-chalk); border-radius: var(--dl-r); padding: 36px; display: flex; flex-direction: column; gap: 10px; min-height: 176px;
  transition: background .25s ease, transform .25s ease;
}
.dl-index__card:hover { background: var(--dl-chalk-hover); transform: translateY(-3px); }
.dl-index__card > p:first-child { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.dl-index__card > p:first-child a { color: var(--dl-navy); }
.dl-index__card > p:first-child a::after { content: ""; position: absolute; inset: 0; }
.dl-index__card > p:not(:first-child) { font-size: 16px; line-height: 1.5; color: var(--dl-mute); }

/* Recent work and news cards (query loop) */
.dl-work .wp-block-post-template, .dl-news .wp-block-post-template { display: grid; gap: 20px; }
.dl-work .wp-block-post-template { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.dl-news .wp-block-post-template { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.dl-work .wp-block-post, .dl-news .wp-block-post { display: flex; flex-direction: column; gap: 16px; }
.dl-news .wp-block-post { gap: 14px; }
.dl-thumb { border-radius: var(--dl-r); overflow: hidden; aspect-ratio: 4 / 3; position: relative; background: var(--dl-chalk); }
.dl-thumb a, .dl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wp-block-post-featured-image.dl-thumb { margin: 0; }
.dl-card-text { display: flex; flex-direction: column; gap: 6px; }
.dl-work .wp-block-post-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.dl-news .wp-block-post-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.wp-block-post-title a { color: var(--dl-navy); }
.wp-block-post-title a:hover { color: var(--dl-blue); }
.dl-post-meta { font-size: 14px; color: var(--dl-meta); display: flex; gap: 6px; flex-wrap: wrap; }
.dl-post-meta a { color: var(--dl-meta); }
.dl-post-meta .wp-block-post-terms__separator { display: none; }
.dl-news-fallback {
  border-radius: var(--dl-r); aspect-ratio: 4 / 3; background: var(--dl-navy); padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.dl-news-fallback__title { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--dl-chalk); }
.dl-news-fallback__title a { color: var(--dl-chalk); }
.dl-news-fallback__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dl-news-fallback__date { font-size: 14px; color: var(--dl-navy-meta); }
.dl-news-fallback__mark { font-size: 16px; font-weight: 600; color: var(--dl-chalk); white-space: nowrap; }

/* News page furniture */
.dl-filter { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--dl-line); }
.dl-pills { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.dl-pills li { margin: 0; }
.dl-pills a, .dl-pills .wp-block-categories__label { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--dl-line); background: #fff; color: var(--dl-graphite); font-size: 16px; font-weight: 600; text-decoration: none; }
.dl-pills a:hover { border-color: var(--dl-navy); color: var(--dl-navy); }
.dl-pills li.current-cat > a, .dl-pills li.is-current > a { background: var(--dl-navy); color: #fff; border-color: var(--dl-navy); }
.dl-pills .wp-block-categories { list-style: none; margin: 0; padding: 0; display: contents; }
.dl-search .wp-block-search__inside-wrapper { border: none; }
.dl-search .wp-block-search__input { height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--dl-line); background: #fff; font-size: 16px; min-width: 240px; outline: none; }
.dl-search .wp-block-search__input:focus { border-color: var(--dl-blue); }
.dl-search .wp-block-search__button { display: none; }
.dl-count { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--dl-meta); }
.dl-count::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dl-blue); flex: none; }
.dl-count:empty { display: none; }
.dl-empty { background: var(--dl-chalk); border-radius: var(--dl-r); padding: var(--dl-pad); color: var(--dl-graphite); }
.dl-pager { display: flex; justify-content: center; gap: 10px; }
.dl-pager .wp-block-query-pagination-numbers, .dl-pager .wp-block-query-pagination { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dl-pager .page-numbers, .dl-pager .wp-block-query-pagination-previous, .dl-pager .wp-block-query-pagination-next {
  min-width: 48px; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--dl-line); background: #fff; color: var(--dl-graphite);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; text-decoration: none;
}
.dl-pager .page-numbers.current { background: var(--dl-navy); color: #fff; border-color: var(--dl-navy); }
.dl-pager .page-numbers.dots { border: none; }

/* Single news article */
.dl-article { max-width: 760px; }
.dl-article .wp-block-post-content { display: flex; flex-direction: column; gap: 18px; }
.dl-article .wp-block-post-content p { color: var(--dl-graphite); line-height: 1.65; }
.dl-article .wp-block-post-content h2 { font-size: var(--wp--preset--font-size--subheading); letter-spacing: -0.02em; margin-top: 12px; }
.dl-article .wp-block-post-content ul, .dl-article .wp-block-post-content ol { padding-left: 1.2em; color: var(--dl-graphite); display: flex; flex-direction: column; gap: 8px; }
.dl-article .wp-block-post-content img { border-radius: var(--dl-r2); }
.dl-article .wp-block-post-content figure { margin: 8px 0; }
.dl-article .wp-block-post-content a { text-decoration: underline; text-underline-offset: 2px; }

/* Contact */
.dl-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; align-items: start; }
.dl-form { display: flex; flex-direction: column; gap: 20px; }
.dl-form label { display: flex; flex-direction: column; gap: 8px; }
.dl-form label > span { font-size: 15px; font-weight: 600; color: var(--dl-navy); }
.dl-form input[type="text"], .dl-form input[type="email"], .dl-form input[type="tel"] { height: 52px; padding: 0 20px; border: 1px solid var(--dl-line); border-radius: 14px; background: #fff; font-size: 17px; outline: none; }
.dl-form textarea { padding: 16px 20px; border: 1px solid var(--dl-line); border-radius: 14px; background: #fff; font-size: 17px; outline: none; resize: vertical; line-height: 1.5; min-height: 150px; }
.dl-form input:focus, .dl-form textarea:focus { border-color: var(--dl-blue); }
.dl-form button[type="submit"] { height: 48px; padding: 0 32px; background: var(--dl-navy); color: #fff; border: none; border-radius: 999px; font-size: 17px; font-weight: 600; cursor: pointer; align-self: flex-start; transition: background .2s ease, color .2s ease; }
.dl-form button[type="submit"]:hover { background: var(--dl-blue); color: var(--dl-on-blue); }
.dl-form .dl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dl-form__error { border: 1px solid var(--dl-alum); border-radius: var(--dl-r2); padding: 16px 20px; font-size: 15px; color: var(--dl-graphite); }
.dl-sent { border: 1px solid var(--dl-line); border-radius: var(--dl-r); padding: var(--dl-pad); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.dl-sent__flag { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dl-green); }
.dl-sent__flag::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--dl-green); flex: none; }
.dl-sent h2 { font-size: var(--wp--preset--font-size--sent); letter-spacing: -0.02em; }
.dl-sent p a { font-weight: 600; }
.dl-sent .dl-btn-secondary { display: inline-flex; align-items: center; height: 48px; padding: 0 28px; border: 1px solid var(--dl-border-soft); background: #fff; border-radius: 999px; font-size: 17px; color: var(--dl-navy); text-decoration: none; }
.dl-sent .dl-btn-secondary:hover { border-color: var(--dl-navy); }
.dl-workshop { background: var(--dl-navy); border-radius: var(--dl-r); padding: clamp(36px, 4vw, 52px); display: flex; flex-direction: column; gap: 28px; color: var(--dl-chalk); }
.dl-workshop > div { display: flex; flex-direction: column; gap: 10px; }
.dl-workshop hr { border: none; height: 1px; background: var(--dl-rule-on-navy); margin: 0; }
.dl-workshop .dl-label--dot { display: flex; align-items: center; gap: 10px; }
.dl-workshop .dl-label--dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dl-blue); }
.dl-workshop .dl-address { color: var(--dl-chalk); line-height: 1.65; }
.dl-workshop .dl-talk { font-size: 19px; line-height: 1.7; }
.dl-workshop .dl-talk a { color: #fff; font-weight: 600; }
.dl-workshop .dl-talk a:hover { color: var(--dl-blue); }
.dl-workshop .dl-hours { font-size: 18px; line-height: 1.65; color: var(--dl-navy-muted); }

/* Survey band */
.dl-survey { background: var(--dl-navy); border-radius: var(--dl-r); padding: clamp(36px, 4vw, 56px) clamp(36px, 4.5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.dl-survey h2 { color: #fff; }
.dl-survey p { color: var(--dl-navy-muted); line-height: 1.6; max-width: 560px; }
.dl-survey__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.dl-survey__contact { font-size: 16px; color: var(--dl-navy-muted); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dl-survey__contact a { color: #fff; font-weight: 600; }
.dl-survey__contact a:hover { color: var(--dl-blue); }
.dl-survey__contact a + a::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dl-blue); margin-right: 14px; vertical-align: middle; }

/* ------------------------------------------------------------------
   5. Footer
   ------------------------------------------------------------------ */
.dl-footer { background: var(--dl-navy); color: var(--dl-chalk); margin-top: 40px; position: relative; overflow: hidden; }
.dl-footer__inner { max-width: 1240px; margin: 0 auto; padding: var(--dl-s64) 0 var(--dl-s56); display: flex; flex-direction: column; gap: 48px; }
.dl-footer .dl-wordmark { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; align-self: flex-start; }
.dl-footer .dl-wordmark a { color: var(--dl-chalk); }
.dl-footer .dl-wordmark a:hover { color: var(--dl-chalk); }
.dl-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(28px, 4vw, 48px); }
.dl-footer__col { display: flex; flex-direction: column; gap: 14px; }
.dl-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dl-footer__col li { font-size: 16px; line-height: 1.4; }
.dl-footer__col a { color: var(--dl-navy-link); transition: color .2s ease; }
.dl-footer__col a:hover { color: #fff; }
.dl-footer__bar { border-top: 1px solid var(--dl-rule-on-navy); position: relative; }
.dl-footer__bar::before {
  content: ""; position: absolute; top: 0; right: clamp(28px, 8vw, 110px); transform: translateY(-100%); pointer-events: none;
  width: clamp(80px, 8.5vw, 116px); height: clamp(80px, 8.5vw, 116px); border-radius: 50%; background: var(--dl-blue);
}
.dl-footer__bar-inner { max-width: 1240px; margin: 0 auto; padding: 24px 0 36px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--dl-navy-meta); }
.dl-footer__bar-inner p { color: var(--dl-navy-meta); font-size: 14px; }
.dl-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dl-footer__legal li { font-size: 14px; }
.dl-footer__legal a { color: var(--dl-navy-link); }
.dl-footer__legal a:hover { color: #fff; }

/* ------------------------------------------------------------------
   6. Motion (signed off with the prototype)
   ------------------------------------------------------------------ */
@keyframes dl-dot-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes dl-dot-drop { 0% { transform: translateY(-260px); opacity: 0; } 55% { transform: translateY(0); opacity: 1; } 72% { transform: translateY(-26px); } 86% { transform: translateY(0); } 94% { transform: translateY(-7px); } 100% { transform: translateY(0); opacity: 1; } }
@keyframes dl-dot-roll { 0% { transform: translateX(min(18vw, 200px)); opacity: 0; } 12% { opacity: 1; } 60% { transform: translateX(0); } 72% { transform: translateX(-.14em) scaleX(.8); } 86% { transform: translateX(.04em) scaleX(1.08); } 100% { transform: translateX(0) scaleX(1); opacity: 1; } }
.dl-display.dl-dot::after { animation: dl-dot-in .6s cubic-bezier(.34, 1.56, .64, 1) .4s backwards; }
.dl-footer .dl-wordmark.is-rolling a::after { animation: dl-dot-roll 1.5s cubic-bezier(.25, .75, .35, 1) .15s both; }
.js .dl-reveal { opacity: 0; transform: translateY(14px); }
.js .dl-reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
@media (prefers-reduced-motion: reduce) {
  .dl-display.dl-dot::after, .dl-footer .dl-wordmark a::after { animation: none !important; }
  .dl-nav .wp-block-navigation-item__content::after { transition: opacity .18s ease; transform: scale(1); }
  .js .dl-reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------
   7. Editor only
   ------------------------------------------------------------------ */
.editor-styles-wrapper .dl-media { min-height: 260px; }
.editor-styles-wrapper .dl-reveal { opacity: 1; transform: none; }
