* { box-sizing: border-box; }
:root {
  --brand: #a50c00;
  --brand-dark: #7e0900;
  --accent: #ed5134;
  --peach: #fff1e9;
  --ink: #3e3836;
  --muted: #757575;
  --line: #eadbd5;
  --white: #fff;
}
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fffaf7; font: 16px/1.65 Arial, sans-serif; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
.shell, .romlicontainer { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px; background: #fff; }
.skip-link:focus { left: 8px; }
.site-header { background: var(--white); border-top: 5px solid var(--brand); }
.header-row { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; }
.brand img { display: block; max-height: 76px; object-fit: contain; }
.tagline { margin: 0; color: var(--muted); font-size: 1.05rem; }
.site-nav { position: sticky; top: 0; z-index: 5; background: var(--brand); box-shadow: 0 3px 14px #62090026; }
.nav-row { display: flex; align-items: stretch; overflow-x: auto; }
.site-nav a { flex: 0 0 auto; padding: 15px 17px; color: #fff; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--brand-dark); }
.site-main { min-height: 52vh; padding: 42px 0 64px; }
.content-card, .legacy-content, .article-shell {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 38px #6b2c1712;
}
.legacy-content, .article-shell { padding: clamp(22px, 4vw, 48px); }
.legacy-content > div:first-child { margin-top: 0; }
.page-header { margin: 0 0 28px; padding-bottom: 16px; border-bottom: 3px solid var(--accent); }
.page-header h1, .legacy-content h1 { margin-top: 0; color: var(--brand-dark); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); }
h2 { color: var(--brand); font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.25; }
h3 { color: #6f2720; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.35rem; }
.col2-set, .col3-set, .row, .item-list, .product-grid, .blog-grid, .references-slider ul,
.csc-textpic-imagewrap, .carousel, #tt-products-listcat ul {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.col2-set > *, .row > *, .item-list > *, .references-slider li { flex: 1 1 280px; min-width: 0; }
.col3-set > * { flex: 1 1 220px; }
.teaser-slider ul, .carousel, .references-slider ul, #sub-menu ul, #tt-products-listcat ul {
  margin: 0; padding: 0; list-style: none;
}
.teaser-slider .panel { display: none; }
.teaser-slider .panel:first-child, .teaser-slider .panel:has(img) { display: block; }
.teaser-slider img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 14px; }
#sub-menu { margin: 0 0 28px; padding: 14px; background: var(--peach); border-radius: 12px; }
#sub-menu ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
#sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; background: #fff; text-decoration: none; }
.tt-products, .item, .product, .blog-card, .reference-info {
  padding: 18px; background: #fff8f4; border: 1px solid var(--line); border-radius: 12px;
}
.carousel > li, .products > *, .product-list > * { flex: 1 1 180px; min-width: 0; }
.btn, button, input[type="submit"] {
  display: inline-flex; padding: 11px 18px; border: 0; border-radius: 999px; color: #fff; background: var(--accent);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
th, td { padding: 9px; border: 1px solid var(--line); }
iframe, video { max-width: 100%; }
.site-footer { padding: 42px 0 28px; color: #fff; background: #43100c; }
.footer-row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: #fff; }
.sitewide { margin-top: 24px; }
.romlifooter { padding-top: 20px; border-top: 1px solid #ffffff30; }
.romlidata { margin-top: 36px; }
.blog-grid { align-items: stretch; }
.blog-card { flex: 1 1 280px; }
.missing-media-note { padding: 12px; border-left: 4px solid var(--accent); background: var(--peach); }
@media (max-width: 720px) {
  .header-row { min-height: 88px; }
  .tagline { display: none; }
  .brand img { max-height: 60px; width: auto; }
  .site-nav { position: static; }
  .nav-row { width: 100%; }
  .site-nav a { padding: 12px 13px; }
  .site-main { padding: 24px 0 42px; }
  .legacy-content, .article-shell { width: min(100% - 20px, 1120px); padding: 20px; border-radius: 12px; }
}
