:root {
  --color-brand: #07543c;
  --color-brand-dark: #043d2c;
  --color-brand-soft: #e8f3ee;
  --color-accent: #c83f00;
  --color-accent-dark: #9f3200;
  --color-info: #356f8a;
  --color-gold: #9b6b16;
  --color-text: #101817;
  --color-muted: #596662;
  --color-border: #d7dfdb;
  --color-border-strong: #b9c8c1;
  --color-surface: #fff;
  --color-soft: #f0f6f3;
  --color-page: #f6f8f7;
  --font-sans: "Inter", "Segoe UI", Arial, sans-serif;
  --radius-sm: 5px;
  --radius-md: 8px;
  --shadow-soft: 0 2px 8px rgba(12, 40, 31, .06);
  --shadow-md: 0 12px 30px rgba(12, 40, 31, .1);
  --shadow-lift: 0 16px 34px rgba(12, 40, 31, .12);
}

html { scroll-padding-top: 82px; }
body { background: var(--color-page); color: var(--color-text); font-family: var(--font-sans); }
::selection { background: #cfe6dc; color: var(--color-brand-dark); }
img { color: transparent; }
a, button, input, select, textarea { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }

.site-header,
.article-header {
  border-bottom-color: rgba(185, 200, 193, .85);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px) saturate(1.08);
}

.site-header.scrolled,
.article-header.scrolled,
.site-header.is-condensed,
.article-header.is-condensed { box-shadow: 0 8px 26px rgba(13, 45, 35, .09); }

.brand { letter-spacing: 0; }
.desktop-nav a,
.public-desktop-nav a { position: relative; padding-block: 20px; }
.desktop-nav a::after,
.public-desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.desktop-nav a:hover::after,
.public-desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after,
.public-desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.desktop-nav a[aria-current="page"],
.public-desktop-nav a[aria-current="page"] { color: var(--color-brand); }

.button { min-height: 46px; box-shadow: 0 2px 4px rgba(12, 40, 31, .06); }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(12, 40, 31, .12); }
.button:active { transform: translateY(0); box-shadow: none; }
.button-primary { background: var(--color-accent); border-color: var(--color-accent); }
.button-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.button-secondary:hover { border-color: var(--color-brand-dark); background: var(--color-brand-soft); }

.hero { border-bottom: 1px solid var(--color-border); }
.hero-copy h1 { text-wrap: balance; }
.hero-copy p { line-height: 1.65; }
.hero-image { transition: filter .35s ease, transform .55s ease; }
.hero-visual:hover .hero-image { filter: saturate(1.04) contrast(1.02); transform: scale(1.012); }
.trust-strip { background: #fbfcfb; }
.trust-list div { color: #36453f; }

.quick-card,
.guide-card,
.application-card,
.panel,
.listing-card,
.application-directory article,
.printer-card,
.printer-hub-link,
.aside-card,
.contact-form,
.checklist-sheet {
  border-color: var(--color-border);
  box-shadow: var(--shadow-soft);
}

.quick-card { position: relative; overflow: hidden; background: #fff; }
.quick-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--color-brand); }
.quick-card:nth-child(2)::before { background: var(--color-gold); }
.quick-card:nth-child(3)::before { background: var(--color-info); }
.quick-card:nth-child(4)::before { background: var(--color-accent); }
.quick-card:hover,
.application-card:hover,
.listing-card:hover,
.application-directory article:hover,
.printer-card:hover,
.printer-hub-link:hover { border-color: #9eb9ae; box-shadow: var(--shadow-lift); transform: translateY(-3px); }

.panel { background: #fff; }
.comparison-head { background: var(--color-brand); color: #fff; }
.comparison-table > div:not(.comparison-head):nth-child(odd) { background: #f8faf9; }
.guide-card,
.application-card { overflow: hidden; }
.guide-card:hover img,
.application-card:hover img,
.listing-card:hover img,
.application-directory article:hover img { transform: scale(1.035); }
.guide-image img,
.application-image,
.listing-thumb { transition: transform .35s ease, filter .35s ease; }
.featured { background: var(--color-brand); color: #fff; }
.download { border-color: #bdd3ca; background: var(--color-soft); }
.download-copy input:focus,
.header-search input:focus,
.mobile-search input:focus { border-color: var(--color-brand); outline: 3px solid rgba(7, 84, 60, .12); }

.site-footer { border-top: 1px solid #1d6650; }
.site-footer a { position: relative; color: #fff; }
.site-footer .footer-inner nav a:hover,
.site-footer .footer-inner nav a:focus-visible,
.site-footer .social-links a:hover,
.site-footer .social-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #ffb18b;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.site-footer a:focus-visible {
  border-radius: 3px;
  outline: 2px solid #ffb18b;
  outline-offset: 4px;
}

.directory-page,
.static-page { width: min(calc(100% - 48px), 1180px); }
.directory-hero { position: relative; padding: 64px 0 42px; }
.directory-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 92px;
  height: 3px;
  background: var(--color-accent);
}
.directory-hero h1,
.static-page > header h1 { letter-spacing: 0; text-wrap: balance; }
.directory-hero > span,
.static-page > header > span,
.article-title > span,
.printer-detail-hero > div:first-child > span { letter-spacing: .07em; }
.directory-hero input:focus,
.printer-tools input:focus,
.printer-tools select:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--color-brand); outline: 3px solid rgba(7, 84, 60, .11); }

.filter-panel { border-top: 3px solid var(--color-brand); box-shadow: var(--shadow-soft); }
.filter-panel a:hover { color: var(--color-brand); padding-left: 4px; }
.listing-card { min-height: 205px; }
.listing-category { letter-spacing: .06em; }
.listing-card h2 a { text-decoration-color: transparent; }
.listing-card h2 a:hover { text-decoration: underline; text-decoration-color: #96b8aa; text-underline-offset: 4px; }
.listing-thumb-link { background: #f3f5f4; }
.listing-thumb { background-image: none; background-color: #eef3f0; }

.article-layout { width: min(calc(100% - 48px), 1180px); gap: 54px; }
.article-title { border-bottom-color: var(--color-border-strong); }
.article-title h1 { text-wrap: balance; }
.article-title div a { color: var(--color-brand); font-weight: 700; }
.article-lead-media { box-shadow: var(--shadow-md); }
.article-lead-media img,
.model-identity img { cursor: zoom-in; }
.article-body h2 { padding-top: 8px; line-height: 1.22; }
.article-body h2::before { content: ""; display: inline-block; width: 5px; height: .8em; margin-right: 10px; border-radius: 2px; background: var(--color-accent); vertical-align: -.02em; }
.article-body h3 { color: var(--color-brand-dark); }
.article-body p { color: #26312e; }
.article-body a { text-underline-offset: 3px; }
.article-body table { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.article-body tr:nth-child(even) td { background: #f8faf9; }
.article-body th { background: var(--color-brand); color: #fff; }
.article-body blockquote { border-left-color: var(--color-accent); background: #fff7f2; }
.editorial-note,
.answer-box { border-left-color: var(--color-brand); box-shadow: inset 0 0 0 1px rgba(7, 84, 60, .03); }
.article-layout aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.aside-card { margin: 0; overflow: hidden; border-top: 3px solid var(--color-brand); }
.aside-card h2 { font-size: 17px; }

.article-toc { padding: 17px 18px 15px; border: 1px solid var(--color-border); border-top: 3px solid var(--color-info); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); }
.article-toc h2 { margin: 0 0 9px; font-size: 15px; }
.article-toc ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.article-toc a { display: block; padding: 7px 0; border-bottom: 1px solid #e8edeb; color: var(--color-muted); font-size: 13px; line-height: 1.35; }
.article-toc li:last-child a { border-bottom: 0; }
.article-toc a:hover,
.article-toc a.is-active { color: var(--color-brand); font-weight: 700; }

.application-directory article { min-height: 210px; }
.application-directory h2 a:hover { color: var(--color-brand); }
.text-link::after { content: " →"; }
.contact-form { border-top: 3px solid var(--color-brand); }
.checklist-sheet { border-top: 3px solid var(--color-info); }
.checklist-sheet label:hover { background: #f8faf9; }

.printer-hubs { padding-top: 32px; }
.printer-hub-link { box-shadow: none; }
.printer-tools { border-top: 3px solid var(--color-brand); box-shadow: var(--shadow-md); }
.printer-results-bar { align-items: center; }
.printer-results-bar strong { display: inline-block; color: var(--color-brand); font-size: 18px; }
.printer-grid { gap: 14px; }
.printer-card { overflow: hidden; }
.printer-card a { min-height: 118px; }
.printer-thumb { width: 82px; height: 74px; transition: transform .28s ease; }
.printer-card:hover .printer-thumb { transform: scale(1.06); }
.printer-card-copy strong { line-height: 1.2; }
.printer-arrow { transition: transform .18s ease; }
.printer-card:hover .printer-arrow { transform: translateX(3px); }
.printer-detail-hero { gap: 64px; }
.model-identity { border-top: 3px solid var(--color-brand); box-shadow: var(--shadow-md); }
.model-identity:hover { box-shadow: var(--shadow-lift); }
.spec-panel dl { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.spec-panel dl > div { border: 0; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.spec-panel dl > div:nth-child(4n) { border-right: 0; }
.spec-panel dl > div:nth-last-child(-n+4) { border-bottom: 0; }
.verification-list li::marker { color: var(--color-accent); }
.catalog-note { border-left: 5px solid var(--color-brand); box-shadow: var(--shadow-soft); }

.ui-reveal { opacity: 0; transform: translateY(18px); }
.ui-reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .48s ease var(--ui-delay, 0ms), transform .48s ease var(--ui-delay, 0ms); }
.result-updated { animation: result-pulse .34s ease; }

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 21px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--color-brand-dark); transform: translateY(-2px); }

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 0;
  background: rgba(7, 18, 14, .88);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.image-lightbox.is-open { opacity: 1; pointer-events: auto; }
.image-lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; display: block; object-fit: contain; border-radius: var(--radius-md); background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .34); transform: scale(.97); transition: transform .22s ease; }
.image-lightbox.is-open img { transform: scale(1); }
.image-lightbox-close { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; cursor: pointer; font-size: 26px; line-height: 1; }
body.lightbox-open { overflow: hidden; }

.model-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 34px;
  margin: 0 0 34px;
  padding: 28px 30px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-info);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.model-guide h2 { margin: 0; font-size: 20px; }
.model-guide p { margin: 0 0 10px; color: #43514c; line-height: 1.65; }
.model-guide h2:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.model-guide p:last-child { grid-column: 2; }

@keyframes result-pulse { 50% { color: var(--color-accent); transform: translateY(-2px); } }

@media (max-width: 980px) {
  .article-layout aside { position: static; }
  .article-toc { display: none; }
  .spec-panel dl > div:nth-child(4n) { border-right: 1px solid var(--color-border); }
  .spec-panel dl > div:nth-child(2n) { border-right: 0; }
  .spec-panel dl > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--color-border); }
  .spec-panel dl > div:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 68px; }
  .content-width,
  .header-inner,
  .hero-inner,
  .directory-page,
  .static-page,
  .article-layout { width: min(calc(100% - 28px), 680px); }
  .desktop-nav a,
  .public-desktop-nav a { padding-block: 0; }
  .hero-visual:hover .hero-image { transform: none; }
  .quick-card:hover,
  .application-card:hover,
  .listing-card:hover,
  .application-directory article:hover,
  .printer-card:hover,
  .printer-hub-link:hover { transform: none; box-shadow: var(--shadow-soft); }
  .directory-hero { padding: 38px 0 28px; }
  .directory-hero h1,
  .static-page > header h1 { font-size: 34px; }
  .article-layout { gap: 26px; }
  .article-title h1 { font-size: 35px; }
  .article-body h2 { font-size: 25px; }
  .article-body table { border-radius: 0; }
  .listing-card { min-height: 158px; }
  .printer-card a { grid-template-columns: 78px minmax(0, 1fr) auto; }
  .printer-thumb { width: 76px; height: 68px; }
  .printer-tools { border-top-width: 2px; }
  .model-identity { border-top-width: 2px; }
  .model-guide { grid-template-columns: 1fr; padding: 22px; }
  .model-guide h2:nth-of-type(2),
  .model-guide p:last-child { grid-column: 1; grid-row: auto; }
  .scroll-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  .image-lightbox { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ui-reveal { opacity: 1; transform: none; }
}
