.lists-page { max-width: 980px; }
.lists-page [hidden] { display: none !important; }
.lists-page a { text-underline-offset: 4px; }
.lists-page a:hover { color: var(--theme-accent); }
.sectionNav span { color: var(--theme-muted); font-size: 18px; }
.lists-header { position: relative; padding: 12px 24px 24px; }
.eyebrow { margin: 0 0 18px; color: var(--theme-muted); font-size: 19px; }
.lists-header h1 { font-size: clamp(64px, 10vw, 110px); line-height: .94; max-width: 680px; transform: rotate(-2deg); }
.lists-header h1 > span { display: block; padding-left: 72px; }
.asterisk { color: var(--theme-accent); }
.intro { margin: 30px 0 10px; font-size: 25px; line-height: 1.25; }
.margin-note { position: absolute; right: 30px; top: 90px; padding: 16px 20px; border: 2px solid var(--theme-accent); border-radius: 50%; color: var(--theme-accent); font-size: 29px; line-height: .95; transform: rotate(12deg); text-align: center; }
.margin-note span { font-size: 19px; }
.editors-note { position: relative; margin: 8px 12px 36px; padding: 22px 26px; background: var(--theme-surface); border: 1px solid var(--theme-edge); border-radius: 3px 16px 4px 14px / 12px 4px 14px 3px; box-shadow: 4px 5px 0 #41403e16; transform: rotate(.5deg); }
.editors-note::before { content: ''; position: absolute; width: 90px; height: 24px; left: 40%; top: -13px; background: #d7caa280; transform: rotate(-5deg); border: 1px solid #a99e7530; }
.editors-note p { font-size: 19px; line-height: 1.35; margin: 0; }
.editors-note p + p { margin-top: 8px; color: var(--theme-muted); }
.editors-note strong { display: block; font-size: 24px; margin-bottom: 5px; color: var(--theme-ink); }
.list-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 0 12px 22px; border-bottom: 2px solid var(--theme-edge); }
.search-field { flex: 1 1 300px; }
.search-field label { display: block; font-size: 21px; margin: 0 0 7px 3px; }
.search-field input { width: 100%; min-height: 48px; border: 1px solid var(--theme-edge); border-radius: 7px 3px 8px 3px; background: var(--theme-surface); color: var(--theme-ink); padding: 10px 12px; font: 16px/1.4 Arial, sans-serif; }
.search-field input::placeholder { color: var(--theme-muted); opacity: 1; }
.lists-page button { min-height: 48px; padding: 10px 18px; border: 2px solid var(--theme-edge); border-radius: 16px 3px 14px 4px / 4px 14px 3px 16px; background: var(--theme-surface); color: var(--theme-ink); font: 22px/1.15 'myhandwritingBold', Arial, sans-serif; cursor: pointer; box-shadow: 3px 3px 0 #41403e22; }
.lists-page button:hover { color: var(--theme-accent); transform: rotate(-1deg); }
.lists-page button:disabled { opacity: .5; cursor: default; transform: none; }
#results-count { flex-basis: 100%; margin: 0 3px; font-size: 17px; color: var(--theme-muted); }
.the-lists { padding: 0 18px 0 58px; margin: 12px 0 0; }
.list-entry { padding: 17px 0 17px 12px; border-bottom: 1px dashed #8885; scroll-margin-top: 30px; }
.list-entry::marker { color: var(--theme-muted); font-size: 19px; }
.entry-heading { display: flex; align-items: baseline; gap: 12px; }
.entry-title { flex: 1; min-width: 0; font-size: 27px; line-height: 1.28; overflow-wrap: anywhere; }
.permalink { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; min-height: 44px; color: var(--theme-muted); font-size: 19px; text-decoration: none; opacity: .5; }
.list-entry:hover .permalink, .permalink:focus-visible { opacity: 1; }
.illustrated { padding-top: 28px; padding-bottom: 30px; }
.illustrated .entry-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; }
.illustrated .entry-title { font-size: 34px; }
.illustrated .entry-heading { flex-wrap: wrap; }
.illustrated figure { position: relative; margin: 0; padding: 9px 9px 12px; background: #fffdf7; color: #41403e; border: 1px solid #777; border-radius: 3px 9px 3px 7px; box-shadow: 4px 5px 0 #41403e20; transform: rotate(1deg); }
.illustrated:nth-of-type(2n) figure { transform: rotate(-1deg); }
.illustrated img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.illustrated figcaption { text-align: center; font-size: 18px; line-height: 1.15; padding: 10px 8px 0; }
.handwriting-joke .entry-title { transform: rotate(-1deg); text-decoration: underline wavy #8885; text-underline-offset: 5px; }
.list-entry:target, .list-entry.is-picked { background: #d7b64624; border-radius: 5px; }
.list-entry:focus { outline: 2px dashed var(--theme-accent); outline-offset: 5px; }
.lists-page :is(a, button, input):focus-visible, .skip-link:focus-visible { outline: 2px dashed var(--theme-accent); outline-offset: 4px; }
.empty-state { padding: 45px 20px; text-align: center; }
.empty-state h2 { margin: 0; }
.lists-footer { margin-top: 50px; padding: 28px 20px; text-align: center; border-top: 2px solid var(--theme-edge); }
.lists-footer p { font-size: 27px; line-height: 1.25; }
.lists-footer a { display: inline-block; margin: 8px 16px; padding: 6px; }
.lists-footer small { display: block; color: var(--theme-muted); font-size: 16px; margin-top: 25px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--theme-surface); color: var(--theme-ink); padding: 12px; }
.skip-link:focus { top: 12px; }
@media (max-width: 700px) {
    .margin-note { display: none; }
    .lists-header { padding: 10px 6px 20px; }
    .lists-header h1 > span { padding-left: 35px; }
    .intro { font-size: 23px; }
    .editors-note { margin-left: 2px; margin-right: 2px; padding: 20px; }
    .illustrated .entry-body { grid-template-columns: 1fr; gap: 18px; }
    .illustrated .entry-title { font-size: 30px; }
    .illustrated figure { max-width: 460px; }
    .the-lists { padding-left: 36px; padding-right: 6px; }
    .list-entry { padding-left: 4px; }
    .entry-title { font-size: 24px; }
    .list-tools { padding-left: 2px; padding-right: 2px; }
    .sectionNav { margin-bottom: 24px; }
    .sectionNav span { flex-basis: 100%; }
}
@media print {
    .themeControls, .sectionNav, .list-tools, .permalink, .skip-link { display: none !important; }
    .lists-page { width: 100%; }
    .list-entry { break-inside: avoid; }
    .lists-page .list-entry[hidden] { display: list-item !important; }
    .illustrated figure { max-width: 300px; }
}
