/* ==========================================================================
   Review round 1 (Oct 2026): top bar, lead paragraphs, button spacing,
   hover fix, newsletter, brochure gate, shredder build-out sections,
   points/cards, solution pages, editor tables.
   Loaded after site.css; uses its tokens.
   ========================================================================== */

/* ---------- Top contact bar ---------- */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 38px; }
.topbar-note { letter-spacing: .02em; }
.topbar-contact { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 7px; color: var(--white); text-decoration: none; font-weight: 500; }
.topbar-contact a:hover { color: #bfd8f7; }
.topbar-contact svg { flex: none; opacity: .85; }
@media (max-width: 720px) {
	.topbar-note { display: none; }
	.topbar-inner { justify-content: center; }
}

/* ---------- Lead (first) paragraph in bold ---------- */
.prose > p:first-child,
.prose > .pmve-editable-paras > p:first-child,
.entry-content > p:first-of-type { font-weight: 600; color: var(--navy); }
.prose--light > p:first-child,
.prose--light > .pmve-editable-paras > p:first-child,
.split--navy .prose > p:first-child,
.split--navy .prose > .pmve-editable-paras > p:first-child { color: var(--white); }
/* …but not inside answers, feature pop-ups or small cards */
.accordion-a > p:first-child, .accordion-a > .pmve-editable-paras > p:first-child,
.feature-detail .prose > p:first-child, .feature-detail .prose > .pmve-editable-paras > p:first-child,
.cut-body .prose > p:first-child, .cut-body .prose > .pmve-editable-paras > p:first-child,
.point .prose > p:first-child, .card-text > p:first-child { font-weight: inherit; color: inherit; }

/* ---------- Breathing room above buttons that follow text ---------- */
.prose + .btn,
.prose + a.btn,
.split-text-inner > .btn,
.textbox-card > .btn,
.duo-content > .btn { margin-top: 26px; }

/* ---------- Home: application buttons keep a visible (blue) icon on hover ---------- */
.type-button:hover { background: var(--navy); color: var(--white); }
.type-button:hover img { filter: none; }

/* ---------- Home: intro copy under the two feature panels ---------- */
.duo-text { max-width: 44ch; margin: -.3em 0 0; color: rgba(255, 255, 255, .88); font-size: .98rem; }

/* ---------- Section heading with a button on the right (News) ---------- */
.panel-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.panel-head-row .h-section { margin: 0; }

/* ---------- Content blocks: centred text option ---------- */
.split--centre .split-text { justify-content: center; text-align: center; }
.split--centre .split-text-inner { margin-inline: auto; }
.split--centre .prose { margin-inline: auto; }

/* ---------- Points grid (Why join us, solution benefits) ---------- */
.points-intro { max-width: 70ch; margin: -.2em 0 32px; color: var(--muted); }
.points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.point { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 24px 22px; }
.point-title { font-size: 1rem; color: var(--navy); margin-bottom: .5em; }
.point .prose { font-size: .95rem; color: var(--muted); }
.panel--grey .point { background: var(--white); }
@media (max-width: 960px) { .points-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .points-grid { grid-template-columns: 1fr; } }

/* ---------- Cards with text (careers roles) ---------- */
.cards-intro { max-width: 70ch; margin: -.2em auto 0; text-align: center; font-weight: 600; color: var(--navy); }
.card { display: flex; flex-direction: column; }
.card-body { padding: 0 20px 22px; }
.card-body .card-title { padding: 18px 0 8px; }
.card-sub { font-weight: 600; color: var(--navy); margin: 0 0 .6em; font-size: .95rem; }
.card-text { font-size: .93rem; color: var(--muted); }
.card-text p:last-child { margin-bottom: 0; }

/* ---------- Recommended machines on solution pages ---------- */
.rec-machines .shredder-grid { margin-top: 32px; }

/* ---------- Newsletter band (above the footer) ---------- */
.newsletter { background: var(--blue); color: var(--white); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: center; padding-block: clamp(36px, 5vw, 56px); }
.newsletter-heading { font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--white); margin-bottom: .4em; }
.newsletter-copy p { margin: 0; color: rgba(255, 255, 255, .88); }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; border-radius: var(--radius); font: inherit; color: var(--text); }
.newsletter-row .btn { background: var(--navy); border-color: var(--navy); }
.newsletter-row .btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.newsletter-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .82rem; color: rgba(255, 255, 255, .88); }
.newsletter-consent input { margin-top: 3px; flex: none; }
.newsletter-consent a { color: var(--white); }
@media (max-width: 860px) { .newsletter-inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .newsletter-row { flex-direction: column; } }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-msg { margin: 10px 0 0; font-size: .88rem; min-height: 1.2em; }
.lead-msg.is-ok { color: #1d7a3a; }
.lead-msg.is-error { color: #b42318; }
.newsletter .lead-msg.is-ok, .newsletter .lead-msg.is-error { color: var(--white); font-weight: 600; }

/* ---------- Brochure dialog ---------- */
.mt-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; padding: clamp(24px, 4vw, 36px); box-shadow: 0 30px 80px rgba(13, 27, 46, .35); color: var(--text); }
.mt-dialog::backdrop { background: rgba(13, 27, 46, .6); }
.mt-dialog-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--navy); }
.mt-dialog-title { font-size: 1.3rem; color: var(--navy); padding-right: 36px; }
.mt-dialog-intro { color: var(--muted); font-size: .95rem; }
.mt-dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 14px; }
.mt-dialog-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--navy); }
.mt-dialog-grid .span-2 { grid-column: 1 / -1; }
.mt-dialog-grid input { height: 44px; padding: 0 12px; border: 1px solid var(--line); font: 400 .95rem var(--f-body); color: var(--text); }
.mt-dialog-grid input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 140, 232, .2); }
.mt-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: .82rem; line-height: 1.45; }
.mt-check input { margin-top: 2px; flex: none; }
.mt-dialog .btn { margin-top: 6px; }
.req { color: #c0262d; }
@media (max-width: 520px) { .mt-dialog-grid { grid-template-columns: 1fr; } }

/* Brochure card is now a button */
button.brochure { border: 0; background: none; cursor: pointer; font: inherit; padding: 0; }

/* ---------- Shredder pages: breadcrumb, tag, spec plate ---------- */
.crumbs { background: var(--grey); border-bottom: 1px solid var(--line); font-size: .82rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

.tag { display: inline-block; margin: 0 0 14px; padding: 6px 16px 5px; background: var(--blue); color: var(--white); font: 700 .7rem/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .12em; clip-path: polygon(.6em 0, 100% 0, calc(100% - .6em) 100%, 0 100%); }
.hero-line { font-size: 1.08rem; font-weight: 600; color: var(--navy); margin: 0 0 1em; }

.plate-wrap { background: var(--white); }
.plate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 3px solid var(--blue); margin-block: 32px 0; }
.plate-cell { background: var(--white); padding: 18px 20px; }
.plate-k { margin: 0 0 4px; font: 700 .7rem var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.plate-v { font-weight: 700; color: var(--navy); line-height: 1.3; }
@media (max-width: 860px) { .plate { grid-template-columns: repeat(2, 1fr) !important; } }

/* ---------- Shredder pages: overview, key features, text sections ---------- */
.overview .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 600; color: var(--navy); max-width: 62ch; }
.kf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kf-card { background: var(--grey); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 24px 22px; }
.kf-title { font-size: 1rem; color: var(--navy); margin-bottom: .5em; line-height: 1.25; }
.kf-card p { margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .kf-grid { grid-template-columns: 1fr; } }

.text-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; }
.text-pair .h-section { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
@media (max-width: 860px) { .text-pair { grid-template-columns: 1fr; } }

/* Materials as chips (when there are no input/output photos) */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.chip { padding: 10px 20px; background: #eaf1fb; color: var(--navy); font-weight: 600; font-size: .9rem; clip-path: polygon(.7em 0, 100% 0, calc(100% - .7em) 100%, 0 100%); }

/* Why Mach Tech */
.why { background: var(--navy); color: rgba(255, 255, 255, .86); }
.why .h-section { color: var(--white); }
.why-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; margin-top: 26px; list-style: none; padding: 0; }
.why-points li { position: relative; padding-left: 22px; }
.why-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }
.why-points strong { color: var(--white); }
@media (max-width: 760px) { .why-points { grid-template-columns: 1fr; } }

/* Related News heading row */
.related .panel-head-row .btn { color: var(--white); border-color: rgba(255, 255, 255, .75); }
.related .panel-head-row .btn:hover { background: var(--white); color: var(--navy); }

/* ---------- Editor content tables (cookie policy etc.) ---------- */
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0 2.5em; font-size: .85rem; display: table; table-layout: auto; }
.entry-content table th, .entry-content table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.entry-content table td:last-child, .entry-content table thead tr:last-child th:last-child { width: 36%; }
.entry-content table td:first-child { font-size: .8rem; }
.entry-content table th, .entry-content table thead td { background: var(--navy); color: var(--white); font-weight: 600; }
.entry-content table th h2, .entry-content table th h3, .entry-content table th h4 { color: var(--white); margin: 0; font-size: 1rem; letter-spacing: .04em; }
.entry-content table code { font-size: .78rem; overflow-wrap: normal; }
.entry-content table td[colspan] { background: var(--grey); }
@media (max-width: 760px) {
	.entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.entry-content table th, .entry-content table td { min-width: 120px; }
}
.entry-content table p { margin: 0 0 .5em; }
.entry-content table p:last-child { margin: 0; }
.entry-content figure.wp-block-table { margin: 1.5em 0; }
.entry-content > p:empty { display: none; }

/* ---------- Menu group labels (System Solutions) ---------- */
.primary-nav .sub-menu .menu-label > a { pointer-events: none; padding-top: 12px; padding-bottom: 2px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.primary-nav .sub-menu .menu-label:first-child > a { padding-top: 4px; }
.primary-nav .sub-menu .menu-label > a:hover { background: none; }
@media (max-width: 1080px) {
	.primary-nav .sub-menu .menu-label > a { color: #8fb4e6; }
}

/* ---------- Home FAQs (light background) ---------- */
.faqs--home { background: var(--grey); }
.accordion--light { border-top-color: var(--line); }
.accordion--light .accordion-item { border-bottom-color: var(--line); }
.accordion--light .accordion-q { color: var(--navy); }
.accordion--light .accordion-q::after { color: var(--blue); }
.accordion--light .accordion-a { color: var(--text); }

/* ---------- System Solutions overview ---------- */
.solution-group + .solution-group { margin-top: clamp(48px, 6vw, 72px); }
.solution-group-head { margin-bottom: 24px; max-width: 70ch; }
.solution-group-head p { color: var(--muted); margin: 0; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); color: var(--navy); text-decoration: none; }
.solution-card-media { aspect-ratio: 3 / 2; background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 100%); overflow: hidden; }
.solution-card-media:empty { display: none; }
.solution-card-media img { width: 100%; height: 100%; object-fit: cover; }
.solution-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.solution-card-title { font-size: 1.05rem; margin-bottom: .5em; }
.solution-card-body p { color: var(--muted); font-size: .93rem; }
.solution-card .more-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) { .solution-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .solution-grid { grid-template-columns: 1fr; } }

/* Long main menu: tighten a little before the burger takes over */
@media (min-width: 1081px) and (max-width: 1280px) {
	.primary-nav .menu { gap: 16px; }
	.primary-nav .menu > li > a { font-size: .86rem; }
	.brand { gap: 18px; }
}

/* ---------- Header "Check availability" button ---------- */
.nav-cta { white-space: nowrap; padding: 11px 20px; font-size: .85rem; margin-left: 8px; }
/* Not enough room beside the longer menu until it is wide: the "Hire" menu item covers it */
@media (min-width: 1081px) and (max-width: 1399px) {
	.nav-cta { display: none; }
}
@media (max-width: 1080px) {
	.nav-cta { display: block; margin: 18px 0 0; text-align: center; }
}
