/*
 * TrainWerk Brand Finish 0.3.12-alpha - slightly larger proportional wordmark.
 * Copyright (C) 2026 Hans-Josef Pesch / TrainWerk.
 * TrainWerk Open Use License 1.0 - Backlink or a coffee appreciated.
 * Strictly scoped to existing header wordmark. Footer, navigation and other assets untouched.
 */
html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 13.5px;
  min-width: 0;
  text-decoration: none;
  /* Do not artificially thin the text with forced WebKit font smoothing. */
  -webkit-font-smoothing: auto;
  text-rendering: auto;
}
html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  flex: 0 0 50px;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background-color: #f97316;
  /* Vector fallback for disabled JavaScript; never a PNG. */
  background-image: url('../images/tw-mark.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: transparent;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-shadow: none;
  overflow: hidden;
  transform: none;
  filter: none;
  opacity: 1;
}
html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-mark[data-tw-vector='inline'] {
  background-image: none;
}
html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-mark > svg.tw-brand-logo-svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  transform: none;
  filter: none;
  opacity: 1;
  image-rendering: auto;
  shape-rendering: geometricPrecision;
}
html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-mark > svg.tw-brand-logo-svg rect {
  shape-rendering: crispEdges;
}
html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  font-family: var(--tw-font-heading, Inter, Arial, sans-serif);
  line-height: 1;
  -webkit-font-smoothing: auto;
  text-rendering: auto;
  font-kerning: normal;
  transform: none;
  filter: none;
}
html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-copy strong {
  display: block;
  font-family: var(--tw-font-heading, Inter, Arial, sans-serif);
  font-style: normal;
  font-variant: normal;
  font-weight: 600;
  font-size: 19.2px;
  line-height: 1.12;
  letter-spacing: 0.68px;
  margin: 0;
  padding: 0;
  color: #0f172a;
  white-space: nowrap;
  text-wrap: nowrap;
  max-width: none;
}
html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-copy small {
  display: block;
  font-family: var(--tw-font-heading, Inter, Arial, sans-serif);
  font-style: normal;
  font-weight: 500;
  font-size: 10.2px;
  line-height: 1.15;
  letter-spacing: 1.82px;
  margin: 5.6px 0 0;
  padding: 0;
  color: #64748b;
  white-space: nowrap;
  text-wrap: nowrap;
  text-transform: uppercase;
  max-width: none;
}
/* Reduce the increase at mid-widths before the navigation collapses. */
@media (min-width: 481px) and (max-width: 1180px) {
  html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark { gap: 13px; }
  html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-mark {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex-basis: 48px;
  }
  html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-copy strong { font-size: 18.4px; }
  html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-copy small {
    font-size: 9.8px;
    letter-spacing: 1.74px;
    margin-top: 5.3px;
  }
}
/* Compact layout: prioritize mobile navigation and prevent horizontal overflow. */
@media (max-width: 480px) {
  html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark { gap: 9px; }
  html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-mark {
    width: clamp(38px, 9.8vw, 42px);
    height: clamp(38px, 9.8vw, 42px);
    min-width: clamp(38px, 9.8vw, 42px);
    flex-basis: clamp(38px, 9.8vw, 42px);
  }
  html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-copy strong {
    font-size: clamp(12px, 3.4vw, 16px);
  }
  html body.tw-site .tw-header .tw-navrow a.tw-brand-with-mark .tw-brand-copy small {
    font-size: clamp(6px, 1.5vw, 8px);
    letter-spacing: clamp(.5px, .3vw, 1.2px);
  }
}
