:root {
  color-scheme: light;
  --cream: #f9edd2;
  --paper: #ffffff;
  --ink: #344844;
  --muted: #687572;
  --teal: #4b8b87;
  --teal-dark: #376e6b;
  --line: #e2e8e6;
  --soft: #f4f7f6;
  --gold: #d9aa4c;
  --max: 960px;
  --shadow: 0 5px 18px rgba(22, 44, 41, .18);
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--ink); font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; line-height: 1.7; }
a { color: inherit; text-underline-offset: .18em; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.masthead { min-height: 420px; color: #fff; background: linear-gradient(rgba(20, 42, 44, .46), rgba(20, 42, 44, .46)), url("assets/hero-bookshelf.webp") center / cover; }
.site-nav { min-height: 90px; padding: 12px 30px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; color: #fff; }
.site-nav--inner { min-height: 90px; background: linear-gradient(rgba(20, 42, 44, .52), rgba(20, 42, 44, .52)), url("assets/hero-bookshelf.webp") center 46% / cover; }
.brand { font-size: 34px; line-height: 54px; font-weight: 600; text-decoration: none; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.site-nav nav { padding-top: 14px; font-size: 15px; }
.site-nav nav a { text-decoration: none; }
.hero { padding: 34px 16px 88px; text-align: center; }
.hero h1 { max-width: 780px; margin: 0 auto 30px; font-size: clamp(34px, 4vw, 48px); line-height: 1.35; font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,.48); }
.hero-search { width: min(395px, calc(100% - 20px)); min-height: 42px; margin: auto; overflow: hidden; border-radius: 5px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.24); }
.hero-search input { width: 100%; min-height: 42px; border: 0; padding: 0 15px; color: var(--ink); }

.home-main { width: min(var(--max), calc(100% - 20px)); margin: -120px auto 70px; }
.panel { border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); }
.featured-shelf { height: 300px; margin-bottom: 60px; padding: 27px 25px 18px; overflow: hidden; }
.shelf-heading { margin: 0 9px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.shelf-heading h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.shelf-more { flex: 0 0 auto; color: var(--teal-dark); font-size: 13px; text-decoration: none; }
.shelf-more span { font-size: 18px; vertical-align: -1px; }
.shelf-more:hover { text-decoration: underline; }
.shelf-carousel { display: grid; grid-template-columns: 44px minmax(0, 790px) 44px; align-items: center; justify-content: center; }
.shelf-control { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.shelf-control span { font-size: 20px; line-height: 1; }
.shelf-control:hover { background: var(--soft); }
.shelf-grid { width: 100%; margin: auto; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 114px) / 4); gap: 38px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf-grid::-webkit-scrollbar { display: none; }
.shelf-card { min-width: 0; padding: 0; display: grid; justify-items: center; align-content: start; border: 0; background: transparent; color: inherit; font: inherit; scroll-snap-align: none; text-decoration: none; cursor: pointer; }
.shelf-card:nth-child(4n + 1) { scroll-snap-align: start; }
.shelf-dots { min-height: 20px; margin-top: 7px; display: flex; align-items: center; justify-content: center; }
.shelf-dot { width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: #acb5b1; cursor: pointer; font-size: 18px; line-height: 1; }
.shelf-dot[aria-current="true"] { color: var(--teal-dark); }
.shelf-card:active, .category-card:active, .secondary-link:active, .google-button:active, .floating-search:active { transform: translateY(1px); }
.book-cover { width: 100px; height: 142px; padding: 13px 10px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: 2px 5px 5px 2px; color: #fff; box-shadow: -3px 4px 9px rgba(26, 42, 40, .24); text-align: left; }
.book-cover small { font-size: 9px; letter-spacing: .08em; opacity: .85; }
.book-cover b { font-size: 12px; line-height: 1.5; }
.book-cover--0 { background: linear-gradient(150deg, #68867e, #304d49); }
.book-cover--1 { background: linear-gradient(150deg, #c38b68, #704b3c); }
.book-cover--2 { background: linear-gradient(150deg, #647a9b, #36465f); }
.book-cover--3 { background: linear-gradient(150deg, #9d7c96, #5e4358); }
.book-cover--4 { background: linear-gradient(150deg, #b5a060, #6e6034); }
.book-cover--5 { background: linear-gradient(150deg, #67858d, #39545b); }
.book-cover--6 { background: linear-gradient(150deg, #a66b68, #684341); }
.book-cover--7 { background: linear-gradient(150deg, #808a65, #4b5239); }
.shelf-card-title { width: min(150px, 100%); margin-top: 10px; font-size: 12px; line-height: 1.45; text-align: center; }

.search-panel { margin-bottom: 60px; padding: 28px 34px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; font-size: 20px; }
.search-status { margin: 0 0 18px; padding: 11px 14px; background: #edf5f3; font-size: 14px; }
.topic-directory { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.directory-card { padding: 13px 14px; border: 1px solid var(--line); }
.directory-card p { margin: 0 0 3px; color: var(--teal-dark); font-size: 11px; font-weight: 700; }
.directory-card a { font-size: 14px; font-weight: 600; text-decoration: none; }

.category-section { margin-bottom: 60px; padding: 31px 30px 52px; }
.category-heading { width: 540px; max-width: 100%; margin: 0 auto 34px; }
.category-heading h2 { margin: 0; font-size: 22px; }
.category-grid { width: 540px; max-width: 100%; margin: auto; display: grid; grid-template-columns: repeat(2, 240px); gap: 60px; }
.category-card { width: 240px; height: 160px; display: block; overflow: hidden; border-radius: 4px; text-decoration: none; box-shadow: 0 2px 7px rgba(24, 46, 43, .18); }
.category-photo { width: 100%; height: 100%; display: grid; place-items: center; padding: 12px; background-image: linear-gradient(rgba(34, 70, 67, .55), rgba(34, 70, 67, .55)), url("assets/hero-bookshelf.webp"); background-position: var(--category-x) var(--category-y); background-size: 280% auto; color: #fff; text-align: center; }
.category-photo strong { font-size: 18px; font-weight: 600; text-shadow: 0 1px 5px rgba(0,0,0,.45); }
.home-about { margin-bottom: 60px; padding: 34px 58px 40px; text-align: center; }
.home-about h2 { margin: 0 0 12px; font-size: 21px; }
.home-about p { max-width: 620px; margin: 0 auto 14px; }
.home-about a { color: var(--teal-dark); }

.page-shell { width: min(var(--max), calc(100% - 20px)); margin: 0 auto 70px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; padding: 22px 0 13px; color: var(--muted); font-size: 12px; }
.content-card { padding: 42px 58px 54px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); }
.category-directory-page { padding-top: 58px; }
.category-directory-header { width: 540px; max-width: 100%; margin: 0 auto 34px; text-align: center; }
.category-directory-header h1 { margin: 0; color: var(--ink); font-size: 32px; line-height: 1.45; }
.category-topic-grid { width: 540px; max-width: 100%; margin: auto; display: grid; grid-template-columns: repeat(2, 240px); gap: 60px; }
.category-topic-card { width: 240px; height: 160px; display: block; overflow: hidden; border-radius: 20px; text-decoration: none; box-shadow: 0 2px 7px rgba(24, 46, 43, .18); }
.category-topic-photo { width: 100%; height: 100%; display: grid; place-items: center; padding: 18px; background-image: linear-gradient(rgba(34, 70, 67, .55), rgba(34, 70, 67, .55)), url("assets/hero-bookshelf.webp"); background-position: var(--topic-x) var(--topic-y); background-size: 280% auto; color: #fff; text-align: center; }
.category-topic-photo strong { font-size: 16px; font-weight: 600; line-height: 1.6; text-shadow: 0 1px 5px rgba(0,0,0,.5); }
.category-topic-card:hover .category-topic-photo { background-image: linear-gradient(rgba(34, 70, 67, .42), rgba(34, 70, 67, .42)), url("assets/hero-bookshelf.webp"); }
.collection-body { background: #fff; color: #3a4b48; }
.site-nav--collection { min-height: 61px; height: 61px; padding: 2px 24px; background-position: center 75%; }
.site-nav--collection .brand { font-size: 34px; line-height: 54px; font-weight: 400; }
.site-nav--collection nav { padding-top: 10px; font-size: 14px; }
.collection-shell { min-height: 100vh; padding-bottom: 80px; }
.collection-toolbar { min-height: 55px; padding: 0 32px; display: grid; grid-template-columns: 1fr 320px 1fr; align-items: start; }
.collection-breadcrumb { padding: 10px 0 0; grid-column: 1; grid-row: 1; font-size: 14px; }
.collection-search { width: 320px; height: 34px; margin-top: -4px; grid-column: 2; grid-row: 1; overflow: hidden; border-bottom: 1px solid #d7dcda; border-radius: 0 0 9px 9px; }
.collection-search input { width: 100%; height: 33px; border: 0; padding: 0 10px; background: transparent; color: var(--ink); }
.collection-article { width: 100%; }
.collection-header { text-align: center; }
.collection-header h1 { margin: 0; color: #3a4b48; font-size: 28px; line-height: 1.45; text-wrap: balance; word-break: keep-all; }
.collection-header > p:not(.collection-disclosure) { margin: 16px 320px; color: #3a4b48; font-size: 16px; line-height: 1.5; }
.collection-disclosure { width: min(778px, calc(100% - 40px)); min-height: 30px; margin: 0 auto 24px; padding: 6px 12px; border-radius: 4px; background: #f2f2f2; color: #797979; font-size: 12px; line-height: 1.5; }
.collection-toc { width: 50%; min-width: 620px; margin: 0 auto 48px; overflow: hidden; border-radius: 3px; background: #f2f2f2; }
.collection-toc h2 { height: 36px; margin: 0; padding: 5px 0; display: flex; align-items: center; justify-content: center; background: #4c8a87; color: #fff; font-size: 18px; line-height: 1.4; }
.collection-toc ol { margin: 0; padding: 14px 20px 2px; list-style: none; }
.collection-toc li { font-size: 14px; line-height: 1.45; }
.collection-toc li + li { margin-top: 1px; }
.collection-toc a { text-decoration: none; }
.collection-toc a:hover { text-decoration: underline; }
.collection-toc a span { margin-right: 4px; font-variant-numeric: tabular-nums; }
.collection-toc-more { margin: 0; padding: 0 20px 12px; font-size: 14px; }
.collection-ranking { display: grid; justify-items: center; gap: 30px; }
.collection-item { position: relative; width: 416px; padding: 10px; border-radius: 6px; background: #fff; box-shadow: 0 4px 15px rgba(0, 0, 0, .2); transition: transform .2s ease, box-shadow .2s ease; }
.collection-item:has(.collection-card-action:hover) { box-shadow: 0 7px 19px rgba(0, 0, 0, .24); transform: translateY(-1px); }
.collection-card-action { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.collection-item-top { min-height: 64px; padding: 4px 0 8px 4px; display: flex; align-items: center; gap: 9px; }
.collection-rank { min-width: 60px; min-height: 40px; padding: 8px 12px; display: inline-grid; place-items: center; border-radius: 4px; background: #f2b50d; color: #fff; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.collection-marker { width: 58px; height: 58px; display: grid; place-items: center; border: 4px solid #e19d93; border-radius: 50%; color: #d98f84; font-size: 25px; line-height: 1; }
.collection-item-main { min-height: 176px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.collection-item-main .book-cover { width: 96px; height: 142px; }
.collection-item-copy { min-width: 0; padding-top: 2px; }
.collection-item-copy h2 { margin: 0 0 5px; font-size: 19px; line-height: 1.5; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.collection-item-meta { margin: 0 0 9px; color: #4e5b59; font-size: 14px; }
.collection-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.collection-tags span { padding: 2px 5px; background: #efefef; color: #4b5755; font-size: 12px; line-height: 1.4; }
.collection-item-description { margin: 4px 10px 14px; font-size: 14px; line-height: 1.8; }
.sentence-line { display: block; }
.article-header { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--teal-dark); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.article-header h1 { margin: 7px 0 12px; font-size: clamp(27px, 4vw, 38px); line-height: 1.45; }
.article-header > p:last-child { margin: 0; color: var(--muted); }
.disclosure { margin: 18px 0; padding: 10px 14px; border-left: 4px solid var(--teal); background: #edf5f3; font-size: 13px; }
.toc { margin: 22px 0 30px; padding: 19px 22px; background: var(--soft); }
.toc h2 { margin: 0 0 8px; font-size: 16px; }
.toc ol { margin: 0; padding-left: 22px; font-size: 13px; }
.summary-box { margin: 30px 0; padding: 23px; border: 1px solid #cfe0dd; }
.summary-box h2, .section-heading { margin: 0 0 12px; font-size: 21px; }
.summary-box p { margin: 0; }
.guide-list { margin: 0 0 36px; border-top: 1px solid var(--line); }
.guide-section { padding: 22px 2px; border-bottom: 1px solid var(--line); }
.guide-section h3 { margin: 0 0 8px; font-size: 19px; }
.guide-section p { margin: 0; color: var(--muted); }
.check-list { margin: 0 0 34px; padding: 22px 22px 22px 44px; background: var(--soft); }
.check-list li + li { margin-top: 8px; }
.related-grid, .topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.topic-link { padding: 17px; border: 1px solid var(--line); text-decoration: none; }
.topic-link span { display: block; margin-bottom: 4px; color: var(--teal-dark); font-size: 11px; }
.topic-link strong { font-size: 14px; }
.faq-section { width: min(600px, 100%); margin: 52px auto 0; }
.faq-section > h2 { margin: 0 0 24px; padding: 0 12px 15px; border-bottom: 2px solid var(--teal); font-size: 23px; line-height: 1.55; text-align: center; }
.faq-list { display: grid; gap: 15px; }
.faq-item { padding: 19px 20px 20px; border-radius: 9px; background: var(--paper); box-shadow: 0 2px 8px rgba(30, 58, 54, .1); }
.faq-item h3 { margin: 0 0 9px; color: var(--teal-dark); font-size: 16px; line-height: 1.6; }
.faq-item p { margin: 0; display: flex; align-items: flex-start; font-size: 14px; line-height: 1.8; }
.faq-item .faq-label { display: inline-block; min-width: 2em; flex: 0 0 2em; font-weight: 700; }
.faq-answer-copy { min-width: 0; flex: 1; }
.save-box { margin-top: 32px; padding: 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #edf5f3; }
.save-box h2 { margin: 0 0 4px; font-size: 17px; }
.save-box p { margin: 0; color: var(--muted); font-size: 13px; }
.secondary-link { min-height: 40px; padding: 8px 15px; display: inline-flex; align-items: center; border-radius: 4px; background: var(--teal-dark); color: #fff; text-decoration: none; white-space: nowrap; }

.signin-shell { min-height: 820px; padding: 78px 10px 110px; }
.signin-card { width: min(594px, 100%); margin: auto; padding: 43px 40px 48px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.signin-card h1 { margin: 0; font-size: 31px; }
.signin-lead { margin: 8px 0 34px; color: var(--muted); }
.profile-preview-link { margin: 18px auto 10px; display: block; color: var(--teal-dark); }
.benefit-list { display: grid; gap: 15px; margin: 20px 0 32px; text-align: left; }
.benefit-item { padding: 17px; display: grid; grid-template-columns: 42px 1fr; gap: 13px; background: var(--soft); }
.benefit-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }
.benefit-item h3, .benefit-item p { margin: 0; }
.benefit-item p { color: var(--muted); font-size: 13px; }
.google-button { min-width: min(285px, 100%); min-height: 50px; border: 1px solid #4285f4; border-radius: 5px; background: #4285f4; color: #fff; font-weight: 700; cursor: pointer; }
.profile-body { background: #fff; }
.profile-shell { width: min(720px, calc(100% - 24px)); margin: 0 auto; padding: 38px 0 76px; text-align: center; }
.profile-identity { min-height: 150px; }
.profile-name-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.profile-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #146a9f; color: #fff; font-size: 21px; font-weight: 700; }
.profile-identity h1 { margin: 0; color: var(--teal-dark); font-size: 22px; }
.profile-identity > a { color: var(--muted); font-size: 12px; }
.profile-preview-note { width: min(360px, 100%); margin: 48px auto 20px; padding: 7px 12px; border-radius: 4px; background: #f2f2f2; color: #777; font-size: 11px; }
.editorial-feature { margin-bottom: 28px; }
.editorial-feature > h2 { margin: 0 0 8px; color: var(--teal); font-size: 21px; }
.editorial-book-card { width: 316px; max-width: 100%; margin: auto; padding: 15px 18px 20px; border-radius: 6px; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,.18); text-align: left; }
.editorial-book-main { min-height: 144px; display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 13px; }
.editorial-book-main .book-cover { width: 88px; height: 124px; }
.editorial-book-main h3 { margin: 0 0 5px; font-size: 16px; line-height: 1.5; text-decoration: underline; }
.editorial-book-main p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.editorial-book-card > button { width: 100%; min-height: 31px; border: 0; border-radius: 4px; background: #f6a23b; color: #fff; font-size: 13px; letter-spacing: .12em; cursor: pointer; }
.editorial-actions { margin-top: 13px; display: flex; justify-content: space-between; gap: 22px; }
.editorial-actions a { flex: 1; padding: 4px 8px; border-radius: 4px; background: var(--teal); color: #fff; font-size: 11px; line-height: 1.4; text-align: center; text-decoration: none; }
.profile-recommendations { height: 226px; margin: 29px auto 53px; padding: 18px 8px 12px; text-align: left; }
.profile-recommendations .shelf-heading { margin: 0 8px 12px; }
.profile-recommendations .shelf-heading h2 { font-size: 13px; font-weight: 500; }
.profile-recommendations .shelf-carousel { grid-template-columns: 36px minmax(0, 620px) 36px; }
.profile-recommendations .shelf-control { width: 36px; height: 36px; }
.profile-recommendations .shelf-grid { grid-auto-columns: calc((100% - 96px) / 4); gap: 32px; }
.profile-recommendations .book-cover { width: 86px; height: 104px; }
.profile-recommendations .book-cover b { font-size: 10px; }
.profile-recommendations .shelf-card-title { margin-top: 7px; font-size: 10px; }
.profile-recommendations .shelf-dots { margin-top: 2px; }
.account-delete-preview { padding: 5px 10px; border: 1px solid #d5d9d8; border-radius: 4px; color: var(--muted); font-size: 11px; text-decoration: none; }
.form-note { color: var(--muted); font-size: 12px; }

.floating-search { position: fixed; right: 22px; bottom: 24px; z-index: 20; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--teal-dark); color: #fff; box-shadow: 0 3px 12px rgba(26, 45, 42, .28); cursor: pointer; }
.floating-search::before { content: ""; position: absolute; left: 17px; top: 15px; width: 14px; height: 14px; border: 3px solid currentColor; border-radius: 50%; }
.floating-search::after { content: ""; position: absolute; left: 32px; top: 31px; width: 10px; height: 3px; border-radius: 2px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.site-footer { min-height: 395px; background: var(--teal-dark); color: var(--cream); }
.footer-inner { width: min(650px, calc(100% - 40px)); margin: auto; padding: 34px 0; }
.footer-brand { margin: 0 0 16px; font-size: 30px; font-weight: 700; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; }
.footer-inner p:not(.footer-brand) { margin: 5px 0; font-size: 12px; }
.notice { position: fixed; right: 18px; bottom: 88px; z-index: 30; max-width: min(430px, calc(100vw - 36px)); padding: 12px 16px; border-radius: 6px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 14px; }

@media (max-width: 900px) {
  .collection-search { display: none; }
}

@media (max-width: 767px) {
  .masthead { min-height: 410px; }
  .site-nav { min-height: 74px; padding: 10px 12px; }
  .site-nav--inner { min-height: 90px; }
  .brand { max-width: 62%; font-size: 22px; line-height: 1.4; }
  .site-nav nav { padding-top: 4px; font-size: 12px; white-space: nowrap; }
  .hero { padding: 44px 18px 90px; }
  .hero h1 { max-width: 100%; margin-bottom: 28px; font-size: 26px; }
  .home-main { width: min(370px, calc(100% - 10px)); margin-top: -120px; }
  .featured-shelf { height: 320px; padding: 24px 5px 16px; }
  .shelf-heading { margin: 0 39px 20px; }
  .shelf-heading h2 { font-size: 18px; }
  .shelf-more { font-size: 12px; }
  .shelf-carousel { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .shelf-control { width: 34px; height: 44px; }
  .shelf-grid { margin: 0; grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
  .shelf-card { min-width: 0; }
  .shelf-card:nth-child(4n + 1) { scroll-snap-align: none; }
  .shelf-card:nth-child(2n + 1) { scroll-snap-align: start; }
  .book-cover { width: 102px; height: 145px; }
  .shelf-card-title { width: 100%; }
  .search-panel { padding: 22px 16px; }
  .topic-directory, .related-grid, .topic-grid { grid-template-columns: 1fr; }
  .category-section { padding: 25px 15px 42px; }
  .category-heading { width: 320px; margin-bottom: 24px; }
  .category-heading h2 { font-size: 20px; }
  .category-grid { width: 320px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .category-card { width: auto; height: auto; aspect-ratio: 3 / 2; }
  .category-photo strong { font-size: 15px; }
  .home-about { padding: 30px 22px 34px; }
  .content-card { padding: 29px 20px 39px; }
  .category-directory-page { padding: 42px 15px 46px; }
  .category-directory-header { width: 320px; margin-bottom: 24px; }
  .category-directory-header h1 { font-size: 24px; }
  .category-topic-grid { width: 320px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .category-topic-card { width: auto; height: auto; aspect-ratio: 3 / 2; border-radius: 12px; }
  .category-topic-photo { padding: 10px; }
  .category-topic-photo strong { font-size: 12px; line-height: 1.5; }
  .site-nav--collection { min-height: 61px; height: 61px; padding-inline: 12px; }
  .site-nav--collection .brand { font-size: 27px; line-height: 50px; }
  .site-nav--collection nav { font-size: 12px; }
  .collection-toolbar { min-height: 49px; padding: 0 14px; display: block; }
  .collection-breadcrumb { padding-top: 12px; font-size: 12px; }
  .collection-search { display: none; }
  .collection-header { padding: 0 15px; }
  .collection-header h1 { font-size: 22px; }
  .collection-header > p:not(.collection-disclosure) { margin: 20px 25px; font-size: 14px; }
  .collection-disclosure { width: calc(100% - 30px); margin-bottom: 22px; }
  .collection-toc { width: 90%; min-width: 0; margin-bottom: 36px; }
  .collection-toc ol { padding-inline: 14px; }
  .collection-toc li, .collection-toc-more { font-size: 12px; }
  .collection-ranking { gap: 24px; }
  .collection-item { width: min(350px, calc(100% - 20px)); padding: 9px; }
  .collection-item-top { min-height: 54px; padding-left: 4px; }
  .collection-rank { min-width: 52px; min-height: 36px; padding: 7px 9px; font-size: 14px; }
  .collection-marker { width: 48px; height: 48px; border-width: 3px; font-size: 21px; }
  .collection-item-main { min-height: 145px; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .collection-item-main .book-cover { width: 80px; height: 118px; padding: 9px 7px; }
  .collection-item-main .book-cover b { font-size: 10px; }
  .collection-item-copy h2 { font-size: 16px; }
  .collection-item-meta { font-size: 12px; }
  .collection-tags span { font-size: 10px; }
  .collection-item-description { margin-inline: 5px; font-size: 13px; }
  .profile-shell { width: min(375px, calc(100% - 16px)); padding-top: 28px; }
  .profile-preview-note { margin-top: 34px; }
  .editorial-feature > h2 { font-size: 19px; }
  .profile-recommendations { height: 292px; padding-inline: 4px; }
  .profile-recommendations .shelf-heading { margin-inline: 34px; }
  .profile-recommendations .shelf-carousel { grid-template-columns: 30px minmax(0, 1fr) 30px; }
  .profile-recommendations .shelf-control { width: 30px; }
  .profile-recommendations .shelf-grid { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
  .profile-recommendations .book-cover { width: 86px; height: 118px; }
  .faq-section { margin: 42px auto 0; }
  .faq-section > h2 { padding-inline: 0; font-size: 19px; }
  .faq-item { padding: 16px; }
  .faq-item h3 { font-size: 15px; }
  .faq-item p { font-size: 13px; }
  .save-box { align-items: stretch; flex-direction: column; }
  .signin-shell { padding-top: 48px; }
  .signin-card { padding: 32px 19px 39px; }
  .signin-card h1 { font-size: 25px; }
  .floating-search { right: 14px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* public-compact-guide-overrides */
/*
 * The public skin keeps the generated HTML, URLs and interactions intact while
 * moving the visual language away from the original bookshelf reference.
 */
:root {
  --cream: #ffffff;
  --paper: #ffffff;
  --ink: #18283b;
  --muted: #687383;
  --teal: #c94f42;
  --teal-dark: #243d59;
  --line: #d8dee5;
  --soft: #eef2f5;
  --gold: #e15848;
  --shadow: 0 4px 14px rgba(24, 40, 59, .1);
}
body { background-color: #fff; color: var(--ink); }
.masthead,
.site-nav--inner,
.category-photo,
.category-topic-photo,
.category-topic-card:hover .category-topic-photo { background-image: none; }
.masthead { min-height: 0; background-color: var(--teal-dark); color: #fff; }
.masthead .site-nav { width: min(1160px, calc(100% - 40px)); min-height: 60px; margin: auto; padding: 8px 0; align-items: center; border-bottom: 1px solid #52677f; }
.site-nav--inner { width: 100%; min-height: 60px; margin: 0; padding: 8px max(20px, calc((100% - 1160px) / 2)); align-items: center; background-color: var(--teal-dark); border-bottom: 1px solid #52677f; color: #fff; }
.site-nav nav,
.site-nav--collection nav { padding-top: 0; }
.site-nav nav a { color: inherit; }
.brand { font-size: 21px; line-height: 1.4; text-shadow: none; }
.hero { width: min(1160px, calc(100% - 40px)); margin: auto; padding: 34px 0 44px; text-align: left; }
.hero h1 { max-width: 980px; margin: 0 0 23px; font-size: clamp(28px, 3vw, 38px); text-shadow: none; }
.hero-search { width: min(560px, 100%); min-height: 42px; margin: 0; border: 1px solid #91a0af; border-radius: 2px; box-shadow: none; }
.hero-search input { min-height: 40px; }
.home-main { width: min(1160px, calc(100% - 40px)); margin: 34px auto 60px; }
.panel { border-radius: 0; background-color: #fff; box-shadow: none; }
.featured-shelf { height: auto; min-height: 230px; margin-bottom: 0; padding: 22px 0 20px; overflow: hidden; border-bottom: 1px solid var(--line); }
.shelf-heading { margin: 0 0 14px; }
.shelf-heading h2 { font-size: 17px; }
.shelf-more { color: var(--teal); font-weight: 700; }
.shelf-carousel { grid-template-columns: 38px minmax(0, 1fr) 38px; }
.shelf-control { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 2px; background-color: #fff; }
.shelf-control:hover { background-color: var(--soft); }
.shelf-grid { grid-auto-columns: calc((100% - 42px) / 4); gap: 14px; }
.book-cover { width: 100%; min-height: 92px; height: 110px; padding: 12px 13px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 2px; background-color: #f7f9fb; background-image: none; box-shadow: none; color: var(--ink); }
.book-cover--1, .book-cover--5 { background-color: #f4f7fa; }
.book-cover--2, .book-cover--6 { background-color: #f8f6f3; }
.book-cover--3, .book-cover--7 { background-color: #f3f7f6; }
.book-cover small { letter-spacing: 0; }
.shelf-card { justify-items: stretch; }
.shelf-card-title { width: 100%; margin-top: 6px; text-align: left; }
.shelf-dots { justify-content: flex-end; margin-top: 2px; }
.category-section { margin: 40px 0 0; padding: 28px 0 0; border-top: 4px solid var(--ink); }
.category-heading { width: 100%; margin: 0 0 18px; }
.category-grid { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background-color: var(--line); }
.category-card { width: auto; height: auto; min-height: 62px; border-radius: 0; box-shadow: none; }
.category-photo { min-height: 62px; padding: 14px; place-items: center start; background-color: #fff; color: var(--ink); text-align: left; }
.category-photo strong { font-size: 13px; text-shadow: none; }
.home-about { margin-top: 36px; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.home-about p { margin-left: 0; }

.page-shell { width: min(960px, calc(100% - 40px)); margin-bottom: 64px; }
.breadcrumb { padding: 18px 0 12px; }
.content-card { padding: 34px 0 52px; border-radius: 0; background-color: #fff; box-shadow: none; }
.category-directory-page { padding-top: 34px; }
.category-directory-header { width: 100%; margin: 0 0 24px; text-align: left; }
.category-directory-header h1 { padding-bottom: 14px; border-bottom: 4px solid var(--ink); font-size: 28px; }
.category-topic-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.category-topic-card { width: auto; height: auto; min-height: 74px; border: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.category-topic-photo { min-height: 72px; padding: 16px 18px; place-items: center start; border-left: 4px solid var(--teal); background-color: #fff; color: var(--ink); text-align: left; }
.category-topic-photo strong { font-size: 14px; text-shadow: none; }
.article-header { padding-bottom: 22px; border-bottom: 4px solid var(--ink); }
.eyebrow { color: var(--teal); }
.article-header h1 { font-size: clamp(26px, 4vw, 36px); }
.toc { border-left: 4px solid var(--teal); background-color: var(--soft); }
.summary-box { border-color: var(--line); }
.guide-section { padding-block: 19px; }
.check-list { border-left: 4px solid var(--teal-dark); }
.topic-link { border-left: 4px solid var(--teal); }
.faq-section > h2 { border-bottom-color: var(--ink); }
.faq-item { border: 1px solid var(--line); border-radius: 2px; box-shadow: none; }
.faq-item h3 { color: var(--teal-dark); }

.collection-body { background-color: #fff; color: var(--ink); }
.site-nav--collection { height: auto; background-position: initial; }
.site-nav--collection .brand { font-size: 21px; line-height: 1.4; font-weight: 600; }
.collection-shell { min-height: 100vh; max-width: 1160px; margin: auto; padding: 0 20px 80px; }
.collection-toolbar { min-height: 58px; padding: 0; grid-template-columns: 1fr 320px; }
.collection-breadcrumb { padding-top: 18px; }
.collection-search { grid-column: 2; margin-top: 10px; border: 1px solid var(--line); border-radius: 2px; }
.collection-article { width: min(960px, 100%); margin: auto; }
.collection-header { text-align: left; }
.collection-header h1 { padding-bottom: 14px; border-bottom: 4px solid var(--ink); color: var(--ink); font-size: 30px; }
.collection-header > p:not(.collection-disclosure) { margin: 16px 0; color: var(--ink); }
.collection-disclosure { width: 100%; margin: 0 0 24px; padding: 9px 12px; border-left: 4px solid var(--teal); border-radius: 0; background-color: var(--soft); }
.collection-toc { width: 100%; min-width: 0; margin: 0 auto 42px; border: 1px solid var(--line); border-radius: 0; background-color: #fff; }
.collection-toc h2 { height: auto; padding: 12px 18px; justify-content: flex-start; border-bottom: 1px solid var(--line); background-color: var(--soft); color: var(--ink); font-size: 16px; }
.collection-toc ol { padding: 16px 18px 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 24px; }
.collection-toc-more { padding: 4px 18px 14px; color: var(--muted); }
.collection-ranking { gap: 0; border-top: 1px solid var(--line); }
.collection-item { width: 100%; padding: 20px 4px; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; transition: background-color .2s ease; }
.collection-item:has(.collection-card-action:hover) { background-color: var(--soft); box-shadow: none; transform: none; }
.collection-item-top { min-height: 38px; padding: 0 0 10px; }
.collection-rank { min-width: 0; min-height: 0; padding: 0 12px 0 0; border-right: 1px solid var(--line); border-radius: 0; background-color: transparent; color: var(--teal); font-size: 13px; }
.collection-marker { width: auto; height: auto; border: 0; border-radius: 0; color: var(--muted); font-size: 12px; }
.collection-item-main { min-height: 124px; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; }
.collection-item-main .book-cover { width: 128px; height: 108px; }
.collection-item-copy h2 { text-decoration: none; }
.collection-tags span { background-color: var(--soft); }
.collection-item-description { margin: 6px 0 0 148px; color: var(--muted); }

.signin-shell { min-height: 0; padding-top: 58px; }
.signin-card { border: 1px solid var(--line); border-radius: 2px; box-shadow: none; }
.benefit-item { border-left: 4px solid var(--teal); }
.benefit-icon { border-radius: 2px; background-color: var(--teal-dark); }
.editorial-book-card,
.profile-recommendations { border: 1px solid var(--line); border-radius: 2px; box-shadow: none; }
.editorial-book-card > button { background-color: var(--teal); }
.profile-avatar { border-radius: 3px; background-color: var(--teal-dark); }
.profile-preview-note { border-radius: 2px; }
.site-footer { min-height: 0; padding: 36px 0; background-color: var(--ink); color: #f4f7fa; }
.floating-search { width: 46px; height: 46px; border-radius: 3px; background-color: var(--teal); box-shadow: none; }
.notice { border-radius: 2px; background-color: var(--ink); }

.shelf-control:focus-visible,
.shelf-dot:focus-visible,
.shelf-card:focus-visible,
.category-card:focus-visible,
.hero-search input:focus-visible,
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 767px) {
  .masthead .site-nav,
  .hero,
  .home-main { width: min(100% - 24px, 1160px); }
  .masthead .site-nav { min-height: 54px; }
  .site-nav--inner { min-height: 54px; padding: 8px 12px; }
  .brand,
  .site-nav--collection .brand { max-width: 62%; font-size: 17px; }
  .hero { padding: 26px 0 32px; }
  .hero h1 { font-size: 27px; }
  .home-main { margin-top: 20px; }
  .featured-shelf { min-height: 250px; padding-inline: 0; }
  .shelf-heading { margin-inline: 0; }
  .shelf-grid { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
  .book-cover { width: 100%; height: 116px; }
  .category-section { padding-inline: 0; }
  .category-heading { width: 100%; }
  .category-grid { width: 100%; grid-template-columns: 1fr 1fr; gap: 1px; }
  .category-card { min-height: 64px; aspect-ratio: auto; }
  .home-about { padding-inline: 0; }
  .page-shell { width: min(100% - 24px, 960px); }
  .content-card { padding-inline: 0; }
  .category-directory-page { padding-inline: 0; }
  .category-directory-header,
  .category-topic-grid { width: 100%; }
  .category-topic-grid { grid-template-columns: 1fr; gap: 8px; }
  .category-topic-card { min-height: 64px; aspect-ratio: auto; }
  .category-topic-photo { min-height: 62px; }
  .collection-shell { padding-inline: 12px; }
  .collection-toolbar { min-height: 48px; }
  .collection-header { padding: 0; }
  .collection-header h1 { font-size: 23px; }
  .collection-header > p:not(.collection-disclosure) { margin-inline: 0; }
  .collection-disclosure { width: 100%; }
  .collection-toc { width: 100%; }
  .collection-toc ol { grid-template-columns: 1fr; }
  .collection-item { width: 100%; padding: 17px 2px; }
  .collection-item-top { min-height: 32px; }
  .collection-item-main { min-height: 100px; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .collection-item-main .book-cover { width: 92px; height: 92px; }
  .collection-item-description { margin: 8px 0 0; }
}

.global-policy-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:20px 0 10px}.global-policy-links a{color:inherit}.site-footer .global-policy-links+ p{margin-top:8px}
