:root {
  color: #302821;
  background: #f6f2e9;
  font-family: "Segoe UI", sans-serif;
  --petrol: #285f60;
  --line: #e1d2c0;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, .tab-input:focus-visible + label { outline: 3px solid #b76545; outline-offset: 4px; }
.wrap { width: min(1100px, calc(100% - 44px)); margin-inline: auto; }
header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
header img { display: block; max-width: 100%; height: auto; }
nav, .languages { display: flex; align-items: center; gap: 12px; }
nav a { text-decoration: none; font-weight: 600; }
.languages { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.languages a { padding: 7px 9px; border-radius: 7px; font-size: .84rem; }
.languages a[aria-current] { background: var(--petrol); color: white; }
.heading { padding: clamp(44px, 8vw, 96px) 0 36px; }
h1, h2 { font-family: Baskervville, Georgia, serif; font-weight: 500; letter-spacing: -.04em; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: 1; margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.65rem); line-height: 1.08; margin: 0 0 10px; }
p { line-height: 1.6; margin: 0; }
.heading p { font-size: 1.16rem; max-width: 56ch; }
.products, .features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product, .feature { border: 1px solid var(--line); background: #fffaf1; border-radius: 20px; }
.product { overflow: hidden; }
.swatch { height: clamp(100px, 18vw, 205px); background: linear-gradient(148deg, #d2b494, #ead9c2 62%, #f2e6d6); }
.swatch.printer { background: linear-gradient(150deg, #bd8d71, #e5bea5 62%, #f0d9c9); }
.copy { padding: 27px; }
.button { display: inline-block; margin-top: 20px; background: var(--petrol); color: white; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.button:hover { background: #174849; }
.muted { margin-top: 22px; color: #705c4d; }
.back { display: inline-block; margin-bottom: 20px; color: var(--petrol); }
.panels { border: 1px solid var(--line); border-radius: 18px; background: #f0e5d7; padding: 14px; }
.tab-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tab { display: inline-block; padding: 9px 13px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.tab-input:checked + .tab { background: var(--petrol); color: white; }
.panel { display: none; padding: 20px 8px 8px; }
#prep:checked ~ .preparation, #cnc:checked ~ .cnc, #settings:checked ~ .settings { display: block; }
.features { margin-top: 18px; gap: 12px; }
.feature { display: flex; align-items: flex-start; gap: 14px; padding: 19px; }
.feature h3 { margin: 0 0 5px; }
.icon { flex: 0 0 36px; text-align: center; padding-block: 6px; background: #e6d6c5; color: #62432e; border-radius: 8px; font-weight: 700; }
footer { margin-top: 55px !important; padding-block: 20px; border-top: 1px solid var(--line); color: #705c4d; }
@media (max-width: 680px) { header { padding-block: 14px; flex-wrap: wrap; } .products, .features { grid-template-columns: 1fr; } }


.site-footer { display: grid; gap: 7px; font-size: .88rem; }
.site-footer img { max-width: 100%; height: auto; }
.site-footer a { color: var(--petrol); }

.languages, header, nav { flex-wrap: wrap; }
.languages { max-width: 100%; }

.language-menu { position: relative; }
.language-menu summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  list-style: none; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 11px; background: #fffaf1; font-size: .88rem; font-weight: 600;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:focus-visible { outline: 3px solid #b76545; outline-offset: 4px; }
.language-menu .languages {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 5;
  display: grid; min-width: 150px; max-width: none; padding: 4px;
  background: #fffaf1; box-shadow: 0 6px 18px #30282120;
}
.language-menu .languages a:hover:not([aria-current]) { background: #f0e5d7; }

/* Fusion Preparation toolbar icons, in toolbar order. */
.fusion-icon {
  flex: 0 0 34px;
  height: 36px;
  border-radius: 4px;
  background: url("fusion-preparation.jpg") no-repeat;
}
.fusion-icon--materials { background-position: -6px -5px; }
.fusion-icon--material-list { background-position: -49px -5px; }
.fusion-icon--numbering { background-position: -90px -5px; }
.fusion-icon--visibility { background-position: -136px -5px; }
.fusion-icon--panel-text { background-position: -178px -5px; }
.fusion-icon--dogbones { background-position: -221px -5px; }
.fusion-icon--export { background-position: -265px -5px; }

.preparation-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.preparation-heading h2 { margin: 0; }
.preparation-heading img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.cnc-icon {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 4px;
  background: url("fusion-cnc-toolbar.jpg") no-repeat;
}
.cnc-icon--rename { background-position: -6px -5px; }
.cnc-icon--automatic { background-position: -50px -5px; }
.cnc-icon--setup { background-position: -93px -5px; }
.cnc-icon--cabinet { background-position: -136px -5px; }
.product .compatibility { font-weight: 700; }

.swatch.fusion-toolbars {
  height: auto;
  min-height: clamp(100px, 18vw, 205px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 14px;
}
.fusion-toolbars img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.preparation .feature > div { min-width: 0; }
.prep-gallery { display: grid; gap: 16px; margin-top: 14px; }
.prep-gallery figure { margin: 0; }
.prep-gallery img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.prep-gallery figcaption { margin-top: 6px; }
.prep-link { color: var(--petrol); font-weight: 700; }
.prep-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 300px)); }

a.prep-card { color: inherit; text-decoration: none; }
a.prep-card:hover,
a.prep-card:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }
.prep-card .prep-link { text-decoration: underline; }
.prep-material-list .heading, .prep-materials .heading, .prep-numbering .heading { padding: clamp(32px, 5vw, 56px) 0 16px; }
.prep-material-list h1, .prep-materials h1, .prep-numbering h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}
.prep-gallery figure > a {
  display: block;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.prep-gallery img { width: 100%; height: 100%; object-fit: contain; }
.image-viewer {
  width: min(1100px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  padding: clamp(12px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf1;
  color: inherit;
}
.image-viewer::backdrop { background: rgb(246 242 233 / 96%); }
.image-viewer form { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.image-viewer button {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.image-viewer figure { margin: 0; }
.image-viewer img { display: block; max-width: 100%; max-height: 72vh; margin-inline: auto; }
.image-viewer figcaption { margin-top: 10px; text-align: center; }