body{background:var(--tone-bg-f7f8fa)}
.site-header{box-shadow:0 2px 10px var(--tone-shadow-102b4a08)}
.site-header .brand-mark,.footer-brand .brand-mark{width:45px;height:45px;overflow:hidden;border-radius:50%;background:var(--tone-bg-f4efe5)}
.site-header .brand-mark img,.footer-brand .brand-mark img{width:100%;height:100%;object-fit:cover;padding:0;border-radius:50%}
.mobile-login-link{display:none}
.hero{min-height:470px;grid-template-columns:minmax(0,1fr);padding-top:64px;padding-bottom:56px;background:linear-gradient(270deg,var(--tone-bg-102b4ae8),var(--tone-bg-15345bd9) 55%,var(--tone-bg-15345b9c)),url("college-building-hero.webp") center 46%/cover no-repeat}
.hero:before{display:none}
.hero-content{justify-self:end;width:min(760px,100%);max-width:760px;text-align:right}
.hero-content>p{max-width:620px;margin-right:0;margin-left:auto}
.hero-art{display:none}
.hero h1{font-size:44px}
.search-box{max-width:690px;margin-right:0;margin-left:auto}
.search-hints,.hero-note{justify-content:flex-start}
.stats-strip{background:var(--tone-bg-fff)}
.section{max-width:1200px}
.categories-section,.catalog-section,.how-section,.about-section{background:var(--tone-bg-f7f8fa)}
.category-card,.dashboard-panel{box-shadow:0 5px 18px var(--tone-shadow-102b4a08)}
.catalog-tools{border:1px solid var(--tone-border-e6ebf1);border-radius:12px;background:var(--tone-bg-fff);padding:12px}
.book-card{border-color:var(--tone-border-e6ebf1);box-shadow:0 5px 18px var(--tone-shadow-102b4a08)}
.featured-band{background:linear-gradient(110deg,var(--tone-bg-102b4a),var(--tone-bg-1b4168))}
.site-footer{background:var(--tone-bg-102b4a)}
@media(max-width:700px){
  .hero{min-height:490px;padding-top:52px;padding-bottom:42px;background-position:54% center}
  .hero h1{font-size:35px;line-height:1.45}
  .hero-content>p{font-size:12px}
  .hero-note{margin-top:24px}
  .section{padding-right:18px;padding-left:18px}
}
@media(max-width:420px){
  .hero h1{font-size:30px}
  .search-box{height:54px;padding-right:5px;padding-left:8px}
  .search-box button{padding:10px 11px;font-size:10px}
  .search-hints{flex-wrap:wrap}
}
@media(max-width:650px){
  .main-nav .mobile-login-link{display:block;width:100%;padding:10px 0;border:0;border-bottom:1px solid var(--tone-border-f0f2f5);background:transparent;color:var(--tone-fg-var-navy);text-align:right;font-size:12px;font-weight:700}
  .auth-dialog input,.search-box input,.filter-search input,.catalog-tools select{font-size:16px}
  .catalog-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .catalog-tools>*{min-width:0}
  .filter-search{grid-column:1/-1;width:100%;min-width:0}
  .catalog-tools select{width:100%;min-width:0}
}
@media(max-width:360px){.catalog-tools{grid-template-columns:minmax(0,1fr)}}

.research-page{background-color:var(--tone-bg-f4f7fb);background-image:radial-gradient(ellipse at 12% 8%,var(--tone-bg-rgba11416420615),transparent 34%),radial-gradient(ellipse at 88% 32%,var(--tone-bg-rgba1882112302),transparent 38%)}.research-page .categories-section{background:transparent}

.heritage-books-section{background:transparent}.historical-books-page{background-color:var(--tone-bg-f7f8fa);background-image:radial-gradient(ellipse at 12% 8%,var(--tone-bg-rgba19416411214),transparent 34%),radial-gradient(ellipse at 88% 32%,var(--tone-bg-rgba9915715513),transparent 38%)}

.category-card.category-theses{background:linear-gradient(145deg,var(--tone-bg-f7f8fa),var(--tone-bg-fff));border-color:var(--tone-border-e8d6b4)}.category-theses .category-icon{background:var(--tone-bg-e8def0);color:var(--tone-fg-705282);border-color:var(--tone-border-e8d6b4)}.category-theses .category-index{color:var(--tone-fg-736185)}.category-theses h3{color:var(--tone-fg-4f3c62)}.category-theses p{color:var(--tone-fg-708097)}.category-theses .card-arrow,.category-theses .card-arrow b{color:var(--tone-fg-736185)}
/* Unified library palette: navy, soft gray, and gold */
body,.research-page,.historical-books-page{background-color:var(--tone-bg-f7f8fa)}
.research-page,.historical-books-page{background-image:none}
.category-grid .category-card:not(.category-main){background:var(--tone-bg-fff);border-color:var(--tone-border-e3e9f0)}
.category-grid .category-card:not(.category-main) .category-icon{background:var(--tone-bg-f7f8fa);color:var(--tone-fg-244a72);border-color:var(--tone-border-e3e9f0)}
.category-grid .category-card:not(.category-main) .category-index{color:var(--tone-fg-708097)}
.category-grid .category-card:not(.category-main) h3{color:var(--tone-fg-15345b)}
.category-grid .category-card:not(.category-main) p{color:var(--tone-fg-708097)}
.category-grid .category-card:not(.category-main) .card-arrow{color:var(--tone-fg-9b8357)}
.category-grid .category-card:not(.category-main) .card-arrow b{color:var(--tone-fg-c7a66b)}
.category-card.category-theses{background:var(--tone-bg-fff);border-color:var(--tone-border-e3e9f0)}
.category-theses .category-icon{background:var(--tone-bg-f7f8fa);color:var(--tone-fg-244a72);border-color:var(--tone-border-e3e9f0)}
.category-theses .category-index{color:var(--tone-fg-708097)}
.category-theses h3{color:var(--tone-fg-15345b)}
.category-theses p{color:var(--tone-fg-708097)}
.category-theses .card-arrow,.category-theses .card-arrow b{color:var(--tone-fg-9b8357)}
/* Calm blue page backgrounds */
body,.research-page,.historical-books-page{background-color:var(--tone-bg-eef5fa)}
.research-page,.historical-books-page{background-image:none}
.categories-section,.catalog-section,.how-section,.about-section{background:var(--tone-bg-eef5fa)}
.category-grid .category-card:not(.category-main) .category-icon,.category-theses .category-icon{background:var(--tone-bg-f3f6fa)}
.category-grid .category-card:not(.category-main) .card-arrow b{color:var(--tone-fg-c7a66b)}
body.historical-sources-page{background:var(--tone-bg-eef5fa);background-image:none}

@media(min-width:651px) and (max-width:800px){
  .hero{min-height:auto;display:block;padding:55px 6% 42px}
  .hero-content{width:100%;max-width:760px}
  .hero h1{font-size:clamp(32px,5vw,40px)}
  .hero-art{display:none}
}

.book-card{display:flex;min-width:0;flex-direction:column;border-radius:12px;border-color:var(--tone-border-e0e7ee);box-shadow:0 8px 24px var(--tone-shadow-102b4a0c)}
.book-card:hover{box-shadow:0 16px 34px var(--tone-shadow-102b4a16)}
.book-cover{height:220px;background:linear-gradient(145deg,var(--tone-bg-eef3f7),var(--tone-bg-e5edf3))}
.book-cover img{object-fit:contain;padding:10px}
.book-info{display:flex;flex:1;flex-direction:column;padding:16px}
.book-info h3{display:-webkit-box;min-height:3.4em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.book-author{min-height:2.8em}
.book-meta{margin-top:auto}
@media(max-width:520px){
  .book-cover{height:180px}
  .book-info{padding:12px}
}
@media(max-width:360px){.book-cover{height:220px}}

/* Featured philosopher card: full row, warm gold accent, responsive layout. */
.category-grid .category-card.category-philosophers{grid-column:1/-1;display:grid;grid-template-columns:64px minmax(0,1fr) auto;grid-template-areas:"icon index arrow" "icon title arrow" "icon description arrow";align-items:center;column-gap:24px;row-gap:3px;min-height:184px;padding:26px clamp(20px,4vw,42px);border:1px solid var(--tone-border-d8bd7e);border-inline-start:6px solid var(--tone-border-b18f54);border-radius:14px;background:linear-gradient(115deg,var(--tone-bg-fff8e8) 0%,var(--tone-bg-fffdf8) 62%,var(--tone-bg-f8eed8) 100%);box-shadow:0 10px 28px var(--tone-shadow-9a773019)}
.category-grid .category-card.category-philosophers .category-icon{grid-area:icon;width:60px;height:60px;margin:0;border:1px solid var(--tone-border-e7d5a8);border-radius:18px;background:var(--tone-bg-f1e4c4);color:var(--tone-fg-80632e);font-size:25px}
.category-grid .category-card.category-philosophers .category-index{grid-area:index;justify-self:start;align-self:end;min-height:22px;padding:2px 10px;border-radius:20px;background:var(--tone-bg-f4ead1);color:var(--tone-fg-81652f);font-size:10px;font-weight:700}
.category-grid .category-card.category-philosophers h3{grid-area:title;margin:0;color:var(--tone-fg-173858);font-size:clamp(18px,2vw,23px);line-height:1.55}
.category-grid .category-card.category-philosophers p{grid-area:description;max-width:none;margin:0;color:var(--tone-fg-6d5a35);font-size:12px;line-height:1.8}
.category-grid .category-card.category-philosophers .card-arrow{grid-area:arrow;position:static;align-self:center;justify-self:end;display:flex;align-items:center;gap:8px;margin:0;padding:0;color:var(--tone-fg-80632e);font-size:12px;font-weight:800;white-space:nowrap}
.category-grid .category-card.category-philosophers .card-arrow b{color:var(--tone-fg-a27b35);font-size:18px}
.category-grid .category-card.category-philosophers:hover{border-color:var(--tone-border-b18f54);background:linear-gradient(115deg,var(--tone-bg-fff4d9) 0%,var(--tone-bg-fffaf0) 62%,var(--tone-bg-f5e7c6) 100%);box-shadow:0 18px 36px var(--tone-shadow-9a773026)}
@media(max-width:650px){.category-grid .category-card.category-philosophers{grid-template-columns:48px minmax(0,1fr);grid-template-areas:"icon index" "title title" "description description" "arrow arrow";column-gap:12px;row-gap:7px;min-height:0;padding:18px 16px;border-inline-start-width:4px;border-radius:12px}.category-grid .category-card.category-philosophers .category-icon{width:44px;height:44px;border-radius:13px;font-size:20px}.category-grid .category-card.category-philosophers .category-index{align-self:center}.category-grid .category-card.category-philosophers h3{font-size:16px;line-height:1.6}.category-grid .category-card.category-philosophers p{font-size:11px}.category-grid .category-card.category-philosophers .card-arrow{justify-self:start;margin-top:2px;font-size:11px}}
@media(max-width:360px){.category-grid .category-card.category-philosophers{padding:15px 13px}.category-grid .category-card.category-philosophers h3{font-size:15px}}
/* Highlighted history cards. */
.category-grid .category-card.category-history-books{background:linear-gradient(145deg,var(--tone-bg-eff7fb) 0%,var(--tone-bg-fff) 78%);border-color:var(--tone-border-b9cdda);border-inline-start:4px solid var(--tone-border-668da2);box-shadow:0 10px 24px var(--tone-shadow-315f8612)}
.category-grid .category-card.category-history-books .category-icon{background:var(--tone-bg-deebf2);border-color:var(--tone-border-c8dbe5);color:var(--tone-fg-365f75)}
.category-grid .category-card.category-history-books .category-index{background:var(--tone-bg-e4eff4);color:var(--tone-fg-416a7f)}
.category-grid .category-card.category-history-books h3{color:var(--tone-fg-244960)}
.category-grid .category-card.category-history-books p{color:var(--tone-fg-577080)}
.category-grid .category-card.category-history-books .card-arrow,.category-grid .category-card.category-history-books .card-arrow b{color:var(--tone-fg-3e7088)}
.category-grid .category-card.category-history-books:hover{border-color:var(--tone-border-6f96ad);box-shadow:0 16px 30px var(--tone-shadow-315f861d)}
.category-grid .category-card.category-history{background:linear-gradient(145deg,var(--tone-bg-f2f7f1) 0%,var(--tone-bg-fff) 78%);border-color:var(--tone-border-c1d4bd);border-inline-start:4px solid var(--tone-border-789779);box-shadow:0 10px 24px var(--tone-shadow-42694712)}
.category-grid .category-card.category-history .category-icon{background:var(--tone-bg-e5eee2);border-color:var(--tone-border-d1dfcd);color:var(--tone-fg-557356)}
.category-grid .category-card.category-history .category-index{background:var(--tone-bg-eaf1e7);color:var(--tone-fg-526e52)}
.category-grid .category-card.category-history h3{color:var(--tone-fg-35513c)}
.category-grid .category-card.category-history p{color:var(--tone-fg-5e765d)}
.category-grid .category-card.category-history .card-arrow,.category-grid .category-card.category-history .card-arrow b{color:var(--tone-fg-557356)}
.category-grid .category-card.category-history:hover{border-color:var(--tone-border-789779);box-shadow:0 16px 30px var(--tone-shadow-4269471d)}
/* Featured category accents: postgraduate and research cards. */
.category-grid .category-card.category-main{background:linear-gradient(145deg,var(--tone-bg-17485b) 0%,var(--tone-bg-10354e) 100%);border:1px solid var(--tone-border-2b6675);border-inline-start:5px solid var(--tone-border-67c1ad);box-shadow:0 12px 30px var(--tone-shadow-123f541f)}
.category-grid .category-card.category-main .category-icon{background:var(--tone-bg-ffffff16);color:var(--tone-fg-a9e0d3);border:1px solid var(--tone-border-ffffff35)}
.category-grid .category-card.category-main .category-index{background:var(--tone-bg-ffffff17);color:var(--tone-fg-d9e7dc)}
.category-grid .category-card.category-main h3{color:var(--tone-fg-fff)}
.category-grid .category-card.category-main p{color:var(--tone-fg-d4e3e7)}
.category-grid .category-card.category-main .card-arrow,.category-grid .category-card.category-main .card-arrow b{color:var(--tone-fg-b5e2d4)}
.category-grid .category-card.category-main:hover{border-color:var(--tone-border-67c1ad);box-shadow:0 17px 34px var(--tone-shadow-123f542b)}
.category-grid .category-card.category-econ{background:linear-gradient(145deg,var(--tone-bg-f5f0fa) 0%,var(--tone-bg-fff) 76%,var(--tone-bg-f0e9f7) 100%);border-color:var(--tone-border-d4c6e2);border-inline-start:4px solid var(--tone-border-9372ae);box-shadow:0 10px 26px var(--tone-shadow-694b8314)}
.category-grid .category-card.category-econ .category-icon{background:var(--tone-bg-ece3f3);border-color:var(--tone-border-d9cbe5);color:var(--tone-fg-77568f)}
.category-grid .category-card.category-econ .category-index{background:var(--tone-bg-ece3f3);color:var(--tone-fg-75568b)}
.category-grid .category-card.category-econ h3{color:var(--tone-fg-49335d)}
.category-grid .category-card.category-econ p{color:var(--tone-fg-766783)}
.category-grid .category-card.category-econ .card-arrow,.category-grid .category-card.category-econ .card-arrow b{color:var(--tone-fg-795a91)}
.category-grid .category-card.category-econ:hover{border-color:var(--tone-border-9372ae);box-shadow:0 16px 30px var(--tone-shadow-694b831e)}

/* Distinct heritage treatment for the history category cards. */
.heritage-books-section .category-card{position:relative;overflow:hidden;background:linear-gradient(145deg,var(--tone-bg-fffaf0) 0%,var(--tone-bg-fffdf8) 70%,var(--tone-bg-f4ead5) 100%);border-color:var(--tone-border-e1cfaa);border-inline-start:4px solid var(--tone-border-b08b4c);box-shadow:0 9px 22px var(--tone-shadow-765d2814)}
.heritage-books-section .category-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--tone-bg-c6a15c),var(--tone-bg-ead7ad),transparent);pointer-events:none}
.heritage-books-section .category-card .category-icon{background:var(--tone-bg-f1e6ce);border-color:var(--tone-border-e4d3ae);color:var(--tone-fg-80643a)}
.heritage-books-section .category-card .category-index{background:var(--tone-bg-f2ead9);color:var(--tone-fg-806a45);border:1px solid var(--tone-border-e8dcc2)}
.heritage-books-section .category-card h3{color:var(--tone-fg-463923)}
.heritage-books-section .category-card p{color:var(--tone-fg-74664e)}
.heritage-books-section .category-card .card-arrow,.heritage-books-section .category-card .card-arrow b{color:var(--tone-fg-9a7840)}
.heritage-books-section .category-card:hover{border-color:var(--tone-border-b08b4c);box-shadow:0 15px 30px var(--tone-shadow-765d2822)}
.heritage-books-section .category-card:focus-visible{outline:3px solid var(--tone-border-b08b4c);outline-offset:3px}

/* Heritage history page heading. */
.historical-books-page .library-heading{position:relative;isolation:isolate;overflow:hidden;min-height:210px;padding:clamp(26px,4.5vw,48px) clamp(22px,5vw,52px);border:1px solid var(--tone-border-a98b54);border-inline-start:7px solid var(--tone-border-d3b36c);border-radius:18px;background:linear-gradient(115deg,var(--tone-bg-0c2748) 0%,var(--tone-bg-183f63) 58%,var(--tone-bg-244a72) 100%);box-shadow:0 18px 38px var(--tone-shadow-5743242b)}
.historical-books-page .library-heading::before{content:"";position:absolute;z-index:-1;inset:auto -75px -210px auto;width:390px;height:390px;border:1px solid var(--tone-border-ead8af55);border-radius:50%;box-shadow:0 0 0 24px var(--tone-shadow-ead8af0d),0 0 0 50px var(--tone-shadow-ead8af0a);pointer-events:none}
.historical-books-page .library-heading>div{position:relative;z-index:1;max-width:900px}
.historical-books-page .library-heading .eyebrow{display:inline-flex;padding:6px 12px;border:1px solid var(--tone-border-f1dfb94d);border-radius:999px;background:var(--tone-bg-fff1d20e);color:var(--tone-fg-f1d9a6);font-size:12px;letter-spacing:.2px}
.historical-books-page .library-heading h1{max-width:850px;margin:13px 0 8px;color:var(--tone-fg-fff8e9);font-size:clamp(27px,4.4vw,44px);line-height:1.45}
.historical-books-page .library-heading p{max-width:780px;margin:0;color:var(--tone-fg-efe4ce);font-size:clamp(14px,1.5vw,17px);line-height:2}
@media(max-width:650px){.historical-books-page .library-heading{min-height:0;align-items:flex-start;padding:24px 20px}.historical-books-page .library-heading h1{font-size:clamp(24px,7vw,32px)}}

/* Filter controls for the history category groups. */
.heritage-filter-bar{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px;padding:13px;border:1px solid var(--tone-border-e4d6b9);border-radius:16px;background:linear-gradient(135deg,var(--tone-bg-f8f1e3),var(--tone-bg-fffaf0));box-shadow:0 7px 18px var(--tone-shadow-765d280d)}
.heritage-filter-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;appearance:none;border:1px solid var(--tone-border-dfcfad);border-radius:999px;padding:10px 16px;background:var(--tone-bg-fffdf8);color:var(--tone-fg-685638);font-family:inherit;font-size:13px;line-height:1.4;font-weight:700;cursor:pointer;transition:background .2s,border-color .2s,color .2s,transform .2s,box-shadow .2s}
.heritage-filter-btn:hover{transform:translateY(-1px);border-color:var(--tone-border-b08b4c);box-shadow:0 5px 12px var(--tone-shadow-765d2814)}
.heritage-filter-btn.is-active,.heritage-filter-btn[aria-pressed="true"]{border-color:var(--tone-border-80633a);background:var(--tone-bg-59472a);color:var(--tone-fg-fff8e9);box-shadow:0 5px 14px var(--tone-shadow-59472a28)}
.heritage-filter-btn:focus-visible{outline:3px solid var(--tone-border-b08b4c);outline-offset:3px}
.heritage-filter-status{margin:0 2px 16px;color:var(--tone-fg-806a45);font-size:12px}
.heritage-books-section .category-card[hidden]{display:none!important}
@media(max-width:650px){.heritage-filter-bar{gap:8px;padding:10px}.heritage-filter-btn{flex:1 1 calc(50% - 8px);padding:10px 9px;font-size:12px}.heritage-filter-btn:last-child{flex-grow:1}}

.heritage-group-back{display:inline-flex;align-items:center;margin:0 0 12px;color:var(--tone-fg-765f38);font-size:13px;font-weight:700;text-decoration:none}
.heritage-group-back:hover{color:var(--tone-fg-4f3d22);text-decoration:underline}

/* Four history group cards on the history hub. */
.heritage-books-section .heritage-group-card{min-height:220px;padding:24px}
.heritage-books-section .heritage-group-card:nth-child(2){background:linear-gradient(145deg,var(--tone-bg-f3f8f0) 0%,var(--tone-bg-fff) 72%,var(--tone-bg-eaf2e6) 100%);border-color:var(--tone-border-c6d8bf);border-inline-start-color:var(--tone-border-718d68)}
.heritage-books-section .heritage-group-card:nth-child(2) .category-icon{background:var(--tone-bg-e3eddf);border-color:var(--tone-border-cbdcc5);color:var(--tone-fg-54734c)}
.heritage-books-section .heritage-group-card:nth-child(3){background:linear-gradient(145deg,var(--tone-bg-eff6fa) 0%,var(--tone-bg-fff) 72%,var(--tone-bg-e8f0f5) 100%);border-color:var(--tone-border-c5d6e0);border-inline-start-color:var(--tone-border-64899d)}
.heritage-books-section .heritage-group-card:nth-child(3) .category-icon{background:var(--tone-bg-e0ebf1);border-color:var(--tone-border-c9dbe4);color:var(--tone-fg-466e83)}
.heritage-books-section .heritage-group-card:nth-child(4){background:linear-gradient(145deg,var(--tone-bg-f7f0f0) 0%,var(--tone-bg-fff) 72%,var(--tone-bg-f2e6e6) 100%);border-color:var(--tone-border-ddc4c1);border-inline-start-color:var(--tone-border-9b6f6b)}
.heritage-books-section .heritage-group-card:nth-child(4) .category-icon{background:var(--tone-bg-efdfdc);border-color:var(--tone-border-dec8c2);color:var(--tone-fg-805754)}

/* Unified blue and gold theme for every historical-books page. */
.historical-books-page .heritage-books-section .category-card{background:linear-gradient(145deg,var(--tone-bg-f3f7fb) 0%,var(--tone-bg-fff) 72%,var(--tone-bg-edf2f8) 100%);border-color:var(--tone-border-c7d5e2);border-inline-start-color:var(--tone-border-d3b36c);box-shadow:0 9px 22px var(--tone-shadow-173b5914)}
.historical-books-page .heritage-books-section .category-card::before{background:linear-gradient(90deg,var(--tone-bg-d3b36c),var(--tone-bg-f0dfb8),transparent)}
.historical-books-page .heritage-books-section .category-card .category-icon{background:var(--tone-bg-e4edf5);border-color:var(--tone-border-cbd9e5);color:var(--tone-fg-244a72)}
.historical-books-page .heritage-books-section .category-card .category-index{background:var(--tone-bg-f6f0e2);color:var(--tone-fg-80633a);border-color:var(--tone-border-e5d5b2)}
.historical-books-page .heritage-books-section .category-card h3{color:var(--tone-fg-15345b)}
.historical-books-page .heritage-books-section .category-card p{color:var(--tone-fg-687b8e)}
.historical-books-page .heritage-books-section .category-card .card-arrow,.historical-books-page .heritage-books-section .category-card .card-arrow b{color:var(--tone-fg-9a7840)}
.historical-books-page .heritage-books-section .category-card:hover{border-color:var(--tone-border-d3b36c);box-shadow:0 15px 30px var(--tone-shadow-173b5922)}
.historical-books-page .heritage-books-section .heritage-group-card:nth-child(n){background:linear-gradient(145deg,var(--tone-bg-f3f7fb) 0%,var(--tone-bg-fff) 72%,var(--tone-bg-edf2f8) 100%);border-color:var(--tone-border-c7d5e2);border-inline-start-color:var(--tone-border-d3b36c)}
.historical-books-page .heritage-books-section .heritage-group-card:nth-child(n) .category-icon{background:var(--tone-bg-e4edf5);border-color:var(--tone-border-cbd9e5);color:var(--tone-fg-244a72)}
.historical-books-page .library-results{padding:20px;border:1px solid var(--tone-border-c7d5e2);border-top:4px solid var(--tone-border-d3b36c);border-radius:16px;background:linear-gradient(145deg,var(--tone-bg-f3f7fb),var(--tone-bg-fff))}
.historical-books-page .library-results-head h2{color:var(--tone-fg-15345b)}
.historical-books-page .library-empty{padding:20px;border:1px dashed var(--tone-border-d3b36c);border-radius:12px;background:var(--tone-bg-fffdf8);color:var(--tone-fg-244a72);line-height:1.9}

/* Internal language and literary heritage sections. */
.literary-subcategory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:8px}
.literary-subcategory-grid[hidden]{display:none!important}
.literary-subcategory-card{display:flex;align-items:flex-start;gap:14px;min-height:150px;padding:20px;border:1px solid var(--tone-border-c7d5e2);border-inline-start:4px solid var(--tone-border-d3b36c);border-radius:14px;background:linear-gradient(145deg,var(--tone-bg-f3f7fb) 0%,var(--tone-bg-fff) 72%,var(--tone-bg-edf2f8) 100%);box-shadow:0 8px 22px var(--tone-shadow-173b5910);color:var(--tone-fg-15345b);text-decoration:none;transition:transform .2s,border-color .2s,box-shadow .2s}
.literary-subcategory-card:hover{transform:translateY(-3px);border-color:var(--tone-border-d3b36c);box-shadow:0 14px 26px var(--tone-shadow-173b591b)}
.literary-subcategory-card:focus-visible{outline:3px solid var(--tone-border-d3b36c);outline-offset:3px}
.literary-subcategory-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--tone-border-e5d5b2);border-radius:12px;background:var(--tone-bg-f6f0e2);color:var(--tone-fg-80633a);font-size:20px;font-weight:800}
.literary-subcategory-copy{display:grid;gap:6px;min-width:0}
.literary-subcategory-copy h3{margin:2px 0;color:var(--tone-fg-15345b);font-size:17px;line-height:1.5}
.literary-subcategory-copy p{margin:0;color:var(--tone-fg-687b8e);font-size:12px;line-height:1.8}
.literary-subcategory-arrow{margin-top:auto;margin-right:auto;color:var(--tone-fg-9a7840);font-size:12px;font-weight:700;white-space:nowrap}
@media(max-width:650px){.literary-subcategory-grid{grid-template-columns:minmax(0,1fr);gap:11px}.literary-subcategory-card{min-height:128px;padding:16px}.literary-subcategory-copy h3{font-size:16px}}

/* Match research pages to the library blue and gold theme. */
.research-page .library-heading{position:relative;isolation:isolate;overflow:hidden;min-height:210px;padding:clamp(26px,4.5vw,48px) clamp(22px,5vw,52px);border:1px solid var(--tone-border-a98b54);border-inline-start:7px solid var(--tone-border-d3b36c);border-radius:18px;background:linear-gradient(115deg,var(--tone-bg-0c2748) 0%,var(--tone-bg-183f63) 58%,var(--tone-bg-244a72) 100%);box-shadow:0 18px 38px var(--tone-shadow-173b5928)}
.research-page .library-heading::before{content:"";position:absolute;z-index:-1;inset:auto -75px -210px auto;width:390px;height:390px;border:1px solid var(--tone-border-ead8af55);border-radius:50%;box-shadow:0 0 0 24px var(--tone-shadow-ead8af0d),0 0 0 50px var(--tone-shadow-ead8af0a);pointer-events:none}
.research-page .library-heading>div{position:relative;z-index:1;max-width:900px}
.research-page .library-heading .eyebrow{display:inline-flex;padding:6px 12px;border:1px solid var(--tone-border-f1dfb94d);border-radius:999px;background:var(--tone-bg-fff1d20e);color:var(--tone-fg-f1d9a6);font-size:12px}
.research-page .library-heading h1{max-width:850px;margin:13px 0 8px;color:var(--tone-fg-fff8e9);font-size:clamp(27px,4.4vw,44px);line-height:1.45}
.research-page .library-heading p{max-width:780px;margin:0;color:var(--tone-fg-efe4ce);font-size:clamp(14px,1.5vw,17px);line-height:2}
.research-page .categories-section .category-card{background:linear-gradient(145deg,var(--tone-bg-f3f7fb) 0%,var(--tone-bg-fff) 72%,var(--tone-bg-edf2f8) 100%);border-color:var(--tone-border-c7d5e2);border-inline-start:4px solid var(--tone-border-d3b36c);box-shadow:0 9px 22px var(--tone-shadow-173b5914)}
.research-page .categories-section .category-card .category-icon{background:var(--tone-bg-e4edf5);border-color:var(--tone-border-cbd9e5);color:var(--tone-fg-244a72)}
.research-page .categories-section .category-card .category-index{background:var(--tone-bg-f6f0e2);color:var(--tone-fg-80633a);border-color:var(--tone-border-e5d5b2)}
.research-page .categories-section .category-card h3{color:var(--tone-fg-15345b)}
.research-page .categories-section .category-card p{color:var(--tone-fg-687b8e)}
.research-page .categories-section .category-card .card-arrow,.research-page .categories-section .category-card .card-arrow b{color:var(--tone-fg-9a7840)}
.research-page .categories-section .category-card:hover{border-color:var(--tone-border-d3b36c);box-shadow:0 15px 30px var(--tone-shadow-173b5922)}
.research-page .library-results{padding:20px;border:1px solid var(--tone-border-c7d5e2);border-top:4px solid var(--tone-border-d3b36c);border-radius:16px;background:linear-gradient(145deg,var(--tone-bg-f3f7fb),var(--tone-bg-fff))}
.research-page .library-results-head h2{color:var(--tone-fg-15345b)}
.research-page .library-empty{padding:20px;border:1px dashed var(--tone-border-d3b36c);border-radius:12px;background:var(--tone-bg-fffdf8);color:var(--tone-fg-244a72);line-height:1.9}
@media(max-width:650px){.research-page .library-heading{min-height:0;align-items:flex-start;padding:24px 20px}.research-page .library-heading h1{font-size:clamp(24px,7vw,32px)}}

/* Stronger blue and gold highlight for the research card on the homepage. */
.category-grid .category-card.category-econ{position:relative;overflow:hidden;background:linear-gradient(145deg,var(--tone-bg-eaf2f8) 0%,var(--tone-bg-fff) 68%,var(--tone-bg-f8f1e3) 100%);border-color:var(--tone-border-bdcdd9);border-inline-start:5px solid var(--tone-border-c7a66b);box-shadow:0 12px 30px var(--tone-shadow-15345b20)}
.category-grid .category-card.category-econ::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--tone-bg-c7a66b),var(--tone-bg-ead6a8),transparent);pointer-events:none}
.category-grid .category-card.category-econ .category-icon{background:var(--tone-bg-e8d6b4);border-color:var(--tone-border-d8c293);color:var(--tone-fg-244a72)}
.category-grid .category-card.category-econ .category-index{background:var(--tone-bg-f4ead1);color:var(--tone-fg-805f30);border:1px solid var(--tone-border-e5d5b2)}
.category-grid .category-card.category-econ h3{color:var(--tone-fg-15345b)}
.category-grid .category-card.category-econ p{color:var(--tone-fg-63778a)}
.category-grid .category-card.category-econ .card-arrow,.category-grid .category-card.category-econ .card-arrow b{color:var(--tone-fg-927344)}
.category-grid .category-card.category-econ:hover{border-color:var(--tone-border-c7a66b);box-shadow:0 17px 34px var(--tone-shadow-15345b2b)}

/* Featured design and supervision credits. */
.about-section .credits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px;padding:0;border:0}
.about-section .credits .credit-card{position:relative;display:flex;align-items:center;gap:14px;min-height:94px;padding:17px 19px;border:1px solid var(--tone-border-c7d5e2);border-inline-start:4px solid var(--tone-border-d3b36c);border-radius:14px;background:linear-gradient(145deg,var(--tone-bg-f1f6fa) 0%,var(--tone-bg-fff) 72%,var(--tone-bg-eaf1f6) 100%);box-shadow:0 10px 26px var(--tone-shadow-173b5912);transition:transform .2s,border-color .2s,box-shadow .2s}
.about-section .credits .credit-card:nth-child(2){border-color:var(--tone-border-dfd1b1);border-inline-start-color:var(--tone-border-c7a66b);background:linear-gradient(145deg,var(--tone-bg-fbf7ed) 0%,var(--tone-bg-fffdf8) 75%,var(--tone-bg-f3ead8) 100%)}
.about-section .credits .credit-card:hover{transform:translateY(-3px);border-color:var(--tone-border-c7a66b);box-shadow:0 15px 30px var(--tone-shadow-173b591b)}
.about-section .credits .credit-icon{width:46px;height:46px;flex:0 0 46px;border:1px solid var(--tone-border-d6c18f);border-radius:14px;background:var(--tone-bg-e8d6b4);color:var(--tone-fg-244a72);font-size:20px;box-shadow:inset 0 0 0 4px var(--tone-shadow-fff8e9)}
.about-section .credits .credit-card small{color:var(--tone-fg-927344);font-size:10px;letter-spacing:.15px}
.about-section .credits .credit-card b{margin-top:3px;color:var(--tone-fg-15345b);font-size:15px;line-height:1.6}
.about-section .credits .credit-card em{margin-top:3px;color:var(--tone-fg-687b8e);font-size:11px}
@media(max-width:650px){.about-section .credits{grid-template-columns:minmax(0,1fr);gap:10px}.about-section .credits .credit-card{min-height:82px;padding:14px 15px}}

/* Footer social icons; Facebook and Telegram await official profile links. */
.footer-socials{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.footer-social-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 11px;border:1px solid var(--tone-border-ffffff2b);border-radius:999px;background:var(--tone-bg-ffffff0b);color:var(--tone-fg-e8d6b4);font-size:10px;font-weight:700;line-height:1.2;white-space:nowrap}
.footer-social-link svg{width:18px;height:18px;flex:0 0 18px;fill:currentColor}
.footer-social-whatsapp{border-color:var(--tone-border-44c77d66);color:var(--tone-fg-5fe08e);transition:background .2s,transform .2s,border-color .2s}
.footer-social-whatsapp:hover{transform:translateY(-2px);border-color:var(--tone-border-5fe08e);background:var(--tone-bg-44c77d18)}
.footer-social-pending{color:var(--tone-fg-b8c5d4);opacity:.72}
@media(max-width:760px){.footer-socials{justify-content:flex-start}}
@media(max-width:430px){.footer-social-link{min-height:36px;padding:7px 9px;font-size:9px;gap:5px}.footer-social-link svg{width:16px;height:16px;flex-basis:16px}}

/* Keep every main section reachable when the full navigation no longer fits. */
@media(min-width:651px) and (max-width:1150px){
  .site-header .menu-toggle{display:block;margin-inline-start:12px}
  .site-header .main-nav{display:none;position:absolute;top:82px;left:0;right:0;z-index:21;max-height:calc(100vh - 82px);overflow-y:auto;padding:13px 5% 20px;background:var(--tone-bg-fff);border-bottom:1px solid var(--tone-border-var-line);box-shadow:0 12px 20px var(--tone-shadow-122b4510);flex-direction:column;align-items:stretch;gap:0}
  .site-header .main-nav.open{display:flex}
  .site-header .main-nav a{padding:10px 0;border-bottom:1px solid var(--tone-border-f0f2f5);font-size:12px;white-space:normal}
}

/* Softer, consistent interaction effects on the library homepage. */
.home-page .category-card,.home-page .credit-card,.home-page .btn,.home-page .footer-social-link,.home-page .whatsapp-float{transition-duration:.22s;transition-timing-function:cubic-bezier(.2,.75,.25,1)}
.home-page .category-card:hover{transform:translateY(-3px)}
.home-page .category-card .card-arrow b{transition:transform .22s cubic-bezier(.2,.75,.25,1)}
.home-page .category-card:hover .card-arrow b{transform:translateX(-3px)}
.home-page .btn:hover{transform:translateY(-1px)}
.home-page .whatsapp-float:hover{transform:translateY(-2px) scale(1.02)}
@media(prefers-reduced-motion:reduce){.home-page *,.home-page *::before,.home-page *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
