@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap");


/* ========================================
   ED LOST LEGIONS — BOOKS PAGE
======================================== */


/* ========================================
   GLOBAL
======================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;

  background: #F3F0E9;
  color: #111111;

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

img {
  display: block;
  max-width: 100%;
}


/* ========================================
   INTERNAL HEADER
======================================== */

.site-header {
  position: relative;

  width: 100%;
  max-width: 1220px;

  margin: 0 auto;

  background: #000000;

  overflow: hidden;
}

.internal-header-image {
  display: block;

  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center top;
}


/* ========================================
   NAVIGATION — DESKTOP
======================================== */

.main-nav {
  position: absolute;

  top: 22px;
  left: 50%;

  transform: translateX(-50%);

  width: 100%;
  max-width: 1220px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 22px;

  padding-right: 44px;

  z-index: 3000;
}

.main-nav a {
  display: inline-block;

  margin: 0;
  padding: 0;

  color: #FFFFFF;

  text-decoration: none;

  font-size: 12px;
  font-weight: 500;

  line-height: 1;

  white-space: nowrap;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.7;

  transform: translateY(-1px);
}

.main-nav a.active {
  opacity: 0.65;
}


/* ========================================
   INTRO
======================================== */

.books-intro {
  width: 100%;
  max-width: 1220px;

  margin: 0 auto;

  padding:
    42px
    52px
    50px;

  background: #F3F0E9;
}

.books-intro h1 {
  margin:
    0
    0
    42px;

  text-align: center;

  font-size: 26px;
  font-weight: 700;
}

.intro-copy {
  max-width: 1120px;

  margin: 0 auto;
}

.intro-copy p {
  margin:
    0
    0
    28px;

  font-size: 21px;

  line-height: 1.48;

  text-align: justify;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}


/* ========================================
   COLLECTIONS
======================================== */

.collections-section {
  width: 100%;

  background:
    rgba(
      0,
      0,
      0,
      0.018
    );
}

.collections-container {
  width: 100%;
  max-width: 1220px;

  margin: 0 auto;

  padding:
    28px
    52px
    55px;
}


/* ========================================
   SINGLE COLLECTION
======================================== */

.collection {
  display: grid;

  grid-template-columns:
    220px
    1fr;

  gap: 55px;

  align-items: center;

  min-height: 270px;

  padding:
    30px
    0;
}

.collection-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 220px;
  height: 220px;
}

.collection-icon img {
  display: block;

  width: auto;
  height: auto;

  max-width: 185px;
  max-height: 200px;

  object-fit: contain;
}

.collection-content h2 {
  margin:
    0
    0
    27px;

  font-size: 23px;

  font-weight: 700;
}

.collection-content p {
  max-width: 760px;

  margin:
    0
    0
    33px;

  font-size: 21px;

  line-height: 1.48;

  text-align: justify;
}


/* ========================================
   COLLECTION BUTTON
======================================== */

.collection-button {
  display: block;

  width: 430px;

  margin-left: auto;

  padding:
    16px
    30px;

  border: 0;

  background: #B3212E;

  color: #FFFFFF;

  text-align: center;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.collection-button:hover {
  opacity: 0.88;

  transform:
    translateY(-1px);
}


/* ========================================
   COLLECTION PANEL
======================================== */

.collection-panel {
  display: none;

  width: 100%;

  margin:
    10px
    0
    42px;
}

.collection-panel.visible {
  display: block;
}

.collection-panel-inner {
  padding:
    48px
    36px
    52px;

  background: #F3F0E9;

  border-top:
    1px solid
    rgba(0, 0, 0, 0.18);

  border-bottom:
    1px solid
    rgba(0, 0, 0, 0.18);
}

.collection-panel-inner > h3 {
  margin:
    0
    0
    48px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 30px;
}


/* ========================================
   BOOK ENTRY
======================================== */

.book-entry {
  display: grid;

  grid-template-columns:
    270px
    1fr;

  gap: 70px;

  align-items: start;
}


/* ========================================
   BOOK COVER
======================================== */

.book-cover {
  width: 270px;
}

.book-cover img {
  display: block;

  width: 100%;
  height: auto;

  background: #FFFFFF;

  box-shadow:
    0 8px 18px
    rgba(0, 0, 0, 0.16);
}


/* ========================================
   BOOK INFORMATION
======================================== */

.book-information {
  padding-top: 4px;
}

.book-information h4 {
  margin:
    0
    0
    6px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 31px;

  font-weight: 700;
}

.book-series {
  margin-bottom: 28px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 14px;

  font-weight: 700;
}

.book-information p {
  max-width: 670px;

  margin:
    0
    0
    25px;

  font-size: 19px;

  line-height: 1.52;

  text-align: justify;
}


/* ========================================
   BOOK ACTIONS
======================================== */

.book-actions {
  display: flex;
  flex-direction: column;

  gap: 14px;

  width: 430px;

  max-width: 100%;

  margin-top: 35px;
}

.book-button {
  display: block;

  width: 100%;

  padding:
    15px
    25px;

  border: 0;

  color: #FFFFFF;

  text-align: center;
  text-decoration: none;

  font-size: 12px;
  font-weight: 700;

  line-height: 1;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.book-button.primary {
  background: #B3212E;
}

.book-button.secondary {
  background: #818181;
}

.book-button:not(.static):hover {
  opacity: 0.88;

  transform:
    translateY(-1px);
}

.book-button.static,
.book-button:disabled {
  cursor: default;

  opacity: 1;
}


/* ========================================
   AMAZON OPTIONS
======================================== */

.amazon-options {
  display: none;

  width: 100%;

  gap: 10px;
}

.amazon-options.visible {
  display: flex;
  flex-direction: column;
}

.amazon-option {
  display: block;

  width: 100%;

  padding:
    14px
    25px;

  background: #B08D57;

  color: #FFFFFF;

  text-align: center;
  text-decoration: none;

  font-size: 14px;
  font-weight: 700;

  line-height: 1;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.amazon-option:hover {
  opacity: 0.88;

  transform:
    translateY(-1px);
}


/* ========================================
   CARRHAE DETAIL PANEL
======================================== */

.book-detail-panel {
  display: none;

  width: 100%;

  margin-top: 46px;

  overflow: hidden;

  background: #F3F0E9;
}

.book-detail-panel.visible {
  display: block;
}

.book-detail-panel img {
  display: block;

  width: 100%;
  height: auto;

  margin: 0;
  padding: 0;
}


/* ========================================
   BOOK DIVIDER
======================================== */

.book-divider {
  width: 100%;
  height: 2px;

  margin:
    52px
    0;

  background: #111111;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 800px) {

  /* ========================================
   MOBILE NAVIGATION + HEADER
======================================== */

.site-header {
  display: flex;
  flex-direction: column;

  width: 100%;
  max-width: 100%;

  margin: 0;

  background: #000000;

  overflow: hidden;
}

.main-nav {
  position: static;

  order: 1;

  width: 100%;
  max-width: 100%;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 14px;

  padding:
    0
    12px;

  margin: 0;

  background: #000000;

  transform: none;

  z-index: 2000;
}

.main-nav a {
  font-size: 12px;
  font-weight: 500;

  line-height: 1;

  white-space: nowrap;
}

.internal-header-image {
  position: static;

  order: 2;

  display: block;

  width: 100%;
  height: auto;

  margin: 0;
}


  /* ========================================
     INTRO
  ======================================== */

  .books-intro {
    padding:
      24px
      22px
      28px;

    border-bottom:
      1px solid
      rgba(0, 0, 0, 0.45);
  }

  .books-intro h1 {
    margin:
      0
      0
      20px;

    font-family: "Cinzel", serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.5;

    text-align: left;
  }

  .intro-copy p {
    margin:
      0
      0
      18px;

    font-size: 14px;

    line-height: 1.5;

    text-align: justify;
  }

  .intro-copy p:last-child {
    margin-bottom: 0;
  }


  /* ========================================
     COLLECTIONS
  ======================================== */

  .collections-container {
    padding:
      26px
      22px
      40px;
  }


  /* ========================================
     SINGLE COLLECTION
  ======================================== */

  .collection {
    position: relative;

    display: block;

    min-height: 0;

    padding:
      28px
      0
      38px;
  }

  .collection:not(:first-of-type) {
    border-top:
      1px solid
      rgba(0, 0, 0, 0.55);

    padding-top: 42px;
  }

  .collection-icon {
    width: 120px;
    height: 120px;

    margin:
      0
      auto
      18px;
  }

  .collection-icon img {
    max-width: 110px;
    max-height: 118px;
  }

  .collection-content h2 {
    margin:
      0
      0
      14px;

    font-family: "Cinzel", serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.5;
  }

  .collection-content p {
    margin:
      0
      0
      20px;

    font-size: 14px;

    line-height: 1.5;

    text-align: justify;
  }


  /* ========================================
     COLLECTION BUTTON
  ======================================== */

  .collection-button {
    width: 100%;

    margin-left: 0;

    padding:
      12px
      18px;

    font-size: 14px;
    line-height: 1.5;
  }


  /* ========================================
     COLLECTION PANEL
  ======================================== */

  .collection-panel {
    margin:
      4px
      0
      28px;
  }

  .collection-panel-inner {
    padding:
      24px
      18px
      30px;
  }

  .collection-panel-inner > h3 {
    margin:
      0
      0
      24px;

    font-family: "Cinzel", serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.5;
  }


  /* ========================================
     BOOK ENTRY
  ======================================== */

  .book-entry {
    display: block;
  }


  /* ========================================
     BOOK COVER
  ======================================== */

  .book-cover {
    width: 185px;

    margin:
      0
      auto
      24px;
  }


  /* ========================================
     BOOK INFORMATION
  ======================================== */

  .book-information {
    padding-top: 0;
  }

  .book-information h4 {
    margin:
      0
      0
      5px;

    font-family: "Cinzel", serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.5;
  }

  .book-series {
    margin-bottom: 18px;

    font-family: "Cinzel", serif;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.5;
  }

  .book-information p {
    margin:
      0
      0
      18px;

    font-size: 14px;

    line-height: 1.5;

    text-align: justify;
  }


  /* ========================================
     BOOK ACTIONS
  ======================================== */

  .book-actions {
    width: 100%;
    max-width: 100%;

    gap: 10px;

    margin-top: 22px;
  }

  .book-button {
    padding:
      12px
      18px;

    font-size: 14px;

    line-height: 1.5;
  }


  /* ========================================
     AMAZON OPTIONS
  ======================================== */

  .amazon-option {
    padding:
      12px
      18px;

    font-size: 14px;

    line-height: 1.5;
  }


  /* ========================================
     CARRHAE DETAIL PANEL
  ======================================== */

  .book-detail-panel {
    margin-top: 24px;
  }

  .book-detail-panel img {
    width: 100%;
  }


  /* ========================================
     BOOK DIVIDER
  ======================================== */

  .book-divider {
    margin:
      32px
      0;
  }

}

/* ========================================
   LANGUAGE FLAG — FINAL FIX
======================================== */

.main-nav a.language-switch {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 25px !important;
  min-width: 25px !important;

  margin-left: 6px !important;
  padding: 0 !important;

  opacity: 1 !important;
}

.main-nav a.language-switch img {
  display: block !important;

  width: 25px !important;
  max-width: 25px !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  opacity: 0.58 !important;

  filter:
    saturate(70%)
    brightness(1.5);
}

.main-nav a.language-switch:hover {
  transform: none !important;
}

.main-nav a.language-switch:hover img {
  opacity: 0.95 !important;

  filter:
    saturate(85%)
    brightness(1);

  transform: scale(1.08);
}

/* Added EXPLORE link */
.main-nav{gap:22px;}
@media (max-width:1000px){.main-nav{gap:16px;padding-right:26px;} .main-nav a,.main-nav a:visited{font-size:14px;}}
@media (max-width:800px){.internal-header-image{height:118px}.main-nav{gap:10px;} .main-nav a,.main-nav a:visited{font-size:12px;}}


/* Unified header + menu sizing across all pages */
.site-header{position:relative;width:100%;max-width:1220px;margin:0 auto;background:#000;overflow:hidden}
.internal-header-image{display:block;width:100%;height:150px;object-fit:cover;object-position:center top}
.main-nav,
.site-header .main-nav{position:absolute;top:22px;left:50%;transform:translateX(-50%);width:100%;max-width:1220px;display:flex;align-items:center;justify-content:flex-end;gap:22px;padding-right:44px;z-index:3000}
.main-nav a,
.main-nav a:visited,
.site-header .main-nav a,
.site-header .main-nav a:visited{display:inline-block;margin:0;padding:0;color:#fff;text-decoration:none;font-family:Arial,Helvetica,sans-serif;font-size:15px;font-weight:500;line-height:1;white-space:nowrap;transition:opacity .2s ease,transform .2s ease}
.main-nav a:hover,
.site-header .main-nav a:hover{opacity:.7;transform:translateY(-1px)}
.main-nav a.active,
.site-header .main-nav a.active{opacity:.65}
.main-nav a.language-switch,
.site-header .main-nav a.language-switch{display:flex;align-items:center;justify-content:center;margin-left:6px;padding:0;text-decoration:none;opacity:1}
.main-nav a.language-switch img,
.site-header .main-nav a.language-switch img{display:block;width:21px;height:auto;opacity:.58;filter:saturate(70%) brightness(1.5);transition:opacity .2s ease,filter .2s ease,transform .2s ease}
.main-nav a.language-switch:hover,
.site-header .main-nav a.language-switch:hover{opacity:1;transform:none}
.main-nav a.language-switch:hover img,
.site-header .main-nav a.language-switch:hover img{opacity:.95;filter:saturate(85%) brightness(1);transform:scale(1.08)}
@media (max-width:1000px){
  .main-nav,.site-header .main-nav{gap:16px;padding-right:26px}
  .main-nav a,.main-nav a:visited,.site-header .main-nav a,.site-header .main-nav a:visited{font-size:14px}
}
@media (max-width:800px){
  .internal-header-image{height:118px}
  .main-nav,.site-header .main-nav{position:relative;top:auto;left:auto;transform:none;width:100%;height:52px;display:flex;align-items:center;justify-content:center;gap:14px;padding:0 10px;background:#000;z-index:2000}
  .main-nav a,.main-nav a:visited,.site-header .main-nav a,.site-header .main-nav a:visited{font-size:12px}
}
@media (max-width:560px){
  .main-nav,.site-header .main-nav{gap:10px}
  .main-nav a,.main-nav a:visited,.site-header .main-nav a,.site-header .main-nav a:visited{font-size:11px}
  .main-nav a.language-switch img,.site-header .main-nav a.language-switch img{width:18px}
}


/* ========================================
   BRAND OVERRIDES — MONOCHROME EDLL
======================================== */
body{
  background:#ffffff;
  color:#111111;
}
.books-intro{
  background:#ffffff !important;
}
.books-intro h1,
.collection-content h2,
.collection-panel-inner > h3,
.book-information h4{
  font-family:Cinzel, Georgia, serif;
  letter-spacing:.04em;
}
.collections-section{
  background:#000000 !important;
}
.collections-container{
  padding-top:46px;
  padding-bottom:60px;
}
.collection{
  background:#ffffff;
  color:#111111;
  padding:32px 30px;
  border-left:4px solid #b3212e;
  min-height:0;
}
.collection:not(:last-of-type){
  margin-bottom:28px;
}
.collection-content p{
  max-width:820px;
}
.collection-button{
  background:#b3212e;
}
.collection-panel-inner,
.book-detail-panel{
  background:#ffffff !important;
}
.book-entry{
  border-top:1px solid rgba(0,0,0,.10);
  padding-top:28px;
}
.book-button.primary{
  background:#b3212e;
}
.book-button.secondary{
  background:#111111;
  color:#ffffff;
}

/* EDLL WHITE PAGE SYSTEM — HEADER REMAINS BLACK */
html,body{background:#ffffff !important;}
body{color:#111111 !important;}
/* Header/menu backgrounds and white navigation deliberately unchanged. */

.books-intro,.collections-section,.collections-container,.collection,.collection-panel-inner,.book-detail-panel{background:#ffffff !important;color:#111111 !important;}
.collections-container,.collection-content,.collection-content h2,.collection-content p,.book-information,.book-information p{color:#111111 !important;}
/* Colored CTA buttons and white button lettering stay as designed. */
