/* ===========================================================================
   MTE shared design system for NON-homepage routes (articles + machine pages).
   Loaded AFTER /_mte/mte.css so it wins the cascade for .mte-* classes. Tokens are
   pulled from the captured Elementor kit (navy #001D42, primary blue #051B5B, body
   #4B5563, Roboto / Roboto Slab). The homepage is untouched — it renders the captured
   markup and never uses these classes.
   =========================================================================== */

:root {
  --mte-navy: #001d42;
  --mte-blue: #051b5b;
  --mte-blue-bright: #2143a5;
  --mte-ink: #1f2937;
  --mte-body: #4b5563;
  --mte-muted: #7a7a7a;
  --mte-blue-50: #eff6ff;
  --mte-border: #e3e3e3;
  --mte-white: #ffffff;
  --mte-maxw: 1160px;
  --mte-font: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
  --mte-font-head: "Roboto Slab", Georgia, serif;
}

.mte-page {
  font-family: var(--mte-font);
  color: var(--mte-body);
  background: var(--mte-white);
}

.mte-container {
  width: 100%;
  max-width: var(--mte-maxw);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- Hero band -------------------------------------------------------------- */
.mte-hero {
  background: linear-gradient(160deg, #001d42 0%, #051b5b 100%);
  color: #fff;
  padding: 44px 0 52px;
}
.mte-hero__title {
  font-family: var(--mte-font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 600;
  margin: 10px 0 22px;
  /* !important beats the captured Elementor `.elementor-page h1` color (which would
     otherwise render this dark navy-on-navy). This class only ever sits on the navy hero. */
  color: #fff !important;
  max-width: 20ch;
}
.mte-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9fb4dd;
}
.mte-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- Buttons ---------------------------------------------------------------- */
.mte-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mte-font);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.mte-btn--gold {
  background: var(--mte-blue-bright);
  color: #fff;
  box-shadow: 0 6px 18px rgba(3, 15, 45, 0.28);
}
.mte-btn--gold:hover {
  background: #17337e;
}
.mte-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.mte-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.mte-btn--white {
  background: #fff;
  color: var(--mte-navy);
}
.mte-btn--white:hover {
  background: #eef2fb;
}

/* --- Breadcrumbs ------------------------------------------------------------ */
.mte-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  font-size: 0.82rem;
}
.mte-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mte-breadcrumbs a {
  color: #b9c7e6;
  text-decoration: none;
}
.mte-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}
.mte-breadcrumbs [aria-current="page"] {
  color: #7f92b8;
}
.mte-breadcrumbs__sep {
  color: #5b6a90;
}
/* On light backgrounds (machine specs breadcrumb reuse) keep readable defaults. */

/* --- Article body ----------------------------------------------------------- */
.mte-article {
  padding: 48px 20px 8px;
}
.mte-prose {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--mte-body);
}
.mte-prose > *:first-child {
  margin-top: 0;
}
.mte-prose h2 {
  font-family: var(--mte-font-head);
  color: var(--mte-navy);
  font-size: 1.7rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 2.2em 0 0.6em;
}
.mte-prose h3 {
  font-family: var(--mte-font);
  color: var(--mte-ink);
  font-size: 1.28rem;
  font-weight: 600;
  margin: 1.6em 0 0.5em;
}
.mte-prose p {
  margin: 0 0 1.1em;
}
.mte-prose a {
  color: var(--mte-blue-bright);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mte-prose a:hover {
  color: var(--mte-blue);
}
.mte-prose strong {
  color: var(--mte-ink);
  font-weight: 600;
}
.mte-prose ul,
.mte-prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.mte-prose li {
  margin: 0 0 0.5em;
}
.mte-prose blockquote {
  margin: 1.6em 0;
  padding: 14px 22px;
  border-left: 4px solid var(--mte-blue-bright);
  background: var(--mte-blue-50);
  color: var(--mte-ink);
  font-style: italic;
}
.mte-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.98rem;
}
.mte-prose th,
.mte-prose td {
  border: 1px solid var(--mte-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.mte-prose thead th {
  background: var(--mte-navy);
  color: #fff;
  font-weight: 600;
}
.mte-prose tbody tr:nth-child(even) {
  background: #f7f9fc;
}
.mte-prose hr {
  border: 0;
  border-top: 1px solid var(--mte-border);
  margin: 2em 0;
}

/* --- Closing CTA band ------------------------------------------------------- */
.mte-cta-band {
  background: var(--mte-navy);
  color: #fff;
  margin-top: 56px;
  padding: 44px 0;
}
.mte-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.mte-cta-band h2 {
  font-family: var(--mte-font-head);
  font-size: 1.7rem;
  margin: 0 0 6px;
  color: #fff;
}
.mte-cta-band p {
  margin: 0;
  color: #c4d0e8;
  max-width: 52ch;
}
.mte-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- Machine detail --------------------------------------------------------- */
.mte-machine {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 44px 20px 8px;
  align-items: start;
}
.mte-machine__media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--mte-border);
}
.mte-machine__noimg {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mte-blue-50);
  color: var(--mte-muted);
  border-radius: 10px;
}
.mte-attrs {
  border: 1px solid var(--mte-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.mte-attrs__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--mte-border);
}
.mte-attrs__row:last-child {
  border-bottom: 0;
}
.mte-attrs__row:nth-child(even) {
  background: #f7f9fc;
}
.mte-attrs__k {
  color: var(--mte-muted);
  font-weight: 500;
}
.mte-attrs__v {
  color: var(--mte-ink);
  font-weight: 600;
}
.mte-machine__desc {
  color: var(--mte-body);
  line-height: 1.7;
  margin: 0 0 20px;
}
.mte-specs,
.mte-related {
  max-width: var(--mte-maxw);
  padding: 32px 20px 8px;
}
.mte-specs h2,
.mte-related h2 {
  font-family: var(--mte-font-head);
  color: var(--mte-navy);
  font-size: 1.5rem;
  margin: 0 0 16px;
}
.mte-specs table {
  width: 100%;
  border-collapse: collapse;
}
.mte-specs th[scope="row"] {
  text-align: left;
  width: 40%;
  color: var(--mte-muted);
  font-weight: 500;
}
.mte-specs th,
.mte-specs td {
  border: 1px solid var(--mte-border);
  padding: 11px 16px;
  color: var(--mte-ink);
}
.mte-specs tr:nth-child(even) {
  background: #f7f9fc;
}
.mte-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mte-related a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--mte-border);
  border-radius: 6px;
  color: var(--mte-blue);
  text-decoration: none;
  text-transform: capitalize;
  font-weight: 500;
}
.mte-related a:hover {
  border-color: var(--mte-blue-bright);
  background: var(--mte-blue-50);
}

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 860px) {
  .mte-machine {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mte-cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Machine browse/listing (added 2026-07-06 with the pagination scaffolding) ── */
.mte-listing { padding: 32px 0 56px; }
.mte-listing .mte-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mte-listing h1 { color: #001D42; font-family: "Roboto Slab", Georgia, serif; margin: 8px 0 4px; }
.mte-listing-intro { color: #4B5563; max-width: 720px; }
.mte-listing-count { color: #6b7280; font-size: 0.9rem; margin: 4px 0 20px; }
.mte-machine-grid { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.mte-machine-card a { display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff;
  transition: box-shadow .15s, border-color .15s; height: 100%; }
.mte-machine-card a:hover { border-color: #051B5B; box-shadow: 0 4px 14px rgba(0,29,66,.12); }
.mte-machine-card img { width: 100%; height: 160px; object-fit: cover; background: #f3f4f6; }
.mte-machine-card-title { font-weight: 600; color: #001D42; padding: 12px 14px 2px; }
.mte-machine-card-meta { color: #6b7280; font-size: 0.85rem; padding: 0 14px 14px; }
.mte-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 32px; font-size: 0.95rem; }
.mte-pagination a, .mte-pagination span { padding: 6px 12px; border-radius: 6px;
  border: 1px solid #e5e7eb; color: #051B5B; text-decoration: none; }
.mte-pagination a:hover { background: #f3f4f6; }
.mte-page-current { background: #001D42; color: #fff !important; border-color: #001D42 !important; }
.mte-page-gap { border: none !important; padding: 6px 4px !important; color: #9ca3af; }
.mte-page-prev, .mte-page-next { font-weight: 600; }

/* --- "Do you have a <machine> to sell?" band (matches WP element 36119bc6 / 4afb2baf) --- */
.mte-sell {
  background: var(--mte-blue-50);       /* #eff6ff */
  padding: 70px 15px 80px;
}
.mte-sell__inner {
  width: 100%;
  max-width: var(--mte-maxw);
  margin: 0 auto;
}
.mte-sell__title {
  font-family: "Space Grotesk", var(--mte-font);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.2;
  color: var(--mte-ink);                /* #1f2937 */
  margin: 0 0 18px;
}
.mte-sell__body p {
  font-family: "Inter", var(--mte-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: var(--mte-body);               /* #4b5563 */
  margin: 0 0 18px;
}
.mte-sell__body p:last-child { margin-bottom: 0; }
@media (max-width: 1024px) {
  .mte-sell { padding: 40px 15px 40px; }
}
@media (max-width: 767px) {
  .mte-sell { padding: 32px 15px; }
}

/* --- "Sell your <machine> today." subhead above the attribute box (WP h1.subhead) --- */
.mte-machine__subhead {
  font-size: 16px;
  color: #b7b5b5;
  font-weight: 400;
  margin: 0 0 12px;
}
