/* Design Secure theme styles. Colours come from theme.json presets. */
:root {
	--ds-ink: var(--wp--preset--color--ink, #2B2B28);
	--ds-charcoal: var(--wp--preset--color--charcoal, #3A3A3A);
	--ds-yellow: var(--wp--preset--color--yellow, #FCCC00);
	--ds-paper: var(--wp--preset--color--paper, #F7F6F2);
	--ds-stone: var(--wp--preset--color--stone, #E9E7E1);
	--ds-muted: var(--wp--preset--color--muted, #55534D);
	--ds-white: #FFFFFF;
	--ds-radius: 6px;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.ds-main { margin-block-start: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(.wp-site-blocks) > main { margin-top: 0; }
a { text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--ds-yellow); outline-offset: 2px; }
.has-ink-background-color :focus-visible, .has-charcoal-background-color :focus-visible { outline-color: var(--ds-yellow); }
h1, h2, h3, h4, h5 { text-wrap: balance; }

/* ---------- Header ---------- */
.ds-header { padding-top: 14px; padding-bottom: 14px; position: relative; z-index: 20; }
.ds-header__row { gap: 12px 24px; align-items: center; }
.ds-brand { gap: 14px; align-items: center; flex-wrap: nowrap !important; }
.ds-brand .wp-block-site-logo img { height: auto; max-height: 76px; width: auto; }
.ds-tagline { margin: 0; font-size: 15px; letter-spacing: 0.06em; color: var(--ds-stone); line-height: 1.3; max-width: 13em; }
.ds-nav-wrap { gap: 10px 22px; align-items: center; }
.ds-nav { font-size: 16px; gap: 6px 22px; }
.ds-nav a { color: var(--ds-paper); text-decoration: none; }
.ds-nav a:hover, .ds-nav .current-menu-item > a, .ds-nav a[aria-current="page"] { color: var(--ds-yellow); }
.ds-nav .wp-block-navigation-item:nth-last-child(2) a { font-weight: 700; } /* Specified Products */
.ds-nav-cta .wp-block-button__link { padding: 9px 16px; font-size: 15px; }
.ds-header .wp-block-navigation__responsive-container-open, .ds-header .wp-block-navigation__responsive-container-close { color: var(--ds-paper); }
.ds-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--ds-ink) !important; color: var(--ds-paper) !important; padding: 24px; }
.ds-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px; font-size: 22px; }
@media (max-width: 781px) {
	.ds-tagline { display: none; }
	.ds-brand .wp-block-site-logo img { max-height: 58px; }
	.ds-nav-cta { display: none; }
}

/* ---------- Sections ---------- */
.ds-section { padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(40px, 5vw, 48px); }
.ds-section--tight { padding-top: clamp(32px, 5vw, 48px); padding-bottom: clamp(32px, 5vw, 48px); }
.ds-section--tight-top { padding-top: 16px; padding-bottom: clamp(56px, 8vw, 88px); }
.ds-section--tight-bottom { padding-bottom: 24px; }
.ds-section > h2:first-child, .ds-section > .wp-block-heading:first-child { margin-top: 0; }
.ds-intro { max-width: 720px; margin-bottom: 32px !important; }
.ds-section > h2 + .ds-grid { margin-top: 32px; }
.ds-band { padding-top: clamp(48px, 7vw, 72px); padding-bottom: clamp(48px, 7vw, 72px); }
.ds-band__row { gap: 24px 32px; align-items: center; }
.ds-band__text { flex: 999 1 520px; min-width: 0; }
.ds-band__text > * { margin-top: 0; }
.ds-band__text h2 { margin-bottom: 12px; }
.ds-band p { color: var(--ds-stone); max-width: 640px; }
.ds-link-yellow a, .ds-band a:not(.wp-block-button__link) { color: var(--ds-yellow); font-weight: 700; }
.ds-link-strong a { font-weight: 700; }

/* ---------- Hero ---------- */
.ds-hero.wp-block-cover { padding: clamp(56px, 9vw, 96px) 24px; min-height: 0; align-items: center; }
.ds-hero .wp-block-cover__inner-container { width: 100%; }
.ds-hero.ds-hero--home { padding-top: clamp(64px, 9vw, 88px); padding-bottom: clamp(64px, 10vw, 96px); }
.ds-hero h1 { margin: 0 0 20px; color: var(--ds-paper); }
.ds-hero:not(.ds-hero--home) h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.12; }
.ds-eyebrow { margin-top: 0 !important; margin-bottom: 12px !important; color: var(--ds-yellow); font-weight: 700; letter-spacing: 0.12em; font-size: 14px; text-transform: uppercase; }
.ds-eyebrow--muted { color: var(--ds-muted); font-size: 13px; letter-spacing: 0.1em; }
.ds-lead { font-size: clamp(18px, 2vw, 20px); color: var(--ds-stone); max-width: 640px; margin-top: 0 !important; margin-bottom: 28px !important; }
.ds-hero__cols { gap: 48px; align-items: center !important; margin: 0; }
.ds-hero .wp-block-buttons { gap: 14px; }
.ds-hero .wp-block-button.is-style-outline .wp-block-button__link, .is-style-outline .wp-block-button__link { background: transparent; border: 2px solid var(--ds-yellow); color: var(--ds-paper); padding: 12px 24px; }
.ds-hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(252, 204, 0, 0.12); }
.ds-feebox { background: var(--ds-ink); border: 1px solid var(--ds-yellow); border-radius: var(--ds-radius); padding: 28px; }
.ds-feebox .ds-eyebrow { font-size: 14px; letter-spacing: 0.1em; margin-bottom: 6px !important; }
.ds-price { font-size: 48px; font-weight: 700; line-height: 1.1; margin-top: 0 !important; margin-bottom: 8px !important; color: var(--ds-paper); }
.ds-feebox .ds-small { color: var(--ds-stone); margin: 0; }
.ds-band-hero { padding-top: clamp(48px, 7vw, 64px); padding-bottom: clamp(44px, 6vw, 56px); }
.ds-band-hero h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; }
.ds-band-hero .ds-lead { margin-bottom: 0 !important; }
.ds-band-hero .wp-block-post-title { margin: 0; }

/* ---------- Grids and cards ---------- */


.ds-card { background: var(--ds-white); border-radius: var(--ds-radius); padding: 28px; border-top: 4px solid var(--ds-charcoal); }
.ds-card > * { margin-top: 0; }
.ds-card > * + * { margin-top: 12px; }
.ds-card h3 { font-size: clamp(21px, 2.2vw, 24px); margin-bottom: 10px; }
.ds-card p:last-child { margin-bottom: 0; }
.ds-card--yellow { border-top-color: var(--ds-yellow); padding: 20px 22px; }
.ds-card--yellow h4, .ds-card--yellow h5 { font-size: 18px; margin-bottom: 8px; }
.ds-card--yellow p { font-size: 16px; }
.ds-card--plain { border-top: 0; padding: 24px; }
.ds-card--dark { background: var(--ds-ink); color: var(--ds-paper); border-top-color: var(--ds-yellow); }
.ds-card--dark p { color: var(--ds-stone); }
.ds-card--dark a { color: var(--ds-yellow); font-weight: 700; }
.ds-card--link { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.ds-card--link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(43, 43, 40, .08); }
.ds-card--link h2, .ds-card--link h3 { font-size: 21px; margin-bottom: 8px; }
.ds-card--link h2 a, .ds-card--link h3 a { color: var(--ds-ink); text-decoration: none; }
.ds-card--link h2 a::after, .ds-card--link h3 a::after { content: ""; position: absolute; inset: 0; }
.ds-muted { color: var(--ds-muted); }
.ds-small { font-size: 15px; }
.ds-small.ds-muted, .ds-card .ds-small { font-size: 16px; }
.ds-figure { font-size: 28px; font-weight: 700; margin-top: 0 !important; margin-bottom: 6px !important; line-height: 1.2; }
.ds-tile { background: var(--ds-white); border-radius: var(--ds-radius); padding: 14px 18px; margin: 0 !important; }
.ds-strong { font-weight: 700; }

/* Steps */
.ds-step { position: relative; padding-left: 64px; min-height: 48px; }
.ds-step > * { margin-top: 0; }
.ds-step__num { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--ds-charcoal); color: var(--ds-paper); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; margin: 0 !important; }
.ds-step h3 { font-size: 22px; margin-bottom: 6px; }

/* Photos and projects */

.ds-photo { margin: 0; }
.ds-photo img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--ds-radius); display: block; }
.ds-photo figcaption { margin-top: 8px; font-size: 15px; color: var(--ds-muted); text-align: left; }
.ds-project > * { margin-top: 0; }
.ds-project__img { margin: 0; }
.ds-project__img img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--ds-radius); display: block; }
.ds-thumbs { margin-top: 8px !important; }
.ds-thumb { margin: 0; }
.ds-thumb img { width: 100%; height: 72px; object-fit: cover; border-radius: 4px; display: block; }
.ds-project h3 { margin: 18px 0 8px; font-size: 22px; }
.ds-project h3 a { color: var(--ds-ink); text-decoration: none; }
.ds-project h3 a:hover { text-decoration: underline; }

/* Team */
.ds-person { background: var(--ds-white); border-radius: var(--ds-radius); padding: 24px; gap: 24px !important; align-items: flex-start !important; flex-wrap: wrap; }
.ds-portrait { margin: 0; flex: none; }
.ds-portrait img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; filter: grayscale(100%) contrast(0.9) brightness(1.08); border: 3px solid var(--ds-yellow); }
.ds-person__text { flex: 999 1 260px; min-width: 0; }
.ds-person__text > * { margin-top: 0; }
.ds-person__text h3 { font-size: 24px; margin-bottom: 4px; }
.ds-role { color: var(--ds-muted); font-weight: 700; font-size: 16px; margin-top: 0 !important; margin-bottom: 14px !important; }

/* CTA panels */
.ds-cta { background: var(--ds-yellow); color: var(--ds-ink); border-radius: var(--ds-radius); padding: 28px 32px; gap: 20px; align-items: center; }
.ds-cta--dark { background: var(--ds-ink); color: var(--ds-paper); margin-top: 56px !important; }
.ds-cta--dark p { color: var(--ds-stone); }
.ds-cta__text { flex: 999 1 380px; min-width: 0; }
.ds-cta__text > * { margin: 0 !important; }
.ds-cta__text > * + * { margin-top: 6px !important; }
.ds-lead-strong { font-weight: 700; font-size: 24px; }
.wp-block-button.is-style-ds-dark .wp-block-button__link { background: var(--ds-ink); color: var(--ds-paper); }
.wp-block-button.is-style-ds-dark .wp-block-button__link:hover { background: var(--ds-charcoal); }

/* Contact */
.ds-contact { gap: 48px; }
.ds-contact h2 { margin-top: 0; }
.ds-contact p { margin: 0 0 8px; }

/* ---------- Guides ---------- */
.ds-pills { gap: 10px; margin-bottom: 24px; }
.ds-pill { margin: 0 !important; border: 1px solid var(--ds-yellow); font-size: 14px; padding: 5px 12px; border-radius: 999px; }
.ds-pill--solid { background: var(--ds-yellow); font-weight: 700; }
.ds-guide-head { padding-top: clamp(36px, 6vw, 56px); padding-bottom: clamp(36px, 6vw, 56px); border-bottom: 6px solid var(--ds-yellow); }
.ds-guide-head__row { gap: 12px 28px; align-items: center; max-width: 960px; margin-left: auto !important; margin-right: auto !important; flex-wrap: nowrap; }
.ds-guide-head__num { font-size: clamp(64px, 9vw, 88px); font-weight: 700; line-height: 0.85; color: var(--ds-yellow); margin: 0 !important; }
.ds-guide-head__text { flex: 1 1 auto; min-width: 0; }
.ds-guide-head__text > * { margin-top: 0; }
.ds-guide-head h1 { font-size: clamp(32px, 4.5vw, 42px); line-height: 1.08; margin: 0; }
.ds-guide-head .ds-eyebrow { letter-spacing: 0.14em; font-size: 15px; margin-bottom: 8px !important; }

.ds-prose { padding-top: 40px; padding-bottom: clamp(48px, 7vw, 72px); }
.ds-prose > p:first-child { font-size: 19px; }
.ds-prose h2 { font-size: clamp(26px, 3.4vw, 32px); margin-top: 56px; margin-bottom: 16px; }
.ds-prose h3 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin-top: 56px; margin-bottom: 16px; padding: 4px 0 4px 16px; border-left: 6px solid var(--ds-yellow); }
.ds-prose h4 { font-size: 22px; margin-top: 32px; margin-bottom: 12px; }
.ds-prose .ds-card h4, .ds-prose .ds-card h5 { margin-top: 0; padding: 0; border: 0; }
.ds-prose .ds-card h4 { font-size: 20px; margin-bottom: 8px; }
.ds-prose ul, .ds-prose ol { padding-left: 22px; }
.ds-prose li + li { margin-top: 6px; }
.ds-prose .ds-grid { margin-top: 16px; }
.ds-prose .ds-small { color: var(--ds-muted); }
.ds-callout { background: var(--ds-paper); border: 1px solid var(--ds-yellow); border-radius: var(--ds-radius); padding: 18px 22px; font-size: 16px; margin-top: 20px !important; }
.ds-callout > * { margin: 0; }
.ds-callout--raised { background: var(--ds-white); margin-top: 0 !important; margin-bottom: 32px !important; }
.ds-help { background: var(--ds-ink); color: var(--ds-paper); border-radius: var(--ds-radius); padding: 24px 28px; border-top: 4px solid var(--ds-yellow); margin-top: 32px !important; }
.ds-help > * { margin: 0; }
.ds-help .ds-eyebrow { font-size: 14px; letter-spacing: 0.08em; margin-bottom: 6px !important; }
.ds-prose .ds-cta { margin-top: 32px; }
.ds-more { margin-top: 56px !important; border-top: 1px solid var(--ds-stone); padding-top: 24px; }
.ds-more h2 { margin-top: 0 !important; font-size: 22px; }
.ds-small-heading { font-size: 18px !important; }
.ds-more--legal p a { white-space: nowrap; }

/* Tables */
.ds-table { margin: 0; background: var(--ds-white); border-radius: var(--ds-radius); overflow-x: auto; }
.ds-table table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.ds-table thead { border: 0; }
.ds-table th { background: var(--ds-ink); color: var(--ds-paper); text-align: left; padding: 12px 16px; border: 0; font-weight: 700; }
.ds-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--ds-stone); vertical-align: top; }
.ds-table tr:last-child td { border-bottom: 0; }
.ds-table--facts table { min-width: 0; font-size: 17px; }
.ds-table--facts td:first-child { width: 34%; }
.ds-prose .ds-table + p.ds-small { margin-top: 12px; }

/* ---------- Footer ---------- */
.ds-footer { padding-top: 32px; padding-bottom: 32px; font-size: 15px; }
.ds-footer__row { gap: 16px 32px; align-items: flex-start; }
.ds-footer p { margin: 0 0 6px; }
.ds-footer a { color: var(--ds-yellow); }
.ds-footer__id { flex: 1 1 380px; }
.ds-footer__nav { flex: 1 1 420px; }
.ds-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
@media (max-width: 781px) { .ds-footer__links { justify-content: flex-start; } }

/* Mobile tweaks */
@media (max-width: 600px) {
	.ds-card { padding: 22px; }
	.ds-cta { padding: 24px; }
	.ds-guide-head__row { flex-wrap: wrap; }
	.ds-hero .wp-block-buttons .wp-block-button { width: 100%; }
	.ds-hero .wp-block-buttons .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Text blocks with their own measure stay left-aligned inside constrained sections. */
.is-layout-constrained > .ds-intro, .is-layout-constrained > .ds-lead, .is-layout-constrained > p.ds-small {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; margin-right: auto !important; }
.ds-card:not(.ds-card--dark) .ds-eyebrow { color: var(--ds-muted); font-size: 13px; letter-spacing: 0.1em; }
