/* /sheets/aoty: his rankings in the sheets' own head and rows (../sheets.css). Only what a ranked list adds is here: the
   lists' line, the figure of dots beside the name, the rank column, a list's swap. Reasons: tools/sheets/studio/aoty-round-1.md, aoty-fix-1.md and aoty-fix-2.md */

/* the lists, as a year's sheet sets its decade's years: faint, the one on screen in ink; his years and his decades in
   groups, each wrapping whole where it can (a critics' list opens from its year, .crsw below) */
/* each list's word a target 40 px tall, the words where they were (sheets.css .lens a). Where the line wraps (a phone,
   the Duo open) its lines stand a line apart, ink to ink (the head's measure, sheets.css :root: a line between ranks),
   so one line's targets end before the next line's begin and every word keeps its whole 40 px */
/* the targets' lower edge reaches past the name's line box (its glyphs' box rises about 12 px above its cap line at
   1440), which neither shows nor opens anything, so the lists sit above it and keep their whole target */
.ao .kicker.lists{display:flex;flex-wrap:wrap;gap:var(--l) 1.7rem;position:relative;z-index:1}
.ao .lists .lg{display:inline-flex;flex-wrap:wrap;gap:var(--l) .85rem}
.ao .kicker.lists a{padding:.55rem 0;margin:-.55rem 0}

/* focus moved by the keyboard stops below the bar, and from 720 px below the sticky column heads too */
html{scroll-padding-top:calc(var(--bar-h,60px) + .6rem)}
@media (min-width:720px){html{scroll-padding-top:calc(var(--bar-h,60px) + 2.9rem)}}

/* the count line: his title for the list, then its count, as a year's head sets "41 albums" */
.ao .roomhead .lc{white-space:nowrap}
.ao .roomhead .lt + .lc{margin-left:.9rem}
.ao .roomhead .lt{white-space:nowrap}
/* 2022's and 2023's switch between his list and the critics' (aoty.js head, SH-212): after the small table, set as the
   lists' row sets its words, faint, the one on screen in ink; each word's target reaches half the gap to the next, and
   "mine"'s only to where the table's ends (.tosheet::after, .6rem), so no two overlap; about 40 px tall, as the
   table's. Where it can't stand beside the figure (aoty.js fitHead, .wrapsw) it goes under the table, at its edge */
.ao .roomhead .crsw{display:inline-flex;gap:.85rem;margin-left:.9rem;white-space:nowrap}
.ao .roomhead .crsw a{position:relative;color:var(--faint);transition:color .3s var(--ease)}
.ao .roomhead .crsw a[aria-current]{color:var(--ink)}
.ao .roomhead .crsw a::after{content:"";position:absolute;inset:-.65rem -.42rem}
.ao .roomhead .crsw a:first-child::after{left:-.3rem}
.ao .roomhead.wrapsw .crsw{display:flex;margin:.5rem 0 0}
@media (hover:hover){.ao .roomhead .crsw a:hover{color:var(--ink)}}
/* a count line too long to stand beside the figure puts the count on the next line, under the figure's foot (aoty.js
   fitHead measures it against the figure) */
.ao .roomhead.wrapc .lc,.ao .roomhead.wrapc .lt + .lc{display:block;margin-left:0}

/* ── the figure: the list's dots in columns of ten, hung where a year's sheet hangs its square (sheets.css .headdots):
   from the name's cap line to the count's baseline (--hd), its outer dots' ink on that line and the right margin. A dot's
   pitch is a tenth of that height less a third of a pitch (a sixth in from the cell at the top and the foot), so every
   dot is the same size on every list and a list's length is the figure's width ── */
.ao .fig{--hd:calc(.7195 * var(--h1) + var(--R) + .7195rem);--p:calc(var(--hd) * 3 / 29);display:block;flex:none;
  width:calc(var(--c) * var(--p));height:calc(10 * var(--p));margin:calc(var(--p) / -6) calc(var(--p) / -6) 0 0}
.ao .fig svg{display:block;width:100%;height:100%;overflow:visible}
.ao .fig path{transition:opacity .3s var(--ease)}

/* ── the rows: the sheet's own, sized to the list. The rank, his own number, in ink: tabular figures, right-aligned in a
   column of its own (Rutter, in the studio's dossier), then the album's family dot, so the dots run down the list as a
   column of colour in rank order, as his ranking tabs fill each album's genre cell. A row with a genre bar carries its
   family there, so its dot is kept unseen (.sw.nil), holding the ranks' edge (SH-75) ── */
.ao .sheet th .th{display:block;color:var(--faint);font-size:.82rem;padding:.6rem .6rem .45rem 0}
.ao .sheet th.num .th{text-align:right}
/* his score and the critics' heads centred over their figures, as on a year's sheet (sheets.css; Sha, Nov 22: "these need
   to be centered horizontally") */
@media (min-width:720px){.ao .sheet th:is(.c-score,.c-rym,.c-pitchfork,.c-metacritic,.c-tnd,.c-christgau) .th{text-align:center}}
/* the figures hug their content, so his score and the critics stand together at the right and the words take the rest */
.ao .sheet td.num,.ao .sheet th.num{width:1%;white-space:nowrap}
/* RYM a wider column of its own, and Pitchfork, Metacritic and The Needle Drop one width, each figure on its middle, so
   the three logos stand an even step apart, as on a year's sheet (sheets.css, with the reasons for each width; Sha,
   Nov 22: "or keep rym wider but the rest of the 3 for pitchfork metacritic and theneedledrop should be even"). A list
   with The Needle Drop's "NOT GOOD" gives the three the room it needs stacked, as a year's sheet does (no ranking holds
   "BREAD", 2013's) */
@media (min-width:720px){
  .ao .sheet{--rw:2.7rem;--cw:2.1rem}
  .ao .sheet:has(td.c-tnd .verdict){--cw:2.35rem}
  .ao .sheet :is(td,th).c-rym{width:var(--rw)}
  .ao .sheet :is(td,th):is(.c-pitchfork,.c-metacritic,.c-tnd){width:var(--cw)}
  .ao .sheet th:is(.c-rym,.c-pitchfork,.c-metacritic,.c-tnd) .th{padding-left:0;padding-right:0}
  .ao .sheet td.c-tnd{white-space:normal}
}
.ao .sheet th:last-child .th{padding-right:0}
.ao .c-rank{width:1%;white-space:nowrap;text-align:right;padding-right:.9rem;font-variant-numeric:lining-nums tabular-nums}
.ao .c-rank .sw{--m:.36em;margin:0 0 0 .55em}
.ao .sw.nil{visibility:hidden}
/* the artist's column at the width the sheets give it (sheets.css .c-artist max-width 14rem, which a table cell
   ignores), so on a list of few columns the title stands beside its artist and the width goes to the title */
@media (min-width:720px){.ao .sheet .c-artist{width:14rem}}
.ao .c-year{width:auto}
/* an album's genres, as its row on the sheet has them (Sha, Nov 23, 2026: "I need to be able to see primary and secondary
   genre info for these albums in aoty view"; aoty.js genreTags): the bar along the row's top and the genres' own column
   come from ../sheets.css. A list has no scene or movement columns, so they stand in the genres' cell, above the genres,
   at every width, as a sheet under 1200 px sets them. The bar's cell holds no head */
.ao .c-genre .gx{display:block;margin-bottom:.25rem}
/* the rankings have no scene column, so the genre cell is the album's card: every line named, the values on one edge,
   as on a phone (Sha, Nov 23, 2026; sheets.css .gl.lab) */
.ao .c-genre .gl.lab{display:grid}
.ao .c-genre .gl.lab .gk{margin:0}
.ao .c-genre .gl.lab .gk.gr{display:inline}
.ao .sheet th.c-bar .th{display:none}
.ao .off-sheet .c-title{color:var(--ink-2)}
/* an album not on his sheets has no genres and so no bar: its words keep the room a bar takes over a row's, so the list
   keeps one step from row to row (sheets.css gives a row with a bar the same) */
@media (min-width:720px){.ao .sheet tr.off-sheet td{padding-top:calc(var(--bt) + var(--gbh) + .1rem)}}
.ao .sheet tr.mo td{color:var(--faint);font-weight:400;letter-spacing:normal}   /* a list's group, not a month (bold on the sheets) */
.ao .sheet tr.gap td{padding:.9rem 0 0}

/* a phone: the sheet's block (title over artist, his score at the right, the critics on a faint line), the rank at the
   left in a column as wide as the list's longest rank, so every title starts on one edge */
@media (max-width:719.98px){
  .ao .sheet tr{grid-template-columns:var(--rkw,2.6em) minmax(0,1fr) auto}
  .ao .sheet td.num{width:auto}
  .ao .sheet .c-rank{display:block;grid-column:1;grid-row:1 / span 2;padding:0;align-self:start}
  /* the whole row is the title's target on a phone, as a row is one thing under a thumb */
  .ao .sheet .c-title a::after{content:"";position:absolute;inset:0}
  /* a row naming two albums: the first album's link is the row, the second's its own words, above it */
  .ao .sheet .c-title a + a{position:relative;z-index:1}
  .ao .sheet .c-title a + a::after{content:none}
  .ao .sheet .c-title{grid-column:2}
  .ao .sheet .c-artist{grid-column:2}
  .ao .sheet .c-score{grid-column:3}
  .ao .sheet .c-meta{grid-column:2 / -1}
  /* the genres keep their own links over the row's (the title's target covers the row) */
  .ao .sheet .c-meta .tg{position:relative;z-index:1}
  .ao .sheet tr.off-sheet{padding-top:calc(var(--bt) + var(--gbh) + .2rem)}
  .ao .sheet tr.mo td{grid-column:1 / -1}
  .ao .sheet tr.blank{padding:.6rem 0 .3rem}
}

/* a list's swap: out on the page's ease, in as every /sheets view comes in (sheets.css .view, .sheet.swap) */
.ao.swap{animation:out .12s var(--ease) both}
@keyframes out{from{opacity:1}to{opacity:0}}
@media (prefers-reduced-motion:reduce){
  .view.ao{animation:in .2s linear both}
  .ao.swap{animation:out .12s linear both}
  .ao .fig path{transition:opacity .2s linear}   /* as the page's own reduced fades (sheets.css .years .ch, .chart) */
}

/* ── building a list (SH-72, SH-96; aoty.js "building his lists"): shown only to a device signed in, once the sheets'
   service keeps lists. Everything comes in and goes out on the page's own ease, as the rest of /sheets ── */
.ao .rkbar{display:block;margin:-.3rem 0 1.4rem;max-width:44rem;animation:in .3s var(--ease) backwards}
.ao .rkbar > p{margin:0 0 .5rem}
.ao .rkbar .edsaid{margin-top:.5rem;min-height:1.45em}
.ao .rkbar .edsaid:empty{display:block}
.ao .rkbar button.out{color:var(--ink-2);border-bottom:1px solid transparent;padding:.55rem 0 .1rem;margin:-.55rem 0 0;transition:color .3s var(--ease)}   /* no line (../sheets.css .dfilt .fgo) */
@media (hover:hover){.ao .rkbar button.out:hover{color:var(--ink)}}
/* the find for an album to add, the sheets' own field (sheets.css .find), its matches under it on the page's paper */
.ao .rkadd{position:relative;margin:.4rem 0 .9rem}
.ao .rkadd .find{color:var(--ink)}
.ao .rkopts{list-style:none;margin:0;padding:0;position:absolute;z-index:5;left:0;top:100%;width:min(30rem,100%);background:var(--wall);
  box-shadow:0 0 0 1px var(--hair),0 8px 24px rgba(17,17,17,.08);opacity:0;visibility:hidden;translate:0 -4px;
  transition:opacity .2s var(--ease),translate .2s var(--ease),visibility 0s linear .2s}
.ao .rkopts.open{opacity:1;visibility:visible;translate:0 0;transition:opacity .2s var(--ease),translate .2s var(--ease),visibility 0s}
.ao .rkopts li{display:flex;align-items:baseline;gap:.5rem;padding:.6rem .7rem;color:var(--ink);cursor:pointer;font-size:15px;transition:background-color .2s var(--ease)}
.ao .rkopts li .ot{font-family:var(--serif);font-style:italic;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ao .rkopts li .oa{color:var(--faint);min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ao .rkopts li .sco{flex:none}
.ao .rkopts li[aria-selected="true"]{background:var(--tint)}
@media (hover:hover){.ao .rkopts li[role=option]:hover{background:var(--tint)}}
.ao .rkopts li.none{color:var(--faint);cursor:default}

/* the grip: six of the figure's dots, faint, the row's handle; its target 40 px tall at least, and a finger on it moves
   the row rather than the page */
.ao .grip{position:relative;z-index:1;display:inline-block;width:.62em;height:.93em;margin:0 .7em 0 0;padding:0;vertical-align:-.1em;color:var(--faint);
  cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;transition:color .3s var(--ease);animation:in .3s var(--ease) backwards}
.ao .grip svg{display:block;width:100%;height:100%;fill:currentColor}
.ao .grip::after{content:"";position:absolute;inset:calc((2.5rem - 100%) / -2) -1rem}
.ao .grip:focus-visible{outline:none;color:var(--ink);box-shadow:0 0 0 3px var(--wall),0 0 0 4px var(--ink)}
@media (hover:hover){.ao .grip:hover{color:var(--ink)}}
.ao .sheet tr.lift{position:relative;z-index:3;will-change:transform;background:var(--wall);box-shadow:0 0 0 1px var(--hair),0 6px 18px rgba(17,17,17,.1)}
.ao .sheet tr.lift .grip{cursor:grabbing;color:var(--ink)}
body.editing .ao .sheet tbody{-webkit-user-select:none;user-select:none}
.ao .sheet tr.going{opacity:0;transition:opacity .2s var(--ease)}
.ao .sheet tr.come{animation:in .5s var(--ease) both}

/* a row's tools after its title, faint until pointed at, as the edit bar's words: the revisit mark, a ring that fills
   when it is set (the favorite's ring, sheets.css .fv), and remove */
.ao .rkt{display:inline-flex;gap:.9rem;margin-left:.5rem;font-family:var(--sans);font-style:normal;font-size:.8rem;font-weight:400;white-space:nowrap;vertical-align:.08em;animation:in .3s var(--ease) backwards}
.ao .rkt button{position:relative;z-index:1;color:var(--faint);padding:0;transition:color .3s var(--ease)}
.ao .rkt button::after{content:"";position:absolute;inset:-.7rem -.45rem}
@media (hover:hover){.ao .rkt button:hover{color:var(--ink)}}
.ao .rkt button:focus-visible{outline:none;color:var(--ink);box-shadow:0 1px 0 var(--ink)}
.ao .rkt .rv[aria-pressed="true"]{color:var(--ink)}
.ao .rkt button:disabled{opacity:.5}
.ao .rr{display:inline-block;width:.62em;height:.62em;margin-right:.3em;border:1.2px solid currentColor;border-radius:50%;vertical-align:-.02em;box-sizing:border-box;
  background:transparent;transition:background-color .25s var(--ease)}
.ao .rkt .rv[aria-pressed="true"] .rr,.ao .rvm .rr{background:currentColor}
/* the mark on a list he isn't editing: the album's place is still his to think about */
.ao .rvm{margin-left:.45rem;font-family:var(--sans);font-style:normal;color:var(--faint);font-size:.8rem;font-weight:400;white-space:nowrap;vertical-align:.08em}
/* a row's tools after its title where title and artist are columns, after the artist on a phone (aoty.js rowTools) */
.ao .ph{display:none}
@media (max-width:719.98px){
  .ao .dk{display:none}
  .ao .ph{display:inline}
  .ao.edit .sheet tr{grid-template-columns:calc(var(--rkw,2.6em) + 1.35em) minmax(0,1fr) auto}
  .ao .rkt.ph{display:flex;margin:.35rem 0 0;gap:1.4rem}
  .ao .rkt button::after{inset:-.75rem -.6rem}
  /* a row he edits keeps its rank, title, artist and score, so a drag spans rows a thumb can reach; the genres and the
     critics fade out before (toedit) and back in after (reveal) */
  .ao.edit .sheet :is(.c-genre,.c-meta){display:none}
  .ao.toedit .sheet :is(.c-genre,.c-meta){opacity:0;transition:opacity .2s var(--ease)}
  .ao.reveal .sheet :is(.c-genre,.c-meta){animation:in .3s var(--ease) backwards}
}
@media (prefers-reduced-motion:reduce){
  .ao .rkbar,.ao .grip,.ao .rkt,.ao .sheet tr.come{animation:in .2s linear backwards}
  .ao .rkopts,.ao .rkopts.open{translate:none}
}
/* a list drawn again in place (aoty.js show, keep): the view's entry doesn't play again, so the page never blinks;
   what is new in it fades in by itself (the bar, the grips, the tools, an added row) */
.view.ao.keep{animation:none}
/* the edit door comes in on the page's ease when the service answers that it keeps lists */
.doors .edb:not([hidden]){animation:in .3s var(--ease) backwards}
/* done: the controls fade before the list is drawn without them (aoty.js setEditing) */
.ao.unedit :is(.rkbar,.grip,.rkt){opacity:0;transition:opacity .2s var(--ease)}
