/* Fonts lives inside the existing library shell. No nested site header or hero. */
body[data-list=fonts] main#content{padding-top:12px!important}
body[data-list=fonts] .tb-index{display:none!important}
.fl-page{--fl-size:64px;--fl-muted:#787878;color:inherit;width:100%;max-width:none}
.fl-heading{display:flex;align-items:center;justify-content:flex-end;gap:24px;margin:10px 0 28px;padding:0;background:none}
.fl-heading p{font-size:10px;letter-spacing:.13em;font-weight:600;margin:0 0 8px;color:var(--fl-muted)}
.fl-heading h1{font-size:clamp(32px,3.2vw,48px);font-weight:500;line-height:1.15;letter-spacing:-.055em;margin:0}
.fl-heading>span{font-size:13px;line-height:1.6;color:var(--fl-muted);text-align:right}
.fl-playground{display:flex;align-items:center;gap:24px;padding:16px 22px;border-radius:24px;background:#f4f4f4;margin-bottom:20px;scroll-margin-top:180px}
.fl-page button,.fl-page input,.fl-page select,.fl-dialog button,.fl-dialog select{font:inherit;color:inherit}
.fl-page button,.fl-dialog button{cursor:pointer;border:0}
.fl-preview-label{display:flex;align-items:center;gap:16px;flex:1;min-width:120px}
.fl-preview-label>span{font-size:24px;letter-spacing:-.08em;color:#929292}
.fl-preview-label input{width:100%;min-width:0;border:0;background:none;outline-offset:5px;padding:10px 0;font-size:16px}
.fl-size-label{display:flex;align-items:center;gap:12px;font-size:12px;white-space:nowrap}
.fl-size-label input{width:110px;accent-color:#242424}
.fl-tools{display:flex;align-items:center;gap:4px;white-space:nowrap}
.fl-tools button,.fl-pagination button{background:transparent;border-radius:99px;padding:10px 12px;font-size:13px;transition:background-color 180ms}
.fl-tools button[aria-pressed=true]{background:#e3e3e3}
.fl-search-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}
.fl-search-row label{display:flex;align-items:center;gap:10px;min-width:0;flex:1;max-width:440px}
.fl-search-row svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none;color:#888}
.fl-search-row input{width:100%;padding:8px 0;border:0;background:transparent;font-size:14px;outline-offset:5px}
.fl-search-row>span{font-size:12px;color:var(--fl-muted)}
.fl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 16px;align-items:start}
.fl-card{min-width:0;background:none}
.fl-specimen{display:flex;flex-direction:column;min-height:330px;padding:22px 24px 16px;border-radius:28px;background:var(--fl-paper);color:var(--fl-ink);transition:transform 240ms cubic-bezier(.23,1,.32,1)}
.fl-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;text-transform:uppercase;letter-spacing:.06em}
.fl-separator{opacity:.35;margin:0 6px}
.fl-card-top>div{display:flex;gap:4px}
.fl-card-top button,.fl-card-foot button{display:grid;place-items:center;background:transparent;color:inherit;width:30px;height:30px;border-radius:99px;font-size:18px;padding:5px}
.fl-card-top svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.fl-card-top button[aria-pressed=true] svg{fill:currentColor}
.fl-type{flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:220px;width:100%;text-align:left;background:transparent;color:inherit;padding:.28em .02em .3em;font-size:var(--fl-size)!important;line-height:1.25!important;letter-spacing:-.045em;overflow:visible;transition:transform 240ms cubic-bezier(.23,1,.32,1)}
.fl-type.fl-jp{line-height:1.55!important;letter-spacing:0}
.fl-line{display:block;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.fl-card-foot{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:.08em;min-height:30px}
.fl-load{opacity:.6}
.fl-caption{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:15px 8px 0}
.fl-caption h2{font-size:16px;font-weight:600;line-height:1.35;margin:0 0 3px;letter-spacing:-.02em}
.fl-caption p{font-size:12px;line-height:1.5;color:var(--fl-muted);margin:0}
.fl-caption>span{font-size:11px;color:var(--fl-muted);white-space:nowrap;margin-top:3px}
.fl-inverted .fl-specimen{background:var(--fl-ink);color:var(--fl-paper)}
.fl-pagination{display:flex;align-items:center;justify-content:space-between;margin:40px 0 16px;font-size:13px;color:var(--fl-muted)}
.fl-pagination button{color:inherit}.fl-pagination button:disabled{opacity:.3;cursor:default}
.fl-note{font-size:11px;line-height:1.6;color:var(--fl-muted);margin-bottom:40px}
.fl-empty{padding:60px 20px;text-align:center;color:var(--fl-muted)}
.fl-filter-row{display:flex;gap:8px;align-items:center}
.fl-filter{font-family:inherit!important;white-space:nowrap;background:transparent;position:relative}
.fl-filter select{font:inherit;color:inherit;border:0;background:transparent;cursor:pointer;padding-right:2px;max-width:180px;outline-offset:5px}
.fl-shortlist[aria-pressed=true]{background:#eee!important;color:#141414!important}
.fl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* Keep the same viewport center during exit, even as the page scrollbar returns. */
.fl-dialog{position:fixed;inset:0 auto 0 50vw;margin:auto 0;transform:translateX(-50%);box-sizing:border-box;width:min(820px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);border:0;border-radius:28px;padding:32px;background:#fff;color:#171717;box-shadow:0 24px 90px #0003;overflow:auto}
/* Keep the native dialog in the top layer until its fade-out finishes. */
.fl-dialog{opacity:0;transition:opacity 150ms ease-out,display 150ms allow-discrete,overlay 150ms allow-discrete}
.fl-dialog[open]{opacity:1}
.fl-dialog::backdrop{background:#2225;backdrop-filter:blur(7px);opacity:0;transition:opacity 150ms ease-out,display 150ms allow-discrete,overlay 150ms allow-discrete}
.fl-dialog[open]::backdrop{opacity:1}
@starting-style{.fl-dialog[open],.fl-dialog[open]::backdrop{opacity:0}}
.fl-dialog header{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.08em}
.fl-dialog header button{width:36px;height:36px;border-radius:50%;background:#f3f3f3;display:grid;place-items:center;padding:0;line-height:1}
.fl-dialog [data-font-close] svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.5}
.fl-dialog .fl-detail-header{gap:24px;align-items:flex-start}
.fl-dialog .fl-detail-header h2{margin:0;flex:1;min-width:0}
.fl-dialog .fl-detail-header [data-font-close]{flex:none}
.fl-font-detail{--fl-detail-ease:cubic-bezier(.23,1,.32,1);transition:height 240ms var(--fl-detail-ease),opacity 150ms ease-out,display 150ms allow-discrete,overlay 150ms allow-discrete;overflow-anchor:none;scrollbar-gutter:stable}
.fl-font-detail.fl-measuring{transition:opacity 150ms ease-out,display 150ms allow-discrete,overlay 150ms allow-discrete}
.fl-measuring .fl-detail-body{transition:none!important}
.fl-dialog h2{font-size:clamp(28px,4vw,40px);line-height:1.3;letter-spacing:-.04em;font-weight:500;margin:20px 0 8px;overflow-wrap:anywhere}
.fl-detail-designer,.fl-detail-status,.fl-coverage{font-size:12px;line-height:1.6;color:#888}
.fl-detail-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:24px 0}
.fl-detail-controls label{font-size:12px;display:flex;align-items:center;gap:6px}
.fl-detail-controls select,.fl-detail-controls button{border:0;background:#f3f3f3;border-radius:99px;padding:10px 13px;font-size:12px}
.fl-detail-controls button[aria-pressed=true]{background:#222;color:white}
.fl-detail-controls .fl-detail-select{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;min-width:84px;padding:10px 14px;font:inherit;color:inherit;cursor:pointer}
.fl-detail-select svg{display:block;width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform 180ms var(--fl-detail-ease)}
.fl-detail-select[aria-expanded=true] svg{transform:rotate(180deg)}
.tb-menu.tb-menu-compact{display:block!important;border-radius:18px!important}
.tb-menu-compact::backdrop{background:transparent;backdrop-filter:none}
.tb-menu-compact [data-part=menuScroll]{width:100%!important;max-height:inherit!important}
.tb-menu-compact [data-value]{min-height:40px}
.fl-detail-type{font-size:clamp(38px,6vw,72px);line-height:1.4;letter-spacing:-.025em;padding:32px 26px 40px;background:var(--fl-paper);color:var(--fl-ink);border-radius:20px;white-space:pre-wrap;overflow-wrap:anywhere;overflow:visible}
.fl-detail-type.fl-jp{line-height:1.65;letter-spacing:0}.fl-detail-type.fl-paragraph{font-size:25px;line-height:1.8}
.fl-glyphs{font-size:26px;line-height:1.9;padding:20px 0;overflow-wrap:anywhere}
.fl-source{display:inline-block;background:#222;color:#fff;border-radius:99px;padding:12px 18px;text-decoration:none;font-size:13px;margin-top:12px}
.fl-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:20px 0 24px}
.fl-detail-actions button,.fl-detail-actions .fl-source{font:inherit;font-size:12px;line-height:20px;border:0;border-radius:99px;padding:10px 14px;margin:0;cursor:pointer}
.fl-detail-actions button{background:#f3f3f3;color:inherit}
.fl-detail-actions button[aria-pressed=true]{background:#222;color:#fff}
.fl-detail-section{margin:4px 0}
.fl-detail-section>summary{padding:14px 0;font-size:13px;cursor:pointer}
.fl-font-detail .fl-detail-section>summary{display:flex;align-items:center;gap:10px;list-style:none}
.fl-font-detail .fl-detail-section>summary::-webkit-details-marker{display:none}
.fl-font-detail .fl-detail-section>summary::before{content:'';width:6px;height:6px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform 240ms var(--fl-detail-ease)}
.fl-font-detail .fl-detail-section>summary[aria-expanded=true]::before{transform:rotate(45deg)}
.fl-detail-body{height:0;overflow:hidden;opacity:0;transition:height 240ms var(--fl-detail-ease),opacity 180ms var(--fl-detail-ease)}
.fl-detail-body-content{display:flow-root}
.fl-detail-section .fl-brand-connection{margin:0 0 16px}
.fl-detail-section .fl-glyphs{padding:8px 0}
@media(prefers-reduced-motion:reduce){.fl-dialog,.fl-dialog::backdrop,.fl-font-detail,.fl-detail-body,.fl-detail-select svg,.fl-font-detail .fl-detail-section>summary::before{transition:none}}
html[data-theme=dark] .fl-detail-actions button{background:#333;color:#eee}
html[data-theme=dark] .fl-detail-actions button[aria-pressed=true]{background:#eee;color:#222}
.fl-page :focus-visible,.fl-dialog :focus-visible,.fl-filter:focus-visible{outline:2px solid #7b65dd;outline-offset:4px}
html[data-theme=dark] .fl-playground{background:#252525}html[data-theme=dark] .fl-dialog{background:#1c1c1c;color:#eee}html[data-theme=dark] .fl-detail-controls button,html[data-theme=dark] .fl-detail-controls select,html[data-theme=dark] .fl-dialog header button{background:#333;color:#eee}
@media(hover:hover) and (pointer:fine){.fl-specimen:hover{transform:translateY(-3px)}.fl-specimen:hover .fl-type{transform:translate(3px,-2px)}.fl-tools button:hover,.fl-pagination button:not(:disabled):hover{background:#e5e5e5}.fl-card-top button:hover,.fl-card-foot button:hover{background:#ffffff33}}
@media(min-width:1700px){.fl-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){.fl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fl-playground{gap:16px;flex-wrap:wrap}.fl-preview-label{flex-basis:calc(100% - 200px)}.fl-tools{margin-left:auto}}
@media(max-width:600px){.fl-grid{grid-template-columns:1fr;gap:28px}.fl-heading{margin:8px 0 22px}.fl-heading>span{font-size:11px}.fl-playground{padding:14px 16px;border-radius:20px;gap:10px}.fl-preview-label{flex-basis:100%}.fl-size-label{flex:1}.fl-size-label input{min-width:50px;width:100%}.fl-tools{gap:0}.fl-tools button{padding:8px;font-size:12px}.fl-search-row>span{display:none}.fl-specimen{min-height:310px;padding:18px 22px 12px}.fl-type{min-height:210px}.fl-filter select{max-width:135px}.fl-dialog{padding:22px;max-height:calc(100dvh - 24px)}.fl-detail-type{padding:24px 18px 32px}.fl-glyphs{font-size:22px}.fl-pagination{gap:8px}.fl-pagination button{padding:10px 8px}}
@media(prefers-reduced-motion:reduce){.fl-specimen,.fl-type{transition:none!important}.fl-specimen:hover,.fl-specimen:hover .fl-type{transform:none}}

.fl-search-result{width:100%;border:0;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}.fl-search-result:hover{background:#8881}

.fl-world{margin-top:80px}.fl-section-heading p,.fl-originals p{font-size:10px;letter-spacing:.1em;color:var(--fl-muted)}.fl-section-heading h2,.fl-originals h2{font-size:28px;letter-spacing:-.04em;font-weight:500;margin:10px 0 24px}.fl-world-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.fl-world-grid a{display:flex;flex-direction:column;align-items:start;gap:32px;border-radius:24px;background:#f2f2f0;color:#222;text-decoration:none;padding:24px}.fl-world-grid span{font-size:10px;letter-spacing:.08em}.fl-world-grid strong{font-size:clamp(24px,3vw,42px);letter-spacing:-.05em;font-weight:500;line-height:1.4;overflow-wrap:anywhere}.fl-world-grid small{font-size:11px;color:#777}.fl-originals{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:32px 0;margin:40px 0}.fl-originals h2{margin-bottom:0}.fl-originals>span{font-size:13px;line-height:1.7;color:var(--fl-muted)}@media(max-width:600px){.fl-world-grid{grid-template-columns:1fr}.fl-originals{align-items:start;flex-direction:column}.fl-world{margin-top:48px}}

.tb-palette[data-fonts] [data-part=paletteAside]{display:none!important}.tb-palette[data-fonts] [data-part=paletteBody]{grid-template-columns:1fr!important}

/* Collection discovery */
.fl-discovery-tabs{display:flex;gap:4px;padding:5px;background:#f3f3f3;border-radius:99px}.fl-discovery-tabs button{background:transparent;border-radius:99px;padding:12px 18px;font-size:13px;white-space:nowrap}.fl-discovery-tabs button[aria-pressed=true]{background:#fff;box-shadow:0 2px 8px #0000000a}.fl-discovery-tabs span{opacity:.5;margin-left:6px}
.fl-world{margin:34px 0 54px}.fl-world-heading{display:flex;justify-content:flex-end;align-items:end;gap:24px;margin-bottom:22px}.fl-world-heading p{font-size:10px;letter-spacing:.12em;color:var(--fl-muted);margin:0 0 10px}.fl-world-heading h2{font-size:clamp(24px,2.5vw,34px);font-weight:500;letter-spacing:-.045em;margin:0 0 10px}.fl-world-intro{font-size:13px;line-height:1.6;color:var(--fl-muted)}.fl-world-heading>button{background:#f3f3f3;border-radius:99px;padding:13px 18px;font-size:12px;white-space:nowrap}
.fl-brand-card{min-width:0}.fl-brand-open{display:flex;flex-direction:column;width:100%;min-height:260px;padding:24px;text-align:left;background:var(--fl-paper);color:var(--fl-ink)!important;border-radius:26px;transition:transform 220ms}.fl-brand-top,.fl-brand-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;font-size:10px;line-height:1.5}.fl-brand-top>span:last-child{opacity:.65;text-align:right;font-size:9px}.fl-brand-name{font-size:16px;font-weight:600;letter-spacing:-.04em}.fl-brand-sample{display:flex;flex-direction:column;justify-content:center;flex:1;padding:30px 0;font-size:clamp(30px,3vw,48px);line-height:1.17;letter-spacing:-.045em;overflow-wrap:anywhere}.fl-brand-sample>span{display:block}.fl-brand-bottom{opacity:.75}
.fl-collection-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.fl-collection-heading h2{font-weight:500;font-size:26px;letter-spacing:-.04em;margin:0}.fl-collection-heading>span{font-size:12px;color:var(--fl-muted)}.fl-original-badge{display:inline-flex;align-items:center;gap:7px;font-size:9px}.fl-original-badge svg{width:18px;height:18px;fill:currentColor;stroke:none}.fl-coverage-warning{font-family:Arial,sans-serif!important;font-size:11px;line-height:1.6;margin:4px 0 10px;opacity:.75}.fl-coverage-warning[hidden]{display:none}.fl-missing-char{font-family:Arial,sans-serif;opacity:.35;text-decoration:underline dotted;text-underline-offset:.1em}.fl-experimental,.fl-brand-connection{padding:18px 20px;background:#f4f4f4;border-radius:18px;margin:22px 0;font-size:12px;line-height:1.7}.fl-brand-connection p{margin:0;font-size:10px;letter-spacing:.08em}.fl-brand-connection h3{font-size:22px;font-weight:500;letter-spacing:-.035em;margin:6px 0}.fl-brand-connection a{display:inline-block;margin-top:10px;color:inherit}.fl-experimental{color:#777}
html[data-theme=dark] .fl-discovery-tabs,html[data-theme=dark] .fl-world-heading>button,html[data-theme=dark] .fl-experimental,html[data-theme=dark] .fl-brand-connection{background:#252525}html[data-theme=dark] .fl-discovery-tabs button[aria-pressed=true]{background:#3a3a3a}
@media(hover:hover){.fl-brand-open:hover{transform:translateY(-3px)}}
@media(max-width:1050px){.fl-world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fl-brand-sample{font-size:38px}}
@media(max-width:600px){.fl-heading{align-items:start;flex-direction:column;gap:20px}.fl-discovery-tabs{width:100%}.fl-discovery-tabs button{flex:1;padding:12px}.fl-world{margin:24px 0 38px}.fl-world-heading{align-items:start;flex-direction:column;gap:14px}.fl-world-grid{grid-template-columns:1fr}.fl-brand-open{min-height:245px}.fl-brand-sample{font-size:42px}.fl-collection-heading{align-items:start;flex-direction:column;gap:6px}.fl-tools{margin-left:0}.fl-preview-label{flex-basis:auto}.fl-playground{flex-wrap:nowrap}.fl-preview-label input{font-size:14px}.fl-tools button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.fl-brand-open{transition:none}}

.fl-world-grid .fl-brand-sample>span{font-size:inherit;letter-spacing:inherit;line-height:inherit}.fl-world-grid .fl-brand-name{font-size:16px;letter-spacing:-.04em}

.fl-brand-name{display:inline-flex;align-items:center;gap:10px}.fl-brand-logo{width:28px;height:28px;object-fit:contain;flex:none}.fl-brand-description{font-family:inherit;font-size:12px;line-height:1.65;opacity:.75;margin:18px 0 0}.fl-brand-reference-note{font-size:9px!important;opacity:.5;margin-top:12px}.fl-brand-sample[data-reference]{font-family:inherit!important;font-size:32px;letter-spacing:-.035em}.fl-brand-open{min-height:350px}.fl-brand-detail-logo{margin-top:24px}.fl-brand-detail-logo img{object-fit:contain}.fl-filter{display:inline-flex;align-items:center;gap:7px}.fl-world-filter-label{font-size:13px}.fl-brand-top{min-height:30px}

.fl-brand-connection p{font-size:13px;letter-spacing:0;line-height:1.8}.fl-brand-open[aria-label="Discover Apple typography"] .fl-brand-reference-note{opacity:.65}

/* Compact brand specimens: explanation lives in the detail view. */
.fl-brand-open{min-height:260px}.fl-brand-description{display:none}.fl-brand-reference-note{margin-top:6px}.fl-brand-sample{padding:24px 0}.fl-brand-sample[data-reference]{font-size:30px}@media(max-width:600px){.fl-brand-open{min-height:245px}}

.fl-world-scopes{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.fl-world-scopes[hidden]{display:none}.fl-world-scopes button,.fl-world-pagination button{background:#f2f2f2;border-radius:99px;padding:12px 17px;font-size:12px}.fl-world-scopes button[aria-pressed=true]{background:#222;color:#fff}.fl-world-pagination{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;color:var(--fl-muted);margin-top:24px}.fl-world-pagination:has(button[hidden]):has(span:empty){display:none}html[data-theme=dark] .fl-world-scopes button,html[data-theme=dark] .fl-world-pagination button{background:#282828}html[data-theme=dark] .fl-world-scopes button[aria-pressed=true]{background:#eee;color:#222}.fl-brand-sample{max-height:none}.fl-brand-bottom>span:first-child{max-width:65%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

.fl-world-coverage{font-size:11px;line-height:1.7;color:var(--fl-muted);margin:20px 0 0}.fl-evidence-stack{font-family:monospace;font-size:11px!important;overflow-wrap:anywhere;margin-top:14px!important}.fl-world-scopes button:focus-visible{outline:2px solid #7b65dd;outline-offset:3px}

/* Browsable brand strip inside the full collection. */
.fl-world-grid.fl-world-rail{display:flex;gap:18px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:2px;padding:4px 2px 16px;scrollbar-width:thin}
.fl-world-rail .fl-brand-card{flex:0 0 calc((100% - 36px)/3);scroll-snap-align:start}
.fl-world-rail-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0 10px;font-size:12px;opacity:.85}
.fl-world-rail-controls[hidden]{display:none}
.fl-world-rail-controls>div{display:flex;gap:8px}
.fl-world-rail-controls button{width:40px;height:40px;border:0;border-radius:50%;background:#f0f0f0;color:inherit;font-size:20px;cursor:pointer;transition:transform 180ms,background 180ms}
.fl-world-rail-controls button:active{transform:scale(.94)}
html[data-theme=dark] .fl-world-rail-controls button{background:#292929}
.fl-world-rail:focus-visible,.fl-world-rail-controls button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(max-width:900px){.fl-world-rail .fl-brand-card{flex-basis:calc((100% - 18px)/2)}}
@media(max-width:600px){.fl-world-rail .fl-brand-card{flex-basis:86%}.fl-world-rail .fl-brand-sample{font-size:36px}}
@media(prefers-reduced-motion:reduce){.fl-world-rail-controls button{transition:none}}

.fl-world-grid.fl-world-rail{display:grid;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:calc((100% - 36px)/3);grid-template-columns:none;align-items:stretch}
@media(max-width:900px){.fl-world-grid.fl-world-rail{grid-auto-columns:calc((100% - 18px)/2)}}
@media(max-width:600px){.fl-world-grid.fl-world-rail{grid-template-rows:auto;grid-auto-columns:86%}}

/* TOBIRA brand navigation: quiet pill track, no system scrollbar. */
.fl-world-grid.fl-world-rail{scrollbar-width:none;padding-bottom:4px}
.fl-world-rail::-webkit-scrollbar{display:none}
.fl-brand-scroll{height:28px;display:flex;align-items:center;position:relative;cursor:pointer;touch-action:none;margin:8px 2px 12px;color:#525252}
.fl-brand-scroll:before{content:'';position:absolute;left:0;right:0;height:4px;border-radius:99px;background:rgba(0,0,0,.055)}
.fl-brand-scroll>span{display:block;height:4px;border-radius:99px;background:currentColor;opacity:.4;will-change:transform;transition:height 180ms,opacity 180ms;pointer-events:auto}
.fl-brand-scroll:hover>span,.fl-brand-scroll:focus-visible>span,.fl-brand-scroll:active>span{height:7px;opacity:.8}
.fl-brand-scroll:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:99px}
.fl-brand-scroll[hidden]{display:none}
html[data-theme=dark] .fl-brand-scroll{color:#e7e7e7}
html[data-theme=dark] .fl-brand-scroll:before{background:rgba(255,255,255,.09)}
@media(prefers-reduced-motion:reduce){.fl-brand-scroll>span{transition:none}}

/* Invert is an interruptible state change; retain hover contrast. */
.fl-page .fl-specimen{transition:transform 240ms cubic-bezier(.23,1,.32,1),background-color 280ms cubic-bezier(.23,1,.32,1),color 280ms cubic-bezier(.23,1,.32,1)}
.fl-page [data-font-invert]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:9px 14px;border:0;border-radius:99px;background:#e8e8e8!important;color:#242424!important;opacity:1!important;transition:background-color 180ms,color 180ms,transform 160ms cubic-bezier(.23,1,.32,1)}
.fl-page [data-font-invert] .fl-invert-icon{display:inline-block;transition:transform 280ms cubic-bezier(.23,1,.32,1)}
.fl-page [data-font-invert][aria-pressed=true]{background:#252525!important;color:#fff!important}
.fl-page [data-font-invert][aria-pressed=true] .fl-invert-icon{transform:rotate(180deg)}
.fl-page [data-font-invert]:active{transform:scale(.96)}
.fl-page [data-font-invert]:focus-visible{outline:2px solid currentColor;outline-offset:3px}
html[data-theme=dark] .fl-page [data-font-invert]{background:#353535!important;color:#f5f5f5!important}
html[data-theme=dark] .fl-page [data-font-invert][aria-pressed=true]{background:#eee!important;color:#181818!important}
@media(hover:hover){.fl-page [data-font-invert]:hover{background:#d8d8d8!important;color:#171717!important}.fl-page [data-font-invert][aria-pressed=true]:hover{background:#454545!important;color:#fff!important}html[data-theme=dark] .fl-page [data-font-invert]:hover{background:#484848!important;color:#fff!important}html[data-theme=dark] .fl-page [data-font-invert][aria-pressed=true]:hover{background:#d5d5d5!important;color:#111!important}}
@media(prefers-reduced-motion:reduce){.fl-page .fl-specimen,.fl-page [data-font-invert],.fl-page .fl-invert-icon{transition:none!important}}

/* Keep every font filter reachable without a clipped pill on phones. */
@media(max-width:1050px){body[data-list=fonts] .tb-slot{height:auto;min-height:116px}body[data-list=fonts] .tb-slot-content{flex-wrap:wrap!important;height:auto!important;padding-top:10px!important;padding-bottom:10px!important;gap:10px!important}body[data-list=fonts] .tb-slot-left{width:100%!important;flex:1 0 100%!important;overflow:visible!important}body[data-list=fonts] .fl-filter-row{flex-wrap:wrap;gap:8px}body[data-list=fonts] .fl-filter{font-size:13px!important;min-height:36px}body[data-list=fonts] .tb-slot-right{width:100%!important;justify-content:space-between!important}body[data-list=fonts] .fl-world-scopes{flex-wrap:wrap}body[data-list=fonts] .tb-slot-search{display:none!important}}

/* Specimen size follows its card, including four-column and tablet layouts. */
.fl-specimen{container-type:inline-size}
.fl-type{font-size:clamp(28px,11cqw,64px)!important}
.fl-type.fl-jp{font-size:clamp(26px,9cqw,56px)!important}

/* Both discovery views retain the same controls and spatial anchors. */
.fl-discovery-tabs{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;isolation:isolate}
.fl-discovery-tabs::before{content:'';position:absolute;z-index:-1;inset:5px auto 5px 5px;width:calc(50% - 5px);border-radius:99px;background:#fff;box-shadow:0 2px 8px #0000000a;transform:translateX(0);transition:transform 460ms cubic-bezier(.22,1,.36,1)}
.fl-discovery-tabs[data-view=world]::before{transform:translateX(100%)}
.fl-discovery-tabs button[aria-pressed=true]{background:transparent!important;box-shadow:none}
html[data-theme=dark] .fl-discovery-tabs::before{background:#3a3a3a}
.fl-heading h1{letter-spacing:-.035em;line-height:1.35}
.fl-world-heading h2{line-height:1.5;letter-spacing:-.035em}
.fl-world-heading>button{min-width:150px}
.fl-world-intro{line-height:1.8}
.fl-world-scopes{min-height:42px}
body[data-list=fonts] .tb-count{min-width:80px}
@media(prefers-reduced-motion:reduce){.fl-discovery-tabs::before{transition:none}}

.fl-world-empty{grid-column:1/-1;min-height:180px;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--fl-muted);font-size:14px;line-height:1.8;padding:24px}

@media(max-width:600px){.fl-world-scopes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.fl-world-scopes button{padding:12px 4px;font-size:11px;white-space:nowrap}.fl-world-heading h2{font-size:clamp(20px,5.3vw,28px)}}

/* Match the existing Website/Web App UI; specimen artwork retains its own family. */
.fl-page,.fl-dialog{font-family:MobbinStudy,var(--tobira-font,system-ui),sans-serif;font-size:14px;line-height:20px;font-weight:456;letter-spacing:0}
.fl-heading h1,.fl-dialog h2{font-size:44px;line-height:1.25;font-weight:652;letter-spacing:-.4px}
.fl-world-heading h2,.fl-collection-heading h2{font-size:24px;line-height:32px;font-weight:652;letter-spacing:-.2px}
.fl-heading p,.fl-world-heading p,.fl-dialog header{font-size:12px;line-height:16px;font-weight:600;letter-spacing:.2px}
.fl-world-intro,.fl-detail-designer,.fl-dialog .fl-coverage,.fl-experimental{font-size:14px;line-height:22px;font-weight:456;letter-spacing:0}
.fl-discovery-tabs button,.fl-world-heading>button,.fl-world-scopes button,.fl-pagination button,.fl-world-pagination button,.fl-tools button,.fl-detail-controls{font-size:14px;line-height:20px;font-weight:600;letter-spacing:.2px}
.fl-caption h2,.fl-world-grid .fl-brand-name{font-size:16px;line-height:22px;font-weight:600;letter-spacing:.2px}
.fl-caption p,.fl-caption>span,.fl-collection-heading>span,.fl-world-coverage,.fl-world-rail-controls,.fl-brand-top>span:last-child,.fl-brand-bottom,.fl-brand-reference-note,.fl-card-top,.fl-card-foot{font-size:12px!important;line-height:18px;font-weight:456;letter-spacing:0;text-transform:none}
.fl-original-badge{font-size:11px;line-height:16px;font-weight:600;letter-spacing:0}
.fl-coverage-warning{font-family:inherit!important}
.fl-brand-sample[data-reference]{font-family:MobbinStudy,var(--tobira-font,system-ui),sans-serif!important}
.fl-brand-connection h3{font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.1px}
@media(max-width:719px){.fl-heading h1,.fl-dialog h2{font-size:32px;line-height:40px}.fl-world-heading h2,.fl-collection-heading h2{font-size:22px;line-height:30px}.fl-discovery-tabs button,.fl-world-scopes button{font-size:13px;line-height:20px;letter-spacing:0}.fl-brand-top>span:last-child{font-size:11px!important}}

/* Keep discovery controls together after removing the introductory copy. */
.fl-page>.fl-world{margin-top:0}
.fl-world .fl-world-toolbar{align-items:center;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;gap:12px;margin:0 0 12px}
.fl-world-toolbar .fl-world-scopes{margin:0 auto 0 0;min-height:0}
.fl-world-toolbar .fl-discovery-tabs{width:auto}
@media(max-width:600px){.fl-world-toolbar .fl-world-scopes{width:100%}.fl-world-toolbar .fl-discovery-tabs{flex:1;min-width:0}.fl-world-toolbar>[data-world-all]{min-width:0;padding:12px}}
