:root {
  --tmw-paper: #f7f3ea;
  --tmw-paper-soft: #fbf9f3;
  --tmw-ink: #102735;
  --tmw-text: #394b54;
  --tmw-muted: #5e6a6d;
  --tmw-green: #164c3a;
  --tmw-green-dark: #103a2e;
  --tmw-green-soft: #ddeada;
  --tmw-lime-glow: #e8f5b8;
  --tmw-blue: #ddebf5;
  --tmw-sage: #e2ecd8;
  --tmw-butter: #f4e9c9;
  --tmw-peach: #f4dfd8;
  --tmw-lavender: #eae1f1;
  --tmw-border: #dcd6ca;
  --tmw-shadow: 0 12px 34px rgb(16 39 53 / 8%);
  --tmw-radius-sm: 0.5rem;
  --tmw-radius: 0.75rem;
  --tmw-radius-lg: 1.125rem;
  --tmw-content-width: 77.5rem;
  --tmw-reading-width: 47.5rem;
  --tmw-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --tmw-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tmw-hand: Caveat, "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tmw-paper);
  color: var(--tmw-text);
  font-family: var(--tmw-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { color: inherit; font: inherit; }
a { color: var(--tmw-green); text-underline-offset: 0.18em; }
a:hover { color: var(--tmw-green-dark); }
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--tmw-ink);
  font-family: var(--tmw-serif);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid #a6bc35; outline-offset: 4px; }
@supports not selector(:focus-visible) {
  :focus { outline: 3px solid #a6bc35; outline-offset: 4px; }
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tmw-skip-link {
  position: fixed; z-index: 1000; left: 1rem; top: 1rem;
  padding: 0.75rem 1rem; background: var(--tmw-ink); color: #fff;
  transform: translateY(-200%);
}
.tmw-skip-link:focus { transform: translateY(0); }
.tmw-container { width: min(calc(100% - 2rem), var(--tmw-content-width)); margin-inline: auto; }
.tmw-reading-width { max-width: var(--tmw-reading-width); }
.tmw-main { min-height: 52vh; padding-block: clamp(3rem, 6vw, 6rem); }
.tmw-content-stack > * + * { margin-top: 1.5rem; }

.tmw-site-header {
  position: relative; z-index: 100;
  border-bottom: 1px solid var(--tmw-border);
  background: rgb(251 249 243 / 94%);
  backdrop-filter: blur(10px);
}
.tmw-header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.tmw-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--tmw-ink); text-decoration: none; flex-shrink: 0; }
.tmw-brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; color: var(--tmw-ink); font-size: 2rem; line-height: 1; }
.tmw-brand-copy { display: flex; flex-direction: column; }
.tmw-brand-copy strong { font-family: var(--tmw-serif); font-size: 1.25rem; line-height: 1.1; }
.tmw-brand-copy small { margin-top: 0.2rem; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.14em; line-height: 1.2; text-transform: uppercase; }
.custom-logo-link img { width: auto; max-height: 3rem; }
.tmw-header-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.tmw-menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); padding: 0; margin: 0; list-style: none; }
.tmw-menu a { color: var(--tmw-ink); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.tmw-menu a:hover, .tmw-menu .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.5rem; }
.tmw-search-link { display: grid; place-items: center; min-width: 2.5rem; min-height: 2.5rem; color: var(--tmw-ink); font-size: 1.7rem; text-decoration: none; }
.tmw-menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: 0.65rem; border: 1px solid var(--tmw-border); border-radius: var(--tmw-radius-sm); background: var(--tmw-paper-soft); }
.tmw-menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; margin: 0.24rem 0; background: var(--tmw-ink); transition: transform 160ms ease, opacity 160ms ease; }

.tmw-button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.72rem 1.15rem;
  border: 2px solid transparent; border-radius: var(--tmw-radius-sm);
  font-weight: 750; line-height: 1.2; text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.tmw-button:hover, .wp-block-button__link:hover { transform: translateY(-1px); }
.tmw-button--primary, .wp-block-button__link { background: var(--tmw-green); color: #fff; }
.tmw-button--primary:hover, .wp-block-button__link:hover { background: var(--tmw-green-dark); color: #fff; }
.tmw-button--secondary { border-color: var(--tmw-green); background: transparent; color: var(--tmw-green); }
.tmw-button--secondary:hover { background: var(--tmw-green-soft); }
.tmw-text-link { font-weight: 750; white-space: nowrap; }

.tmw-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.tmw-section-heading h2 { margin-bottom: 0.15em; }
.tmw-section-heading p { margin-bottom: 0; }
.tmw-eyebrow { color: var(--tmw-green); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.tmw-robot-note { color: var(--tmw-ink); font-family: var(--tmw-hand); font-size: 1.15rem; line-height: 1.3; transform: rotate(-2deg); }

.tmw-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tmw-card, .tmw-content-card {
  padding: 1.25rem; border: 1px solid var(--tmw-border); border-radius: var(--tmw-radius);
  background: var(--tmw-paper-soft); box-shadow: 0 1px 0 rgb(16 39 53 / 4%);
}
.tmw-card { display: flex; flex-direction: column; min-height: 100%; }
.tmw-card__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1rem; border-radius: var(--tmw-radius-sm); background: var(--tmw-blue); color: var(--tmw-ink); }
.tmw-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }
.tmw-card__footer { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.tmw-badge { display: inline-flex; align-items: center; min-height: 1.65rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--tmw-green-soft); color: var(--tmw-green-dark); font-size: 0.74rem; font-weight: 700; }

.tmw-empty-state { padding: clamp(2rem, 6vw, 5rem); border: 1px dashed var(--tmw-border); border-radius: var(--tmw-radius-lg); background: var(--tmw-paper-soft); text-align: center; }
.tmw-empty-state__mark { display: block; margin-bottom: 1rem; color: var(--tmw-green); font-size: 2.5rem; }
.tmw-empty-state p { max-width: 32rem; margin-inline: auto; }

.tmw-site-footer { border-top: 1px solid var(--tmw-border); background: var(--tmw-paper-soft); }
.tmw-footer-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding-block: 2rem; }
.tmw-footer-main .tmw-robot-note { justify-self: end; margin: 0; }
.tmw-menu--footer { gap: 1.25rem; }
.tmw-footer-meta { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--tmw-border); color: var(--tmw-muted); font-size: 0.78rem; }
.tmw-footer-meta p { margin: 0; }
.tmw-menu--legal { gap: 1rem; }
.tmw-menu--legal a { color: var(--tmw-muted); font-size: 0.78rem; font-weight: 500; }

@media (max-width: 60.99rem) {
  .tmw-menu-toggle { display: block; margin-left: auto; }
  .tmw-header-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    align-items: stretch; padding: 1rem; border-bottom: 1px solid var(--tmw-border);
    background: var(--tmw-paper-soft); box-shadow: var(--tmw-shadow);
  }
  .is-menu-open .tmw-header-nav { display: grid; }
  .is-menu-open .tmw-menu-toggle span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
  .is-menu-open .tmw-menu-toggle span:nth-of-type(3) { opacity: 0; }
  .is-menu-open .tmw-menu-toggle span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
  .tmw-primary-nav .tmw-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .tmw-primary-nav .tmw-menu a { display: block; padding: 0.8rem 0; }
  .tmw-search-link { position: absolute; top: -3.85rem; right: 4.75rem; }
  .tmw-header-cta { width: 100%; }
  .tmw-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmw-footer-main { grid-template-columns: 1fr 1fr; }
  .tmw-footer-main .tmw-robot-note { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 40rem) {
  .tmw-container { width: min(calc(100% - 1.25rem), var(--tmw-content-width)); }
  .tmw-brand-copy strong { font-size: 1.05rem; }
  .tmw-brand-copy small { display: none; }
  .tmw-card-grid { grid-template-columns: 1fr; }
  .tmw-section-heading { align-items: start; flex-direction: column; gap: 0.75rem; }
  .tmw-footer-main { grid-template-columns: 1fr; }
  .tmw-menu--footer { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .tmw-footer-meta { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Phase 3: shared page and catalog templates. */
.tmw-section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.tmw-section--ruled { border-top: 1px solid var(--tmw-border); }
.tmw-section--highlight {
  border-block: 1px solid var(--tmw-border);
  background: linear-gradient(110deg, rgb(232 245 184 / 32%), rgb(221 234 217 / 18%));
}
.tmw-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--tmw-border);
  background:
    radial-gradient(circle at 48% 12%, rgb(220 242 147 / 45%), transparent 43%),
    var(--tmw-paper);
}
.tmw-hero__grid, .tmw-product-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.98fr);
  align-items: stretch;
  min-height: 34rem;
}
.tmw-hero__content, .tmw-product-hero__content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem) clamp(3rem, 7vw, 6rem) 0;
}
.tmw-hero__content h1 { max-width: 12ch; }
.tmw-hero__lede { max-width: 42rem; color: var(--tmw-text); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; }
.tmw-button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.tmw-hero__visual, .tmw-product-hero__visual {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgb(16 58 46 / 8%)),
    repeating-linear-gradient(90deg, #d9c3a2 0 2px, #e7d8bb 2px 4rem);
  contain: layout paint;
}
.tmw-hero__visual img, .tmw-product-hero__visual > img:not(.tmw-product-icon) { width: 100%; height: 100%; object-fit: cover; }
.tmw-hero__visual--placeholder { display: grid; place-items: center; background: linear-gradient(145deg, var(--tmw-green-soft), var(--tmw-butter)); }
.tmw-workshop-mark { display: grid; place-items: center; width: 9rem; height: 9rem; border: 2px solid var(--tmw-green); border-radius: 50%; color: var(--tmw-green); font-size: 6rem; }
.tmw-hero__visual .tmw-robot-note { position: absolute; right: 8%; bottom: 8%; max-width: 10rem; padding: 1rem; background: var(--tmw-paper-soft); box-shadow: var(--tmw-shadow); }
.tmw-home-search, .tmw-catalog-search { position: relative; z-index: 2; margin-top: -1.7rem; }
.tmw-machine-search { display: grid; grid-template-columns: auto 1fr auto; align-items: center; max-width: 46rem; border: 1px solid var(--tmw-border); border-radius: var(--tmw-radius); background: #fff; box-shadow: var(--tmw-shadow); }
.tmw-machine-search > span { padding-left: 1rem; color: var(--tmw-ink); font-size: 1.7rem; }
.tmw-machine-search input { min-width: 0; height: 3.5rem; padding: 0 0.8rem; border: 0; background: transparent; outline: 0; }
.tmw-machine-search:focus-within { outline: 3px solid #a6bc35; outline-offset: 3px; }
.tmw-machine-search button { align-self: stretch; padding: 0 1.25rem; border: 0; border-radius: 0 var(--tmw-radius) var(--tmw-radius) 0; background: var(--tmw-green); color: #fff; font-weight: 750; cursor: pointer; }
.tmw-category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.85rem; }
.tmw-card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tmw-card-grid > .tmw-empty-state { grid-column: 1 / -1; }
.tmw-category-card { align-items: center; min-height: 17rem; text-align: center; }
.tmw-category-card__mark { font-size: 2.6rem; line-height: 1; }
.tmw-category-card h3 a, .tmw-machine-card h3 a, .tmw-collection-card h3 a { color: var(--tmw-ink); text-decoration: none; }
.tmw-category-card p { font-size: 0.9rem; }
.tmw-arrow-link { margin-top: auto; color: var(--tmw-ink); font-size: 1.5rem; text-decoration: none; }
.tmw-accent--blue .tmw-card__icon, .tmw-accent--blue.tmw-category-card { background: var(--tmw-blue); }
.tmw-accent--sage .tmw-card__icon, .tmw-accent--sage.tmw-category-card { background: var(--tmw-sage); }
.tmw-accent--butter .tmw-card__icon, .tmw-accent--butter.tmw-category-card { background: var(--tmw-butter); }
.tmw-accent--peach .tmw-card__icon, .tmw-accent--peach.tmw-category-card { background: var(--tmw-peach); }
.tmw-accent--lavender .tmw-card__icon, .tmw-accent--lavender.tmw-category-card { background: var(--tmw-lavender); }
.tmw-machine-card__title { margin-bottom: 0.4rem; font-size: 1.35rem; }
.tmw-machine-card__description { color: var(--tmw-text); font-size: 0.9rem; line-height: 1.5; }
.tmw-card__icon img { width: 2rem; height: 2rem; }
.tmw-badge--status { background: var(--tmw-butter); }
.tmw-price { display: flex; flex-direction: column; margin: 0; color: var(--tmw-ink); }
.tmw-price strong { font-size: 1.25rem; }
.tmw-price small { color: var(--tmw-muted); font-size: 0.72rem; }
.tmw-card__link { font-size: 0.78rem; font-weight: 750; white-space: nowrap; }
.tmw-collection-card { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.tmw-collection-card__art, .tmw-workshop-panel { display: flex; justify-content: center; flex-direction: column; gap: 0.35rem; min-height: 10rem; padding: 1rem; background: linear-gradient(145deg, #c9b089, #806b4e); }
.tmw-collection-card__art span, .tmw-workshop-panel span { padding: 0.25rem 0.5rem; background: #ede3d1; color: var(--tmw-ink); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; }
.tmw-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 0; list-style: none; }
.tmw-steps li { position: relative; padding-left: 3rem; }
.tmw-steps li > span { position: absolute; left: 0; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 2px solid var(--tmw-ink); border-radius: 50%; color: var(--tmw-ink); font-weight: 800; }
.tmw-steps strong { display: block; color: var(--tmw-ink); }
.tmw-steps p { margin: 0.25rem 0 0; font-size: 0.9rem; }
.tmw-philosophy { max-width: 55rem; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--tmw-border); border-radius: var(--tmw-radius-lg); background: var(--tmw-paper-soft); text-align: center; }
.tmw-philosophy h2 { margin-bottom: 0.25em; }
.tmw-philosophy p:last-child { margin: 0; }

.tmw-breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block: 1rem; color: var(--tmw-muted); font-size: 0.82rem; }
.tmw-product-hero { border-block: 1px solid var(--tmw-border); background: radial-gradient(circle at 36% 20%, rgb(232 245 184 / 45%), transparent 42%), var(--tmw-paper); }
.tmw-product-hero__content h1 { max-width: 13ch; }
.tmw-product-price { display: flex; align-items: baseline; gap: 0.4rem; color: var(--tmw-ink); }
.tmw-product-price strong { font-family: var(--tmw-serif); font-size: 2.25rem; font-weight: 400; }
.tmw-product-price span { color: var(--tmw-muted); font-size: 0.85rem; }
.tmw-key-facts { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--tmw-border); list-style: none; }
.tmw-key-facts li { display: flex; flex-direction: column; font-size: 0.82rem; }
.tmw-key-facts strong { color: var(--tmw-ink); }
.tmw-product-icon { width: 9rem; height: 9rem; }
.tmw-machine-content .wp-block-heading, .tmw-machine-content h2 { margin-top: 1.4em; }
.tmw-machine-content .wp-block-columns { gap: 1rem; }
.tmw-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tmw-detail-card, .tmw-good-to-know { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--tmw-border); border-radius: var(--tmw-radius-lg); background: var(--tmw-paper-soft); }
.tmw-detail-card h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.tmw-good-to-know { border-left: 5px solid var(--tmw-green); }
.tmw-final-cta { padding-block: clamp(3rem, 6vw, 5rem); background: var(--tmw-green-dark); color: #fff; text-align: center; }
.tmw-final-cta h2 { color: #fff; }
.tmw-button--light { background: var(--tmw-lime-glow); color: var(--tmw-green-dark); }
.tmw-button--light:hover { background: #f2facf; color: var(--tmw-green-dark); }
.tmw-interaction-module { padding-block: clamp(3rem, 7vw, 6rem); border-block: 1px solid var(--tmw-border); background: var(--tmw-paper-soft); }
.tmw-interaction-module__heading { max-width: 50rem; margin-bottom: 1.5rem; }
.tmw-interaction-module__heading h2 { margin-bottom: 0.25em; }
.tmw-interaction-module__body { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--tmw-border); border-radius: var(--tmw-radius-lg); background: #fff; box-shadow: 0 8px 28px rgb(16 39 53 / 6%); }
.tmw-machine-form { display: block; }
.tmw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.tmw-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.tmw-field--full { grid-column: 1 / -1; }
.tmw-field label, .tmw-confirmation { color: var(--tmw-ink); font-size: 0.88rem; font-weight: 750; }
.tmw-field input:not([type="file"]), .tmw-field textarea, .tmw-field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #b9b3a8;
  border-radius: var(--tmw-radius-sm);
  background: var(--tmw-paper-soft);
}
.tmw-field textarea { resize: vertical; }
.tmw-field input[type="file"] { min-height: 3rem; padding: 0.65rem; border: 1px dashed #9f998e; border-radius: var(--tmw-radius-sm); background: var(--tmw-paper-soft); }
.tmw-field small { color: var(--tmw-muted); font-size: 0.76rem; }
.tmw-field input:focus-visible, .tmw-field textarea:focus-visible, .tmw-field select:focus-visible { border-color: var(--tmw-green); }
.tmw-confirmation { display: flex; align-items: flex-start; gap: 0.7rem; margin-block: 1.25rem; font-weight: 500; }
.tmw-confirmation input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; }
.tmw-interaction-submit { width: 100%; }
.tmw-interaction-submit:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.tmw-interaction-notice { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; padding: 0.9rem 1rem; border-left: 4px solid var(--tmw-green); background: var(--tmw-green-soft); color: var(--tmw-green-dark); }
.tmw-interaction-notice p { margin: 0; }
.tmw-bootstrap-status { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; padding: 0.85rem 1rem; border: 1px solid var(--tmw-border); border-radius: var(--tmw-radius-sm); background: var(--tmw-paper-soft); }
.tmw-bootstrap-status p { flex: 1 1 16rem; margin: 0; }
.tmw-bootstrap-status[data-state="ready"] { border-color: var(--tmw-green); background: var(--tmw-green-soft); color: var(--tmw-green-dark); }
.tmw-bootstrap-status[data-state="error"] { border-color: #a53d2f; background: #fff0ec; color: #70251d; }
.tmw-bootstrap-status .tmw-button { min-height: 2.5rem; padding-block: 0.45rem; }
.tmw-bootstrap-status [hidden] { display: none !important; }
.tmw-spinner { width: 1.25rem; height: 1.25rem; border: 2px solid var(--tmw-border); border-top-color: var(--tmw-green); border-radius: 50%; animation: tmw-spin 700ms linear infinite; }
@keyframes tmw-spin { to { transform: rotate(360deg); } }
.tmw-machine-embed { position: relative; min-height: 36rem; overflow: hidden; border: 1px solid var(--tmw-border); border-radius: var(--tmw-radius); }
.tmw-machine-embed iframe { width: 100%; min-height: 36rem; border: 0; }
.tmw-taxonomy-hero { padding-block: clamp(4rem, 9vw, 8rem); border-bottom: 1px solid var(--tmw-border); background: radial-gradient(circle at 50% 0, rgb(232 245 184 / 50%), transparent 48%), var(--tmw-paper); text-align: center; }
.tmw-taxonomy-hero .tmw-reading-width { margin-inline: auto; }
.tmw-about-founder, .tmw-future-panel, .tmw-split-panel { display: grid; grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.tmw-workshop-panel { min-height: 22rem; padding: clamp(2rem, 6vw, 5rem); border-radius: var(--tmw-radius-lg); }
.tmw-values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tmw-values-grid article { padding: 1.5rem; border-right: 1px solid var(--tmw-border); text-align: center; }
.tmw-values-grid article:last-child { border: 0; }
.tmw-values-grid article > span { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--tmw-paper-soft); color: var(--tmw-ink); font-size: 2rem; }
.tmw-values-grid h3 { font-size: 1.2rem; }
.tmw-values-grid p { font-size: 0.88rem; }
.tmw-future-panel { padding: clamp(2rem, 4vw, 3rem); border-radius: var(--tmw-radius-lg); background: var(--tmw-butter); }
.tmw-newsletter { padding-block: 2rem; background: var(--tmw-green-dark); color: #fff; }
.tmw-newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.tmw-newsletter h2 { margin-bottom: 0.1em; color: #fff; font-size: 2rem; }
.tmw-newsletter p { margin: 0; }
.tmw-page-header { margin-bottom: 2rem; }
.tmw-page-content, .tmw-entry-content { overflow-wrap: anywhere; }
.tmw-page-content iframe, .tmw-entry-content iframe { max-width: 100%; }
.tmw-page-content table, .tmw-entry-content table, .tmw-machine-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.navigation.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-numbers { display: grid; place-items: center; min-width: 2.5rem; min-height: 2.5rem; padding: 0.35rem; border: 1px solid var(--tmw-border); border-radius: var(--tmw-radius-sm); background: var(--tmw-paper-soft); text-decoration: none; }
.page-numbers.current { background: var(--tmw-green); color: #fff; }
.tmw-catalog-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem 1.5rem;
  padding-block: 2rem;
}
.tmw-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tmw-filter-group + .tmw-filter-group { grid-column: 1; }
.tmw-filter-label { margin-right: 0.25rem; color: var(--tmw-muted); font-size: 0.8rem; font-weight: 750; }
.tmw-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--tmw-border);
  border-radius: 999px;
  background: var(--tmw-paper-soft);
  color: var(--tmw-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.tmw-filter-chip:hover { border-color: var(--tmw-green); background: var(--tmw-green-soft); }
.tmw-filter-chip.is-active { border-color: var(--tmw-green); background: var(--tmw-green); color: #fff; }
.tmw-sort-form { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; align-self: center; gap: 0.6rem; }
.tmw-sort-form label { color: var(--tmw-muted); font-size: 0.8rem; font-weight: 750; white-space: nowrap; }
.tmw-sort-form select { min-height: 2.65rem; padding: 0.45rem 2.3rem 0.45rem 0.7rem; border: 1px solid var(--tmw-border); border-radius: var(--tmw-radius-sm); background: var(--tmw-paper-soft); }
.tmw-sort-form .tmw-button { min-height: 2.65rem; padding-block: 0.45rem; }
.tmw-clear-filters { grid-column: 1 / -1; width: fit-content; font-size: 0.8rem; font-weight: 750; }
.tmw-free-controls { margin-bottom: 1.5rem; padding-top: 0; }
.has-open-menu { overflow: hidden; }

@media (forced-colors: active) {
  .tmw-button, .tmw-filter-chip, .page-numbers, .tmw-card { border: 1px solid ButtonText; }
  .tmw-filter-chip.is-active, .page-numbers.current { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  :focus, :focus-visible { outline-color: Highlight; }
}

@media (prefers-contrast: more) {
  :root { --tmw-border: #8d877d; --tmw-muted: #435158; }
  .tmw-card, .tmw-content-card, .tmw-filter-chip { border-width: 2px; }
}

@media (prefers-reduced-data: reduce) {
  .tmw-hero, .tmw-product-hero, .tmw-taxonomy-hero { background-image: none; }
}

@media print {
  .tmw-site-header, .tmw-site-footer, .tmw-newsletter, .tmw-final-cta, .tmw-catalog-controls, .tmw-machine-search { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .tmw-section { padding-block: 1.5rem; }
}

@media (max-width: 68rem) {
  .tmw-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tmw-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tmw-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmw-values-grid article:nth-child(2) { border-right: 0; }
}

@media (max-width: 52rem) {
  .tmw-hero__grid, .tmw-product-hero__grid { grid-template-columns: 1fr; }
  .tmw-hero__content, .tmw-product-hero__content { padding-right: 0; }
  .tmw-hero__visual, .tmw-product-hero__visual { min-height: 20rem; }
  .tmw-card-grid, .tmw-card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmw-about-founder, .tmw-future-panel, .tmw-split-panel { grid-template-columns: 1fr; }
  .tmw-catalog-controls { grid-template-columns: 1fr; }
  .tmw-sort-form { grid-column: 1; grid-row: auto; justify-self: start; }
}

@media (max-width: 40rem) {
  .tmw-category-grid, .tmw-card-grid, .tmw-card-grid--three, .tmw-detail-grid, .tmw-values-grid, .tmw-steps { grid-template-columns: 1fr; }
  .tmw-machine-search button { padding-inline: 0.8rem; }
  .tmw-collection-card { grid-template-columns: 1fr; }
  .tmw-collection-card__art { min-height: 8rem; }
  .tmw-values-grid article, .tmw-values-grid article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--tmw-border); }
  .tmw-newsletter__inner { align-items: flex-start; flex-direction: column; }
  .tmw-sort-form { align-items: flex-start; flex-wrap: wrap; }
  .tmw-form-grid { grid-template-columns: 1fr; }
  .tmw-field--full { grid-column: auto; }
}
