/* Desktop keeps its existing workspace; phones use a reading flow. */
.ft-disclosure{display:contents}
.ft-disclosure>summary,.ft-table-hint{display:none}
.ft-disclosure[hidden],.ft-table-hint[hidden]{display:none!important}
.ft-note-fold>.note{padding:0 16px;font-size:11px;line-height:1.6}
.ft-business-filter-fields{display:contents}
.ft-business-filter-fields>label:first-child{flex:initial}
@media(max-width:900px){
  .app>.ft-filters-fold{order:4}.app>.ft-statistics-fold{order:5}
  .app>.ft-note-fold,.wrap>.ft-note-fold{order:9}.app>.ft-legal-fold,.wrap>.ft-legal-fold{order:10}
}
@media(max-width:760px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body.ft-reading{font-size:14px;line-height:1.6}
  .ft-reading .ft-nav{gap:6px 15px;padding:10px 16px;font-size:12px}
  .ft-reading .ft-nav a{min-height:32px;display:inline-flex;align-items:center}
  .ft-reading .ft-nav .ft-home{font-weight:700}.ft-reading .ft-nav .ft-lang{padding:3px 13px}
  .ft-reading .top{padding:16px;gap:12px}
  .ft-reading .top .brand{align-items:flex-start;gap:10px}
  .ft-reading .brand h1{font-size:19px;line-height:1.4;white-space:normal;letter-spacing:0}
  .ft-reading .brand .mark{margin-top:3px}
  .ft-reading .brand .sub{display:block;font-size:12px;line-height:1.5;white-space:normal;margin-top:7px}
  .ft-reading .pills{gap:5px}.ft-reading .pill{white-space:normal;font-size:11px;line-height:1.5}
  .ft-reading .pills .pill:not(.main):not(.warn){display:none}
  .ft-reading .subline{font-size:11px;line-height:1.5}
  .ft-reading .search{width:100%;max-width:none}
  .ft-reading .search input{height:44px;font-size:16px;padding-right:70px}
  .ft-reading .search kbd{display:none}
  .ft-reading .top .acts{gap:8px;flex-wrap:wrap}
  .ft-reading .acts .ys-home{display:none}
  .ft-reading .btn{height:40px;font-size:13px;padding:0 12px;white-space:normal;line-height:1.35}
  .ft-reading .tabs{padding:0 12px;gap:4px;min-height:44px;scrollbar-width:thin}
  .ft-reading .tab{font-size:13px;line-height:1.45;padding:12px 10px;min-height:44px}
  .ft-reading .tab .n{font-size:11px}
  .ft-disclosure{display:block;min-width:0;flex:0 0 auto;border-bottom:1px solid var(--line);background:var(--panel,var(--card))}
  .ft-disclosure>summary{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 16px;list-style:none;cursor:pointer;color:var(--ink,var(--tx));font-size:14px;font-weight:600;line-height:1.5}
  .ft-disclosure>summary::-webkit-details-marker{display:none}
  .ft-disclosure>summary::after{content:'+';color:var(--muted,var(--tx3));font-size:20px;line-height:1;flex-shrink:0}
  .ft-disclosure[open]>summary::after{content:'−'}
  .ft-disclosure>summary:focus-visible{outline:2px solid #245747;outline-offset:-3px}
  .ft-fold-hint{font-size:12px;font-weight:400;color:var(--muted,var(--tx3));margin-left:auto;white-space:nowrap}
  .ft-disclosure[open]>summary{border-bottom:1px solid var(--line2,var(--line))}
  .ft-reading .chips{padding:14px 16px;gap:10px;max-width:100%;border-bottom:0}
  .ft-filters-fold .chips{display:grid;grid-template-columns:minmax(0,1fr)}
  .ft-filters-fold .chips>.lbl:first-child,.ft-filters-fold .chips>span[style="flex:1"]{display:none}
  .ft-filters-fold .qg{display:flex;align-items:center;width:100%;min-width:0;max-width:none;height:auto;min-height:48px;padding:6px 10px;gap:12px}
  .ft-filters-fold .qg .ql{font-size:13px;line-height:1.4;white-space:normal;flex:1 1 45%;min-width:0}
  .ft-filters-fold .qg select{font-size:14px;flex:1 1 48%;max-width:58%;min-width:0;height:36px}
  .ft-filters-fold .chip{max-width:100%;height:auto;min-height:40px;padding:8px 10px;font-size:13px;white-space:normal;flex-wrap:wrap;line-height:1.5}
  .ft-filters-fold .chip .x{margin-left:auto;font-size:20px;padding:4px}
  .ft-filters-fold .qb{height:40px;font-size:13px}
  .ft-filters-fold .lbl{font-size:12px;line-height:1.5}
  .ft-reading .ft-statistics-fold .statbar{padding:16px;border-bottom:0;overflow:visible;gap:12px}
  /* One reaction card followed by its corresponding probabilities. No paired scroll tracks. */
  body[data-ft-reading=annual] #statbar{display:grid;grid-template-columns:minmax(0,1fr);row-gap:0}
  body[data-ft-reading=annual] #statbar.hide{display:none}
  body[data-ft-reading=annual] .sb-row,body[data-ft-reading=annual] .sb-cards,body[data-ft-reading=annual] .sb-probs{display:contents}
  body[data-ft-reading=annual] .sb-lead{grid-row:1;width:auto;padding-bottom:12px;gap:6px}
  body[data-ft-reading=annual] .sb-lead .t{display:none}
  body[data-ft-reading=annual] .sb-lead .s{font-size:13px;line-height:1.55;max-width:100%;white-space:normal}
  body[data-ft-reading=annual] .sb-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0;width:100%;padding:14px 16px;border-radius:10px 10px 0 0;overflow:visible}
  body[data-ft-reading=annual] .sb-card:nth-child(1){grid-row:2}
  body[data-ft-reading=annual] .sb-card:nth-child(2){grid-row:4}
  body[data-ft-reading=annual] .sb-card:nth-child(3){grid-row:6}
  body[data-ft-reading=annual] .sb-l{width:100%;gap:8px}
  body[data-ft-reading=annual] .sb-top{display:flex;flex-wrap:wrap;gap:5px 10px;align-items:baseline}
  body[data-ft-reading=annual] .sb-name{font-size:15px;line-height:1.5;white-space:normal;flex:1 1 55%}
  body[data-ft-reading=annual] .sb-n{font-size:12px;line-height:1.5;flex:0 1 auto;white-space:normal;overflow:visible}
  body[data-ft-reading=annual] .sb-badge{flex:0 1 auto;max-width:100%;margin:3px 0 0;font-size:12px;line-height:1.5;padding:4px 9px;white-space:normal}
  body[data-ft-reading=annual] .sb-foot{font-size:12px;line-height:1.6;white-space:normal;overflow:visible}
  body[data-ft-reading=annual] .sb-r{width:100%;min-width:0;text-align:left;padding:10px 0 0;border-left:0;border-top:1px solid var(--line)}
  body[data-ft-reading=annual] .sb-big{font-size:25px;line-height:1.2;letter-spacing:0}
  body[data-ft-reading=annual] .sb-cap{font-size:12px;line-height:1.6;white-space:normal;margin-top:4px}
  body[data-ft-reading=annual] .sb-prob{width:100%;font-size:12px;gap:8px;padding:12px 14px 14px;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;margin-bottom:16px;background:var(--panel2)}
  body[data-ft-reading=annual] .sb-prob:nth-child(1){grid-row:3}
  body[data-ft-reading=annual] .sb-prob:nth-child(2){grid-row:5}
  body[data-ft-reading=annual] .sb-prob:nth-child(3){grid-row:7}
  body[data-ft-reading=annual] .sb-pr{grid-template-columns:minmax(88px,1.2fr) repeat(2,minmax(0,1fr));gap:10px;align-items:start}
  body[data-ft-reading=annual] .sb-pr.hd{font-size:11px;line-height:1.5}
  body[data-ft-reading=annual] .sb-prob .pl{white-space:normal;line-height:1.5;overflow:visible;letter-spacing:0}
  body[data-ft-reading=annual] .sb-prob .pc{flex-direction:column;align-items:flex-start;gap:6px}
  body[data-ft-reading=annual] .sb-prob .pv{font-size:16px;line-height:1.4;min-width:0}
  body[data-ft-reading=annual] .sb-prob .pb{flex:none;width:100%;height:6px;min-width:0}
  body[data-ft-reading=annual] .sb-concl{grid-row:8;font-size:13px;line-height:1.75;padding-top:12px}
  /* Tables scroll within their own viewport; reading tabs use the page scroll. */
  .ft-reading .app>.view{height:auto;min-height:0;overflow:visible}
  .ft-reading .app .scroll{flex:none;height:62dvh;min-height:340px;max-height:600px;overflow:auto}
  .ft-table-hint{display:block;margin:0;padding:10px 16px;font-size:12px;line-height:1.6;color:var(--muted,var(--tx3));background:var(--panel2)}
  .ft-reading table.grid{font-size:13px}
  .ft-reading table.grid .frz{left:auto!important;right:auto!important}
  .ft-reading .pages{overflow:visible;min-height:0;padding:16px 12px 28px}
  .ft-reading .card{margin-bottom:16px}
  .ft-reading .card>h3{flex-wrap:wrap;font-size:15px;line-height:1.55;gap:8px}
  .ft-reading .card .bd2{padding:14px;overflow-x:auto}
  .ft-reading .grid2{grid-template-columns:minmax(0,1fr)}
  .ft-reading .mth .row{grid-template-columns:minmax(0,1fr);gap:5px;font-size:13px;line-height:1.7}
  .ft-reading .banner,.ft-reading .note,.ft-reading .warnbox,.ft-reading .cite{font-size:13px;line-height:1.75;overflow-wrap:anywhere}
  .ft-reading .app>.status{padding:12px 16px;font-size:12px;line-height:1.6;gap:6px 12px}
  .ft-reading .ft-note-fold>.note{padding:14px 16px;margin:0!important;font-size:13px}
  .ft-reading .ft-legal-fold .legalbar{margin:12px!important;padding:14px!important;font-size:12px!important;line-height:1.8!important}
  .ft-reading .ft-legal-fold .legalbar>div:nth-child(2){grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .ft-reading .ft-legal-fold .legalbar>div:first-child{font-size:13px!important}
  .ft-reading .ft-legal-fold{margin-top:16px}
  .ft-reading .drawer{width:100%;max-width:100vw;border-left:0}
  .ft-reading .drawer:not(.on){visibility:hidden}
  .ft-reading .drawer .dh{padding:14px 16px;gap:8px;flex-wrap:wrap}
  .ft-reading .drawer .dh .ttl{flex:1 1 100%}
  .ft-reading .drawer .dh h3{font-size:17px;line-height:1.5;white-space:normal}
  .ft-reading .drawer .dh .sub{font-size:12px;line-height:1.6}
  .ft-reading .drawer dl.kv{grid-template-columns:minmax(0,1fr);gap:0;font-size:14px}
  .ft-reading .drawer dl.kv dt{white-space:normal;overflow:visible;font-size:12px;padding-top:12px;line-height:1.5}
  .ft-reading .drawer dl.kv dd{padding:3px 0 10px;border-bottom:1px solid var(--line2);line-height:1.6;overflow-wrap:anywhere;word-break:normal}
  .ft-reading .pop{max-width:calc(100vw - 20px)}
  .ft-reading .hhero{padding:8px 2px 20px;margin-bottom:18px}
  .ft-reading .htitle{font-size:26px;line-height:1.4;letter-spacing:0}
  .ft-reading .hsub{font-size:14px;line-height:1.8}
  .ft-reading .hkick{font-size:11px;letter-spacing:.12em}
  .ft-reading .hgrid{grid-template-columns:minmax(0,1fr);gap:12px;margin:0;padding:14px}
  .ft-reading .hcard{padding:14px 12px 42px}
  .ft-reading .hq{font-size:13px;line-height:1.6;min-height:0}
  .ft-reading .hbig{font-size:23px;line-height:1.3;letter-spacing:0;overflow-wrap:anywhere}
  .ft-reading .hsub2{font-size:12px;line-height:1.6}
  .ft-reading .hbtns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ft-reading .hbtn{height:auto;min-height:44px;font-size:13px;line-height:1.5;padding:9px 12px;white-space:normal}
  .ft-reading .ft-home-tests-fold,.ft-reading .ft-home-detail-fold{border:1px solid var(--line);border-radius:10px;margin-bottom:12px;overflow:hidden}
  .ft-reading .ft-home-detail-fold>.card{border:0;border-radius:0;margin:0}
  .ft-reading .ft-home-detail-fold>.card>h3{display:none}
  .ft-reading .or-header h2{font-size:23px;line-height:1.4}
  .ft-reading .or-detail{font-size:14px;line-height:1.8}
  .ft-reading .or-controls{grid-template-columns:minmax(0,1fr)}
  .ft-reading .or-controls input{font-size:16px}
  .ft-reading .ft-business-filters-fold{grid-column:1/-1;border:1px solid var(--line);border-radius:8px}
  .ft-reading .ft-business-filter-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}
  .ft-reading .or-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  /* Q3: compact introduction and optional supporting statistics before the list. */
  body[data-ft-reading=q3]>.wrap{padding:12px;gap:0}
  body[data-ft-reading=q3] .wrap>.ft-nav{padding:4px 0 10px;gap:6px 12px}
  body[data-ft-reading=q3] .ys-topbar{margin:8px 2px 14px;align-items:flex-start}
  body[data-ft-reading=q3] .ys-crumb{display:none}
  body[data-ft-reading=q3] .wrap>h1{font-size:23px;line-height:1.4;margin:0 4px 16px}
  body[data-ft-reading=q3] .ft-disclosure{border:1px solid var(--line);border-radius:8px;margin-bottom:10px}
  body[data-ft-reading=q3] .ft-intro-fold .sub{font-size:13px;line-height:1.8;padding:14px;margin:0}
  body[data-ft-reading=q3] .ft-intro-fold .source-name-note{font-size:13px!important;line-height:1.8;padding:0 14px 14px;margin:0!important}
  body[data-ft-reading=q3] .stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px;margin:0}
  body[data-ft-reading=q3] .stat{padding:12px}
  body[data-ft-reading=q3] .stat .v{font-size:23px;line-height:1.4}
  body[data-ft-reading=q3] .stat .n{font-size:12px;line-height:1.6}
  body[data-ft-reading=q3] .xref{margin:0;padding:14px;font-size:13px;line-height:1.8;border:0}
  body[data-ft-reading=q3] .tabs{margin-top:4px;margin-bottom:12px}
  body[data-ft-reading=q3] .q3-access-panel{padding:14px;gap:10px}
  body[data-ft-reading=q3] .q3-access-copy p{font-size:13px;line-height:1.65}
  body[data-ft-reading=q3] .q3-access-status{font-size:12px;line-height:1.6}
  body[data-ft-reading=q3] .q3-account,body[data-ft-reading=q3] .q3-access-retry,body[data-ft-reading=q3] .q3-columns summary{min-height:40px;display:inline-flex;align-items:center;font-size:13px}
  body[data-ft-reading=q3] .q3-columns summary{display:list-item;padding:8px 10px}
  body[data-ft-reading=q3] .ctl{padding:14px;gap:12px}
  body[data-ft-reading=q3] .ctl input{order:0;flex:1 1 100%;width:100%;height:44px;min-width:0;font-size:16px}
  body[data-ft-reading=q3] .ctl select{order:1;flex:1 1 100%;width:100%;height:42px;font-size:14px;min-width:0}
  body[data-ft-reading=q3] .ctl .chips{order:2;flex:1 1 100%;width:100%;flex-wrap:nowrap;overflow-x:auto;padding:0 0 3px;gap:6px}
  body[data-ft-reading=q3] .ctl .chip{flex-shrink:0;min-height:40px;font-size:13px;padding:8px 10px}
  body[data-ft-reading=q3] .pager{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:12px;gap:8px;font-size:12px}
  body[data-ft-reading=q3] .pager .sp{display:none}
  body[data-ft-reading=q3] .pager>*:not(.pbtn){grid-column:1/-1}
  body[data-ft-reading=q3] .pager .pbtn{font-size:13px;min-height:40px;padding:8px 10px}
  body[data-ft-reading=q3] .pager .pnum{min-width:0;flex:1 0 100%;order:2;text-align:center}
  body[data-ft-reading=q3] .dhead{padding:16px}.ft-reading .x{min-width:40px;min-height:40px}
  body[data-ft-reading=q3] .dbody{padding:16px}
  body[data-ft-reading=q3] .method{padding:18px 16px;font-size:14px;line-height:1.8;overflow-x:auto}
  body[data-ft-reading=q3] .modal{padding:12px}
  body[data-ft-reading=q3] .mhead{padding:16px}.ft-reading .mbody{padding:16px;overflow-x:auto}
}
