/* /authors/ index: the six authors with the most titles, then every author A–Z with a
   Last name / First name switch. Owner's pick 16 Nov 2026: mockup "Authors A" with sort style 2
   (design/authors-mockups/round-3/sort-2-sliding-pill.html). The page shows no book counts. */

.ix { color: #1a1a1a; }
.ix *, .ix *::before, .ix *::after { box-sizing: border-box; }
.ix a { color: inherit; text-decoration: none; }
.ix a:focus-visible, .ix button:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 3px; }
.ix [hidden] { display: none !important; }
.ix ul { list-style: none; margin: 0; padding: 0; }

/* Section headings: the homepage tab style */
.ix-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; border-bottom: 0.8px solid rgb(156, 156, 156); margin: 0 0 28px; }
.ix-h { margin: 0 0 -1px; padding: 12px 0; border-bottom: 2px solid rgb(40, 40, 40); font-family: var(--tmme-font-body); font-size: 14.4px; font-weight: 700; line-height: 1.6; color: rgb(94, 94, 94); text-transform: uppercase; }

/* Authors with the most titles: a fan of up to three covers each */
.ix-feat { margin: 0 0 72px; }
.ix-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.ix-card { display: flex; flex-direction: column; align-items: center; text-align: center; --fan-h: 170px; --cover-h: 140px; --spread: 20px; }
.ix-card .ix-fan { margin-bottom: 16px; }
.ix-card__name { font-family: var(--tmme-font-display); font-size: 21px; line-height: 1.2; }
.ix-card:hover .ix-card__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* max-width: the title cards' % padding is measured against this box, so wide tablet columns squeezed their text */
.ix-fan { position: relative; display: block; width: 100%; max-width: 172px; height: var(--fan-h); }
.ix-fan > picture > img { display: block; height: 100%; width: auto; }
.ix-fan > picture, .ix-fan > .cover-missing { position: absolute; bottom: 0; left: 50%; height: var(--cover-h); width: auto; transform-origin: 50% 100%; box-shadow: 0 1px 2px rgba(26, 26, 26, .10), 0 10px 18px -10px rgba(26, 26, 26, .40); transition: transform .25s ease; }
.ix-fan > .cover-missing { padding: 8%; }
.ix-fan .cover-missing__title { font-size: var(--tile-fs, 12px); overflow-wrap: break-word; hyphens: auto; }
.ix-fan[data-n="1"] > :nth-child(1) { transform: translateX(-50%); }
.ix-fan[data-n="2"] > :nth-child(1) { transform: translateX(calc(-50% - var(--spread) * .7)) rotate(-6deg); }
.ix-fan[data-n="2"] > :nth-child(2) { transform: translateX(calc(-50% + var(--spread) * .7)) rotate(4deg); }
.ix-fan[data-n="3"] > :nth-child(1) { transform: translateX(calc(-50% - var(--spread) * 1.4)) rotate(-9deg); }
.ix-fan[data-n="3"] > :nth-child(2) { transform: translateX(calc(-50% + var(--spread) * 1.4)) rotate(9deg); }
.ix-fan[data-n="3"] > :nth-child(3) { transform: translateX(-50%); }
a:hover .ix-fan[data-n="3"] > :nth-child(1) { transform: translateX(calc(-50% - var(--spread) * 1.9)) rotate(-12deg); }
a:hover .ix-fan[data-n="3"] > :nth-child(2) { transform: translateX(calc(-50% + var(--spread) * 1.9)) rotate(12deg); }
a:hover .ix-fan[data-n="2"] > :nth-child(1) { transform: translateX(calc(-50% - var(--spread) * 1.1)) rotate(-8deg); }
a:hover .ix-fan[data-n="2"] > :nth-child(2) { transform: translateX(calc(-50% + var(--spread) * 1.1)) rotate(6deg); }

/* All authors A–Z */
.ix-tabhead { position: relative; }
.ix-index { columns: 4; column-gap: 44px; }
.ix-group { break-inside: avoid; margin: 0 0 22px; scroll-margin-top: 110px; }
.ix-letter { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid #e0e0e0; font-family: var(--tmme-font-display); font-size: 26px; font-weight: 500; line-height: 1.1; }
.ix-group a { display: block; padding: 4px 0; font-size: 14.5px; line-height: 1.4; }
.ix-key { color: #1a1a1a; font-weight: 500; }
.ix-rest { color: rgb(94, 94, 94); }
.ix-group a:hover .ix-key { text-decoration: underline; text-underline-offset: 3px; }

/* Sort switch: a rounded pill whose white marker slides to the chosen word.
   Hidden until the page script runs; without it the page shows the last-name list. */
.ix-sort { position: absolute; right: 0; bottom: 8px; display: flex; align-items: center; gap: 14px; }
/* Greys: the site's muted grey, #6b6b6b, so small text meets the WCAG AA contrast minimum (owner, 16 Nov 2026) */
.ix-sort__label { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--tmme-ink-muted, #6b6b6b); }
.ix-pill { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; background: #f6f5f3; border: 0.8px solid #e0e0e0; border-radius: 999px; }
.ix-pill::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: #fff; border-radius: 999px; box-shadow: 0 1px 2px rgba(26, 26, 26, .12), 0 3px 8px rgba(26, 26, 26, .06); transition: transform .25s ease; }
.ix-sort[data-sorted="first"] .ix-pill::before { transform: translateX(100%); }
.ix-pill button { position: relative; z-index: 1; appearance: none; border: 0; background: none; padding: 7px 18px; border-radius: 999px; font-family: var(--tmme-font-body); font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--tmme-ink-muted, #6b6b6b); cursor: pointer; transition: color .2s ease; }
.ix-pill button[aria-pressed="true"] { color: #1a1a1a; }

/* Find box and letters that jump down the list (owner's option A). Hidden until the page script runs. */
.ix-find { display: flex; align-items: center; gap: 24px; margin: 0 0 28px; }
.ix-find__box { position: relative; flex: 0 0 300px; color: rgb(94, 94, 94); }
.ix-find__box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.ix-find__box input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid rgb(133, 134, 135); border-radius: 0; background: #fff; font: 400 15px/1 var(--tmme-font-body); color: #1a1a1a; }
.ix-find__box input::placeholder { color: var(--tmme-ink-muted, #6b6b6b); }
.ix-find__box input:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
.ix-letters { flex: 1; display: flex; justify-content: space-between; min-width: 0; }
.ix-letters button, .ix-letters span { min-width: 24px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: none; font: 500 14px/1 var(--tmme-font-body); text-align: center; color: #1a1a1a; }
.ix-letters button { cursor: pointer; }
.ix-letters button:hover { border-bottom-color: #c8c8c8; }
.ix-letters span { color: #c8c8c8; font-weight: 400; }
.ix-empty { margin: 0 0 40px; font-size: 15px; color: rgb(94, 94, 94); }
.ix-empty:empty { margin: 0; }
.ix-letter:focus { outline: none; }
.ix-letter:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .ix-fan > *, .ix-pill::before { transition: none; }
}

/* Tablets: six fans side by side overlapped and pushed the page sideways below 1200px */
@media (max-width: 1199px) {
  .ix-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
/* below 1100px the find box and the letter row no longer fit side by side */
@media (max-width: 1099px) {
  .ix-find { flex-wrap: wrap; }
  .ix-find__box { flex-basis: 100%; }
}
@media (max-width: 1023px) {
  .ix-index { columns: 3; }
}

@media (max-width: 767px) {
  .ix-feat { margin-bottom: 48px; }
  .ix-cards { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; }
  .ix-cards > li { flex: 0 0 148px; scroll-snap-align: start; }
  .ix-card { --fan-h: 132px; --cover-h: 108px; --spread: 14px; --tile-fs: 10px; }
  .ix-card__name { font-size: 18px; }
  .ix-index { columns: 1; }
  .ix-group a { padding: 8px 0; font-size: 15.5px; }
  .ix-sort { position: static; margin: -12px 0 24px; justify-content: space-between; }
  .ix-find { gap: 14px; margin-bottom: 20px; }
  .ix-letters { flex-wrap: wrap; justify-content: flex-start; }
  .ix-letters button, .ix-letters span { width: calc(100% / 9); padding: 10px 0; font-size: 15px; }
}
