/* Public site additions on top of style.css */

.flash-container {
  margin-top: 24px;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent-color);
  background: rgba(226, 183, 80, 0.12);
  color: #f4f4f4;
}

.flash-close {
  background: none;
  border: 0;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.series-grid {
  row-gap: 10px;
}

.series-card {
  transition: opacity 0.25s ease;
}

.series-card.is-hidden {
  display: none;
}

/* Anchors reused as the hover "button" on product cards */
.product-style a.add-to-cart {
  position: absolute;
  bottom: -65px;
  left: 0;
  z-index: 9;
  width: 100%;
  margin: 0;
  background: #161a1e;
  color: #e2e8f0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  line-height: 3;
  transition: all 0.3s ease;
}

.product-style:hover a.add-to-cart,
.product-style a.add-to-cart:focus-visible {
  bottom: 0;
  background: var(--accent-color);
  color: #0b0d0f;
}

.series-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 13, 15, 0.82);
  color: var(--accent-color);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.series-tabs {
  margin-bottom: 10px;
}

.series-tabs .tab {
  margin: 0 22px 14px;
  padding-bottom: 4px;
  color: #b3bdc7;
}

.series-tabs .tab.active,
.series-tabs .tab:hover {
  color: var(--accent-color);
}

.series-hint {
  color: #a0aab2;
  font-size: 14px;
}

.series-hint a {
  color: var(--accent-color);
}

.volume-label {
  color: var(--accent-color);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-item figcaption h3 a {
  color: inherit;
}

.volume-meta {
  color: #9aa5b0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 6px 0 14px;
}

.book-description {
  white-space: pre-line;
  color: #c3ccd4;
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
}

.leaf-pattern-overlay .book-description {
  color: #c3ccd4;
}

.store-block {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.16);
}

.store-title {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(226, 232, 240, 0.45);
  color: #e2e8f0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.store-button:hover,
.store-button:focus-visible {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #0b0d0f;
  text-decoration: none;
}

.store-button:first-child {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #0b0d0f;
}

.store-button:first-child:hover {
  background: #f0cf7c;
  border-color: #f0cf7c;
  color: #0b0d0f;
}

.book-facts {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  font-size: 13px;
  color: #aab4be;
}

.book-facts li {
  padding: 7px 0;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.16);
}

.book-facts strong {
  display: inline-block;
  min-width: 110px;
  color: #e2e8f0;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

.crumb {
  margin: 0 0 30px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa5b0;
}

.crumb a {
  color: #e2e8f0;
}

.crumb a:hover {
  color: var(--accent-color);
}

.crumb span {
  margin: 0 8px;
  color: var(--accent-color);
}

.series-cover-large {
  width: 100%;
  object-fit: cover;
}

.empty-note {
  color: #a0aab2;
  padding: 30px 0;
}

.result-heading {
  margin: 40px 0 20px;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.about-block p {
  font-size: 16px;
  line-height: 1.9;
  color: #c3ccd4;
  margin-bottom: 18px;
}

.post-excerpt {
  color: #a0aab2;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 10px;
}

.blog-card .post-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.article-head {
  margin-bottom: 28px;
}

.article-title {
  font-family: var(--heading-font);
  font-size: 2.8em;
  line-height: 1.2;
  color: #e2e8f0;
  margin: 8px 0 12px;
}

.article-byline {
  color: #9aa5b0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-figure {
  margin: 0 0 30px;
}

.article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-lead {
  font-size: 1.15em;
  line-height: 1.9;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.article-content {
  white-space: pre-line;
  color: #c3ccd4;
  font-size: 16px;
  line-height: 2;
}

.article-foot {
  margin-top: 36px;
}

.language-grid {
  row-gap: 24px;
}

.language-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 34px 30px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  background: rgba(226, 232, 240, 0.02);
  transition: all 0.2s ease;
}

.language-card:hover {
  border-color: var(--accent-color);
  background: rgba(226, 183, 80, 0.07);
  text-decoration: none;
}

.language-name {
  font-family: var(--heading-font);
  font-size: 28px;
  color: #e2e8f0;
}

.language-meta {
  color: #a0aab2;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.language-arrow {
  margin-top: 14px;
  color: var(--accent-color);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.buy-direct {
  margin-top: 28px;
}

.store-button.store-paypal {
  background: #ffc439;
  border-color: #ffc439;
  color: #11151a;
}

.store-button.store-paypal:hover {
  background: #f2b52f;
  border-color: #f2b52f;
  color: #11151a;
}

.checkout-card {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  background: rgba(226, 232, 240, 0.03);
}

.checkout-cover {
  width: 150px;
  height: auto;
  flex: 0 0 150px;
}

.checkout-title {
  margin: 0 0 6px;
  font-family: var(--heading-font);
  font-size: 26px;
  color: #e2e8f0;
}

.checkout-meta,
.checkout-note,
.checkout-small {
  margin: 0;
  color: #a0aab2;
  font-size: 13px;
}

.checkout-price {
  margin: 12px 0 4px;
  color: var(--accent-color);
  font-family: var(--heading-font);
  font-size: 26px;
}

.paypal-slot {
  margin-top: 28px;
  max-width: 420px;
}

.checkout-status {
  margin: 14px 0 0;
  min-height: 20px;
  color: #a0aab2;
  font-size: 13px;
}

.checkout-status.is-error,
.checkout-error {
  color: #f2b8b5;
  font-size: 13px;
}

.checkout-error {
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(242, 184, 181, 0.4);
  background: rgba(242, 184, 181, 0.08);
}

.checkout-back {
  margin-top: 22px;
  font-size: 13px;
}

@media (max-width: 575px) {
  .checkout-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.pagination .page-link {
  padding: 8px 13px;
  border: 1px solid rgba(226, 232, 240, 0.25);
  color: #e2e8f0;
  font-size: 13px;
}

.pagination .page-link:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  text-decoration: none;
}

.pagination .page-link.is-current {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #0b0d0f;
}

.pagination .page-gap {
  padding: 8px 4px;
  color: #9aa5b0;
}

.subscribe-message {
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  border-left: 3px solid var(--accent-color);
  background: rgba(226, 183, 80, 0.14);
  color: #161a1e;
}

.subscribe-error {
  border-left-color: #c0574b;
  background: rgba(192, 87, 75, 0.1);
}

.error-detail,
.store-empty {
  color: #9aa5b0;
  font-size: 13px;
}

/* Dark theme mobile navigation (stellarnav) */
.stellarnav .menu-toggle {
  color: #e2e8f0;
}

.stellarnav .menu-toggle span.bars span {
  background: #e2e8f0;
}

.stellarnav a.dd-toggle .icon-plus:after,
.stellarnav a.dd-toggle .icon-plus:before {
  border-color: #e2e8f0;
}

.stellarnav.mobile ul,
.stellarnav ul ul {
  background: #161a1e;
}

.stellarnav.mobile li a,
.stellarnav ul ul li a {
  color: #e2e8f0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}

.stellarnav.mobile li a:hover,
.stellarnav ul ul li a:hover {
  color: var(--accent-color);
}

.hamburger .bar {
  background-color: #e2e8f0;
}

@media (max-width: 767px) {
  .series-tabs .tab {
    margin: 0 12px 12px;
    font-size: 14px;
  }

  .store-button {
    width: 100%;
    justify-content: center;
  }
}

/* Homepage hero, filled from the books flagged "Show in Featured Books" */
#billboard .banner-content .hero-kicker {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

#billboard .banner-content .hero-title {
  font-size: 2.9em;
  line-height: 1.15;
  margin: 0 0 14px;
}

#billboard .banner-content .hero-title a {
  color: inherit;
}

#billboard .banner-content .hero-meta {
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
}

#billboard .banner-content .hero-copy {
  margin-bottom: 24px;
  color: #a0aab2;
}

.hero-cover-link {
  display: block;
  flex: 0 0 auto;
}

.hero-cover {
  width: 330px;
  height: 460px;
  object-fit: cover;
  border: 1px solid #2a323d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s ease-out;
}

.hero-cover-link:hover .hero-cover,
.hero-cover-link:focus-visible .hero-cover {
  transform: translateY(-6px);
}

@media screen and (min-width: 1000px) {
  #billboard .main-slider .banner-content {
    width: 42%;
    margin-top: 30px;
    margin-right: 90px;
  }
}

@media screen and (max-width: 999px) {
  #billboard .banner-content .hero-title {
    font-size: 2.2em;
  }

  .hero-cover {
    width: 230px;
    height: 320px;
  }
}
