/*
 * Components added with the admin-managed content system (MD message, team, certifications,
 * downloads, register table, blog, cookie banner, forms feedback, ...).
 * Uses the design tokens from styles.css; logical properties keep it RTL-safe.
 */

/* Single intro image fills its column */
.about-intro-img-grid:has(> img:only-child) { grid-template-columns: 1fr; }
.about-intro-img-grid:has(> img:only-child) img { height: clamp(300px, 34vw, 460px); }

/* Balanced grids for 3 / 6 items (the base grid is 4 columns) */
.values-grid:has(> :nth-child(6):last-child), .values-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1060px) { .values-grid:has(> :nth-child(6):last-child), .values-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .values-grid:has(> :nth-child(6):last-child), .values-grid:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; } }

/* Rich text coming from the admin editor */
.rich > * + * { margin-block-start: 1em; }
.rich p { color: #555; font-size: 15px; line-height: 1.75; }
.rich ul, .rich ol { padding-inline-start: 1.25em; color: #555; font-size: 15px; line-height: 1.7; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich h2 { font-size: 1.5em; line-height: 1.2; }
.rich a { color: var(--orange-dark); text-decoration: underline; }
.rich h2, .rich h3, .rich h4 { margin: 1.4em 0 .4em; font-family: var(--font-display); font-weight: 680; color: var(--text); }
.rich blockquote { margin: 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--orange); color: #444; font-style: italic; }
.section-copy.rich p { margin-block-end: 0; }

/* Brand logo (uploaded) */
.brand-logo { display: block; height: auto; width: auto; max-height: 52px; max-width: min(230px, 56vw); object-fit: contain; }
/* Logos are usually dark artwork on transparency: give them a light plate on the dark footer. */
.brand-light .brand-logo { padding: 8px 12px; background: #fff; border-radius: 4px; max-height: 60px; }
.footer .legal-link { font-size: 11.5px; color: #a3a3a3; }
.footer .legal-link:hover { color: #fff; }
.client-logo { max-height: 44px; width: auto; margin-inline: auto; object-fit: contain; }

/* Form feedback */
.form-alert { margin-block-end: 22px; padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.form-alert--success { color: #fff; background: #15803d; }
.form-alert--error { color: #7f1d1d; background: #fee2e2; border: 1px solid #fecaca; }
.field-error { display: block; margin-block-start: 6px; color: #dc2626; font-size: 12.5px; font-weight: 500; }
.quote-form-wrap .field-error { color: #ffb4a0; }
.quote-form-wrap .form-alert--error { color: #fff; background: rgba(220, 38, 38, .35); border-color: rgba(255, 255, 255, .25); }

/* Cookie banner */
.cookie-banner { position: fixed; inset-inline: 18px; inset-block-end: 18px; z-index: 9990; max-width: 520px; display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; color: #e8e8e8; background: var(--black); border: 1px solid #2a2a2a; border-inline-start: 3px solid var(--orange); box-shadow: 0 18px 46px rgba(0, 0, 0, .35); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 40px; padding: 0 18px; }
.cookie-actions .btn-line { color: #fff; }
@media (min-width: 760px) { .cookie-banner { inset-inline-end: auto; } }

/* Commitments (chips) */
.commitment-label { margin: 28px 0 10px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.commitment-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.commitment-list li { padding: 8px 14px; color: var(--text); background: #fff; border: 1px solid #e3e3e3; border-inline-start: 3px solid var(--orange); font-size: 13px; font-weight: 600; }

/* Managing director message */
.md-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 4.5vw, 76px); }
.md-grid--full { align-items: start; margin-block-start: 8px; }
.md-portrait { position: relative; margin: 0; }
.md-portrait img, .md-portrait-fallback { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; background: #ececea; }
.md-portrait-fallback { display: grid; place-items: center; background: linear-gradient(160deg, #202020, #0f0f0f); color: var(--orange); font-family: var(--font-display); font-size: clamp(72px, 9vw, 130px); font-weight: 700; }
.md-portrait::after { content: ''; position: absolute; inset-block-end: -14px; inset-inline-start: -14px; width: 46%; height: 46%; z-index: -1; border-block-end: 4px solid var(--orange); border-inline-start: 4px solid var(--orange); }
.md-portrait figcaption { position: absolute; inset-inline: 0; inset-block-end: 0; display: flex; flex-direction: column; gap: 2px; padding: 22px 20px 18px; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent); }
.md-portrait figcaption strong { font-family: var(--font-display); font-size: 18px; }
.md-portrait figcaption span { font-size: 12.5px; color: #d6d6d6; }
.md-body h2 { margin: 0 0 18px; color: var(--text); font-family: var(--font-display); font-size: clamp(28px, 2.4vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.04em; }
.md-quote { position: relative; margin: 0 0 24px; padding-inline-start: 22px; border-inline-start: 4px solid var(--orange); color: var(--text); font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 25px); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.md-message { margin-block-end: 26px; }
.md-signoff { display: flex; flex-direction: column; gap: 3px; margin-block-end: 26px; }
.md-signoff strong { color: var(--text); font-family: var(--font-display); font-size: 17px; }
.md-signoff span { color: var(--muted); font-size: 13.5px; }
.md-signature { height: 52px; width: auto; margin-block-end: 8px; object-fit: contain; object-position: start; }
.md-video { margin-block-start: clamp(32px, 4vw, 52px); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.md-video iframe, .md-video video { width: 100%; height: 100%; border: 0; display: block; }
.md-teaser .md-grid { grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); }
.md-teaser .md-portrait img, .md-teaser .md-portrait-fallback { aspect-ratio: 4 / 4.4; }

/* Objectives */
.objective-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 8px 0 0; padding: 0; list-style: none; }
.objective-item { display: flex; align-items: flex-start; gap: 18px; padding: 24px; background: #fff; border: 1px solid #e5e5e5; transition: border-color var(--transition), transform var(--transition); }
.objective-item:hover { border-color: rgba(249, 115, 22, .4); transform: translateY(-2px); }
.objective-num { flex: 0 0 auto; color: var(--orange); font-family: var(--font-display); font-size: 30px; font-weight: 750; line-height: 1; letter-spacing: -.04em; }
.objective-item h3 { margin: 0; color: var(--text); font-family: var(--font-body); font-size: 15.5px; line-height: 1.55; font-weight: 600; }
.objective-item p { margin: 6px 0 0; color: #666; font-size: 13.5px; line-height: 1.6; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card { position: relative; background: #fff; border: 1px solid #e5e5e5; padding-block-end: 22px; text-align: center; transition: border-color var(--transition), box-shadow var(--transition); }
.team-card:hover { border-color: rgba(249, 115, 22, .4); box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 4 / 4.6; overflow: hidden; background: #ececea; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo span { display: grid; height: 100%; place-items: center; color: var(--orange); font-family: var(--font-display); font-size: 64px; font-weight: 700; }
.team-card h3 { margin: 18px 18px 2px; color: var(--text); font-family: var(--font-display); font-size: 18px; font-weight: 680; }
.team-role { margin: 0 18px; color: var(--orange-dark); font-size: 13px; font-weight: 650; }
.team-bio { margin: 10px 18px 0; color: #666; font-size: 13px; line-height: 1.6; }
.team-link { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-block-start: 14px; color: #fff; background: var(--dark); font-size: 12px; font-weight: 700; }
.team-link:hover { background: var(--orange); }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.cert-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid #e5e5e5; }
.cert-mark { flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; color: var(--orange); background: rgba(249, 115, 22, .08); }
.cert-mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-mark svg { width: 30px; height: 30px; }
.cert-card h3 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 680; }
.cert-issuer { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.cert-meta { display: grid; gap: 4px; margin: 12px 0; font-size: 13px; }
.cert-meta div { display: flex; gap: 8px; }
.cert-meta dt { color: var(--muted); }
.cert-meta dd { margin: 0; color: var(--text); font-weight: 600; }

/* Organization chart */
.org-chart { margin: 0; padding: 18px; background: #fff; border: 1px solid #e5e5e5; }
.org-chart img { width: 100%; height: auto; margin-inline: auto; }

/* Downloads */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.doc-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid #e5e5e5; transition: border-color var(--transition), box-shadow var(--transition); }
.doc-card:hover { border-color: rgba(249, 115, 22, .5); box-shadow: var(--shadow); }
.doc-icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; color: var(--orange); background: rgba(249, 115, 22, .08); }
.doc-icon svg { width: 24px; height: 24px; }
.doc-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc-text strong { font-family: var(--font-display); font-size: 16px; font-weight: 680; }
.doc-text small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.doc-action { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-dark); font-size: 12.5px; font-weight: 700; }
.doc-action svg { width: 16px; height: 16px; }

/* Clients page cards */
.client-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.client-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 22px; text-align: center; background: #fff; border: 1px solid #e5e5e5; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.client-card:hover { border-color: rgba(249, 115, 22, .4); box-shadow: var(--shadow); transform: translateY(-3px); }
.client-card .logo-symbol { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: var(--orange); font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.client-card h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 16.5px; line-height: 1.3; font-weight: 680; }
.client-card p { margin: 0; color: var(--muted); font-size: 13px; }

/* Project register */
.register-toolbar { margin-block: 22px 18px; }
.register-toolbar .filter-bar { justify-content: flex-start; }
.register-scroll { overflow-x: auto; background: #fff; border: 1px solid #e5e5e5; }
.register-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.register-table th { padding: 14px 16px; color: #fff; background: var(--dark); font-size: 12px; font-weight: 650; letter-spacing: .05em; text-align: start; text-transform: uppercase; white-space: nowrap; }
.register-table td { padding: 13px 16px; border-block-start: 1px solid #eee; color: #444; vertical-align: middle; }
.register-table tbody tr:nth-child(even) { background: #fafaf9; }
.register-table tbody tr:hover { background: rgba(249, 115, 22, .05); }
.register-table tr[hidden] { display: none; }
.register-table td:first-child { width: 56px; color: var(--muted); font-variant-numeric: tabular-nums; }
.register-table td a { color: var(--text); font-weight: 650; }
.register-table td a:hover { color: var(--orange-dark); }
.register-status { display: inline-block; padding: 4px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: #166534; background: #dcfce7; }
.register-status.ongoing { color: #9a3412; background: #ffedd5; }
@media (max-width: 720px) {
    .register-table thead { display: none; }
    .register-table, .register-table tbody, .register-table tr, .register-table td { display: block; width: 100%; }
    .register-table tr { padding: 12px 14px; border-block-start: 1px solid #e5e5e5; }
    .register-table td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; text-align: end; }
    .register-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 650; text-align: start; }
    .register-table td:first-child { width: 100%; }
}

/* Project detail */
.spotlight-showcase--single { grid-template-columns: 1fr; }
.scope-block { margin-block-start: 28px; }
.scope-block > strong { display: block; margin-block-end: 10px; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.scope-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.scope-list li { padding: 7px 13px; color: var(--text); background: #f4f4f2; border-inline-start: 3px solid var(--orange); font-size: 13px; font-weight: 600; }
.project-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.gallery-item-card { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #111; box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.gallery-item-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item-card:hover img { transform: scale(1.05); }

/* Careers */
.career-job-card .job-summary { margin-block-end: 4px; }
.job-details { margin-block-start: 14px; font-size: 14px; }
.job-details summary { display: flex; align-items: center; gap: 9px; width: fit-content; color: var(--orange-dark); font-weight: 650; cursor: pointer; list-style: none; }
.job-details summary::-webkit-details-marker { display: none; }
/* Chevron like the FAQ: points along the reading direction, turns down when open. */
.job-details summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; }
html[dir="rtl"] .job-details summary::before { transform: rotate(135deg); }
.job-details[open] summary::before { transform: rotate(45deg); }
/* Apply buttons line up along the bottom of the cards, with air above them. */
.career-job-card .job-footer-row { margin-block-start: auto; padding-block-start: 24px; }
.job-details h4 { margin: 14px 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cv-drop-form .field { margin-block-end: 16px; }
.empty-note { padding: 32px; color: var(--muted); text-align: center; background: #fafaf9; border: 1px dashed #d8d8d5; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e5e5; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.post-card:hover { border-color: rgba(249, 115, 22, .4); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ececea; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px; }
.post-card-body h3 { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.3; font-weight: 680; letter-spacing: -.02em; }
.post-card-body h3 a:hover { color: var(--orange-dark); }
.post-card-body > p { margin: 0; color: #666; font-size: 14px; line-height: 1.6; }
.post-card-body .text-link { margin-block-start: auto; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--muted); font-size: 12.5px; }
.pagination-simple { display: flex; align-items: center; justify-content: center; gap: 22px; margin-block-start: 40px; font-size: 14px; font-weight: 650; }
.pagination-simple a { color: var(--orange-dark); }
.pagination-simple .is-disabled { color: #b5b5b5; }
.pagination-simple .page-status { color: var(--muted); }

/* Contact map */
.map-section { height: clamp(300px, 34vw, 440px); background: #ececea; }
.map-section iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Custom-page blocks */
.block-narrow { max-width: 860px; }
.about-grid--reverse .about-media { order: 2; }
.cta-center { max-width: 760px; text-align: center; }
.cta-center .btn { margin-inline: auto; }

/* Error page */
.error-page-inner { max-width: 620px; text-align: center; padding-block: 40px; }
.error-code { margin: 0; color: var(--orange); font-family: var(--font-display); font-size: clamp(84px, 14vw, 160px); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.error-page h1 { margin: 6px 0 12px; font-size: clamp(26px, 3vw, 38px); }
.error-page p { color: #666; }

/* Rich content inside dark quote form keeps its own colours */
.why-title small { display: block; margin-block-start: 10px; color: #bdbdbd; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }

@media (max-width: 1060px) {
    .md-grid, .md-teaser .md-grid { grid-template-columns: 1fr; }
    .md-portrait { max-width: 420px; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .objective-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .post-grid { grid-template-columns: 1fr; }
    .doc-card { flex-wrap: wrap; }
}

/* Quote form inside the white contact card: two columns, full-width message/upload/submit */
.contact-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.contact-form .form-grid .field-message, .contact-form .form-grid .upload-field { grid-column: 1 / -1; grid-row: auto; }
.contact-form .upload-field { margin-block-end: 18px; }
.contact-form .upload-field label { border-color: #cfcfcf; background: #fafafa; color: #222; }
.contact-form .upload-field label > svg { color: var(--orange); }
.contact-form .upload-field span, .contact-form .upload-field small { color: #6b6b6b; }
.contact-form .submit-button { grid-column: 1 / -1; float: none; width: 100%; margin-block-start: 4px; }
.office-showcase-card .btn { width: 100%; }
@media (max-width: 720px) { .contact-form .form-grid { grid-template-columns: 1fr; } }

/* Dark quote section (home): keep fields aligned in a 3 column grid regardless of optional fields */
.quote-form-wrap .form-grid .field-message { grid-column: 1 / 3; }
.quote-form-wrap .form-grid .upload-field { grid-column: 3; grid-row: auto; align-self: stretch; }
.quote-form-wrap .form-grid .upload-field label { height: 100%; min-height: 132px; }
.quote-form-wrap .submit-button { float: none; grid-column: 3; margin-inline-start: auto; }

/* Careers application form (white card): labels above fields, readable contrast */
.cv-drop-form .field { margin-block-end: 16px; }
.cv-drop-form .field label { position: static; display: block; margin-block-end: 6px; color: #222; font-size: 12.5px; font-weight: 650; letter-spacing: normal; pointer-events: auto; }
.cv-drop-form .field label em { color: var(--orange); font-style: normal; }
.cv-drop-form .field input, .cv-drop-form .field select, .cv-drop-form .field textarea { width: 100%; height: 48px; padding: 10px 16px; color: #111; border: 1px solid #d4d4d4; border-radius: 2px; outline: none; background: #fafafa; font-size: 14px; }
.cv-drop-form .field textarea { height: 104px; min-height: 104px; resize: vertical; }
.cv-drop-form .field input:focus, .cv-drop-form .field select:focus, .cv-drop-form .field textarea:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px rgba(249, 115, 22, .12); }
.cv-drop-form .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 14px) 21px; background-size: 4px 4px; background-repeat: no-repeat; }
[dir="rtl"] .cv-drop-form .field select { background-position: 18px 21px, 14px 21px; }
.cv-drop-form .upload-field { grid-column: auto; grid-row: auto; margin-block-end: 16px; }
.cv-drop-form .upload-field label { height: 110px; min-height: 110px; border-color: #cfcfcf; background: #fafafa; color: #222; }
.cv-drop-form .upload-field label > svg { color: var(--orange); }
.cv-drop-form .upload-field span, .cv-drop-form .upload-field small { color: #6b6b6b; }
.cv-drop-text .section-label { color: var(--orange); }

/* ---- Accessible contrast (WCAG AA) ------------------------------------------------------
   The brand orange (#f97316) is only 2.8:1 on white, so it stays for decoration, icons and text on
   dark sections. Filled controls use the deeper --orange-fill with white text (4.6:1); orange text
   on light backgrounds uses --orange-dark. */
.skip-link, .btn-primary, .card-number, .step-num, .hiring-step-num, .experience-card, .spotlight-tag,
.filter-btn.active, .filter-btn:hover, .portfolio-badge.status-ongoing, .testimonial-avatar,
.client-card .logo-symbol, .back-to-top, .btn-line:hover, .btn-outline:hover, .socials a:hover, .team-link:hover,
.client-partner-card:hover .client-partner-logo span.logo-sym { color: var(--on-orange); background-color: var(--orange-fill); }
.filter-btn.active, .filter-btn:hover, .btn-outline:hover, .socials a:hover { border-color: var(--orange-fill); }
.btn-primary:hover { color: var(--on-orange); background-color: var(--orange-fill-hover); }
.btn-primary:disabled, .btn-primary:disabled:hover { background-color: var(--orange-fill); }
.logo-symbol { background: #5f6b7a; }
.desktop-nav a:hover, .desktop-nav a.active,
.section-label, .spotlight-metric .metric-num.accent, .card-body a, .text-link, .objective-num, .portfolio-meta-top, .portfolio-link,
.spotlight-category, .job-dept-badge, .client-partner-tag, .evp-tag-list span, .timeline-year,
.contact-hub-card span.hub-sub, .contact-form .field label em, .cv-drop-form .field label em,
.contact-form .upload-field b, .cv-drop-form .upload-field b, .cv-drop-text .section-label { color: var(--orange-dark); }


/* Keyboard focus: form fields hide the default outline, so give them a visible ring (3:1 or better). */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--orange-dark); outline-offset: 2px; }
.quote-form-wrap .field input:focus-visible, .quote-form-wrap .field select:focus-visible, .quote-form-wrap .field textarea:focus-visible,
.footer :focus-visible, .topbar :focus-visible, .cookie-banner :focus-visible { outline-color: var(--orange); }

/* The real file input is visually hidden, so show its keyboard focus on the drop-zone label. */
.upload-field input:focus-visible + label { outline: 3px solid var(--orange-dark); outline-offset: 2px; }
.quote-form-wrap .upload-field input:focus-visible + label { outline-color: var(--orange); }

/* Hero trust strip on tablets: five narrow columns collided, so wrap into rows of three (leftovers stretch). */
@media (min-width: 769px) and (max-width: 1199px) {
    .trust-grid { display: flex; flex-wrap: wrap; }
    .trust-grid article { flex: 1 1 calc(33.333% - 1px); grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; padding-inline: 20px; padding-block: 18px; min-height: 84px; justify-content: flex-start; border-block-end: 1px solid rgba(255, 255, 255, .08); }
    .trust-grid svg { width: 36px; height: 36px; }
    .trust-grid strong { font-size: 13px; }
    .trust-grid span { font-size: 12px; }
}

/* ---- Blog article -------------------------------------------------------------------------- */
.page-hero--article h1 { max-width: 22em; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; font-weight: 750; letter-spacing: -.025em; }
.page-hero--article .page-hero-lead { max-width: 640px; }
.page-hero--article .breadcrumb-tag { max-width: 100%; }
.page-hero--article .breadcrumb-tag .current { min-width: 0; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post-article { padding-block-start: clamp(36px, 4vw, 56px); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.post-main { min-width: 0; max-width: 760px; }
.post-main .post-meta { padding-block-end: 18px; margin-block-end: 26px; border-block-end: 1px solid #e5e5e5; font-size: 13px; }
.post-main .post-meta > * + *::before { content: '\00B7'; margin-inline-end: 14px; color: #b5b5b5; }
.post-main .post-meta { gap: 6px 14px; }
.post-cover { margin: 0 0 32px; background: #ececea; }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

.post-body { color: #2b2b2b; }
.post-body > * + * { margin-block-start: 1.25em; }
.post-body p, .post-body li { color: #3a3a3a; font-size: 17.5px; line-height: 1.8; }
.post-body > p:first-child { color: #1f1f1f; font-size: 19.5px; line-height: 1.7; }
.post-body h2 { margin: 2em 0 .5em; font-size: clamp(23px, 2.2vw, 28px); line-height: 1.22; letter-spacing: -.02em; }
.post-body h3 { margin: 1.7em 0 .4em; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.3; letter-spacing: -.015em; }
.post-body ul, .post-body ol { display: grid; gap: .5em; padding-inline-start: 1.4em; }
.post-body blockquote { padding-block: 4px; font-size: 20px; line-height: 1.6; color: #222; }
.post-body a { text-underline-offset: 3px; }
.post-body img { max-width: 100%; height: auto; }

.post-back { margin-block-start: 44px; padding-block-start: 24px; border-block-start: 1px solid #e5e5e5; }

.post-aside { display: grid; gap: 20px; align-content: start; }
.post-aside-title { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-share { padding: 20px 22px; background: #fff; border: 1px solid #e5e5e5; }
.post-share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.post-share-links a, .post-share-links button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--text); background: transparent; border: 1px solid #d4d4d4; border-radius: 2px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color var(--transition), color var(--transition); }
.post-share-links a:hover, .post-share-links button:hover { color: var(--orange-dark); border-color: var(--orange); }
.post-cta { display: grid; gap: 10px; justify-items: start; padding: 26px 24px; color: #fff; background: #141414; border-block-end: 3px solid var(--orange); }
.post-cta p { margin: 0; color: #cfcfcf; font-size: 14.5px; line-height: 1.6; }
.post-cta .post-cta-title { color: #fff; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.post-cta .btn { margin-block-start: 8px; }

@media (min-width: 1000px) {
    .post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
    .post-aside { position: sticky; inset-block-start: 110px; }
}
@media (max-width: 999px) {
    .post-main { max-width: none; }
}
.page-hero--article .page-hero-layout > div { min-width: 0; max-width: 100%; }
.post-share-links svg { width: 16px; height: 16px; flex: none; }
.post-share-links a:hover svg, .post-share-links button:hover svg { color: var(--orange-dark); }
.socials a svg { width: 15px; height: 15px; }
