/* Lighthouse Books v7 — intentionally preserves Japanese Editorial typography. */

/* Academic book metadata follows the purchase controls without the old empty band. */
@media (min-width:961px){
  .j5-detail-grid{
    grid-template-areas:"cover content sidebar" "reading reading sidebar";
    grid-template-rows:auto auto;
    align-items:start;
    row-gap:12px;
  }
  .j5-detail-grid>.j5-large-cover{grid-area:cover}
  .j5-detail-grid>main{grid-area:content}
  .j5-detail-grid>.j5-details-sidebar{grid-area:sidebar;align-self:start}
  .j5-detail-grid>.j5-reading{grid-area:reading;align-self:start;margin:0;max-width:none}
}
@media (min-width:651px) and (max-width:960px){
  .j5-detail-grid{grid-template-areas:"cover content" "reading reading" "sidebar sidebar";align-items:start}
  .j5-detail-grid>.j5-large-cover{grid-area:cover}
  .j5-detail-grid>main{grid-area:content}
  .j5-detail-grid>.j5-reading{grid-area:reading;margin:0;max-width:none}
  .j5-detail-grid>.j5-details-sidebar{grid-area:sidebar}
}
.j5-reading .j5-tabs{margin-top:0}
.j5-purchase{margin-bottom:10px}

/* Catalogue cover sizes depend on the publisher's books-per-page setting. */
.j5-catalog.v7-per-page-6 .j5-grid6{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.j5-catalog.v7-per-page-6 .j5-card-cover{height:320px;max-height:320px}
.j5-catalog.v7-per-page-6 .j5-card-title{font-size:17px}
.j5-catalog.v7-per-page-9 .j5-grid6{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.j5-catalog.v7-per-page-9 .j5-card-cover{height:265px;max-height:265px}
.j5-catalog.v7-per-page-9 .j5-card-title{font-size:16px}
.j5-catalog.v7-per-page-12 .j5-grid6{grid-template-columns:repeat(4,minmax(0,1fr));gap:23px}
.j5-catalog.v7-per-page-12 .j5-card-cover{height:240px;max-height:240px}
.j5-catalog.v7-per-page-12 .j5-card-title{font-size:15px}
.j5-catalog.v7-per-page-24 .j5-grid6{grid-template-columns:repeat(6,minmax(0,1fr))}
.j5-catalog.v7-per-page-36 .j5-grid6{grid-template-columns:repeat(7,minmax(0,1fr));gap:17px 13px}
.j5-catalog.v7-per-page-36 .j5-card-cover{height:150px;max-height:150px}
.j5-catalog.v7-per-page-48 .j5-grid6{grid-template-columns:repeat(8,minmax(0,1fr));gap:15px 11px}
.j5-catalog.v7-per-page-48 .j5-card-cover{height:133px;max-height:133px}
.j5-catalog .v7-all-books{font-weight:700;color:#a91b14}

/* Open calls use the existing white, red and serif identity. */
.v7-call-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:18px}
.v7-call-card{background:#fffdfb;border:1px solid #e8d9ce;border-radius:6px;padding:24px;display:flex;flex-direction:column;min-height:290px;box-shadow:0 4px 14px #361d0910}
.v7-call-card>small,.v7-call-topic{color:#a61e17;text-transform:uppercase;letter-spacing:.08em;font:600 12px Georgia,serif}
.v7-call-card h3{margin:12px 0;font:600 23px/1.2 Georgia,serif}
.v7-call-card h3 a{color:#1b1715}
.v7-call-card h3 a:hover{color:#b51d14}
.v7-call-card p{font:14px/1.6 Georgia,serif;color:#594d46}
.v7-call-badge{display:inline-flex;width:max-content;border:1px solid #c82e20;color:#ae1f16;border-radius:30px;padding:5px 11px;font-size:12px;font-weight:600}
.v7-call-badge.appointed{border-color:#398269;color:#286c54;background:#ecf8f3}
.v7-call-bottom{margin-top:auto;display:flex;justify-content:space-between;gap:15px;font:12px Georgia,serif;border-top:1px solid #eee2d8;padding-top:14px}
.v7-call-bottom a,.v7-call-detail a:not(.j5-btn){color:#b21c13}
.v7-call-detail>h1{font:500 clamp(34px,3vw,48px)/1.17 Georgia,serif;margin:13px 0}
.v7-call-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:25px;margin:22px 0}
.v7-call-layout .form-card{height:max-content;min-width:0}
.v7-call-layout article.form-card p{line-height:1.7}
.v7-call-layout aside dl{display:grid;grid-template-columns:95px 1fr;gap:12px;font-size:13px}
.v7-call-layout aside dt{font-weight:700;color:#574a41}
.v7-call-layout aside dd{margin:0}
.v7-call-apply{max-width:930px}
.v7-call-apply h1,.v7-purchase h1{font:500 35px/1.15 Georgia,serif}
.v7-call-apply .form-grid,.v7-purchase .form-grid{margin:18px 0}
.v7-applicant{margin-bottom:18px}
.v7-inline-form{display:flex;gap:10px;flex-wrap:wrap}
.v7-purchase{max-width:1000px}
.v7-purchase .notice code{overflow-wrap:anywhere}
.v7-theme-choices{grid-template-columns:repeat(4,minmax(0,1fr))}

/* Ten optional editorial skins — no alteration to the default snapshot design. */
body.v6-theme-oxford{--v7-accent:#892720;--v7-wash:#f9f1ed}
body.v6-theme-cambridge{--v7-accent:#145a79;--v7-wash:#edf4f7}
body.v6-theme-botanical{--v7-accent:#316347;--v7-wash:#eff5ef}
body.v6-theme-astral{--v7-accent:#365b91;--v7-wash:#eef3fb}
body.v6-theme-monograph{--v7-accent:#594536;--v7-wash:#f7f2ea}
body.v6-theme-platinum{--v7-accent:#52626d;--v7-wash:#f2f5f7}
body.v6-theme-humanities{--v7-accent:#97472d;--v7-wash:#fcf2e9}
body.v6-theme-science{--v7-accent:#126e71;--v7-wash:#eaf7f6}
body.v6-theme-earth{--v7-accent:#72723d;--v7-wash:#f7f7e9}
body.v6-theme-midnight{--v7-accent:#283e68;--v7-wash:#e9edf7}
body[class*="v6-theme-"][style]{color:inherit}
body.v6-theme-oxford .j5-hero,body.v6-theme-cambridge .j5-hero,
body.v6-theme-botanical .j5-hero,body.v6-theme-astral .j5-hero,
body.v6-theme-monograph .j5-hero,body.v6-theme-platinum .j5-hero,
body.v6-theme-humanities .j5-hero,body.v6-theme-science .j5-hero,
body.v6-theme-earth .j5-hero,body.v6-theme-midnight .j5-hero{background-color:var(--v7-wash)}
body.v6-theme-oxford .j5-btn,body.v6-theme-cambridge .j5-btn,
body.v6-theme-botanical .j5-btn,body.v6-theme-astral .j5-btn,
body.v6-theme-monograph .j5-btn,body.v6-theme-platinum .j5-btn,
body.v6-theme-humanities .j5-btn,body.v6-theme-science .j5-btn,
body.v6-theme-earth .j5-btn,body.v6-theme-midnight .j5-btn{background:var(--v7-accent);border-color:var(--v7-accent)}
body.v6-theme-oxford .topnav a.active,body.v6-theme-cambridge .topnav a.active,
body.v6-theme-botanical .topnav a.active,body.v6-theme-astral .topnav a.active,
body.v6-theme-monograph .topnav a.active,body.v6-theme-platinum .topnav a.active,
body.v6-theme-humanities .topnav a.active,body.v6-theme-science .topnav a.active,
body.v6-theme-earth .topnav a.active,body.v6-theme-midnight .topnav a.active{color:var(--v7-accent);border-color:var(--v7-accent)}

/* Additional main-menu item without a desktop width jump. */
@media(min-width:961px) and (max-width:1400px){.topbar .topnav{gap:12px!important;font-size:14px!important}.topbar .submit-pill{padding-inline:9px}}
@media(max-width:1100px){.topbar .topnav{display:none!important}.mobile-nav{display:flex;flex-wrap:wrap}}
@media(max-width:1100px){
 .j5-catalog.v7-per-page-36 .j5-grid6,.j5-catalog.v7-per-page-48 .j5-grid6{grid-template-columns:repeat(5,minmax(0,1fr))}
 .v7-call-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .v7-call-grid,.v7-call-layout{grid-template-columns:1fr}
 .j5-catalog.v7-per-page-6 .j5-grid6,.j5-catalog.v7-per-page-9 .j5-grid6,
 .j5-catalog.v7-per-page-12 .j5-grid6,.j5-catalog.v7-per-page-36 .j5-grid6,
 .j5-catalog.v7-per-page-48 .j5-grid6{grid-template-columns:repeat(2,minmax(0,1fr))}
 .j5-catalog.v7-per-page-6 .j5-card-cover,.j5-catalog.v7-per-page-9 .j5-card-cover,
 .j5-catalog.v7-per-page-12 .j5-card-cover{height:210px;max-height:210px}
 .j5-detail-grid>.j5-reading{margin:16px 0 0}
}
