/* s180k (Talon): one RoadDXF logo on every page, drawn like the logo artwork: the copper mark, "RoadDXF", a copper
   rule and one line under it. On the home page that line is BOX / CLICK / CAD until you scroll, then it turns into
   "Back to top"; on every other page it is "Back to home". Images: logo-mark.png (mark), logo-word.png and
   logo-tagline.png (cut from the logo artwork). Loaded by every page with a logo. */
.rdxf-brand{ display:inline-flex; align-items:center; gap:11px; text-decoration:none !important; color:inherit; line-height:1; flex:none; }
.rdxf-brand-mark{ height:52px; width:auto; display:block; flex:none; }
.rdxf-brand-text{ display:flex; flex-direction:column; width:118px; flex:none; }
.rdxf-brand-word{ display:block; width:100%; height:auto; }
.rdxf-brand-rule{ display:block; height:2px; margin:5px 0 4px; border-radius:1px;
  background:linear-gradient(90deg, #8f4316 0%, #c9773e 50%, #8f4316 100%); }
.rdxf-brand-slot{ display:grid; align-items:center; height:12px; }
.rdxf-brand-slot > *{ grid-area:1 / 1; transition:opacity .28s ease, transform .28s ease; }
.rdxf-brand-tag{ display:block; width:100%; height:auto; }
.rdxf-brand-link{ display:block; font:700 9px/1 'Martian Mono','Space Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.1em; text-transform:uppercase; color:#a8500e; white-space:nowrap; }
.rdxf-brand:hover .rdxf-brand-link, .rdxf-brand:focus-visible .rdxf-brand-link{ color:#7a3a0a; text-decoration:underline; text-underline-offset:2px; }
.rdxf-brand:focus-visible{ outline:2px solid #c9773e; outline-offset:4px; border-radius:2px; }
/* every page but home: the line under the rule is the way home */
.rdxf-brand--home .rdxf-brand-tag{ opacity:0; }
/* home page: BOX / CLICK / CAD until you scroll, then "Back to top" */
.rdxf-brand--top .rdxf-brand-link{ opacity:0; transform:translateY(4px); }
.rdxf-brand--top.is-scrolled .rdxf-brand-tag{ opacity:0; transform:translateY(-4px); }
.rdxf-brand--top.is-scrolled .rdxf-brand-link{ opacity:1; transform:none; }
/* the dashboard inside the map page's sheet: no "Back to home" there (it would load home inside the sheet) */
html.rdxf-embed .rdxf-brand--home .rdxf-brand-tag{ opacity:1; }
html.rdxf-embed .rdxf-brand--home .rdxf-brand-link{ opacity:0; }
@media (max-width:520px){
  .rdxf-brand{ gap:8px; }
  .rdxf-brand-mark{ height:42px; }
  .rdxf-brand-text{ width:96px; }
  .rdxf-brand-rule{ margin:4px 0 3px; }
  .rdxf-brand-slot{ height:10px; }
  .rdxf-brand-link{ font-size:7.5px; }
}
@media (prefers-reduced-motion: reduce){ .rdxf-brand-slot > *{ transition:none; } }
