/* Card/grid, palette, placeholder and focus patterns adapted from the old site's
   style.css/editorial.css; no old loaders or domain data are used. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic",Meiryo,sans-serif;color:#233653;background:#fafbfc;line-height:1.65;font-size:16px}
*{box-sizing:border-box}body{margin:0}a{color:inherit}header{background:white;border-bottom:1px solid #e5e7eb;padding:20px max(24px,calc((100% - 1240px)/2));display:flex;align-items:center;gap:18px}.brand{font-size:24px;font-weight:800}.edition,.eyebrow{color:#64748b;font-size:14px;letter-spacing:.08em}main{max-width:1288px;margin:auto;padding:16px 24px 40px;min-height:75vh}h1{font-size:30px;line-height:1.5;margin:4px 0 12px}h2{line-height:1.6}.intro{margin:0 0 12px}.note{color:#596779;font-size:14px}.filters{display:flex;align-items:end;gap:20px;margin:12px 0 20px}.filters label{display:grid;gap:6px;font-size:14px;font-weight:700}select{font:inherit;color:inherit;background:white;border:1px solid #aab3c0;border-radius:6px;min-height:44px;padding:8px 30px 8px 12px}.filters p{margin:0 0 6px auto}.work-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 22px}.work-card{min-width:0;display:flex;flex-direction:column}.cover-frame{aspect-ratio:360/520;background:#eef0f4;border:1px solid #e0e4eb;border-radius:5px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#667487;font-size:14px;gap:8px}.book{font-size:42px;color:#8995a6}.work-card h2{font-size:16px;margin:8px 0 4px;overflow-wrap:anywhere}.metadata{font-size:13px;color:#596779;margin:0 0 6px}.benefits{display:flex;flex-direction:column;gap:4px;font-size:14px}.benefits small{color:#596779;font-size:13px}.discount{color:#a73532;font-weight:700}.points{color:#176851;font-weight:700}.observations{display:grid;gap:12px}.detail-link{text-underline-offset:4px;font-size:14px}.empty{padding:50px 0}.back-link{display:inline-flex;min-height:44px;align-items:center;margin-bottom:12px}.detail-heading{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:center;margin-bottom:20px}.detail-heading .cover-frame{width:240px}.products{display:grid;gap:16px;max-width:760px}.product{background:white;border:1px solid #e0e4eb;border-radius:8px;padding:16px 20px}.product h3{margin:0 0 8px}.product time{overflow-wrap:anywhere;font-size:14px}.product small{display:block;margin-top:12px;color:#596779}.amazon-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:#f2c36b;color:#253247;border:1px solid #d7a247;border-radius:5px;padding:4px 14px;text-decoration:none}footer{padding:24px;text-align:center;border-top:1px solid #e5e7eb;color:#596779;font-size:14px}:focus-visible{outline:3px solid #276fbd;outline-offset:4px}.skip-link{position:absolute;left:16px;top:-100px;background:white;padding:12px;z-index:2}.skip-link:focus{top:10px}
/* Titles are fixed; benefit rows consume space only when present. */
.work-card h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:3.2em;margin-bottom:6px}
.work-card .benefits{display:flex;gap:4px;align-items:flex-start}
.work-card .amazon-link{font-size:14px;padding:4px 12px;min-height:44px;margin-top:0}
.detail-link{margin-top:4px;display:block;text-align:center;min-height:44px;padding:10px 0}
.filters{flex-wrap:wrap;align-items:center}.category-chips{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:4px;scrollbar-width:thin}
.category-chips button{flex-shrink:0;font:inherit;font-size:14px;min-height:44px;padding:8px 16px;border-radius:24px;border:1px solid #b4bdca;background:white;color:#233653;cursor:pointer}
.category-chips button[aria-pressed=true]{background:#233653;color:white;border-color:#233653}
.summary-benefits{display:flex;flex-wrap:wrap;gap:16px}.summary-benefits .amazon-link{margin-top:4px;align-self:flex-start}
.series-info .eyebrow{margin:0 0 4px}.series-info h1{margin:0 0 8px}.series-info>p{margin:0 0 10px}.summary-benefits .discount,.summary-benefits .points{font-size:20px}.detail-heading+h2{margin:16px 0 4px}.product p{margin:10px 0}.product small{margin-top:8px}
header{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);height:80px}
header.compact{height:56px;margin-bottom:24px;padding-top:8px;padding-bottom:8px}.compact .brand{font-size:20px}
html{scroll-padding-top:72px}button,select,a{touch-action:manipulation}
@media(min-width:761px) and (max-width:1100px){.work-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){header{padding:16px}.brand{font-size:21px}main{padding:12px 16px 32px}h1{font-size:25px}.work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 18px}.filters{gap:12px;flex-wrap:wrap}select{width:100%}.filters p{width:100%;margin:0}.detail-heading{display:flex;flex-direction:column;gap:12px;align-items:stretch}.detail-heading .cover-frame{width:168px;align-self:center;font-size:14px}.detail-heading h1{font-size:22px}.product{padding:16px}.amazon-link{width:fit-content;max-width:100%}.edition{font-size:12px}}

/* Preserve the frozen frame; show thumbnails at intrinsic size without cropping. */
.cover-frame{overflow:hidden;flex-shrink:0}.cover-frame img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.cover-frame img[hidden]{display:none}
/* List covers fill a shared manga-book footprint; detail sizing is unchanged. */
.work-card .cover-frame{position:relative;aspect-ratio:2/3}
.work-card .cover-frame:not(.cover-placeholder){background:transparent;border-color:transparent;border-radius:0}
.work-card .cover-frame img{position:absolute;inset:0;width:100%;height:100%;padding:0;object-fit:contain}

/* Mobile uses the same filter state and chip treatment as category. */
.year-chips{display:none}
@media(max-width:760px){#year{display:none}.year-chips{display:flex;width:100%}}
/* Detail uses the same book footprint as cards, including thumbnail images. */
.detail-heading .cover-frame{position:relative;aspect-ratio:2/3}
.detail-heading .cover-frame:not(.cover-placeholder){background:transparent;border-color:transparent;border-radius:0}
.detail-heading .cover-frame img{position:absolute;inset:0;width:100%;height:100%;padding:0;object-fit:contain}
