/* Shared navigation for the static factor tools. No external assets. */
.ft-nav{display:flex;align-items:center;gap:18px;flex:0 0 auto;padding:10px 20px;border-bottom:1px solid var(--line,#dfd2c6);font:12px/1.5 Arial,"Microsoft YaHei",sans-serif;color:var(--muted,var(--tx2,#857367));background:var(--panel,var(--card,#fffdf8));min-width:0}
.ft-nav a{color:inherit;text-decoration:none;padding:4px 0}.ft-nav a:hover{text-decoration:underline;text-underline-offset:4px}.ft-nav .ft-home{font-weight:600;color:var(--accent2,var(--a1,#714329))}.ft-nav .ft-lang{margin-left:auto;border:1px solid currentColor;border-radius:20px;padding:4px 13px;white-space:nowrap}.ft-nav .ft-context{font-size:10px;letter-spacing:1.3px;opacity:.8}
.ft-nav a:focus-visible,.ft-language:focus-visible{outline:2px solid #35805a;outline-offset:4px}.wrap>.ft-nav{margin:0 0 12px;padding:5px 0 10px;background:transparent}.ys-header+.ft-nav{max-width:1180px;margin:auto}
.app>.note{padding:0 16px;font-size:11px;line-height:1.6}
html[lang=en] h1,html[lang=en] h2,html[lang=en] h3{font-family:Georgia,"Times New Roman",serif;letter-spacing:0}html[lang=en] .ys-brand .bt{letter-spacing:.3px}
@media(max-width:620px){.ft-nav{gap:14px;padding:8px 12px;flex-wrap:wrap}.ft-nav .ft-context{display:none}.ft-nav .ft-lang{margin-left:auto}.legalbar>div:nth-child(2){grid-template-columns:minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Q3 is a reading page, not a fixed-height dashboard. Keep the data viewport
   usable even when disclosures, browser zoom or a short window need more room. */
body[data-ft-tool="q3"]{height:auto;min-height:100dvh;overflow:auto}
body[data-ft-tool="q3"]>.wrap{height:auto;min-height:100dvh}
body[data-ft-tool="q3"] #view-list{flex:0 0 auto;min-height:0}
body[data-ft-tool="q3"] #view-list .tbl{flex:0 0 auto;height:clamp(360px,60dvh,640px);min-height:360px}
/* Narrow screens use document scrolling; declarations remain in full below the tool. */
@media(max-width:900px){
  html,body{height:auto;min-height:100%;overflow:auto}
  .app{height:auto;min-height:100dvh;min-width:0;max-width:100%}
  .app>.ft-nav{order:0}.app>.top{order:1;min-width:0;max-width:100%}
  .app>.note{order:2;margin:8px 0!important}
  .app>.tabs{order:3;min-width:0;max-width:100%;flex:0 0 auto}
  .app>.chips{order:4;flex:0 0 auto}.app>.statbar{order:5;flex:0 0 auto}
  .app>.view{order:6;flex:0 0 auto;min-height:440px;height:65dvh;min-width:0;max-width:100%;overflow:auto}
  .app>.status{order:7;flex:0 0 auto;max-width:100%}
  .app>.legalbar{order:10;margin:20px 12px!important;max-width:calc(100% - 24px)}
  .top .acts{min-width:0;max-width:100%;width:100%;flex:1 1 100%;flex-wrap:wrap!important}
  .top .brand{min-width:0;max-width:100%}.top .brand h1{overflow-wrap:anywhere}
  .app .scroll{min-width:0;max-width:100%;overflow:auto}
  .wrap{height:auto;min-height:100dvh}
  .wrap>.legalbar{order:10;margin-top:20px!important}
  .wrap>.panel{flex:0 0 auto;min-width:0}.wrap .tbl{flex:0 0 auto;height:65dvh;min-height:340px}
}
