/* ToolsForModels — shared lightweight ecosystem chrome. No cards, no link walls. */
:root{--tfm-unit-ivory:#f7f4ee;--tfm-unit-ink:#171717;--tfm-unit-red:#9e2c2c;--tfm-unit-line:rgba(23,23,23,.14)}
.tfm-legacy-header,.tfm-legacy-footer,.mobile-bottom-nav{display:none!important}
.tfm-unit-header{position:relative;z-index:50;border-bottom:1px solid var(--tfm-unit-line);background:rgba(247,244,238,.97);color:var(--tfm-unit-ink)}
.tfm-unit-shell{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.tfm-unit-headrow{min-height:66px;display:flex;align-items:center;gap:24px}
.tfm-unit-brand{font-family:Georgia,'Times New Roman',serif;font-size:1.15rem;font-weight:700;color:inherit;text-decoration:none;white-space:nowrap}
.tfm-unit-nav{display:flex;gap:clamp(14px,2vw,28px);align-items:center;margin-left:auto}
.tfm-unit-nav a{font:600 .78rem/1.2 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:.025em;color:inherit;text-decoration:none;white-space:nowrap}
.tfm-unit-nav a[aria-current='page']{text-decoration:underline;text-decoration-color:var(--tfm-unit-red);text-underline-offset:5px}
.tfm-unit-lang{border:0;background:transparent;color:inherit;font:600 .74rem/1.2 system-ui,sans-serif;padding:4px 0;max-width:54px}
.tfm-unit-breadcrumb{width:min(1180px,calc(100% - 32px));margin:16px auto 0;font:500 .72rem/1.45 system-ui,sans-serif;color:#666;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.tfm-unit-breadcrumb a{color:inherit;text-decoration:none}.tfm-unit-breadcrumb a:hover{text-decoration:underline}
.tfm-unit-context{font:inherit;margin:18px 0}.tfm-unit-context a{color:inherit;text-decoration:underline;text-decoration-color:var(--tfm-unit-red);text-underline-offset:3px}.tfm-unit-context .tfm-unit-sep{opacity:.45;margin:0 .5em}
.tfm-unit-footer{border-top:1px solid var(--tfm-unit-line);background:var(--tfm-unit-ivory);color:var(--tfm-unit-ink);margin-top:clamp(36px,6vw,72px)}
.tfm-unit-footer .tfm-unit-shell{min-height:72px;display:flex;align-items:center;gap:16px;justify-content:space-between;font:500 .75rem/1.3 system-ui,sans-serif}
.tfm-unit-footer a{color:inherit}.tfm-unit-footbrand{font-family:Georgia,'Times New Roman',serif;font-size:.95rem;font-weight:700;text-decoration:none}.tfm-unit-footmeta{display:flex;align-items:center;gap:14px}
@media(max-width:760px){.tfm-unit-headrow{min-height:0;padding:13px 0 10px;display:grid;grid-template-columns:1fr auto;gap:10px 12px}.tfm-unit-nav{grid-column:1/-1;grid-row:2;margin:0;justify-content:space-between;gap:8px;overflow-x:auto;padding:2px 0 4px}.tfm-unit-nav a{font-size:.72rem}.tfm-unit-lang{grid-column:2;grid-row:1}.tfm-unit-footer .tfm-unit-shell{min-height:64px}.tfm-unit-breadcrumb{margin-top:12px}}
/* UX Sprint 1 — shared stable mobile navigation. Crawlable links stay in the HTML. */
.tfm-unit-menu-toggle{display:none;border:1px solid var(--tfm-unit-line);background:rgba(255,255,255,.56);color:inherit;min-height:40px;padding:0 11px;border-radius:999px;align-items:center;justify-content:center;gap:7px;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.tfm-unit-menu-toggle:hover{background:rgba(23,23,23,.055)}
.tfm-unit-menu-toggle:focus-visible{outline:2px solid var(--tfm-unit-ink);outline-offset:2px}
.tfm-unit-menu-label{font:700 .72rem/1 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;white-space:nowrap}
.tfm-unit-menu-icon{display:flex;width:16px;height:12px;flex-direction:column;justify-content:space-between;flex:none}
.tfm-unit-menu-icon span{display:block;width:100%;height:1.5px;border-radius:2px;background:currentColor;transform-origin:center;transition:transform .16s ease,opacity .16s ease}
.tfm-unit-menu-toggle[aria-expanded="true"] .tfm-unit-menu-icon span:nth-child(1){transform:translateY(5.25px) rotate(45deg)}
.tfm-unit-menu-toggle[aria-expanded="true"] .tfm-unit-menu-icon span:nth-child(2){opacity:0}
.tfm-unit-menu-toggle[aria-expanded="true"] .tfm-unit-menu-icon span:nth-child(3){transform:translateY(-5.25px) rotate(-45deg)}
@media(max-width:960px){
  .tfm-mobile-menu-header{position:sticky;top:0;z-index:90}
  .tfm-mobile-menu-header .tfm-unit-shell{width:min(1180px,calc(100% - 28px))}
  .tfm-mobile-menu-header .tfm-unit-headrow{position:relative;min-height:58px;padding:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center}
  .tfm-mobile-menu-header .tfm-unit-brand{grid-column:1;grid-row:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:1.15rem}
  .tfm-mobile-menu-header .tfm-unit-lang{grid-column:2;grid-row:1;width:auto;max-width:108px;min-width:0;padding:7px 18px 7px 5px;font-size:.71rem;text-overflow:ellipsis}
  .tfm-mobile-menu-header .tfm-unit-menu-toggle{grid-column:3;grid-row:1;display:inline-flex;min-width:44px;min-height:44px}
  .tfm-mobile-menu-header .tfm-mobile-menu-nav{position:absolute;z-index:100;top:calc(100% + 1px);right:0;left:auto;width:min(440px,100%);max-height:calc(100vh - 72px);margin:0;padding:8px 14px 12px;display:none;flex-direction:column;align-items:stretch;gap:0;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--tfm-unit-line);border-top:0;border-radius:0 0 16px 16px;background:rgba(247,244,238,.995);box-shadow:0 18px 36px rgba(23,23,23,.14);scroll-snap-type:none}
  .tfm-mobile-menu-header.tfm-mobile-menu-open .tfm-mobile-menu-nav{display:flex}
  .tfm-mobile-menu-header .tfm-mobile-menu-nav[hidden]{display:none!important}
  .tfm-mobile-menu-header .tfm-mobile-menu-nav a{display:flex;align-items:center;min-height:46px;margin:0;padding:6px 2px;border:0;border-bottom:1px solid rgba(23,23,23,.09);font-size:.88rem;letter-spacing:.012em;white-space:normal;scroll-snap-align:none}
  .tfm-mobile-menu-header .tfm-mobile-menu-nav a:last-child{border-bottom:0}
  .tfm-mobile-menu-header .tfm-mobile-menu-nav .tfm-unit-secondary{color:#625e5a;font-size:.8rem;font-weight:650}
  .tfm-mobile-menu-header .tfm-mobile-menu-nav .tfm-unit-creators{margin:8px 0 0;padding-top:12px;border-top:1px solid var(--tfm-unit-line)}
  .tfm-mobile-menu-header .tfm-mobile-menu-nav .tfm-unit-creators::before{display:none}
  .tfm-mobile-menu-header .tfm-mobile-menu-nav .tfm-unit-pro{margin:0;padding:6px 2px;border:0;border-radius:0}
}
@media(max-width:430px){
  .tfm-mobile-menu-header .tfm-unit-headrow{min-height:56px;gap:5px}
  .tfm-mobile-menu-header .tfm-unit-brand{font-size:1.07rem}
  .tfm-mobile-menu-header .tfm-unit-lang{max-width:88px;padding-left:2px;font-size:.69rem}
  .tfm-mobile-menu-header .tfm-unit-menu-toggle{padding:0 9px;gap:6px}
  .tfm-mobile-menu-header .tfm-unit-menu-label{font-size:.69rem}
  .tfm-mobile-menu-header .tfm-mobile-menu-nav{right:0;width:100%;padding:7px 12px 11px}
  .tfm-mobile-menu-header .tfm-mobile-menu-nav a{min-height:46px;font-size:.86rem}
}
@media(prefers-reduced-motion:reduce){.tfm-unit-menu-icon span{transition:none}}
