/* ==========================================================================
   DODIAG — Mineral Processing Equipment
   Global stylesheet
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0b0e11;
  --ink-2: #12171c;
  --ink-3: #1a2028;
  --paper: #f6f5f1;
  --paper-2: #ece9e2;
  --text: #14181d;
  --text-inv: #f2f4f6;
  --muted: #6b7280;
  --muted-inv: #929ba6;
  --accent: #f2621f;
  --accent-dark: #d14f12;
  --accent-soft: #fff1e8;
  --line: #e0ddd5;
  --line-inv: rgba(255, 255, 255, 0.13);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono",
    monospace;

  --wrap: 1240px;
  --gutter: 24px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding: 104px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--dark {
  background: var(--ink);
  color: var(--text-inv);
}

.section--paper {
  background: var(--paper);
}

.section--paper-2 {
  background: var(--paper-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-desc {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.section--dark .section-desc {
  color: var(--muted-inv);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.section--dark .rule {
  background: var(--line-inv);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline {
  border-color: var(--text);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--paper);
}

.btn--block {
  width: 100%;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: rgba(11, 14, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 14, 17, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.brand-sub {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-inv);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 0;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.28s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.25s;
  flex: none;
}

.header-cta:hover {
  background: var(--accent-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex: none;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}
.menu-toggle span:nth-child(2) {
  top: 20px;
}
.menu-toggle span:nth-child(3) {
  top: 25px;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 74px 0 auto 0;
  z-index: 89;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-inv);
  padding: 8px 0 24px;
  transform: translateY(-110%);
  transition: transform 0.36s var(--ease);
  visibility: hidden;
}

.drawer.is-open {
  transform: translateY(0);
  visibility: visible;
}

.drawer ul {
  display: flex;
  flex-direction: column;
}

.drawer a {
  display: block;
  padding: 14px var(--gutter);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer .btn {
  margin: 20px var(--gutter) 0;
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 72px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.55;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(11, 14, 17, 0.82) 0%,
      rgba(11, 14, 17, 0.35) 42%,
      rgba(11, 14, 17, 0.95) 100%
    ),
    radial-gradient(120% 90% at 15% 30%, rgba(242, 98, 31, 0.16) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-title {
  font-size: clamp(42px, 7.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 15ch;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin-top: 26px;
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-foot span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-foot span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- 7. Stats ---------- */
.stats {
  background: var(--ink-2);
  border-top: 1px solid var(--line-inv);
  border-bottom: 1px solid var(--line-inv);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 40px 30px;
  border-left: 1px solid var(--line-inv);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat:last-child {
  padding-right: 0;
}

.stat-num {
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.stat-num sup {
  font-size: 0.5em;
  color: var(--accent);
  top: -0.55em;
  margin-left: 2px;
}

.stat-label {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-inv);
}

/* ---------- 8. Process ---------- */
.process-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}

.process-note {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}

.process-step {
  position: relative;
  padding: 30px 22px 34px 0;
  border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.process-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.process-step:hover {
  background: rgba(242, 98, 31, 0.045);
}

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.step-title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-desc {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 9. Equipment grid ---------- */
.eq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-inv);
  border: 1px solid var(--line-inv);
}

.eq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #10151a;
  padding: 0;
  overflow: hidden;
  transition: background 0.35s var(--ease);
}

.eq-card:hover {
  background: var(--ink-3);
}

.eq-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0e1317;
}

.eq-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.01);
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease);
}

.eq-card:hover .eq-media img {
  transform: scale(1.06);
  opacity: 1;
}

.eq-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 14, 17, 0.85) 100%);
}

/* Blueprint pattern used for machine families without photography */
.eq-media--pattern {
  display: grid;
  place-items: center;
  background-color: #0e1317;
  background-image: linear-gradient(135deg, rgba(242, 98, 31, 0.1), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 44px);
}

.eq-media--pattern span {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.14);
  transition: color 0.4s var(--ease);
}

.eq-card:hover .eq-media--pattern span {
  color: rgba(242, 98, 31, 0.7);
}

.eq-tag {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 14, 17, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 9px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.eq-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 28px;
}

.eq-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}

.eq-desc {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted-inv);
  flex: 1;
}

.eq-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.eq-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.28s var(--ease);
}

.eq-card:hover .eq-link svg {
  transform: translateX(4px);
}

.eq-card--plain .eq-media {
  display: none;
}

.eq-card--plain .eq-body {
  padding: 34px 26px;
}

.eq-card--plain .eq-media-fallback {
  display: none;
}

/* ---------- 10. Split (factory / about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 72px;
  align-items: center;
}

.split--reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.split-media figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.split-body p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.split-body p strong {
  color: var(--text);
  font-weight: 600;
}

.badge-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 30px;
  background: var(--line);
  border: 1px solid var(--line);
}

.badge-list li {
  background: var(--paper);
  padding: 16px 18px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--accent);
}

/* ---------- 11. CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink-2);
  color: #fff;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    90% 130% at 85% 20%,
    rgba(242, 98, 31, 0.22) 0%,
    transparent 62%
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0;
}

.cta-inner h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.cta-inner p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-inv);
  max-width: 48ch;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.cta-actions .btn {
  width: 100%;
}

.cta-hint {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-inv);
  border-top: 1px solid var(--line-inv);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand .brand {
  margin-bottom: 20px;
}

.footer-about {
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 34ch;
}

.footer-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}

.footer-links li + li {
  margin-top: 11px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact li + li {
  margin-top: 12px;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--line-inv);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- 13. Inner page hero ---------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 156px 0 72px;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80% 120% at 78% 0%,
    rgba(242, 98, 31, 0.17) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.page-title {
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 20ch;
}

.page-sub {
  margin-top: 22px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 14. Prose & spec table ---------- */
.prose h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 18px;
}

.prose h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 34px 0 12px;
}

.prose p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
  margin-bottom: 16px;
}

.prose ul.dots {
  margin: 18px 0 8px;
}

.prose ul.dots li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.prose ul.dots li + li {
  margin-top: 10px;
}

.prose ul.dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.spec-table thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  border-bottom-color: var(--line);
  font-weight: 600;
}

.spec-table tbody tr:hover {
  background: rgba(242, 98, 31, 0.04);
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 38%;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 15. Product detail layout ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: start;
}

.product-media {
  position: relative;
  background: var(--ink-3);
  border-radius: 2px;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-side {
  position: sticky;
  top: 100px;
  background: var(--ink-2);
  color: var(--text-inv);
  padding: 34px 30px 32px;
  border-radius: 2px;
  border: 1px solid var(--line-inv);
}

.product-side .eyebrow {
  margin-bottom: 14px;
}

.product-side h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.product-side p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted-inv);
}

.product-side .btn {
  margin-top: 22px;
}

.side-facts {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-inv);
  display: grid;
  gap: 14px;
}

.side-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.side-facts dt {
  color: var(--muted-inv);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* ---------- 16. Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 34px;
}

.feature-item {
  background: var(--paper);
  padding: 28px 24px;
}

.feature-item h4 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ---------- 17. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242, 98, 31, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a5adb8;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.form-alert {
  display: none;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  border-radius: 2px;
  border: 1px solid;
}

.form-alert.is-error {
  display: block;
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.form-alert.is-ok {
  display: block;
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.contact-aside {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-block {
  background: var(--paper);
  padding: 26px 24px;
}

.contact-block h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-block p,
.contact-block a {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.contact-block a:hover {
  color: var(--accent);
}

.contact-block small {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 18. Simple content pages ---------- */
.thanks-box {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: 90px 0;
}

.thanks-box .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.thanks-box .check svg {
  width: 28px;
  height: 28px;
}

.thanks-box h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
  font-weight: 800;
}

.thanks-box p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.thanks-box .btn {
  margin-top: 32px;
}

/* ---------- 19. Reveal animation ---------- */
/* Only hide content when JavaScript is available; without JS everything stays visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.07s;
}
.delay-2 {
  transition-delay: 0.14s;
}
.delay-3 {
  transition-delay: 0.21s;
}
.delay-4 {
  transition-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 19b. Equipment index ---------- */
.cat-bar {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-inv);
}

.cat-bar-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 14px;
  scrollbar-width: none;
}

.cat-bar-inner::-webkit-scrollbar {
  display: none;
}

.cat-bar a {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cat-bar a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(242, 98, 31, 0.12);
}

.equip-section {
  padding: 80px 0 100px;
}

.group-head {
  margin-bottom: 30px;
  scroll-margin-top: 100px;
}

.eq-grid + .group-head {
  margin-top: 84px;
}

.group-head .step-num {
  display: block;
  margin-bottom: 12px;
}

.group-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: #fff;
}

.group-head p {
  margin-top: 10px;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-inv);
}

/* ---------- 19c. News / blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 14, 17, 0.09);
  border-color: #d3cfc5;
}

.post-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.post-card:hover .post-media img {
  transform: scale(1.05);
}

.post-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 2px;
}

.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}

.post-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  transition: color 0.25s;
}

.post-card:hover .post-title {
  color: var(--accent);
}

.post-excerpt {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.28s var(--ease);
}

.post-card:hover .post-link svg {
  transform: translateX(4px);
}

/* Featured post */
.featured-post {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 56px;
  overflow: hidden;
}

.featured-post .post-media {
  aspect-ratio: auto;
  min-height: 360px;
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 44px;
}

.featured-body .post-title {
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.22;
  letter-spacing: -0.022em;
}

.featured-body .post-excerpt {
  font-size: 15px;
  line-height: 1.7;
}

/* Article page */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 60px;
  align-items: start;
}

.article-body h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 42px 0 14px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 28px 0 10px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #3f4750;
  margin-bottom: 16px;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body ul {
  margin: 0 0 18px;
}

.article-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #3f4750;
  margin-bottom: 10px;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

.article-body ol {
  margin: 0 0 18px;
  counter-reset: art-step;
}

.article-body ol li {
  position: relative;
  padding-left: 36px;
  counter-increment: art-step;
  font-size: 15.5px;
  line-height: 1.75;
  color: #3f4750;
  margin-bottom: 12px;
}

.article-body ol li::before {
  content: counter(art-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.article-body blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.article-body .callout {
  margin: 28px 0;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.article-body .callout h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.article-body .callout p {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.article-aside {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 20px;
}

.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 26px;
}

.aside-card h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.aside-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-card .btn {
  margin-top: 18px;
}

.aside-card--dark {
  background: var(--ink-2);
  border-color: var(--line-inv);
  color: var(--text-inv);
}

.aside-card--dark h4 {
  color: var(--accent);
}

.aside-card--dark p {
  color: var(--muted-inv);
}

.aside-links {
  display: grid;
  gap: 14px;
}

.aside-links a {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.aside-links a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-links a:hover {
  color: var(--accent);
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1080px) {
  .nav {
    gap: 24px;
  }
  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-step:nth-child(3n) {
    border-right: 0;
  }
  .eq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .product-layout,
  .contact-grid,
  .split {
    gap: 44px;
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    gap: 40px;
  }
}

/* Six nav items, the language switch and the CTA need the full width. */
@media (max-width: 1120px) {
  .nav,
  .header-cta,
  .lang-switch--desktop {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 76px 0;
  }
  .section--tight {
    padding: 56px 0;
  }
  .split,
  .product-layout,
  .contact-grid,
  .process-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split--reverse .split-media {
    order: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 28px 24px;
    border-left: 0;
    border-top: 1px solid var(--line-inv);
  }
  .stat:nth-child(odd) {
    border-right: 1px solid var(--line-inv);
    padding-left: 0;
  }
  .stat:nth-child(even) {
    padding-right: 0;
  }
  .stat:first-child,
  .stat:nth-child(2) {
    border-top: 0;
  }
  .product-side {
    position: static;
  }
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post .post-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside {
    position: static;
  }
  .hero {
    min-height: 84vh;
    padding-top: 130px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-hero {
    padding: 132px 0 60px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }
  .section {
    padding: 60px 0;
  }
  .hero {
    min-height: 0;
    padding: 118px 0 52px;
  }
  .hero-title {
    font-size: clamp(36px, 10vw, 52px);
  }
  .hero-foot {
    margin-top: 40px;
    gap: 10px 20px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .process-list {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
  }
  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }
  .process-step:last-child {
    border-bottom: 0;
  }
  .eq-grid,
  .feature-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .featured-body {
    padding: 30px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .form-card {
    padding: 26px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .badge-list {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    padding: 60px 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .spec-table td:first-child {
    width: 45%;
  }
}

/* ==========================================================================
   21. WordPress integration
   ========================================================================== */

/* Nav menu markup produced by wp_nav_menu() */
.nav > ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav > ul > li {
  display: flex;
  align-items: center;
}

.nav > ul > li > a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 0;
  transition: color 0.2s;
}

.nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.28s var(--ease);
}

.nav > ul > li > a:hover,
.nav > ul > li.current-menu-item > a,
.nav > ul > li.current_page_item > a {
  color: #fff;
}

.nav > ul > li > a:hover::after,
.nav > ul > li.current-menu-item > a::after,
.nav > ul > li.current_page_item > a::after {
  width: 100%;
}

.nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--ink-2);
  border: 1px solid var(--line-inv);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 20;
}

.nav li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav li ul a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.nav li ul a:hover {
  color: #fff;
  background: rgba(242, 98, 31, 0.14);
}

.nav li ul a::after {
  display: none;
}

/* Drawer menu */
.drawer ul li {
  list-style: none;
}

.drawer ul li.current-menu-item > a {
  color: var(--accent);
}

/* Admin bar offset for the fixed header */
.admin-bar .site-header {
  top: 32px;
}

.admin-bar .drawer {
  top: 106px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .admin-bar .drawer {
    top: 120px;
  }
}

/* Editor / block content inside pages and articles */
.entry-content > * {
  max-width: 100%;
}

.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

.entry-content .wp-block-image img {
  max-width: 100%;
  height: auto;
}

.entry-content .wp-block-heading {
  margin-top: 34px;
}

.entry-content .wp-block-quote {
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  padding: 18px 22px;
  margin: 26px 0;
}

.entry-content .wp-block-list {
  margin-bottom: 18px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 18px;
  padding-left: 20px;
  list-style: revert;
}

.entry-content li {
  margin-bottom: 8px;
  line-height: 1.75;
  color: #3f4750;
}

.entry-content h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
}

.entry-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #3f4750;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

.entry-content thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
}

/* Admin notice / empty states */
.dodiag-empty {
  padding: 40px;
  border: 1px dashed var(--line);
  background: #fff;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Form feedback after submission */
.form-alert.is-ok {
  display: block;
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

/* Pagination produced by the_posts_pagination() */
.dodiag-pagination {
  margin-top: 48px;
}

.dodiag-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dodiag-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--text);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.dodiag-pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.dodiag-pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dodiag-pagination .page-numbers.current:hover {
  color: #fff;
}

.dodiag-pagination .dots {
  border: 0;
  background: none;
}

/* Screen reader text + skip link */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Custom logo support */
.brand--logo {
  display: inline-flex;
  align-items: center;
}

.brand--logo .custom-logo {
  max-height: 44px;
  width: auto;
  display: block;
}

/* Dark sections keep readable copy inside editor content */
.section--dark .entry-content p,
.section--dark .entry-content li {
  color: var(--muted-inv);
}

/* ==========================================================================
   Language switch (EN / 中文 / FR)
   ========================================================================== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 1px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch a:hover {
  color: #fff;
}

.lang-switch a.is-active {
  background: var(--accent);
  color: #fff;
}

.lang-switch--drawer {
  margin: 18px var(--gutter) 0;
  width: fit-content;
}

.lang-switch--drawer a {
  min-width: 46px;
  padding: 8px 10px;
  font-size: 12px;
}

/* Fallback-language notice on translated articles */
.translation-notice {
  margin-bottom: 24px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}

/* Active chip in the category bar */
.cat-bar a.is-active {
  color: #fff;
  border-color: var(--accent);
  background: rgba(242, 98, 31, 0.18);
}

/* Language-dependent typography: Chinese needs a little more line height */
html[lang="zh-CN"] body {
  line-height: 1.78;
}

html[lang="zh-CN"] .hero-title,
html[lang="zh-CN"] .section-title {
  letter-spacing: 0;
}

/* Keep this after the block above: the switch itself is display:flex. */
@media (max-width: 1120px) {
  .lang-switch--desktop {
    display: none;
  }
}
