/* =============================================================
   FENIXALB — assets/pages.css
   Page-specific styles: content layout, article cards,
   books grid, shop grid, sidebar, empty states.
   ============================================================= */


/* ── CONTENT LAYOUT ─────────────────────────────────────────── */

.site-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px var(--content-pad);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

@media (max-width: 1100px) {
  .site-wrap {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 900px) {
  .site-wrap {
    grid-template-columns: 1fr;
  }
}

.site-wrap--single {
  grid-template-columns: 1fr;
}

.section-wrap {
  margin-bottom: 48px;
}

.section-cols {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

@media (max-width: 1100px) {
  .section-cols {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 900px) {
  .section-cols {
    grid-template-columns: 1fr;
  }
}

.section-sidebar .sidebar-widget {
  margin-bottom: 24px;
}

.section-sidebar .sidebar-widget:last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--maroon);
  padding-bottom: 10px;
}

.section-head h2 {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
}

.section-head a {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-left: auto;
  border: 1px solid var(--border);
  padding: 4px 12px;
  transition: all 0.2s;
}

.section-head a:hover {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.section-note {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text3);
  margin-left: auto;
}


/* ── ARTICLE CARDS ──────────────────────────────────────────── */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage variant: capped at 3 items, smaller cards */
.articles-grid--small {
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 20px;
  justify-content: center;
}

@media (max-width: 640px) {
  .articles-grid--small {
    grid-template-columns: 1fr;
  }
}

.article-card--sm .card-body {
  padding: 10px 12px;
}

.article-card--sm h3 {
  font-size: 13px;
}

.article-card--sm .card-date {
  font-size: 10px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  box-shadow: 0 8px 28px rgba(90, 15, 15, 0.12);
  transform: translateY(-2px);
}

.article-card .img-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--maroon-deep);
  position: relative;
}

.article-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--maroon-deep);
  transition: transform 0.35s;
}

.article-card:hover .img-wrap img {
  transform: scale(1.04);
}

.article-card .img-wrap .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, #2a0808 100%);
  font-family: var(--font-ui);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cat-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--maroon3);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.article-card .card-body {
  padding: 16px;
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}

.article-card h3 a:hover {
  color: var(--maroon);
}

.article-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 8px;
}

.card-date {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text3);
}

/* Featured article — spans full width */

.article-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.article-card.featured .img-wrap {
  aspect-ratio: unset;
  min-height: 240px;
}

.article-card.featured .card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-card.featured h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .article-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}


/* ── BOOKS GRID ─────────────────────────────────────────────── */

.books-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

@media (max-width: 1100px) {
  .books-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Homepage variant: capped at 5 items, smaller cards */
.books-grid--small {
  grid-template-columns: repeat(auto-fit, minmax(140px, 160px));
  gap: 20px;
  justify-content: center;
}

@media (max-width: 640px) {
  .books-grid--small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.book-card--sm .card-body {
  padding: 8px 10px;
}

.book-card--sm h3 {
  font-size: 12px;
}

.book-card--sm .book-author,
.book-card--sm .book-price {
  font-size: 11px;
}

.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.book-card:hover {
  box-shadow: 0 8px 24px rgba(90, 15, 15, 0.14);
  transform: translateY(-3px);
}

.book-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--maroon-deep);
}

.book-cover .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, #2a0808 100%);
  font-family: var(--font-ui);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 10px;
}

.book-card .card-body {
  padding: 12px;
}

.book-card h3 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 3px;
}

.book-author {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--maroon);
  margin-bottom: 3px;
}

.book-price {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon3);
}



/* ── SHOP GRID ──────────────────────────────────────────────── */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage variant: capped at 4 items, smaller cards */
.shop-grid--small {
  grid-template-columns: repeat(auto-fit, minmax(170px, 190px));
  gap: 20px;
  justify-content: center;
}

@media (max-width: 640px) {
  .shop-grid--small {
    grid-template-columns: 1fr;
  }
}

.shop-card--sm .card-body {
  padding: 10px 12px;
}

.shop-card--sm h3 {
  font-size: 13px;
}

.shop-card--sm .shop-desc {
  display: none; /* keep small cards tight — full description shown on shop.php and product page */
}

.shop-card--sm .price {
  font-size: 15px;
}

.shop-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.shop-card:hover {
  box-shadow: 0 8px 24px rgba(90, 15, 15, 0.13);
  transform: translateY(-2px);
}

.shop-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f0e8, #ede0cc);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--maroon3);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
}

.shop-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.shop-placeholder span:first-child {
  font-size: 40px;
}

.shop-placeholder span:last-child {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 8px;
}

.shop-card .card-body {
  padding: 16px;
}

.shop-card h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.shop-desc {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 10px;
  line-height: 1.5;
}

.price-row {
  margin-top: 6px;
}

.price {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 800;
  color: var(--maroon3);
}

.price .old {
  font-size: 13px;
  font-weight: 400;
  color: var(--text3);
  text-decoration: line-through;
  margin-left: 6px;
}

/* ── FEATURED ROTATOR (big card + mini cards) ─────────────── */
/* Used on home page and on editorial/botime/shop listing pages.
   Big rotating box on the left, search + mini list on the right.
   The full grid of all items still renders below this, unchanged
   in spirit — just kept at a smaller card size. */

.rotator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .rotator {
    grid-template-columns: 1fr;
  }
}

.rotator__feat-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 340px;
  background: var(--maroon-deep);
  overflow: hidden;
  border: 1px solid var(--border);
}

.rotator__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-smooth);
}

.rotator__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.rotator__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--maroon-deep);
}

.rotator__slide .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, #2a0808 100%);
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rotator__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.rotator__overlay .cat-tag {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}

.rotator__overlay h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.rotator__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.rotator__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
}

.rotator__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
}

.rotator__fill-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s;
}

.rotator__fill-card:hover {
  border-color: var(--gold);
}

.rotator__fill-card .rotator__fill-img {
  flex: 1;
  min-height: 0;
  background: var(--maroon-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotator__fill-card .rotator__fill-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--maroon-deep);
}

.rotator__fill-card .rotator__fill-img .placeholder {
  font-family: var(--font-ui);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rotator__fill-card .rotator__fill-text {
  padding: 8px 10px;
  flex-shrink: 0;
}

.rotator__fill-card h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.rotator__fill-card span {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text3);
}

.rotator__minis {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}


.rotator__mini {
  display: flex;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
  text-align: left;
  width: 100%;
}

.rotator__mini.is-active {
  border-color: var(--gold);
}

.rotator__mini-thumb {
  width: 56px;
  height: 42px;
  flex-shrink: 0;
  background: var(--maroon-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotator__mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-ph {
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.rotator__mini-text h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 2px;
}

.rotator__mini-text span {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text3);
}


/* ── PDF BADGE (on cards that have an attached pdf) ────────── */

.pdf-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--black);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}


/* ── SIDEBAR ─────────────────────────────────────────────────── */

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  overflow: hidden;
}

.widget-head {
  background: var(--maroon-deep);
  color: #e8a0a0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 2px solid var(--maroon3);
}

.widget-body {
  padding: 16px;
}

.search-form {
  display: flex;
}

.search-form .search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
}

.search-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  padding: 9px 30px 9px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--cream);
  outline: none;
  width: 100%;
}

.search-form .search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: var(--text3);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.search-form .search-clear.show {
  display: flex;
}

.search-form .search-clear:hover {
  color: var(--maroon);
}

.search-form button {
  background: var(--maroon);
  border: none;
  color: #fff;
  padding: 9px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.search-form button:hover {
  background: var(--maroon3);
}

.cat-list {
  list-style: none;
}

.cat-list li {
  border-bottom: 1px solid var(--bg2);
}

.cat-list li:last-child {
  border-bottom: none;
}

.cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--maroon-deep);
  transition: color 0.15s;
}

.cat-list li a:hover {
  color: var(--maroon3);
}

.cat-list li a span.cnt {
  background: var(--bg2);
  color: var(--text3);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
}

.recent-list {
  list-style: none;
}

.recent-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bg2);
  align-items: flex-start;
}

.recent-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-thumb-box {
  width: 56px;
  height: 42px;
  flex-shrink: 0;
  background: var(--maroon-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-text h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 2px;
}

.recent-text h4 a:hover {
  color: var(--maroon);
}

.recent-text span {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text3);
}


/* ── EMPTY STATE ─────────────────────────────────────────────── */

.empty-notice {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text3);
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--border);
}


/* ── DETAIL PAGE (article / book / product) ───────────────── */
/* Matches the look of the existing fenixalb.com article template:
   category tag, title, date, full-width primary image, then body
   copy with up to two more images floated right inline. */

.detail-page {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px 28px;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .detail-page {
    padding: 16px;
    max-width: 100%;
  }
}

.detail-page .cat-tag {
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}

.detail-page h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 6px;
}

.detail-page .detail-date {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}

/* ── TRANSLATION AVAILABILITY NOTICE ───────────────────────── */
/* Shown under the title when an article/book has translations. Tells
   the reader the piece exists in other languages and links to them
   (which also switches the whole site UI into that language). */
.lang-availability {
  margin: 0 0 22px;
}

.lang-availability__note {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold, #C6A15B);
  padding: 9px 14px;
  border-radius: 2px;
}

.lang-availability__note strong {
  color: var(--maroon);
}

.lang-availability__note a {
  color: var(--maroon3);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lang-availability__note a:hover {
  color: var(--maroon);
}

.detail-hero {
  width: 100%;
  max-height: 460px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--maroon-deep);
  margin-bottom: 20px;
}

.detail-hero.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, #2a0808 100%);
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-hero.placeholder .ph-icon {
  font-size: 36px;
  opacity: 0.45;
  letter-spacing: 0;
  text-transform: none;
}

.detail-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.detail-body p {
  margin-bottom: 18px;
}

.detail-inline-img {
  width: 220px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.detail-inline-img--right {
  float: right;
  margin-left: 18px;
}

.detail-inline-img--left {
  float: left;
  margin-right: 18px;
}

.detail-inline-img img {
  width: 100%;
  display: block;
}

@media (max-width: 640px) {
  .detail-inline-img,
  .detail-inline-img--right,
  .detail-inline-img--left {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }
}

/* ── BOTTOM IMAGES (article slots 4 & 5) ───────────────────── */
/* Shown stacked under the article body, full width, fully visible. */
.detail-bottom-imgs {
  clear: both;
  margin: 28px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-bottom-img {
  margin: 0;
  background: var(--maroon-deep);
  border-radius: 2px;
  overflow: hidden;
}

.detail-bottom-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-price {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 800;
  color: var(--maroon3);
}

.detail-price .old {
  font-size: 15px;
  font-weight: 400;
  color: var(--text3);
  text-decoration: line-through;
  margin-left: 8px;
}

.detail-author {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--maroon);
  margin-bottom: 18px;
}

.detail-pdf {
  margin-top: 32px;
  border: 1px solid var(--border);
  background: var(--cream);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-pdf-icon {
  width: 40px;
  height: 40px;
  background: var(--maroon);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}

.detail-pdf-text strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text);
}

.detail-pdf-text span {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text3);
}

.detail-pdf-link {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--maroon);
  padding: 8px 16px;
  flex-shrink: 0;
}

.detail-pdf-link:hover {
  background: var(--maroon3);
}

.detail-pdf-embed {
  margin-top: 16px;
  width: 100%;
  height: 600px;
  border: 1px solid var(--border);
}

.detail-back {
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  transition: color 0.15s;
}

.detail-back:hover {
  color: var(--maroon);
}

/* ═══════════════════════════════════════════════════════════════
   SHARE BUTTONS — article detail page
   ═══════════════════════════════════════════════════════════════ */
.detail-share {
  display: flex;
  align-items: center;
  justify-content: center;  /* centers the buttons */
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.detail-share__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);  /* dark text — visible on the cream background */
}

.detail-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  text-decoration: none;
}

.detail-share__btn--fb {
  background: #1877f2;
  color: #fff;
}
.detail-share__btn--fb:hover {
  background: #0f5bbf;
  color: #fff;
}

.detail-share__btn--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.detail-share__btn--ig:hover {
  opacity: 0.85;
  color: #fff;
}