/* Wagtail-specific additions on top of the reference stylesheet (styles.css) */

/* Rich text rendered inside the reference's <p>-styled areas */
.hero .lead p, .page-hero .lead p, .about-hero-copy .lead p { margin: 0 0 14px; }
.hero .lead { font-size: clamp(16px, 1.7vw, 19px); color: rgba(255,255,255,.80); max-width: 720px; margin-bottom: 38px; }
.about-copy .rich p, .section-head .rich p { margin-bottom: 18px; }
.about-copy .rich p { color: var(--muted); font-size: 16.5px; }
.about-copy .rich strong { color: var(--ink); font-weight: 600; }
.trust .rich p { color: var(--muted); font-size: 16px; max-width: 640px; margin: 12px auto 30px; }
.cta-box .rich p { color: rgba(255,255,255,.78); font-size: 17px; max-width: 620px; margin: 0 auto 32px; }

/* Dark sections: heading colours the reference sets inline */
.mfg .section-head h2, .global .section-head h2 { color: #fff; }
.mfg .section-head p, .global .section-head p { color: rgba(255,255,255,.72); }

/* Manufacturing steps built from separate Image + Text blocks */
.mfg-step { padding: 44px 0; }
.mfg-step:first-of-type { padding-top: 110px; }
.mfg-step.flip .mstep-media { order: 2; }
@media (max-width: 820px) { .mfg-step.flip .mstep-media { order: 0; } .mfg-step:first-of-type { padding-top: 70px; } }
.mstep-body .rich p { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.72; }

/* Steps shown as cards (home page) */
.ind-grid .icard-body .mstep-num { display: block; margin-bottom: 4px; }

/* Project cards without a photo or region badge */
.projects .project .pbody { flex: 1; }

/* Plain text sections (Content block) */
.text-section .rich p { color: var(--muted); font-size: 16.5px; margin-bottom: 18px; }
.text-section .rich strong { color: var(--ink); font-weight: 600; }
.text-section .rich a { color: var(--accent-deep); }
.text-section h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin: 16px 0 20px; }

/* Contact details */
.contact-info .rich p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.contact-info .rich a { color: var(--accent-deep); }

/* Search page / other default pages keep readable dark text */
.alert { position: relative; z-index: 5; }

/* Heading-only Content block that introduces the section below it */
.text-section.head-only { padding-bottom: 0; }
.text-section.head-only h2 { margin-bottom: 0; }

/* Project cards beyond the six gradients defined in styles.css */
.project .thumb.t7 { background: linear-gradient(135deg, #2b2822, #15181c); }
.project .thumb.t8 { background: linear-gradient(135deg, #262a30, #16181c); }

/* Solutions page */
.page-hero .rich p { color: rgba(255,255,255,.78); font-size: 18px; max-width: 640px; }

/* Product detail: rich text from the product fields styled like the reference's lists and tables */
.pdx-info .pdx-overview p { margin: 0 0 14px; }
.pdx-rich { margin-bottom: 30px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.pdx-rich ul, .pdx-rich ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px 22px; }
.pdx-rich li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px 12px 40px; color: var(--ink-2); font-size: 15px; line-height: 1.5; transition: border-color .2s, transform .2s; }
.pdx-rich li::before { content: ""; position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; border-radius: 5px; background-color: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f2903a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.pdx-rich li:hover { border-color: rgba(245,130,31,.4); transform: translateY(-2px); }
.pdx-rich p { margin-bottom: 12px; }
.pdx-rich a { color: var(--accent-deep); }
@media (max-width: 860px) { .pdx-rich ul, .pdx-rich ol { grid-template-columns: 1fr; } }
.pdx-spec-text { padding: 22px 24px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.pdx-spec-text p { margin-bottom: 10px; }
.pdx-spec-text table { width: 100%; border-collapse: collapse; }
.pdx-spec-text td, .pdx-spec-text th { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.pdx-spec-text tr td:first-child { color: var(--muted); font-weight: 600; width: 42%; }
.pdx-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pdx-thumb { width: 72px; height: 72px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s; }
.pdx-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdx-thumb:hover, .pdx-thumb.active { border-color: var(--accent); }
.pdx-video { position: relative; display: block; max-width: 640px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.pdx-video img { width: 100%; display: block; }
.pdx-play { position: absolute; inset: 0; display: grid; place-items: center; }
.pdx-play::before { content: ""; width: 64px; height: 64px; border-radius: 50%; background: rgba(245,130,31,.92); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.pdx-play::after { content: ""; position: absolute; border-left: 18px solid #2a1500; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.pdx-related { margin-top: 64px; }
.pdx-media .pd-img img { max-height: 520px; }
