/* utf8-marker = äöü */
/*
 * adrega2026 — template stylesheet for adrega.com on CMSimple_XH (AB#22135).
 * Built from the Claude Design canvas "Adrega website" and the Adrega design system.
 * Layout lives here; page content uses the .ds-* section classes documented in the
 * repo's CLAUDE.md, so editors change words, not structure.
 */

:root {
  --ds-ink: #212529;
  --ds-chrome: #33373B;
  --ds-chrome-2: #474B4F;
  --ds-chrome-hover: #5D6166;
  --ds-muted: #5D6166;
  --ds-subtle: #8B8D90;
  --ds-line: #BABBBD;
  --ds-rule: #E1E1E4;
  --ds-surface: #F7F7F9;
  --ds-white: #FFFFFF;
  --ds-accent: #E75C01;
  --ds-accent-hover: #C24C00;
  /* Text on orange: #16191C gives 4.98:1 (the design's #212529 gives 4.36:1, under WCAG AA 4.5:1). */
  --ds-on-accent: #16191C;
  --ds-link-strong: #9E5000;
  --ds-link: #B25A00;
  --ds-tint: #FEF5F0;
  --ds-tint-2: #F9D2BC;
  --ds-on-dark-accent: #F5B085;
  --ds-on-dark-muted: #BABBBD;
  --ds-on-dark: #E1E1E4;
  --ds-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ds-white); color: var(--ds-ink); font-family: var(--ds-font); font-size: 16px; line-height: 1.5; }
a { color: var(--ds-link); }
a:hover { color: var(--ds-accent-hover); }
:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; }

.ds-skip { position: absolute; left: -10000px; top: 0; z-index: 100; background: var(--ds-white); color: var(--ds-ink); padding: 12px 18px; font-weight: 700; }
.ds-skip:focus { left: 12px; top: 12px; }
.ds-accent { color: var(--ds-accent); }
/* Visually hidden, still read by screen readers. */
.ds-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ds-main:focus { outline: none; }
/* Bootstrap g-4/g-5 rows reach past the 0.75rem phone gutter; clip without making a scroll container. */
.ds-main { overflow-x: clip; }

/* Plain editor content (news items, simple pages) gets container width by default. */
.ds-main > :where(h1, h2, h3, h4, p, ul, ol, table, figure, blockquote, hr, iframe, form, div:not([class])) {
  max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: 0.75rem; padding-right: 0.75rem;
}
.ds-main > :where(h1, h2, h3, h4, p, ul, ol, table, figure, blockquote, hr, iframe, form, div:not([class])) { width: 100%; }
.ds-main > h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; }
.ds-main > h1:first-child { margin-top: 60px; }
.ds-main > :last-child:not(section) { margin-bottom: 84px; }

/* ---------- Campaign strip ---------- */
.ds-campaign { background: var(--ds-accent); color: var(--ds-on-accent); }
.ds-campaign__inner { padding-top: 9px; padding-bottom: 9px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center; font-size: 15px; text-align: center; }
.ds-campaign p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center; font-weight: 600; }
.ds-campaign strong { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; background: var(--ds-ink); color: var(--ds-white); padding: 3px 9px; }
.ds-campaign a { color: var(--ds-on-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 3px 0; }
.ds-campaign a:hover { color: var(--ds-on-accent); text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.ds-header { background: var(--ds-chrome); color: var(--ds-white); }
.ds-header__inner { display: flex; flex-wrap: wrap; align-items: stretch; column-gap: 24px; min-height: 60px; }
.ds-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ds-white); padding: 12px 0; }
.ds-brand:hover { color: var(--ds-white); }
.ds-brand__name { font-size: 21px; font-weight: 700; white-space: nowrap; }
.ds-nav { display: flex; flex-wrap: wrap; flex: 1 1 auto; font-size: 17px; }
.ds-nav__link { color: var(--ds-white); text-decoration: none; padding: 4px 18px 0; display: flex; align-items: center; min-height: 60px; border-bottom: 4px solid transparent; }
.ds-nav__link:hover { color: var(--ds-white); background: var(--ds-chrome-hover); }
.ds-nav__link.is-active { background: var(--ds-chrome-2); border-bottom-color: var(--ds-accent); }
.ds-header__actions { display: flex; align-items: center; gap: 18px; font-size: 15px; padding: 8px 0; }
.ds-header__meta { color: var(--ds-on-dark); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.ds-header__meta:hover { color: var(--ds-white); text-decoration: underline; }
.ds-header__flag { margin-right: 6px; }

@media (max-width: 991.98px) {
  .ds-nav { order: 3; flex-basis: 100%; margin-left: calc(var(--bs-gutter-x) * -.5); margin-right: calc(var(--bs-gutter-x) * -.5); }
  .ds-nav__link { min-height: 48px; padding: 2px 12px 0; }
  .ds-header__actions { margin-left: auto; }
}
@media (max-width: 575.98px) {
  .ds-header__inner { column-gap: 12px; }
  .ds-header__actions { gap: 12px; }
  .ds-brand__name { font-size: 19px; }
}

/* ---------- Buttons ---------- */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--ds-accent); color: var(--ds-on-accent); text-decoration: none; font-weight: 700; font-size: 17px; padding: 15px 24px; border: 0; border-radius: 0; cursor: pointer; font-family: inherit; line-height: 1.2; }
/* Hover keeps the orange (a darker fill would drop text contrast to ~3.2:1) and adds the design's underline motif. */
.ds-btn:hover { background: var(--ds-accent); color: var(--ds-on-accent); box-shadow: inset 0 -4px 0 var(--ds-accent-hover); }
.ds-btn--sm { font-size: 15px; padding: 9px 18px; }
.ds-btn--md { font-size: 16px; padding: 12px 18px; }
.ds-btn--ghost { background: transparent; color: var(--ds-white); font-weight: 600; border: 1px solid var(--ds-subtle); padding: 14px 23px; }
.ds-btn--ghost:hover { background: var(--ds-white); color: var(--ds-ink); }
.ds-btn--secondary { background: var(--ds-white); color: var(--ds-link); font-weight: 600; border: 1px solid var(--ds-accent); padding: 14px 23px; }
.ds-btn--secondary:hover { background: var(--ds-tint); color: var(--ds-accent-hover); }
.ds-link-strong { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.ds-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Sections ---------- */
.ds-section { padding-top: 84px; padding-bottom: 84px; }
.ds-section--tight { padding-top: 30px; padding-bottom: 30px; }
.ds-section--muted { background: var(--ds-surface); border-top: 1px solid var(--ds-rule); border-bottom: 1px solid var(--ds-rule); }
.ds-section--dark { background: var(--ds-ink); color: var(--ds-white); }
.ds-section h2 { margin: 0 0 12px; font-size: 34px; letter-spacing: -0.01em; max-width: 780px; }
.ds-section h3 { margin: 0; }
.ds-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ds-link); margin: 0 0 12px; }
.ds-section--dark .ds-eyebrow, .ds-panel-dark .ds-eyebrow { color: var(--ds-on-dark-accent); }
.ds-display { margin: 0; font-size: clamp(36px, 5vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.ds-display--sm { font-size: clamp(34px, 4.6vw, 50px); }
.ds-actions--stack { flex-direction: column; align-items: stretch; text-align: center; }
.ds-actions--stack .ds-link-strong { justify-content: center; }
.ds-social { margin: 0; }
.ds-lead { margin: 0 0 36px; color: var(--ds-muted); font-size: 18px; max-width: 720px; text-wrap: pretty; }
.ds-section--dark .ds-lead { color: var(--ds-on-dark); font-size: 19px; max-width: 620px; margin-bottom: 0; }
.ds-fineprint { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--ds-on-dark-muted); margin: 0; }
.ds-stack { display: flex; flex-direction: column; gap: 24px; }
.ds-prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; color: var(--ds-chrome-2); }
.ds-section--dark .ds-prose { color: var(--ds-on-dark); }
.ds-prose p { margin: 0; }
.ds-prose--wrap { display: block; overflow: auto; }
.ds-prose--wrap p { margin: 0 0 18px; }
.ds-prose--wrap p:last-child { margin-bottom: 0; }

/* Proof strip */
.ds-proof__item { display: flex; flex-direction: column; gap: 3px; }
.ds-proof__value { font-size: 22px; font-weight: 700; }
.ds-proof__label { color: var(--ds-muted); }

/* Cards */
.ds-card { height: 100%; background: var(--ds-white); border: 1px solid var(--ds-rule); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.ds-card--hover:hover { border-color: var(--ds-accent); }
.ds-card--sm { padding: 24px; gap: 9px; }
.ds-card h3 { font-size: 26px; }
.ds-card--sm h3 { font-size: 18px; }
.ds-card p, .ds-card ul { margin: 0; color: var(--ds-muted); }
.ds-card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ds-card .ds-actions { margin-top: auto; padding-top: 6px; }
.ds-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ds-card__top .ds-eyebrow { margin: 0; }
.ds-card .ds-eyebrow, .ds-cta .ds-eyebrow { color: var(--ds-link); margin: 0; font-size: 13px; letter-spacing: 0.1em; }
.ds-cta--dark .ds-eyebrow { color: var(--ds-on-dark-accent); }
.ds-tag { font-size: 12px; font-weight: 700; background: var(--ds-tint-2); color: var(--ds-ink); padding: 3px 9px; }
.ds-badge { background: var(--ds-accent); color: var(--ds-on-accent); font-weight: 700; padding: 3px 9px; font-size: 13px; }

/* Feature grid with icons */
.ds-feature { display: flex; flex-direction: column; gap: 12px; }
.ds-feature h3 { font-size: 19px; }
.ds-feature p { margin: 0; color: var(--ds-muted); }

/* CTA bands */
.ds-cta { background: var(--ds-tint); border: 1px solid var(--ds-tint-2); padding: 42px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.ds-cta__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.ds-cta__text h2 { margin: 0; font-size: 32px; }
.ds-cta__text p { margin: 0; color: var(--ds-muted); font-size: 18px; }
.ds-cta--dark { background: var(--ds-chrome); color: var(--ds-white); border: 0; border-bottom: 4px solid var(--ds-accent); }
.ds-cta--dark .ds-cta__text p { color: var(--ds-on-dark); }
.ds-cta--dark a:not(.ds-btn) { color: var(--ds-white); }

/* Dark panel (Primavera campaign card, news teaser) */
.ds-panel-dark { background: var(--ds-chrome); color: var(--ds-white); padding: 36px; border-bottom: 4px solid var(--ds-accent); }
.ds-panel-light { background: var(--ds-white); color: var(--ds-ink); padding: 30px; display: flex; flex-direction: column; gap: 12px; border-top: 6px solid var(--ds-accent); }
.ds-panel-light h2 { margin: 0; font-size: 26px; }
.ds-panel-light p { margin: 0; color: var(--ds-muted); }

/* Flow diagram (Primavera) */
.ds-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.ds-flow__node { flex: 0 1 222px; border: 1px solid var(--ds-line); padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.ds-flow__node--dark { background: var(--ds-chrome); color: var(--ds-white); border: 0; border-bottom: 4px solid var(--ds-accent); }
.ds-flow__kicker { font-size: 12px; color: var(--ds-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.ds-flow__node--dark .ds-flow__kicker { color: var(--ds-on-dark-accent); }
.ds-flow__name { font-weight: 700; font-size: 18px; }
.ds-flow__outputs { flex: 0 1 276px; display: flex; flex-direction: column; gap: 6px; }
.ds-flow__outputs > * { background: var(--ds-surface); border: 1px solid var(--ds-rule); padding: 9px 18px; font-weight: 600; }

/* News */
.ds-news-featured { display: flex; flex-direction: column; gap: 15px; background: var(--ds-chrome); color: var(--ds-white); padding: 42px; border-bottom: 4px solid var(--ds-accent); }
.ds-news-featured h2, .ds-news-featured h3 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.ds-news-featured p { margin: 0; color: var(--ds-on-dark); font-size: 18px; max-width: 640px; }
.ds-news-featured a:not(.ds-btn) { color: var(--ds-white); }
.ds-news-meta { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ds-on-dark-muted); flex-wrap: wrap; }
.ds-news-item { background: var(--ds-white); border: 1px solid var(--ds-rule); padding: 24px 30px; }
.ds-news-item:hover { border-color: var(--ds-accent); }
.ds-news-item h3 { margin: 0 0 9px; font-size: 21px; }
.ds-news-item p { margin: 0; color: var(--ds-muted); }
.ds-news-item .ds-news-meta { color: var(--ds-muted); }
.ds-news-kind { font-weight: 700; color: var(--ds-link); }
.ds-video { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--ds-ink); text-decoration: none; border-bottom: 4px solid var(--ds-accent); }
.ds-video__thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-video__play { width: 54px; height: 54px; background: var(--ds-accent); display: flex; align-items: center; justify-content: center; }
.ds-video__label { position: absolute; left: 12px; bottom: 9px; font-size: 12px; color: var(--ds-on-dark-muted); }

/* Contact block */
.ds-contact-item { display: flex; flex-direction: column; gap: 3px; }
.ds-contact-item__label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ds-muted); }

/* ---------- Layout helpers ---------- */
.ds-align-center { align-items: center; }
.ds-pt-sm { padding-top: 48px; }
.ds-pb-sm { padding-bottom: 36px; }
.ds-pt-md { padding-top: 60px; }
.ds-section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.ds-section-head h2 { margin: 0; }
.ds-page-title { margin: 0 0 9px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.ds-section h1.ds-page-title + .ds-lead { margin-bottom: 36px; }
.ds-section-title { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; }
.ds-backlink { margin-top: 36px; margin-bottom: 0; }
.ds-backlink a { font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.ds-note { background: var(--ds-surface); border: 1px solid var(--ds-rule); padding: 15px 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 18px 0 0; }
.ds-note a { font-weight: 700; }
.ds-form-panel { background: var(--ds-white); border: 1px solid var(--ds-rule); padding: 24px; }
.ds-form-panel--placeholder { border-style: dashed; color: var(--ds-muted); }
.ds-aside { background: var(--ds-surface); border: 1px solid var(--ds-rule); padding: 24px; display: flex; flex-direction: column; gap: 9px; }
.ds-aside h2 { margin: 0 0 6px; font-size: 21px; }
.ds-aside a, .ds-aside span { min-height: 28px; display: inline-flex; align-items: center; }
.ds-social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ds-social a { min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- Feature icons (CSS, so the editor cannot strip them) ---------- */
.ds-feature--chart::before, .ds-feature--grid::before, .ds-feature--lines::before, .ds-feature--doc::before {
  content: ''; display: block; width: 30px; height: 30px; background: no-repeat center / 30px 30px;
}
.ds-feature--chart::before { background-image: url(images/icons/chart.svg); }
.ds-feature--grid::before { background-image: url(images/icons/grid.svg); }
.ds-feature--lines::before { background-image: url(images/icons/lines.svg); }
.ds-feature--doc::before { background-image: url(images/icons/doc.svg); }

/* Flow diagram arrows */
.ds-flow { column-gap: 78px; }
.ds-flow > :not(:last-child) { position: relative; }
.ds-flow > :not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -63px; width: 48px; height: 24px; margin-top: -12px; background: url(images/icons/arrow.svg) no-repeat center; }
@media (max-width: 767.98px) {
  .ds-flow { flex-direction: column; row-gap: 54px; }
  .ds-flow > * { flex-basis: auto; width: 100%; max-width: 320px; }
  .ds-flow > :not(:last-child)::after { top: auto; right: auto; left: 50%; bottom: -39px; margin: 0 0 0 -24px; transform: rotate(90deg); }
}
.ds-flow__outputs > * { margin: 0; }

/* Video thumbnail play button */
.ds-video__play::before { content: ''; display: block; width: 24px; height: 24px; background: url(images/icons/play.svg) no-repeat center; }
.ds-video:hover .ds-video__play { box-shadow: inset 0 -4px 0 var(--ds-accent-hover); }

/* News: featured, list and Home teaser */
.ds-news-featured { display: block; }
.ds-news-featured__text { display: flex; flex-direction: column; gap: 15px; }
.ds-news-featured__text .ds-news-meta { margin: 0; }
.ds-news-featured h2 a { color: var(--ds-white); text-decoration: none; }
.ds-news-featured h2 a:hover { text-decoration: underline; }
.ds-news-featured__aside { display: flex; flex-direction: column; gap: 12px; }
.ds-news-featured__aside .ds-btn { text-align: center; }
.ds-news-featured__aside .ds-link-strong { justify-content: center; color: var(--ds-white); }
.ds-section .ds-news-earlier { margin: 36px 0 18px; font-size: 22px; }
.ds-news-item + .ds-news-item { margin-top: 18px; }
.ds-news-item__meta { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--ds-muted); }
.ds-news-item h3 a { color: var(--ds-ink); text-decoration: none; }
.ds-news-item h3 a:hover { color: var(--ds-link); text-decoration: underline; }
p.ds-news-kind { margin-top: 60px; margin-bottom: 0; font-size: 14px; }
.ds-main > p.ds-news-kind + h1 { margin-top: 6px; }
.ds-backlink + p.ds-news-kind { margin-top: 6px; }
.ds-news-teaser { height: 100%; background: var(--ds-chrome); color: var(--ds-white); text-decoration: none; padding: 36px; display: flex; flex-direction: column; gap: 12px; border-bottom: 4px solid var(--ds-accent); }
.ds-news-teaser:hover { color: var(--ds-white); background: #3B3F43; }
.ds-news-teaser .ds-news-meta { font-size: 13px; }
.ds-news-teaser__title { font-size: 30px; line-height: 1.2; font-weight: 700; }
.ds-news-teaser__text { color: var(--ds-on-dark); font-size: 17px; max-width: 600px; }
.ds-news-teaser__more { margin-top: auto; padding-top: 12px; color: var(--ds-on-dark-accent); font-weight: 700; }
.ds-card--flush { padding: 0; gap: 0; }
.ds-card__body { padding: 24px; display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.ds-card__body h3 { font-size: 21px; }
.ds-card__meta { font-size: 13px; color: var(--ds-muted); }
.ds-card__more { margin-top: auto; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- Forms (Advancedform_XH, markup from plugins/adrega/forms.php) ---------- */
/* Advancedform adds its own notice and buttons; the design uses our labels and button instead. */
form:has(.ds-form) > .required, form:has(.ds-form) > .buttons { display: none; }
.ds-form { color: var(--ds-ink); }
.ds-order__step { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.ds-order__legend { font-size: 20px; font-weight: 700; margin-bottom: 15px; padding: 0; }
.ds-order__picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ds-pick { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 24px 54px; background: var(--ds-white); border: 2px solid var(--ds-rule); cursor: pointer; }
.ds-pick:hover { border-color: var(--ds-accent); }
.ds-pick:has(.ds-pick__radio:checked) { background: var(--ds-tint); border-color: var(--ds-accent); }
.ds-pick:has(.ds-pick__radio:focus-visible) { outline: 2px solid var(--ds-ink); outline-offset: 2px; }
.ds-pick__radio { position: absolute; left: 24px; top: 27px; width: 18px; height: 18px; margin: 0; accent-color: var(--ds-accent); }
.ds-pick__kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-link-strong); }
.ds-pick__name { font-size: 19px; font-weight: 700; }
.ds-pick__text { color: var(--ds-muted); }
/* The demo-site hint appears only while the Primavera product is chosen (design behaviour, no JS). */
.ds-order__p6note { display: none; }
.ds-order:has(#ds-pick-1:checked) .ds-order__p6note { display: flex; }
.ds-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; background: var(--ds-white); border: 1px solid var(--ds-rule); padding: 24px; }
@media (max-width: 575.98px) { .ds-form__grid { grid-template-columns: minmax(0, 1fr); padding: 18px; } }
.ds-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ds-field--wide { grid-column: 1 / -1; }
.ds-field label { font-weight: 600; font-size: 14px; }
.ds-opt { font-weight: 400; color: var(--ds-muted); }
.ds-field input, .ds-field textarea { font: inherit; padding: 9px 12px; min-height: 44px; border: 1px solid var(--ds-line); border-radius: 0; background: var(--ds-white); color: var(--ds-ink); width: 100%; }
.ds-field textarea { min-height: 120px; resize: vertical; }
.ds-field input:focus, .ds-field textarea:focus { outline: 2px solid var(--ds-accent); outline-offset: 0; border-color: var(--ds-accent); }
.ds-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ds-form__actions { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.ds-form__actions--split { justify-content: space-between; }
.ds-contact-form .ds-form__grid { border-bottom: 0; }
.ds-contact-form .ds-form__actions { background: var(--ds-white); border: 1px solid var(--ds-rule); border-top: 0; margin: 0; padding: 0 24px 24px; }
/* Advancedform's error list (validation messages) */
.ds-main form .xh_fail, .ds-main form ul.advfrm-errors { margin: 0 0 18px; }

/* Validation errors (reCAPTCHA failure, missing fields, …) — red and visible. */
.ds-main ul.advfrm-error {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid #ECC7BF;
  border-left: 4px solid #C0392B;
  background: #FDECEA;
  color: #B3261E;
}

/* ---------- Footer ---------- */
.ds-footer { background: var(--ds-chrome); color: var(--ds-on-dark); font-size: 15px; padding-top: 54px; padding-bottom: 30px; }
.ds-footer a { color: var(--ds-on-dark); }
.ds-footer a:hover { color: var(--ds-white); }
.ds-footer__col { display: flex; flex-direction: column; gap: 3px; }
.ds-footer__col a, .ds-footer__col > span:not(.ds-brand) { padding: 3px 0; }
.ds-footer__social a { padding: 3px 0; }
.ds-footer__title { color: var(--ds-white); font-weight: 700; }
.ds-footer a.ds-footer__hot { color: var(--ds-on-dark-accent); font-weight: 600; }
.ds-brand--footer { padding: 0; }
.ds-brand--footer .ds-brand__name { font-size: 19px; }
.ds-footer__social { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.ds-footer__legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--ds-chrome-2); font-size: 13px; color: var(--ds-on-dark-muted); }

/* ---------- Image Lightbox ---------- */
.ds-main img:not(a img) {
  cursor: zoom-in;
}

.ds-imglb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 24px;
}

.ds-imglb.is-open {
  display: flex;
}

.ds-imglb__img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  cursor: default;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ds-imglb__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  padding: 0 12px;
}

.ds-imglb__close:hover {
  color: var(--ds-accent);
}

.ds-videolb__wrap {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ds-videolb__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Phone ---------- */
@media (max-width: 575.98px) {
  .ds-section { padding-top: 54px; padding-bottom: 54px; }
  .ds-section h2 { font-size: 28px; }
  .ds-cta, .ds-news-featured, .ds-panel-dark { padding: 24px; }
  .ds-imglb { padding: 12px; }
  .ds-videolb__wrap {
    width: 95vw;
  }
}

@media print {
  .ds-campaign, .ds-header__actions, .ds-nav, .ds-skip { display: none; }
  .ds-header, .ds-footer, .ds-section--dark { background: none; color: #000; }
}
