/* Adanos 2026 redesign: the rules of type:directory only. Its pages link site-2026.css first, then this sheet. Filed by scripts/kit/split.py. */
/* ---------- Directory pages (ticker database, stocks hub) ----------
   The product hero with the product page's board as its main object: a search and filters in the board's head, the
   board's rows, the largest exchanges and countries in its side column (a click filters), more rows from its foot. The
   stocks hub shows all its rows at once, scrolling in the board.
   directory-2026.html is built from the live ticker database (scratchpad dir/build.py) on the dataset the live page loads. */
.dir-c, .dir-isin { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.dir-c, .dir-isin)[role="cell"] { color: var(--ink-2); }
.dir-empty { padding: var(--space-10) var(--pad); text-align: center; font-size: var(--text-sm); color: var(--muted); }
.dir-foot-ctl { display: flex; align-items: center; gap: var(--space-5); }
.dir-foot-ctl .textlink { font-size: var(--text-sm); }
.dir-files { margin-top: var(--space-16); }
.dir-files .sdk-n { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink); }
/* the hero mark of both directory pages: split-flap tiles flip through the alphabet to the next of the most mentioned
   tickers, sized in the mark's own width */
.flap { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7cqi; height: 100%; }
/* on phones flush with the text, after the rule above, which it overrides */
@media (max-width: 768px) { .flap { align-items: flex-start; } }
.flap-row { display: flex; gap: 2.5cqi; }
.flap-c { position: relative; width: 20cqi; height: 27cqi; border-radius: 2.5cqi; background: var(--dark); box-shadow: var(--shadow-card); perspective: 80cqi; font-size: 17cqi; font-weight: var(--fw-medium); color: var(--paper); }
/* a tile is two halves of one surface: the top leaf falls, the next letter's bottom leaf follows */
.flap-c > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--dark); backface-visibility: hidden; }
.flap-c > :is(.flap-t, .flap-ft) { top: 0; border-radius: 2.5cqi 2.5cqi 0 0; transform-origin: 50% 100%; }
.flap-c > :is(.flap-b, .flap-fb) { bottom: 0; border-radius: 0 0 2.5cqi 2.5cqi; transform-origin: 50% 0; }
.flap-c i { display: block; height: 27cqi; font-style: normal; line-height: 27cqi; text-align: center; }
.flap-c > :is(.flap-b, .flap-fb) i { margin-top: -13.5cqi; }
.flap-fb { transform: rotateX(90deg); }
/* the ticker database's board (tdb-board): the live h2 is too long to share the head row, so it takes a row of its own
   over the search and the filters. On phones the asset types take a row of their own too, in three equal parts, so the
   exchange and the country selects below share a row with room for "All exchanges" and "All countries". */
.tdb-board .board-title { flex-basis: 100%; }
@media (max-width: 768px) {
    .tdb-board .board-ctl > .seg { flex-basis: 100%; }
    .tdb-board .board-ctl > .seg button { flex: 1; }
}
/* the stocks hub's board (hub-board): the directory's columns with the average buzz after the signal and the
   ranking boards' sentiment bar after it. Tablets drop the sources and keep the bar, phones keep the ticker, the signal
   and the mentions as the directory does. Without a bar in any row, as from the static fallback, the head and the
   cells of the bar are hidden and --no-lean drops its column. */
.hub-board { --tr-cols: minmax(0, 1.6fr) 96px 80px minmax(0, 1fr) minmax(0, 1fr) 120px 96px; }
.hub-board--no-lean { --tr-cols: minmax(0, 1.6fr) 96px 80px minmax(0, 1fr) 120px 96px; }
@media (max-width: 1024px) {
    .hub-board { --tr-cols: minmax(0, 1.6fr) 96px 80px minmax(0, 1fr) 120px 96px; }
    .hub-board--no-lean { --tr-cols: minmax(0, 1.6fr) 96px 80px 120px 96px; }
    .hub-board .tr-row > :nth-child(4) { display: flex; }
    .hub-board .tr-row > :nth-child(5) { display: none; }
}
@media (max-width: 768px) {
    .hub-board { --tr-cols: minmax(0, 1fr) 84px 72px; }
    .hub-board .tr-row > :is(:nth-child(4), :nth-child(6)) { display: none; }
}
/* the stocks hub's "How it works" pictures in its why cards: the pages split by signal over their key, and one page's
   example week (hub-week): a day tile for each day, dark with the refresh icon on a day a visit refreshed the page,
   dashed on a day nobody opened it, gold on Friday's rebuild. The tiles land in turn and their icon turns once as the
   card comes into view. */
.hub-art { display: grid; padding: 0 var(--space-6); }
.hub-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-2); text-align: center; }
.hub-week > span { display: grid; justify-items: center; gap: var(--space-1-5); }
.hub-week i { display: grid; place-items: center; width: 100%; max-width: 40px; aspect-ratio: 1; border: var(--dashed); border-radius: var(--r); }
.hub-week i:is(.is-refresh, .is-rebuild) { border-color: transparent; }
.hub-art .is-refresh { background: var(--ink); color: var(--paper); }
.hub-art .is-rebuild { background: var(--gold); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
    /* the transitions sit on the shown state only, so the hidden state applies at once when the page turns the reveal on */
    .reveal-on .hub-week i { opacity: 0; scale: 0.6; }
    .reveal-on .hub-week .lc { rotate: -180deg; }
    .reveal-on .in .hub-week i { opacity: 1; scale: 1; transition: opacity var(--dur) ease-out, scale var(--dur) var(--ease-out-expo); transition-delay: calc(var(--dur) + var(--i) * 100ms); }
    .reveal-on .in .hub-week .lc { rotate: 0deg; transition: rotate var(--dur-slow) var(--ease-out-expo); transition-delay: calc(var(--dur) + var(--i) * 100ms); }
}
