/*
Theme Name: DAPCO Ventures
Theme URI: https://dapcoventures.com/
Author: DAPCO Ventures
Description: Premium, lightweight block theme for DAPCO Ventures. No page builder. Products and Companies are managed from the admin. Built-in SEO (meta, Open Graph, schema.org) that steps aside when Yoast or Rank Math is active.
Version: 1.3.0
Requires at least: 6.5
Tested up to: 6.8
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: dapco
*/

html { scroll-behavior: smooth; }
:where(section[id]) { scroll-margin-top: 96px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #1F97B0; color: #fff; }
:focus-visible { outline: 2px solid #1F97B0; outline-offset: 3px; }

/* ---------- Header ---------- */
.dapco-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86) !important; backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(11,11,12,.07); }
.dapco-header .wp-block-site-logo img, .dapco-logo img { height: auto; }
.dapco-header .wp-block-navigation a:hover { color: #13708A; }
.dapco-header .wp-block-button__link { padding: .6rem 1.2rem; }

/* ---------- Dark sections ---------- */
.dapco-dark { position: relative; overflow: hidden; isolation: isolate; }
.dapco-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 88% 0%, rgba(31,151,176,.32), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(31,151,176,.14), transparent 60%);
}
.dapco-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 90%); mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
}
.dapco-dark .wp-block-button__link:hover { background: #fff !important; color: #0B0B0C !important; }
.dapco-dark .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.35); }

/* ---------- Typography helpers ---------- */
.dapco-eyebrow { display: flex; align-items: center; gap: .6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; font-size: .78rem !important; }
.dapco-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #1F97B0; box-shadow: 0 0 0 4px rgba(31,151,176,.18); }
.dapco-lead { max-width: 46rem; }

/* ---------- Stats ---------- */
.dapco-stats { border-top: 1px solid rgba(255,255,255,.12); }
.dapco-stats .wp-block-column { border-left: 1px solid rgba(255,255,255,.12); padding-left: 1.25rem; }
.dapco-stats .wp-block-column:first-child { border-left: 0; padding-left: 0; }
.dapco-stat-num { font-family: var(--wp--preset--font-family--display); font-size: clamp(2.2rem, 4vw, 3.2rem) !important; line-height: 1 !important; font-weight: 500; color: #fff; }
.dapco-stat-num mark { background: transparent; color: #1F97B0; }

/* ---------- Cards ---------- */
.dapco-card { height: 100%; position: relative; border: 1px solid var(--wp--preset--color--line); border-radius: 20px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.dapco-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(11,11,12,.25); border-color: rgba(31,151,176,.45); }
.dapco-card::after { content: ""; position: absolute; left: 1.75rem; right: 1.75rem; top: -1px; height: 2px; border-radius: 2px; background: #1F97B0; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.dapco-card:hover::after { transform: scaleX(1); }
.dapco-card .wp-block-post-featured-image { margin: 0; }
.dapco-card .wp-block-post-featured-image img { object-fit: contain; object-position: left center; max-height: 44px; width: auto; }
.dapco-card .wp-block-post-title a { text-decoration: none; }
.dapco-card .wp-block-post-excerpt { flex-grow: 1; }
.dapco-card .wp-block-post-excerpt__more-text { display: none; }
.dapco-card .wp-block-buttons { margin-top: auto; }
.dapco-visit .wp-block-button__link { padding: .55rem 1.1rem; font-size: .88rem; }

/* ---------- Industry list ---------- */
.dapco-pillar { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.25rem; }
.dapco-pillar .dapco-num { font-family: var(--wp--preset--font-family--display); color: #1F97B0; font-weight: 500; }

/* ---------- Trust badges ---------- */
.dapco-badges p { margin: 0 !important; padding: .5rem 1rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: .85rem; background: rgba(255,255,255,.03); }

/* ---------- Offices ---------- */
.dapco-office { border-radius: 20px; border: 1px solid var(--wp--preset--color--line); background: #fff; height: 100%; }
.dapco-flag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #13708A; }

/* ---------- Footer ---------- */
.dapco-footer a { text-decoration: none; }
.dapco-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dapco-footer h2 { font-family: var(--wp--preset--font-family--sans); font-size: .78rem !important; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: #fff; }

/* ---------- Single product ---------- */
.dapco-single-hero .wp-block-post-featured-image img { max-height: 56px; width: auto; object-fit: contain; }

@media (max-width: 781px) {
  .dapco-stats .wp-block-column { border-left: 0; padding-left: 0; }
  .dapco-header .dapco-header-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dapco-card, .dapco-card::after { transition: none; }
}

/* Seamless header/footer joins and mobile stat grid */
.wp-site-blocks > footer, .wp-site-blocks > header, .wp-site-blocks > main { margin-block-start: 0; }
@media (max-width: 781px) {
  .dapco-stats.wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
}

/* =========================================================
   v1.2 — Imagery, pages, forms, legal, logos
   ========================================================= */

/* ---------- Hero media ---------- */
.dapco-media { position: relative; margin: 0; }
.dapco-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.dapco-media.is-hero::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid rgba(31,151,176,.45); border-radius: 26px; z-index: -1; }
.dapco-media:not(.is-hero) img { box-shadow: 0 30px 60px -32px rgba(11,11,12,.35); }
.dapco-float { position: absolute; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-radius: 16px; background: rgba(255,255,255,.92); color: #0B0B0C; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); line-height: 1.25; }
.dapco-float strong { display: block; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1rem; }
.dapco-float small { display: block; color: #62646A; font-size: .78rem; }
.dapco-float-a { left: -28px; bottom: 34px; }
.dapco-float-b { right: -18px; top: 30px; border-left: 3px solid #1F97B0; }
.dapco-float-dot { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at center, #1F97B0 0 38%, #0B0B0C 39% 62%, transparent 63%); flex: none; }
.dapco-art { aspect-ratio: 4 / 3.3; border-radius: 24px; position: relative; overflow: hidden;
  background: radial-gradient(420px 300px at 75% 20%, rgba(31,151,176,.45), transparent 60%), linear-gradient(145deg, #17181B, #0B0B0C);
  border: 1px solid rgba(255,255,255,.08); }
.dapco-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; }
.dapco-art-dot { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; border: 18px solid rgba(255,255,255,.9); }
.dapco-art-dot::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: #1F97B0; }
.dapco-section:not(.is-dark) .dapco-art, .dapco-page-hero .dapco-art { background: radial-gradient(420px 300px at 75% 20%, rgba(31,151,176,.35), transparent 60%), linear-gradient(145deg, #1d1e22, #0B0B0C); }

/* ---------- Page hero ---------- */
.dapco-page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--wp--preset--color--surface); padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(2.75rem, 5vw, 4.5rem); border-bottom: 1px solid var(--wp--preset--color--line); }
.dapco-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 320px at 92% 0%, rgba(31,151,176,.16), transparent 70%); }
.dapco-page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7; background-image: radial-gradient(rgba(11,11,12,.07) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); mask-image: linear-gradient(to left, #000, transparent 70%); }
.dapco-page-hero h1, .dapco-page-hero .wp-block-post-title { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-top: .5rem; }
.dapco-page-hero .dapco-lead { color: var(--wp--preset--color--muted); max-width: 44rem; }
.dapco-page-hero.is-product { padding-bottom: clamp(3rem, 6vw, 5rem); }
.dapco-page-hero.is-product .wp-block-post-title { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }

/* ---------- Page sections (used inside page content) ---------- */
.dapco-page-content { padding-bottom: 0; }
.dapco-page-content > .wp-block-post-content > :first-child:not(.dapco-section) { margin-top: var(--wp--preset--spacing--50); }
.dapco-page-content > .wp-block-post-content > :last-child:not(.dapco-section) { margin-bottom: var(--wp--preset--spacing--60); }
.wp-block-post-content > .dapco-section { margin-block: 0; }
.dapco-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.dapco-section.is-surface { background: var(--wp--preset--color--surface); }
.dapco-section.is-dark { background: #0B0B0C; color: #A3A5AA; position: relative; overflow: hidden; isolation: isolate; }
.dapco-section.is-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 420px at 88% 0%, rgba(31,151,176,.30), transparent 65%); }
.dapco-section.is-dark h2, .dapco-section.is-dark h3 { color: #fff; }
.dapco-section.is-dark .dapco-eyebrow { color: #E8E9EB; }
.dapco-section.is-dark .wp-block-button__link { background: #1F97B0; color: #0B0B0C; }
.dapco-section.is-dark .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.dapco-section.is-dark .wp-block-button__link:hover { background: #fff; color: #0B0B0C; }
.dapco-section > h2, .dapco-section > .dapco-eyebrow { max-width: var(--wp--style--global--wide-size); }
.dapco-section > h2 { margin-bottom: var(--wp--preset--spacing--40); }
.dapco-section .has-text-align-center { margin-left: auto !important; margin-right: auto !important; }
.dapco-lead-center { max-width: 38rem; font-size: var(--wp--preset--font-size--large); }
.dapco-section .wp-block-columns.are-vertically-aligned-center { align-items: center; }

/* ---------- Grids & cards ---------- */
.dapco-grid { gap: 1.25rem !important; }
.dapco-feature { border: 1px solid var(--wp--preset--color--line); border-radius: 18px; background: #fff; padding: 1.6rem; transition: border-color .2s ease, transform .2s ease; }
.dapco-feature:hover { border-color: rgba(31,151,176,.45); transform: translateY(-2px); }
.dapco-feature h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.dapco-feature p { margin: 0; color: var(--wp--preset--color--muted); font-size: .97rem; }
.dapco-feature .dapco-num { margin-bottom: .75rem; font-size: .95rem; }
.dapco-feature.is-dark-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.dapco-feature.is-dark-card p { color: #A3A5AA; }
.dapco-step-card { border-top: 3px solid #1F97B0; }
.dapco-mini { padding: 1rem 1.25rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.dapco-mini .dapco-num { grid-row: span 2; margin: 0; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--wp--preset--color--brand-tint); color: #13708A; font-size: .85rem; }
.dapco-mini h3 { font-size: 1rem; margin: 0 0 .15rem; }
.dapco-stat-card { padding: 1.5rem; border-radius: 18px; background: #fff; border: 1px solid var(--wp--preset--color--line); }
.dapco-stat-card p { margin: 0; color: var(--wp--preset--color--muted); }
.dapco-big { font-family: var(--wp--preset--font-family--display); font-size: clamp(2.2rem, 4vw, 3rem) !important; line-height: 1 !important; color: #0B0B0C !important; font-weight: 500; margin-bottom: .5rem !important; }
.dapco-office { padding: 2rem; }
.dapco-office p:last-child { margin-bottom: 0; }

/* ---------- Lists ---------- */
.dapco-checks { list-style: none; padding-left: 0; }
.dapco-checks li { position: relative; padding-left: 2rem; margin: .55rem 0; }
.dapco-checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #E7F4F7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2313708A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.dapco-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; max-width: var(--wp--style--global--wide-size); }
.dapco-chips li { padding: .6rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); font-weight: 500; }

/* ---------- Logos, types, monograms ---------- */
.dapco-card-head { width: 100%; min-height: 56px; gap: .75rem; }
.dapco-logo-slot { margin: 0 !important; }
.dapco-logo-slot img { max-height: 48px !important; width: auto !important; max-width: 190px; object-fit: contain !important; object-position: left center; border-radius: 0 !important; }
.dapco-logo-slot.is-lg img { max-height: 64px !important; max-width: 240px; }
.dapco-company-card .dapco-logo-slot img { max-height: 56px !important; }
.dapco-monogram { width: 48px; height: 48px; border-radius: 14px; background: #0B0B0C; color: #fff; display: grid; place-items: center; position: relative; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.dapco-monogram::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 7px; height: 7px; border-radius: 50%; background: #1F97B0; }
.dapco-company-card .dapco-monogram { width: 56px; height: 56px; }
.dapco-logo-slot.is-lg .dapco-monogram { width: 64px; height: 64px; font-size: 1.3rem; border-radius: 18px; }
.dapco-type { font-size: .72rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #13708A; background: var(--wp--preset--color--brand-tint); padding: .35rem .7rem; border-radius: 999px; line-height: 1.2; white-space: nowrap; }
.dapco-company-card .dapco-type { align-self: flex-start; }
.dapco-type .wp-block-post-terms__separator { opacity: .5; }

/* ---------- Card actions ---------- */
.dapco-card-actions { margin-top: auto; gap: 1rem; width: 100%; }
.dapco-more { font-weight: 600; font-size: .9rem; text-decoration: none; color: #0B0B0C; }
.dapco-more::after { content: " →"; color: #1F97B0; }
.dapco-more:hover { color: #13708A; }
.dapco-card .wp-block-buttons { margin-top: 0 !important; }

/* ---------- Product / company page ---------- */
.dapco-photo { margin: 0; position: relative; }
.dapco-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 70px -30px rgba(11,11,12,.4); display: block; }
.dapco-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(31,151,176,.4); border-radius: 26px; z-index: -1; }
.dapco-photo.is-fallback { aspect-ratio: 4 / 3.2; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(380px 260px at 75% 20%, rgba(31,151,176,.4), transparent 60%), linear-gradient(145deg, #1d1e22, #0B0B0C); }
.dapco-monogram.is-xl { width: 120px; height: 120px; font-size: 2.4rem; border-radius: 32px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); }
.dapco-monogram.is-xl::after { width: 14px; height: 14px; right: 14px; bottom: 14px; }
.dapco-entity-body { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.dapco-entity-body h2 { margin-top: var(--wp--preset--spacing--50); margin-bottom: 1.25rem; }
.dapco-entity-body h2:first-child { margin-top: 0; }
.dapco-entity-body > .wp-block-post-content > p { font-size: 1.12rem; }
.dapco-more-section, .dapco-list-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.dapco-more-section h2 { margin-bottom: var(--wp--preset--spacing--40); }

/* ---------- Product gallery ---------- */
.dapco-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.25rem; margin: 1rem 0 2rem; }
.dapco-shot { margin: 0; }
.dapco-shot-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); }
.dapco-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.dapco-shot figcaption { margin-top: .7rem; font-size: .92rem; font-weight: 500; color: var(--wp--preset--color--body); }
.dapco-step { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #0B0B0C; color: #fff; font-size: .75rem; margin-right: .4rem; }

/* ---------- Forms ---------- */
.dapco-form-panel { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 30px 70px -40px rgba(11,11,12,.35); }
.dapco-form-panel > h3 { margin-top: 0; font-size: 1.4rem; }
.dapco-form { margin: 0; }
.dapco-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.dapco-field { margin: 0 0 1rem; }
.dapco-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: #0B0B0C; }
.dapco-form input[type=text], .dapco-form input[type=email], .dapco-form input[type=tel], .dapco-form select, .dapco-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: .97rem; color: #0B0B0C; background: #fff; border: 1px solid #D5D8DD; border-radius: 12px; padding: .8rem .95rem; transition: border-color .15s ease, box-shadow .15s ease; }
.dapco-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2362646A' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem; padding-right: 2.4rem; }
.dapco-form input:focus, .dapco-form select:focus, .dapco-form textarea:focus { outline: none; border-color: #1F97B0; box-shadow: 0 0 0 4px rgba(31,151,176,.15); }
.dapco-form textarea { resize: vertical; min-height: 8rem; }
.dapco-consent { font-size: .85rem; color: var(--wp--preset--color--muted); }
.dapco-consent input { margin-right: .4rem; accent-color: #1F97B0; }
.dapco-submit { border: 0; cursor: pointer; background: #0B0B0C; color: #fff; border-radius: 999px; padding: .95rem 1.8rem; font-weight: 600; font-size: .97rem; transition: background .15s ease; }
.dapco-submit:hover { background: #13708A; }
.dapco-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dapco-form-error { background: #FDECEC; color: #8A1C1C; border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; }
.dapco-form-success { text-align: center; padding: 2.5rem 1rem; }
.dapco-form-success h3 { margin: .75rem 0 .5rem; }
.dapco-success-icon { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #E7F4F7; color: #13708A; font-size: 1.4rem; font-weight: 700; }
.dapco-form-embed iframe { width: 100%; border: 0; min-height: 640px; }

/* ---------- Legal ---------- */
.dapco-legal-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem !important; }
.dapco-legal-nav a { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--line); background: #fff; text-decoration: none; color: #0B0B0C; font-size: .88rem; font-weight: 500; }
.dapco-legal-nav a:hover { border-color: #1F97B0; color: #13708A; }
.dapco-legal-wrap { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.dapco-legal { counter-reset: legal; }
.dapco-legal h2 { font-size: 1.4rem; margin: 2.5rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--line); }
.dapco-legal h2:first-of-type { border-top: 0; padding-top: 0; }
.dapco-legal p, .dapco-legal li { color: #3a3b3f; }
.dapco-legal li { margin: .45rem 0; }
.dapco-intro { font-size: 1.15rem; color: var(--wp--preset--color--body) !important; }
.dapco-legal-aside .dapco-office { position: sticky; top: 110px; background: var(--wp--preset--color--surface); }

/* ---------- Blog cards ---------- */
.dapco-post-card { padding: 0 !important; overflow: hidden; }
.dapco-post-card .wp-block-post-featured-image { margin: 0; width: 100%; }
.dapco-post-card .wp-block-post-featured-image img { border-radius: 0; width: 100%; }
.dapco-post-card-body { padding: 1.4rem 1.6rem 1.6rem; }
.dapco-post-hero-img img { border-radius: 20px; }
.dapco-search { max-width: 30rem; margin-top: 1.5rem; }
.dapco-search .wp-block-search__input { border-radius: 999px; border: 1px solid #D5D8DD; padding: .75rem 1.1rem; }
.dapco-search .wp-block-search__button { border-radius: 999px; background: #0B0B0C; color: #fff; border: 0; padding: .75rem 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
  .dapco-field-row { grid-template-columns: 1fr; }
  .dapco-float-a { left: 12px; bottom: 12px; }
  .dapco-float-b { right: 12px; top: 12px; }
  .dapco-media.is-hero::before, .dapco-photo::before { display: none; }
  .dapco-hero .wp-block-columns { gap: 2.5rem; }
  .dapco-legal-aside .dapco-office { position: static; }
}

/* Brand full stops / plus signs: never a highlighter background. */
mark.has-inline-color { background: transparent !important; color: #1F97B0; }

/* Card grids fill the row evenly (no empty columns). */
.dapco-grid.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)) !important; }
@media (min-width: 960px) {
  .dapco-grid.is-layout-grid:not(:has(.dapco-mini)):has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr) !important; }
  .dapco-grid.is-layout-grid:not(:has(.dapco-mini)):has(> :nth-child(3):last-child),
  .dapco-grid.is-layout-grid:not(:has(.dapco-mini)):has(> :nth-child(5):last-child),
  .dapco-grid.is-layout-grid:not(:has(.dapco-mini)):has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr) !important; }
}
.dapco-grid.is-layout-grid:has(.dapco-mini) { grid-template-columns: 1fr !important; }

.dapco-legal-aside { align-self: flex-start; position: sticky; top: 110px; }
.dapco-legal-aside .dapco-office { position: static; }
@media (max-width: 781px) { .dapco-legal-aside { position: static; } }

/* ---------- Logos: one consistent, compact size ---------- */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.dapco-logo-slot img { height: 40px !important; max-height: 40px !important; width: auto !important; max-width: 170px !important; object-fit: contain !important; object-position: left center; }
.dapco-company-card .dapco-logo-slot img { height: 44px !important; max-height: 44px !important; max-width: 180px !important; }
.dapco-logo-slot.is-lg img { height: 64px !important; max-height: 64px !important; max-width: 300px !important; }
.dapco-logo-slot a { display: inline-block; line-height: 0; }
.dapco-company-card .dapco-card-head, .dapco-company-card .dapco-logo-slot { min-height: 48px; display: flex; align-items: center; }

.dapco-card-head { flex-wrap: wrap !important; row-gap: .6rem; }

/* Product cards: type label on top, logo below */
.dapco-product-grid .dapco-type { align-self: flex-start; }
.dapco-product-grid .dapco-logo-slot { min-height: 48px; display: flex; align-items: center; }

/* Company cards: everything centred */
.dapco-company-card { align-items: center !important; text-align: center; }
.dapco-company-card .dapco-logo-slot { justify-content: center; width: 100%; }
.dapco-company-card .dapco-logo-slot img { object-position: center !important; }
.dapco-company-card .dapco-type { align-self: center; }
.dapco-company-card .dapco-card-actions { justify-content: center; }

/* ---------- Header dropdown ---------- */
.dapco-header .wp-block-navigation__submenu-container { background: #fff !important; border: 1px solid var(--wp--preset--color--line) !important; border-radius: 14px; padding: .5rem !important; box-shadow: 0 20px 40px -20px rgba(11,11,12,.25); min-width: 190px !important; }
.dapco-header .wp-block-navigation__submenu-container a { padding: .5rem .75rem !important; border-radius: 8px; }
.dapco-header .wp-block-navigation__submenu-container a:hover { background: var(--wp--preset--color--surface); }

/* ---------- Footer payments ---------- */
.dapco-payments { gap: 1rem 2rem; }
.dapco-payments p { margin: 0; max-width: 32rem; }
.dapco-payments-img { height: 30px; width: auto; max-width: 100%; opacity: .85; display: block; }

/* ---------- Careers ---------- */
.dapco-jobs { display: grid; gap: .75rem; max-width: var(--wp--style--global--wide-size); }
.dapco-job { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.5rem; padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease; }
.dapco-job:hover { border-color: rgba(31,151,176,.5); transform: translateY(-2px); }
.dapco-job h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.dapco-job p { margin: 0; color: var(--wp--preset--color--muted); font-size: .95rem; }
.dapco-job-meta { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.dapco-job-meta span { font-size: .78rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--wp--preset--color--brand-tint); color: #13708A; white-space: nowrap; }
.dapco-job-go { font-size: 1.3rem; color: #1F97B0; }
.dapco-jobs-empty { background: #fff; border: 1px dashed #cfd3d8; border-radius: 16px; padding: 2rem; max-width: var(--wp--style--global--wide-size); }
.dapco-jobs-empty h3 { margin-top: 0; }
.dapco-job-facts { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.dapco-job-facts span { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: .6rem 1rem; font-weight: 600; }
.dapco-job-facts small { display: block; font-weight: 500; color: var(--wp--preset--color--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.dapco-apply { background: #0B0B0C; color: #A3A5AA; border-radius: 20px; padding: 1.75rem; margin-bottom: 1rem; }
.dapco-apply h3 { color: #fff; margin-top: 0; }
.dapco-apply .dapco-submit { background: #1F97B0; color: #0B0B0C; display: inline-block; text-decoration: none; }
.dapco-apply .dapco-submit:hover { background: #fff; }
@media (max-width: 781px) { .dapco-job { grid-template-columns: 1fr; gap: .75rem; } .dapco-job-meta { justify-content: flex-start; } .dapco-job-go { display: none; } }

/* ---------- Case study / blog cards ---------- */
.dapco-post-card-body .dapco-type { align-self: flex-start; }
.dapco-post-card .wp-block-post-featured-image:empty { display: none; }

@media (min-width: 960px) { .wp-block-columns .wp-block-column .dapco-grid.is-layout-grid.is-layout-grid:not(:has(.dapco-mini)) { grid-template-columns: repeat(2, 1fr) !important; } }

.dapco-type { width: fit-content; max-width: 100%; }
