@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');
/* DP Books: custom press stylesheet (uploaded via Website Settings > Appearance > Advanced) */

/* 1. Remove the crop-mark "+" corners */
.dp-page .blueprint > .corner { display: none !important; }

/* 2. Stats strip: tinted brand band */
.dp-stats {
  background: var(--color-accent-800);
  color: #fff;
  border-color: var(--color-accent-800) !important;
}
.dp-stats .dp-stats__cell { border-color: rgba(255,255,255,0.18) !important; }
.dp-stats .dp-stats__no,
.dp-stats .dp-stats__label { color: rgba(255,255,255,0.75) !important; }
.dp-stats .dp-stats__value { color: #fff !important; }

/* 3. Book cards: soft lift on hover, cleaner covers */
.dp-book-card { transition: transform .2s ease, box-shadow .2s ease; }
.dp-book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dp-book-card__cover img { box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.dp-book-card__cover:empty,
.dp-book-card__cover:not(:has(img)) {
  background: linear-gradient(160deg, var(--color-accent-700), var(--color-accent-800));
  min-height: 180px;
}

/* 4. Hero: accent bar on the featured card */
.dp-hero__card { border-top: 3px solid var(--color-accent-700) !important; background: #fff; }

/* 5. Dark footer */
.dp-footer { background: #1f2d3a; color: #e6ebf0; }
.dp-footer a { color: #e6ebf0; }
.dp-footer a:hover { color: #fff; }
.dp-footer .dp-footer__col-title { color: #9fb8d0; }
.dp-footer .dp-footer__bottom { border-color: rgba(255,255,255,0.15) !important; }

/* 6. Phone and small tablet layout */
html, body { overflow-x: hidden; }
@media (max-width: 640px) {
  .dp-hero { gap: 32px; padding-top: 32px; }
  .dp-hero__title-line { font-size: 40px; }
  .dp-hero__title-accent { font-size: 42px; }
  .dp-hero__lead { font-size: 16px; }
  .dp-hero__card-body { grid-template-columns: 1fr !important; gap: 18px; }
  .dp-hero__card-body img,
  .dp-hero__cover { max-width: 160px; }
  .dp-hero__slide-title { font-size: 22px; }
  .dp-stats__grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 7. Header menu fix for laptop widths (about 880 to 991px), where the theme showed a bulleted list */
.dp-header .pkp_nav_list, .dp-header .pkp_nav_list ul { list-style: none; }
@media (min-width: 880px) and (max-width: 991.98px) {
  .dp-header__row { gap: 16px; }
  .dp-header__nav { gap: 14px; }
  .dp-header .pkp_nav_list { margin: 0; padding: 0; }
  .dp-header .pkp_nav_list li { position: relative; display: inline-block; }
  .dp-header .pkp_nav_list li > ul { position: absolute; top: 100%; left: -9999px; z-index: 1000; min-width: 14em; margin: 0; padding: 8px 0; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
  .dp-header .pkp_nav_list li > ul li { display: block; }
  .dp-header .pkp_nav_list li > ul a { display: block; padding: 6px 14px; }
  .dp-header .pkp_nav_list li:hover > ul, .dp-header .pkp_nav_list li:focus-within > ul { left: auto; right: 0; }
  .dp-header__nav li:hover > ul, .dp-header__nav li:focus-within > ul { left: 0; right: auto; }
}

/* ===== 8. Domain Press family style (Nov 2026): navy #0F2E51, gold #C9A84C, Playfair Display + Outfit, to match domainpress.org ===== */
:root{
  --color-bg:#ffffff;--color-surface:#F7F4EC;--color-text:#1d2733;
  --color-accent:#0F2E51;--color-accent-2:#C9A84C;
  --color-accent-100:#eef2f7;--color-accent-200:#d5deea;--color-accent-300:#aebfd4;--color-accent-400:#7d95b3;--color-accent-500:#4d6a8f;
  --color-accent-600:#1A4373;--color-accent-700:#0F2E51;--color-accent-800:#0a2140;--color-accent-900:#06162b;
  --color-divider:#e6e1d4;
  --font-heading:"Playfair Display",Georgia,serif;--font-heading-weight:600;--font-body:"Outfit",system-ui,sans-serif;
  --radius-sm:3px;--radius-md:4px;--radius-lg:8px;
}
body{font-family:var(--font-body);color:var(--color-text)}
h1,h2,h3,h4{font-family:var(--font-heading);color:#0F2E51;letter-spacing:0;text-transform:none}
.dp-hero__title-line,.dp-hero__title-accent{text-transform:none;letter-spacing:0}
.dp-hero__title-accent{color:#C9A84C!important;font-style:italic}
.dp-header{background:#fff;border-bottom:1px solid #e6e1d4}
.dp-header a{color:#0F2E51}
.dp-header a:hover{color:#C9A84C}
.btn-primary,.btn-accent{background:#C9A84C!important;border-color:#C9A84C!important;color:#0F2E51!important;font-weight:600}
.btn-primary:hover,.btn-accent:hover{background:#b8963a!important;border-color:#b8963a!important}
.btn-secondary{border-color:#0F2E51!important;color:#0F2E51!important;background:transparent!important}
.btn-secondary:hover{background:#0F2E51!important;color:#fff!important}
.dp-stats{background:#0F2E51;border-color:#0F2E51!important}
.dp-stats .dp-stats__value{font-family:var(--font-heading)}
.dp-hero__card{border-top:4px solid #C9A84C!important}
.dp-catalog__filter-btn.active{background:#0F2E51!important;color:#fff!important;border-color:#0F2E51!important}
.dp-footer{background:#0a2140;color:rgba(255,255,255,.75)}
.dp-footer a{color:rgba(255,255,255,.8)}
.dp-footer a:hover{color:#C9A84C}
.dp-footer .dp-footer__col-title{color:#C9A84C}
a{color:#0F2E51}
a:hover{color:#b8963a}
.dp-header__cta{background:#C9A84C!important;border-radius:4px}
.dp-header__cta a,.dp-header .dp-header__cta a{color:#0F2E51!important;font-weight:600}
.dp-header__cta:hover{background:#b8963a!important}
.dp-hero__title-line{font-size:clamp(36px,4.6vw,58px)}
.dp-hero__title-accent{font-size:clamp(38px,4.8vw,60px)}

/* ===== 9. Book detail pages (Nov 2026): match the Domain Press style ===== */
.page_book{font-family:'Outfit',system-ui,sans-serif}
.obj_monograph_full .title{font-family:'Playfair Display',Georgia,serif;color:#0F2E51;font-weight:600;font-size:clamp(28px,3.2vw,40px);line-height:1.2;padding-bottom:18px;border-bottom:3px solid #C9A84C;margin-bottom:26px}
.obj_monograph_full .subtitle{font-family:'Outfit',sans-serif;color:#5b6675}
.obj_monograph_full .label,.obj_monograph_full .sub_item .label{font-family:'Outfit',sans-serif;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#b8963a;font-weight:600}
.obj_monograph_full .item.authors .name,.obj_monograph_full .authors strong{color:#0F2E51}
.obj_monograph_full .item.abstract,.obj_monograph_full .item.abstract p{color:#1d2733;line-height:1.7}
.obj_monograph_full .entry_details{border-left:1px solid #e6e1d4}
.obj_monograph_full .entry_details .item,.obj_monograph_full .sub_item{border-color:#e6e1d4}
.obj_monograph_full .cover img{box-shadow:0 16px 36px rgba(15,46,81,.22);border-radius:4px}
.obj_monograph_full a{color:#0F2E51}
.obj_monograph_full a:hover{color:#b8963a}
.obj_monograph_full .files .pkp_button,.obj_monograph_full .obj_galley_link,.obj_monograph_full .files a{background:#0F2E51;color:#fff!important;border-color:#0F2E51;border-radius:4px}
.obj_monograph_full .files a:hover,.obj_monograph_full .obj_galley_link:hover{background:#C9A84C;color:#0F2E51!important;border-color:#C9A84C}
.page_book .cmp_breadcrumbs a{color:#0F2E51}
.obj_monograph_full .item.references:not(:has(.value *)):not(:has(p)){display:none}
.obj_monograph_full .item.authors .sub_item .label{font-size:16px;letter-spacing:0;text-transform:none;color:#0F2E51;font-weight:600}
.obj_monograph_full .item.categories .label,.obj_monograph_full h2.label{color:#b8963a}

/* ===== 10. Readability fixes (Nov 13, 2026): no dark text on dark backgrounds, stronger gold on white, book pages on phones ===== */

/* Dark "For authors & editors" band: headings were navy on navy */
.dp-authors h1, .dp-authors h2, .dp-authors h3, .dp-authors h4,
.dp-authors .dp-authors__title { color: #ffffff !important; }
.dp-authors .dp-authors__step-title { color: #C9A84C !important; }

/* Any other dark band the theme adds later: keep headings light */
.dp-stats h1, .dp-stats h2, .dp-stats h3, .dp-stats h4,
.dp-footer h1, .dp-footer h2, .dp-footer h3, .dp-footer h4 { color: #ffffff !important; }

/* Footer address and copyright line were dark text on the dark footer */
.dp-footer .dp-footer__address,
.dp-footer .dp-footer__bottom,
.dp-footer .dp-footer__bottom span,
.dp-footer .dp-footer__brand { color: rgba(255,255,255,.78) !important; }

/* Gold text on white was too faint: use a deeper gold for text (backgrounds keep #C9A84C) */
.dp-hero .dp-hero__title-accent, h1 .dp-hero__title-accent, span.dp-hero__title-accent { color: #9C7A24 !important; }
.obj_monograph_full .label,
.obj_monograph_full .sub_item .label,
.obj_monograph_full h2.label,
.obj_monograph_full .item.categories .label,
.obj_monograph_full .citation_formats_button { color: #8A6A1C !important; }
.obj_monograph_full .item.authors .label { color: #0F2E51 !important; }
a:hover, .obj_monograph_full a:hover { color: #8A6A1C; }

/* PDF / download buttons were white text on a white button */
.dp-page .obj_monograph_full .files a,
.dp-page .obj_monograph_full .files a.cmp_download_link,
.dp-page .obj_monograph_full .files .link a {
  background: #0F2E51 !important; color: #ffffff !important; border-color: #0F2E51 !important;
}
.dp-page .obj_monograph_full .files a:hover,
.dp-page .obj_monograph_full .files a.cmp_download_link:hover {
  background: #C9A84C !important; color: #0F2E51 !important; border-color: #C9A84C !important;
}

/* Book pages on phones: the details column was wider than the screen */
@media (max-width: 767px) {
  .obj_monograph_full .row { grid-template-columns: 1fr !important; display: grid !important; gap: 28px; }
  .obj_monograph_full .entry_details { width: auto !important; max-width: 100% !important; float: none !important; border-left: 0 !important; }
  .obj_monograph_full .main_entry { width: auto !important; max-width: 100% !important; float: none !important; }
  .obj_monograph_full .entry_details .item,
  .obj_monograph_full .entry_details .sub_item,
  .obj_monograph_full .files .pub_format_single,
  .obj_monograph_full .files a { max-width: 100% !important; box-sizing: border-box; }
  .obj_monograph_full .cover img { max-width: 100% !important; height: auto !important; }
  .obj_monograph_full .csl-entry { overflow-wrap: anywhere; }
}

/* ===== 11. Book landing page in the Springer style (Nov 17, 2026): hero band with a small cover, Overview with editors, a clear Table of contents with small chapter titles and "Download chapter PDF", details in a side column. Applies to every book page that has chapters. ===== */

.obj_monograph_full:has(.item.chapters){display:grid;grid-template-columns:150px minmax(0,1fr) 300px;grid-template-rows:auto repeat(8,auto) 1fr;column-gap:36px;row-gap:0;position:relative;z-index:0}
.obj_monograph_full:has(.item.chapters)>.row,.obj_monograph_full:has(.item.chapters) .entry_details{display:contents}
.obj_monograph_full:has(.item.chapters)::before{content:"";grid-column:1/-1;grid-row:1;background:#EEF3F8;box-shadow:0 0 0 100vmax #EEF3F8;clip-path:inset(-28px -100vmax 0 -100vmax);border-bottom:1px solid #d5deea;z-index:-1}
.obj_monograph_full:has(.item.chapters) .item.cover{grid-column:1;grid-row:1;align-self:start;margin:0 0 28px;padding:0;border:0}
.obj_monograph_full:has(.item.chapters) .item.cover img{width:150px;height:auto;border-radius:3px;box-shadow:0 8px 22px rgba(15,46,81,.25)}
.obj_monograph_full:has(.item.chapters)>.title{grid-column:2/-1;grid-row:1;align-self:start;font-size:clamp(26px,2.6vw,34px)!important;line-height:1.2;border-bottom:0!important;padding:4px 0 0!important;margin:0 0 14px!important}
.obj_monograph_full:has(.item.chapters) .item.date_published,.obj_monograph_full:has(.item.chapters) .item.series{grid-row:1;align-self:end;border:0!important;padding:0!important;margin:0 0 28px!important;font-size:14px}
.obj_monograph_full:has(.item.chapters) .item.date_published{grid-column:2}
.obj_monograph_full:has(.item.chapters) .item.series{grid-column:3}
.obj_monograph_full:has(.item.chapters) .main_entry{grid-column:1/3;grid-row:2/-1;padding:32px 0 0!important;margin:0!important;border:0!important;width:auto!important;max-width:none!important}
.obj_monograph_full:has(.item.chapters) .main_entry>.item{padding:0 0 28px!important;margin:0!important;border:0!important}
.obj_monograph_full:has(.item.chapters) .item.authors{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 0;font-size:15px}
.obj_monograph_full:has(.item.chapters) .item.authors::before{content:"Overview";display:block;width:100%;font-family:'Playfair Display',Georgia,serif;font-size:24px;font-weight:600;color:#0F2E51;margin-bottom:12px}
.obj_monograph_full:has(.item.chapters) .item.authors .sub_item{margin:0!important;padding:0!important}
.obj_monograph_full:has(.item.chapters) .item.authors .sub_item:first-of-type::before{content:"Editors: ";font-weight:600;color:#1d2733;margin-right:4px}
.obj_monograph_full:has(.item.chapters) .item.authors .sub_item+.sub_item::before{content:",";margin-right:6px}
.obj_monograph_full:has(.item.chapters) .item.authors .sub_item .label,.obj_monograph_full:has(.item.chapters) .item.authors .sub_item .name{display:inline;font-size:15px!important;font-weight:500!important;margin:0;text-decoration:underline;text-underline-offset:3px;color:#0F2E51!important}
.obj_monograph_full:has(.item.chapters) .item.authors .sub_item .value{display:none}
.obj_monograph_full:has(.item.chapters) .main_entry .item.abstract>.label,.obj_monograph_full:has(.item.chapters) .main_entry .item.keywords>.label{font-size:0!important;letter-spacing:0!important;margin:0 0 12px;display:block}
.obj_monograph_full:has(.item.chapters) .main_entry .item.abstract>.label::after,.obj_monograph_full:has(.item.chapters) .main_entry .item.chapters>h2::after{font-family:'Playfair Display',Georgia,serif;font-size:24px;font-weight:600;color:#0F2E51;text-transform:none;letter-spacing:0}
.obj_monograph_full:has(.item.chapters) .main_entry .item.abstract>.label::after{content:"About this book"}
.obj_monograph_full:has(.item.chapters) .main_entry .item.keywords>.label::after{content:"Keywords";font-size:14px;font-weight:600;color:#1d2733;text-transform:none;letter-spacing:0}
.obj_monograph_full:has(.item.chapters) .main_entry .item.keywords .value{font-size:14px;color:#3d4752}
.obj_monograph_full:has(.item.chapters) .main_entry .item.abstract .value,.obj_monograph_full:has(.item.chapters) .main_entry .item.abstract p{font-size:16px;line-height:1.7}
.obj_monograph_full .item.chapters{counter-reset:dpch}
.obj_monograph_full:has(.item.chapters) .item.chapters>h2.pkp_screen_reader{position:static!important;clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;white-space:normal!important;margin:0 0 4px!important;font-size:0!important}
.obj_monograph_full:has(.item.chapters) .main_entry .item.chapters>h2::after{content:"Table of contents"}
.obj_monograph_full .item.chapters>ul{list-style:none;margin:0;padding:0;border-top:1px solid #d5dbe3}
.obj_monograph_full .item.chapters>ul>li{counter-increment:dpch;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;row-gap:4px;padding:16px 0!important;margin:0!important;border-bottom:1px solid #d5dbe3}
.obj_monograph_full .item.chapters>ul>li>a{grid-column:1;text-decoration:none}
.obj_monograph_full .item.chapters li .title{font-family:'Outfit',system-ui,sans-serif!important;font-size:17px!important;font-weight:600!important;line-height:1.35!important;color:#0F2E51!important;border:0!important;padding:0!important;margin:0!important;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.obj_monograph_full .item.chapters>ul>li::before{content:"Chapter " counter(dpch);grid-column:1/-1;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#8A6A1C}
.obj_monograph_full .item.chapters li>a:hover .title{color:#8A6A1C!important}
.obj_monograph_full .item.chapters li .authors{grid-column:1/-1;font-size:14px;color:#4a5562}
.obj_monograph_full .item.chapters li .authors::after{content:"Open Access";display:block;margin-top:4px;font-size:13px;color:#6b7684}
.obj_monograph_full .item.chapters li .files{grid-column:2;grid-row:2;align-self:start;margin:2px 0 0!important;padding:0!important}
.dp-page .obj_monograph_full .item.chapters li .files a,.obj_monograph_full .item.chapters li .files a.cmp_download_link{background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;color:#0F2E51!important;font-size:0!important;box-shadow:none!important}
.obj_monograph_full .item.chapters li .files a::before{content:"Download chapter PDF \2193";font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.dp-page .obj_monograph_full .item.chapters li .files a:hover{background:transparent!important;color:#8A6A1C!important}
.obj_monograph_full:has(.item.chapters) .entry_details>.item:not(.cover):not(.date_published):not(.series){grid-column:3;margin:0!important;padding:20px 0!important;border:0!important;border-bottom:1px solid #e6e1d4!important}
.obj_monograph_full:has(.item.chapters) .entry_details>.item.categories{grid-row:2;padding-top:32px!important}
.obj_monograph_full:has(.item.chapters) .entry_details>.item.copyright{grid-row:3}
.obj_monograph_full:has(.item.chapters) .entry_details>.item.license{grid-row:4}
.obj_monograph_full:has(.item.chapters) .entry_details>.item.citation{grid-row:5;border-bottom:0!important}
.obj_monograph_full:has(.item.chapters) .entry_details>.item{font-size:14px}
@media (max-width:900px){.obj_monograph_full:has(.item.chapters){grid-template-columns:110px minmax(0,1fr);column-gap:20px;grid-template-rows:none}.obj_monograph_full:has(.item.chapters) .item.cover img{width:110px}.obj_monograph_full:has(.item.chapters) .item.date_published{grid-column:1/-1;grid-row:2;align-self:start;margin:0 0 12px!important}.obj_monograph_full:has(.item.chapters) .item.series{grid-column:1/-1;grid-row:3;align-self:start;margin:0 0 24px!important}.obj_monograph_full:has(.item.chapters)::before{grid-row:1/4}.obj_monograph_full:has(.item.chapters) .item.cover{grid-row:1}.obj_monograph_full:has(.item.chapters) .main_entry{grid-row:auto}.obj_monograph_full:has(.item.chapters) .main_entry{grid-column:1/-1;grid-row:auto}.obj_monograph_full:has(.item.chapters) .entry_details>.item:not(.cover):not(.date_published):not(.series){grid-column:1/-1;grid-row:auto!important}.obj_monograph_full .item.chapters>ul>li{grid-template-columns:1fr}.obj_monograph_full .item.chapters li .files{grid-column:1;grid-row:auto;margin:2px 0 0!important}.obj_monograph_full .item.chapters li .authors{grid-row:auto}}

/* ===== 12. Footer address (Nov 17, 2026): Domain Press is based in California, USA. The theme footer still has an old address written in; this shows the right one instead. ===== */
.dp-footer__address{font-size:0!important;line-height:0}
.dp-footer__address *{display:none!important}
.dp-footer__address::before{content:"California, USA";display:block;font-size:14px;line-height:1.6;color:rgba(255,255,255,.75)}
